@divkitframework/divkit 24.2.0 → 24.3.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.css +1 -1
- package/dist/client.css.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 +2 -1
- package/typings/client-devtool.d.ts +8 -1
- package/typings/client-hydratable.d.ts +8 -1
- package/typings/client.d.ts +8 -1
- package/typings/common.d.ts +18 -0
- package/typings/extensions.d.ts +40 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{M:()=>Xa,Os:()=>fn,fz:()=>al,iL:()=>ll,e4:()=>sl,sY:()=>ol,Z3:()=>j});const n="function"==typeof BigInt;function r(t){return n?BigInt(t):Number(t)}const i=r("9223372036854775807"),o=r("-9223372036854775808");function a(t){const e=r(t);if(e>i||e<o)throw new Error("Integer overflow.");return e}const l=a(0);function s(t){let e=t;return e<0&&(e=-e),e}function c(t){let e=0;return t>0?e=1:t<0&&(e=-1),a(e)}function u(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function d(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function h(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 p(t){try{return a(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function f(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function g(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,g.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function m(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function v(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:Ft,JsonStringContents:function(){var t,e,n;for(t=wt,e=[],n=zt();n!==r;)e.push(n),n=zt();return xt=t,e=bt(e)}},a=Ft,l="@{",s="}",c="@{}",m="\\",v="||",y="&&",$="==",_="!=",b=">=",w="<=",x="+",k="-",E="true",C="false",A=/^[^}]/,V=/^[^'}]/,j=/^[0-9]/,D=/^[a-zA-Z_0-9.]/,P=/^[a-zA-Z_]/,S=/^[ \t\r\n]/,N=jt("@{",!1),I=jt("}",!1),F=jt("@{}",!1),z=jt("\\",!1),T={type:"any"},M=Dt(["}"],!0,!1),J=jt("?",!1),O=jt(":",!1),B=jt("||",!1),R=jt("&&",!1),U=jt("==",!1),W=jt("!=",!1),L=jt(">=",!1),q=jt(">",!1),H=jt("<=",!1),G=jt("<",!1),K=jt("+",!1),X=jt("-",!1),Y=jt("/",!1),Z=jt("*",!1),Q=jt("%",!1),tt=jt("!",!1),et=jt("(",!1),nt=jt(")",!1),rt=jt(",",!1),it=Pt("string"),ot=jt("'",!1),at=Dt(["'","}"],!0,!1),lt=Pt("integer"),st=Dt([["0","9"]],!1,!1),ct=Pt("number"),ut=jt(".",!1),dt=jt("e",!1),ht=jt("E",!1),pt=Pt("boolean"),ft=jt("true",!1),gt=jt("false",!1),mt=Dt([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),vt=Pt("identifier"),yt=Dt([["a","z"],["A","Z"],"_"],!1,!1),$t=Pt("whitespace"),_t=Dt([" ","\t","\r","\n"],!1,!1),bt=function(t){return h(t)},wt=0,xt=0,kt=[{line:1,column:1}],Et=0,Ct=[],At=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function Vt(){return t.substring(xt,wt)}function jt(t,e){return{type:"literal",text:t,ignoreCase:e}}function Dt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Pt(t){return{type:"other",description:t}}function St(e){var n,r=kt[e];if(r)return r;for(n=e-1;!kt[n];)n--;for(r={line:(r=kt[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return kt[e]=r,r}function Nt(t,e){var n=St(t),r=St(e);return{source:i,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function It(t){wt<Et||(wt>Et&&(Et=wt,Ct=[]),Ct.push(t))}function Ft(){var t,e;return t=wt,Kt(),(e=Tt())!==r?(Kt(),xt=t,t=e):(wt=t,t=r),t}function zt(){var e,n,i,o,a;if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(N)),n!==r?(i=Kt(),(o=Tt())!==r?(Kt(),125===t.charCodeAt(wt)?(a=s,wt++):(a=r,0===At&&It(I)),a!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,t.substr(wt,3)===c?(n=c,wt+=3):(n=r,0===At&&It(F)),n!==r&&(xt=e,n=""),(e=n)===r&&(e=wt,n=wt,At++,92===t.charCodeAt(wt)?(i=m,wt++):(i=r,0===At&&It(z)),i===r&&(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(N))),At--,i===r?n=void 0:(wt=n,n=r),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(T)),i!==r?(xt=e,e=Vt()):(wt=e,e=r)):(wt=e,e=r),e===r))){if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(N)),n!==r){if(i=[],A.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(M)),o!==r)for(;o!==r;)i.push(o),A.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(M));else i=r;i!==r?(125===t.charCodeAt(wt)?(o=s,wt++):(o=r,0===At&&It(I)),o!==r?(xt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(wt=e,e=r)):(wt=e,e=r)}else wt=e,e=r;e===r&&(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(N)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=wt,92===t.charCodeAt(wt)?(n=m,wt++):(n=r,0===At&&It(z)),n!==r?(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(N)),i!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=m,wt++):(n=r,0===At&&It(z)),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(T)),i!==r?(xt=e,e=f(i)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=m,wt++):(n=r,0===At&&It(z)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Tt(){var e,n,i,o,a,l;return e=wt,(n=Mt())!==r?(Kt(),63===t.charCodeAt(wt)?(i="?",wt++):(i=r,0===At&&It(J)),i!==r?(Kt(),(o=Tt())!==r?(Kt(),58===t.charCodeAt(wt)?(a=":",wt++):(a=r,0===At&&It(O)),a!==r?(Kt(),(l=Tt())!==r?(xt=e,e={type:"ConditionalExpression",test:n,consequent:o,alternate:l}):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=Mt()),e}function Mt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Jt())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===v?(l=v,wt+=2):(l=r,0===At&&It(B)),l!==r?(s=Kt(),(c=Jt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===v?(l=v,wt+=2):(l=r,0===At&&It(B)),l!==r?(s=Kt(),(c=Jt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=d(n,i)}else wt=e,e=r;return e}function Jt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Ot())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===y?(l=y,wt+=2):(l=r,0===At&&It(R)),l!==r?(s=Kt(),(c=Ot())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===y?(l=y,wt+=2):(l=r,0===At&&It(R)),l!==r?(s=Kt(),(c=Ot())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=d(n,i)}else wt=e,e=r;return e}function Ot(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Bt())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===$?(l=$,wt+=2):(l=r,0===At&&It(U)),l===r&&(t.substr(wt,2)===_?(l=_,wt+=2):(l=r,0===At&&It(W))),l!==r?(s=Kt(),(c=Bt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===$?(l=$,wt+=2):(l=r,0===At&&It(U)),l===r&&(t.substr(wt,2)===_?(l=_,wt+=2):(l=r,0===At&&It(W))),l!==r?(s=Kt(),(c=Bt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=u(n,i)}else wt=e,e=r;return e}function Bt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Rt())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===b?(l=b,wt+=2):(l=r,0===At&&It(L)),l===r&&(62===t.charCodeAt(wt)?(l=">",wt++):(l=r,0===At&&It(q)),l===r&&(t.substr(wt,2)===w?(l=w,wt+=2):(l=r,0===At&&It(H)),l===r&&(60===t.charCodeAt(wt)?(l="<",wt++):(l=r,0===At&&It(G))))),l!==r?(s=Kt(),(c=Rt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===b?(l=b,wt+=2):(l=r,0===At&&It(L)),l===r&&(62===t.charCodeAt(wt)?(l=">",wt++):(l=r,0===At&&It(q)),l===r&&(t.substr(wt,2)===w?(l=w,wt+=2):(l=r,0===At&&It(H)),l===r&&(60===t.charCodeAt(wt)?(l="<",wt++):(l=r,0===At&&It(G))))),l!==r?(s=Kt(),(c=Rt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=u(n,i)}else wt=e,e=r;return e}function Rt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Ut())!==r){for(i=[],o=wt,a=Kt(),43===t.charCodeAt(wt)?(l=x,wt++):(l=r,0===At&&It(K)),l===r&&(45===t.charCodeAt(wt)?(l=k,wt++):(l=r,0===At&&It(X))),l!==r?(s=Kt(),(c=Ut())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),43===t.charCodeAt(wt)?(l=x,wt++):(l=r,0===At&&It(K)),l===r&&(45===t.charCodeAt(wt)?(l=k,wt++):(l=r,0===At&&It(X))),l!==r?(s=Kt(),(c=Ut())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=u(n,i)}else wt=e,e=r;return e}function Ut(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Wt())!==r){for(i=[],o=wt,a=Kt(),47===t.charCodeAt(wt)?(l="/",wt++):(l=r,0===At&&It(Y)),l===r&&(42===t.charCodeAt(wt)?(l="*",wt++):(l=r,0===At&&It(Z)),l===r&&(37===t.charCodeAt(wt)?(l="%",wt++):(l=r,0===At&&It(Q)))),l!==r?(s=Kt(),(c=Wt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),47===t.charCodeAt(wt)?(l="/",wt++):(l=r,0===At&&It(Y)),l===r&&(42===t.charCodeAt(wt)?(l="*",wt++):(l=r,0===At&&It(Z)),l===r&&(37===t.charCodeAt(wt)?(l="%",wt++):(l=r,0===At&&It(Q)))),l!==r?(s=Kt(),(c=Wt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=u(n,i)}else wt=e,e=r;return e}function Wt(){var e,n,i;return(e=Ht())===r&&(e=qt())===r&&(e=wt,33===t.charCodeAt(wt)?(n="!",wt++):(n=r,0===At&&It(tt)),n===r&&(43===t.charCodeAt(wt)?(n=x,wt++):(n=r,0===At&&It(K)),n===r&&(45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)))),n!==r?(Kt(),(i=Wt())!==r?(xt=e,e={type:"UnaryExpression",operator:n,argument:i}):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=wt,(n=Gt())!==r?(Kt(),40===t.charCodeAt(wt)?(i="(",wt++):(i=r,0===At&&It(et)),i!==r?(Kt(),o=function(){var e,n,i,o,a,l,s;if(e=wt,(n=Tt())!==r){for(i=[],o=wt,Kt(),44===t.charCodeAt(wt)?(a=",",wt++):(a=r,0===At&&It(rt)),a!==r?(Kt(),(l=Tt())!==r?o=l:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,Kt(),44===t.charCodeAt(wt)?(a=",",wt++):(a=r,0===At&&It(rt)),a!==r?(Kt(),(l=Tt())!==r?o=l:(wt=o,o=r)):(wt=o,o=r);xt=e,s=i,e=[n,...s]}else wt=e,e=r;return e===r&&(e=Kt()),e}(),o!==r?(Kt(),41===t.charCodeAt(wt)?(a=")",wt++):(a=r,0===At&&It(nt)),a!==r?(xt=e,e={type:"CallExpression",callee:n,arguments:o}):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,(n=Gt())!==r&&(xt=e,n={type:"Variable",id:n}),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return At++,e=wt,39===t.charCodeAt(wt)?(n="'",wt++):(n=r,0===At&&It(ot)),n!==r?(i=function(){var t,e,n;for(t=wt,e=[],n=Lt();n!==r;)e.push(n),n=Lt();return xt=t,e=h(e)}(),39===t.charCodeAt(wt)?(o="'",wt++):(o=r,0===At&&It(ot)),o!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r),At--,e===r&&(n=r,0===At&&It(it)),e}(),e===r&&(e=Ht())===r&&(e=qt())===r&&(e=function(){var e,n;return At++,e=wt,t.substr(wt,4)===E?(n=E,wt+=4):(n=r,0===At&&It(ft)),n!==r&&(xt=e,n={type:"BooleanLiteral",value:!0}),(e=n)===r&&(e=wt,t.substr(wt,5)===C?(n=C,wt+=5):(n=r,0===At&&It(gt)),n!==r&&(xt=e,n={type:"BooleanLiteral",value:!1}),e=n),At--,e===r&&(n=r,0===At&&It(pt)),e}(),e===r&&(e=wt,40===t.charCodeAt(wt)?(n="(",wt++):(n=r,0===At&&It(et)),n!==r&&(i=Tt())!==r?(41===t.charCodeAt(wt)?(o=")",wt++):(o=r,0===At&&It(nt)),o!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r))),e}())),e}())),e}function Lt(){var e,n,i,o,a;if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(N)),n!==r?(i=Kt(),(o=Tt())!==r?(Kt(),125===t.charCodeAt(wt)?(a=s,wt++):(a=r,0===At&&It(I)),a!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,t.substr(wt,3)===c?(n=c,wt+=3):(n=r,0===At&&It(F)),n!==r&&(xt=e,n=""),(e=n)===r&&(e=wt,n=wt,At++,92===t.charCodeAt(wt)?(i=m,wt++):(i=r,0===At&&It(z)),i===r&&(39===t.charCodeAt(wt)?(i="'",wt++):(i=r,0===At&&It(ot)),i===r&&(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(N)))),At--,i===r?n=void 0:(wt=n,n=r),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(T)),i!==r?(xt=e,e=Vt()):(wt=e,e=r)):(wt=e,e=r),e===r))){if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(N)),n!==r){if(i=[],V.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(at)),o!==r)for(;o!==r;)i.push(o),V.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(at));else i=r;i!==r?(125===t.charCodeAt(wt)?(o=s,wt++):(o=r,0===At&&It(I)),o!==r?(xt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(wt=e,e=r)):(wt=e,e=r)}else wt=e,e=r;e===r&&(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(N)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=wt,92===t.charCodeAt(wt)?(n=m,wt++):(n=r,0===At&&It(z)),n!==r?(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(N)),i!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=m,wt++):(n=r,0===At&&It(z)),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(T)),i!==r?(xt=e,e=f(i)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=m,wt++):(n=r,0===At&&It(z)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function qt(){var e,n,i,o;if(At++,e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)),n===r&&(n=null),i=[],j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st)),o!==r)for(;o!==r;)i.push(o),j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));else i=r;return i!==r?(xt=e,e={type:"IntegerLiteral",value:p(Vt())}):(wt=e,e=r),At--,e===r&&(n=r,0===At&&It(lt)),e}function Ht(){var e,n,i,o,a,l,s,c,u,d;for(At++,e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)),n===r&&(n=null),i=[],j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));o!==r;)i.push(o),j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));if(46===t.charCodeAt(wt)?(o=".",wt++):(o=r,0===At&&It(ut)),o!==r){if(a=[],j.test(t.charAt(wt))?(l=t.charAt(wt),wt++):(l=r,0===At&&It(st)),l!==r)for(;l!==r;)a.push(l),j.test(t.charAt(wt))?(l=t.charAt(wt),wt++):(l=r,0===At&&It(st));else a=r;if(a!==r){if(l=wt,101===t.charCodeAt(wt)?(s="e",wt++):(s=r,0===At&&It(dt)),s===r&&(69===t.charCodeAt(wt)?(s="E",wt++):(s=r,0===At&&It(ht))),s!==r){if(43===t.charCodeAt(wt)?(c=x,wt++):(c=r,0===At&&It(K)),c===r&&(45===t.charCodeAt(wt)?(c=k,wt++):(c=r,0===At&&It(X))),c===r&&(c=null),u=[],j.test(t.charAt(wt))?(d=t.charAt(wt),wt++):(d=r,0===At&&It(st)),d!==r)for(;d!==r;)u.push(d),j.test(t.charAt(wt))?(d=t.charAt(wt),wt++):(d=r,0===At&&It(st));else u=r;u!==r?l=s=[s,c,u]:(wt=l,l=r)}else wt=l,l=r;l===r&&(l=null),xt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}}else wt=e,e=r}else wt=e,e=r;if(e===r){if(e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)),n===r&&(n=null),i=[],j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st)),o!==r)for(;o!==r;)i.push(o),j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));else i=r;if(i!==r)if(101===t.charCodeAt(wt)?(o="e",wt++):(o=r,0===At&&It(dt)),o===r&&(69===t.charCodeAt(wt)?(o="E",wt++):(o=r,0===At&&It(ht))),o!==r){if(43===t.charCodeAt(wt)?(a=x,wt++):(a=r,0===At&&It(K)),a===r&&(45===t.charCodeAt(wt)?(a=k,wt++):(a=r,0===At&&It(X))),a===r&&(a=null),l=[],j.test(t.charAt(wt))?(s=t.charAt(wt),wt++):(s=r,0===At&&It(st)),s!==r)for(;s!==r;)l.push(s),j.test(t.charAt(wt))?(s=t.charAt(wt),wt++):(s=r,0===At&&It(st));else l=r;l!==r?(xt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}):(wt=e,e=r)}else wt=e,e=r;else wt=e,e=r}return At--,e===r&&(n=r,0===At&&It(ct)),e}function Gt(){var e,n,i,o,a;if(At++,e=wt,n=wt,At++,i=function(){var e,n,i,o;return e=wt,t.substr(wt,4)===E?(n=E,wt+=4):(n=r,0===At&&It(ft)),n===r&&(t.substr(wt,5)===C?(n=C,wt+=5):(n=r,0===At&&It(gt))),n!==r?(i=wt,At++,D.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(mt)),At--,o===r?i=void 0:(wt=i,i=r),i!==r?e=n=[n,i]:(wt=e,e=r)):(wt=e,e=r),e}(),At--,i===r?n=void 0:(wt=n,n=r),n!==r)if(P.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&It(yt)),i!==r){for(o=[],D.test(t.charAt(wt))?(a=t.charAt(wt),wt++):(a=r,0===At&&It(mt));a!==r;)o.push(a),D.test(t.charAt(wt))?(a=t.charAt(wt),wt++):(a=r,0===At&&It(mt));xt=e,e={type:"Identifier",name:Vt()}}else wt=e,e=r;else wt=e,e=r;return At--,e===r&&(n=r,0===At&&It(vt)),e}function Kt(){var e,n;for(At++,e=[],S.test(t.charAt(wt))?(n=t.charAt(wt),wt++):(n=r,0===At&&It(_t));n!==r;)e.push(n),S.test(t.charAt(wt))?(n=t.charAt(wt),wt++):(n=r,0===At&&It(_t));return At--,n=r,0===At&&It($t),e}if((n=a())!==r&&wt===t.length)return n;throw n!==r&&wt<t.length&&It({type:"end"}),function(t,e,n){return new g(g.buildMessage(t,e),t,e,n)}(Ct,Et<t.length?t.charAt(Et):null,Et<t.length?Nt(Et,Et+1):Nt(Et,Et))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(g,Error),g.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source+":"+i.line+":"+i.column;if(r){var a=this.location.end,l=m("",i.line.toString().length," "),s=r[i.line-1],c=(i.line===a.line?a.column:s.length+1)-i.column||1;e+="\n --\x3e "+o+"\n"+l+" |\n"+i.line+" | "+s+"\n"+l+" | "+m("",i.column-1," ")+m("",c,"^")}else e+="\n at "+o}return e},g.buildMessage=function(t,e){var n={literal:function(t){return'"'+i(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?o(t[0])+"-"+o(t[1]):o(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function i(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function o(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+i(t)+'"':"end of input"}(e)+" found."};const y=new Map,$=new Map;function _(t,e,n){const r={args:e,cb:n},i=y.get(t)||[];y.has(t)||y.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");$.set(o,r)}function b(t,e){let n=t.args.length,r=t.args.length;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(--n,r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}return{type:"match"}}function w(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=>{w(t,e)}));break;case"BinaryExpression":case"LogicalExpression":w(t.left,e),w(t.right,e);break;case"UnaryExpression":w(t.argument,e);break;case"ConditionalExpression":w(t.test,e),w(t.consequent,e),w(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{w(t,e)}))}}function x(t,e){for(;t.length<e;)t="0"+t;return t}function k(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=C(t);return r?(r.a*=e,E(r)):n}function E(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>x(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}function C(t){const e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(e){if(5===e.length){const[t,n,r,i,o]=e,a=2===r.length?r:r+r,l=2===i.length?i:i+i,s=2===o.length?o:o+o,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(l,16),b:parseInt(s,16)}}const[t,n,r,i]=e,o=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===i.length?i:i+i;return{a:255,r:parseInt(o,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function A(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function V(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function j(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 V(t.value);if("color"===t.type)return T(z(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function D(t){let e=j(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function P(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function S(t,e){if(n)return a(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function N(t,e){if(e<o||e>i)throw new Error("Integer overflow.");!n&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function I(t){const e=[];return w(t,{Variable(t){e.push(t.id.name)}}),e}function F(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function z(t){const e=C(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 x(Math.round(t).toString(16),2)})).join("").toUpperCase())}function M(t){return T(z(t))}const J=Number.MAX_VALUE,O=Number.MIN_VALUE,B="string",R="integer",U="number",W="boolean",L="color",q="datetime";function H(t,e){return{type:B,value:j(e)}}function G(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:U,value:n}}function K(t,e,n,r){const i=t.variables.get(e.value);let o;return o=i&&i.getType()===r?i.getValue():n.value,"color"===r&&(o=M(o)),{type:r,value:o}}function X(t,e,n){return K(t,e,n,n.type)}function Y(t,e,n){return K(t,e,n,"color")}function Z(t,e,n){return K(t,e,n,"url")}const Q=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:R,value:r}},tt=Q("getUTCFullYear"),et=Q("getUTCMonth"),nt=Q("getUTCDate"),rt=Q("getUTCDay"),it=Q("getUTCHours"),ot=Q("getUTCMinutes"),at=Q("getUTCSeconds"),lt=Q("getUTCMilliseconds");function st(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}function ct(t,e,n,r){if(!r.value.length)return t.warnings.push(st(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===B?e.value:j(e);for(;i.length+o.length<n.value;)i+=r.value;return i.length>0&&i.length+o.length>n.value&&(i=i.substring(0,Number(n.value)-Number(o.length))),i}function ut(t,e,n,r){const i=ct(t,e,n,r);return{type:B,value:i+j(e)}}function dt(t,e,n,r){const i=ct(t,e,n,r);return{type:B,value:j(e)+i}}function ht(t){return(e,n)=>{const r=z(n.value);return{type:U,value:r[t]/255}}}function pt(t){return(e,n,r)=>{const i=z(n.value);return i[t]=255*r.value,{type:L,value:T(i)}}}const ft=ht("a"),gt=ht("r"),mt=ht("g"),vt=ht("b"),yt=pt("a"),$t=pt("r"),_t=pt("g"),bt=pt("b");function wt(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=a(e.value)/a(n);return N(t,i),"number"==typeof i&&(i=Math.floor(i)),r&&(i=a(i)%a(r)),{type:R,value:i}}function xt(){}const kt=t=>t;function Et(t,e){for(const n in e)t[n]=e[n];return t}function Ct(t){return t()}function At(){return Object.create(null)}function Vt(t){t.forEach(Ct)}function jt(t){return"function"==typeof t}let Dt;function Pt(t,e){return Dt||(Dt=document.createElement("a")),Dt.href=e,t===Dt.href}function St(t,e){return t!=t?e==e:t!==e}function Nt(t){return 0===Object.keys(t).length}function It(t,...e){if(null==t)return xt;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Ft(t,e,n){t.$$.on_destroy.push(It(e,n))}function zt(t,e,n,r){if(t){const i=Tt(t,e,n,r);return t[0](i)}}function Tt(t,e,n,r){return t[1]&&r?Et(n.ctx.slice(),t[1](r(e))):n.ctx}function Mt(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|i[r];return t}return e.dirty|i}return e.dirty}function Jt(t,e,n,r,i,o){if(i){const a=Tt(e,n,r,o);t.p(a,i)}}function Ot(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 Bt(t){return t&&jt(t.destroy)?t.destroy:xt}const Rt="undefined"!=typeof window;let Ut=Rt?()=>window.performance.now():()=>Date.now(),Wt=Rt?t=>requestAnimationFrame(t):xt;const Lt=new Set;function qt(t){Lt.forEach((e=>{e.c(t)||(Lt.delete(e),e.f())})),0!==Lt.size&&Wt(qt)}let Ht=!1;function Gt(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}return t}function Kt(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Xt(t){const e=ee("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(Kt(t),e),e.sheet}function Yt(t,e){if(Ht){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let i=0;for(let t=0;t<e.length;t++){const o=e[t].claim_order,a=(i>0&&e[n[i]].claim_order<=o?i+1:Gt(1,i,(t=>e[n[t]].claim_order),o))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,i=Math.max(l,i)}const o=[],a=[];let l=e.length-1;for(let t=n[i]+1;0!=t;t=r[t-1]){for(o.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);o.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<o.length&&a[e].claim_order>=o[n].claim_order;)n++;const r=n<o.length?o[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function Zt(t,e,n){Ht&&!n?Yt(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function Qt(t){t.parentNode.removeChild(t)}function te(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function ee(t){return document.createElement(t)}function ne(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function re(t){return document.createTextNode(t)}function ie(){return re(" ")}function oe(){return re("")}function ae(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function le(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function se(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]:le(t,r,e[r])}function ce(t){return Array.from(t.childNodes)}function ue(t,e,n,r,i=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const o=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i||(t.claim_info.last_index=r),o}}for(let r=t.claim_info.last_index-1;r>=0;r--){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function de(t,e,n,r){return ue(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const i=t.attributes[r];n[i.name]||e.push(i.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function he(t,e,n){return de(t,e,n,ee)}function pe(t,e,n){return de(t,e,n,ne)}function fe(t,e){return ue(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}),(()=>re(e)),!0)}function ge(t){return fe(t," ")}function me(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function ve(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}const ye=new Map;let $e,_e=0;function be(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-r.length;i&&(t.style.animation=r.join(", "),_e-=i,_e||Wt((()=>{_e||(ye.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),ye.clear())})))}function we(t){$e=t}function xe(){if(!$e)throw new Error("Function called outside component initialization");return $e}function ke(t){xe().$$.on_mount.push(t)}function Ee(t){xe().$$.on_destroy.push(t)}function Ce(t,e){return xe().$$.context.set(t,e),e}function Ae(t){return xe().$$.context.get(t)}function Ve(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const je=[],De=[],Pe=[],Se=[],Ne=Promise.resolve();let Ie=!1;function Fe(){Ie||(Ie=!0,Ne.then(Be))}function ze(){return Fe(),Ne}function Te(t){Pe.push(t)}const Me=new Set;let Je,Oe=0;function Be(){const t=$e;do{for(;Oe<je.length;){const t=je[Oe];Oe++,we(t),Re(t.$$)}for(we(null),je.length=0,Oe=0;De.length;)De.pop()();for(let t=0;t<Pe.length;t+=1){const e=Pe[t];Me.has(e)||(Me.add(e),e())}Pe.length=0}while(je.length);for(;Se.length;)Se.pop()();Ie=!1,Me.clear(),we(t)}function Re(t){if(null!==t.fragment){t.update(),Vt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Te)}}function Ue(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,r,e),i}(`${e?"intro":"outro"}${n}`))}const We=new Set;let Le;function qe(){Le={r:0,c:[],p:Le}}function He(){Le.r||Vt(Le.c),Le=Le.p}function Ge(t,e){t&&t.i&&(We.delete(t),t.i(e))}function Ke(t,e,n,r){if(t&&t.o){if(We.has(t))return;We.add(t),Le.c.push((()=>{We.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Xe={duration:0};function Ye(t,e,n){let r,i,o=e(t,n),a=!1,l=0;function s(){r&&be(t,r)}function c(){const{delay:e=0,duration:n=300,easing:c=kt,tick:u=xt,css:d}=o||Xe;d&&(r=function(t,e,n,r,i,o,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*o(t);c+=100*t+`%{${a(r,1-r)}}\n`}const u=c+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${l}`,h=Kt(t),{stylesheet:p,rules:f}=ye.get(h)||function(t,e){const n={stylesheet:Xt(e),rules:{}};return ye.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${i}ms 1 both`,_e+=1,d}(t,0,1,n,e,c,d,l++)),u(0,1);const h=Ut()+e,p=h+n;i&&i.abort(),a=!0,Te((()=>Ue(t,!0,"start"))),i=function(t){let e;return 0===Lt.size&&Wt(qt),{promise:new Promise((n=>{Lt.add(e={c:t,f:n})})),abort(){Lt.delete(e)}}}((e=>{if(a){if(e>=p)return u(1,0),Ue(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,be(t),jt(o)?(o=o(),(Je||(Je=Promise.resolve(),Je.then((()=>{Je=null}))),Je).then(c)):c())},invalidate(){u=!1},end(){a&&(s(),a=!1)}}}const Ze="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Qe(t,e){Ke(t,1,1,(()=>{e.delete(t.key)}))}function tn(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const a=t[o],l=e[o];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)i[t]||(n[t]=l[t],i[t]=1);t[o]=l}else for(const t in a)i[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let en;function nn(t){t&&t.c()}function rn(t,e){t&&t.l(e)}function on(t,e,n,r){const{fragment:i,on_mount:o,on_destroy:a,after_update:l}=t.$$;i&&i.m(e,n),r||Te((()=>{const e=o.map(Ct).filter(jt);a?a.push(...e):Vt(e),t.$$.on_mount=[]})),l.forEach(Te)}function an(t,e){const n=t.$$;null!==n.fragment&&(Vt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ln(t,e,n,r,i,o,a,l=[-1]){const s=$e;we(t);const c=t.$$={fragment:null,ctx:null,props:o,update:xt,not_equal:i,bound:At(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:At(),dirty:l,skip_bound:!1,root:e.target||s.$$.root};a&&a(c.root);let u=!1;if(c.ctx=n?n(t,e.props||{},((e,n,...r)=>{const o=r.length?r[0]:n;return c.ctx&&i(c.ctx[e],c.ctx[e]=o)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](o),u&&function(t,e){-1===t.$$.dirty[0]&&(je.push(t),Fe(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,Vt(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){Ht=!0;const t=ce(e.target);c.fragment&&c.fragment.l(t),t.forEach(Qt)}else c.fragment&&c.fragment.c();e.intro&&Ge(t.$$.fragment),on(t,e.target,e.anchor,e.customElement),Ht=!1,Be()}we(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&&(en=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(Ct).filter(jt);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){Vt(this.$$.on_disconnect)}$destroy(){an(this,1),this.$destroy=xt}$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&&!Nt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class sn{$destroy(){an(this,1),this.$destroy=xt}$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&&!Nt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const cn=[];function un(t,e=xt){let n;const r=new Set;function i(e){if(o=e,((i=t)!=i?o==o:i!==o||i&&"object"==typeof i||"function"==typeof i)&&(t=e,n)){const e=!cn.length;for(const e of r)e[1](),cn.push(e,t);if(e){for(let t=0;t<cn.length;t+=2)cn[t][0](cn[t+1]);cn.length=0}}var i,o}return{set:i,update:function(e){i(e(t))},subscribe:function(o,a=xt){const l=[o,a];return r.add(l),1===r.size&&(n=e(i)||xt),o(t),()=>{r.delete(l),0===r.size&&(n(),n=null)}}}}function dn(t,e,n){const r=!Array.isArray(t),i=r?[t]:t,o=e.length<2;return{subscribe:un(n,(t=>{let n=!1;const a=[];let l=0,s=xt;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);o?t(n):s=jt(n)?n:xt},u=i.map(((t,e)=>It(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){Vt(u),s()}})).subscribe}}class hn{constructor(t,e){const n=this.convertValue(e);this.name=t,this.value=n}getName(){return this.name}subscribe(t){return this.store||(this.store=un(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}const pn={string:class extends hn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends hn{convertValue(t){if("number"!=typeof t||isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}},integer:class extends hn{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>i||t<o)throw new Error("Incorrect variable value");return a(t)}fromString(t){const e=a(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends hn{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}},color:class extends hn{convertValue(t){if("string"!=typeof t||!C(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends hn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}};function fn(t,e,n){if(!(e in pn))throw new Error("Unsupported variable type");return new pn[e](t,n)}function gn(t){return t.map(D).join(", ")}_("toString",[R],H),_("toString",[U],H),_("toString",[W],H),_("toString",[L],H),_("toString",["url"],H),_("toNumber",[R],G),_("toNumber",[B],G),_("toInteger",[U],(function(t,e){if(e.value>i||e.value<o)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:R,value:a(n)}})),_("toInteger",[B],(function(t,e){let n;try{n=a(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>i||n<o)throw new Error("Unable to convert value to Integer.");return{type:R,value:n}})),_("toInteger",[W],(function(t,e){return{type:R,value:a(e.value?1:0)}})),_("toBoolean",[R],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:W,value:n}})),_("toBoolean",[B],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:W,value:"true"===e.value?1:0}})),_("toColor",[B],(function(t,e){return{type:L,value:M(e.value)}})),_("toUrl",[B],(function(t,e){return{type:"url",value:e.value}})),_("encodeUri",[B],(function(t,e){try{return{type:B,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),_("decodeUri",[B],(function(t,e){try{return{type:B,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),_("getIntegerValue",[B,R],X),_("getNumberValue",[B,U],X),_("getBooleanValue",[B,W],X),_("getStringValue",[B,B],X),_("getColorValue",[B,L],Y),_("getColorValue",[B,B],Y),_("getUrlValue",[B,"url"],Z),_("getUrlValue",[B,B],Z),_("parseUnixTime",[R],(function(t,e){return{type:q,value:new Date(1e3*Number(e.value))}})),_("nowLocal",[],(function(){return{type:q,value:new Date}})),_("addMillis",[q,R],(function(t,e,n){return{type:q,value:new Date(e.value.getTime()+Number(n.value))}})),_("setYear",[q,R],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:q,value:r}})),_("setMonth",[q,R],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMonth(r-1),{type:q,value:i}})),_("setDay",[q,R],(function(t,e,n){const r=new Date(e.value),i=Number(n.value);if(i<=0&&-1!==i||i>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(i," for date ").concat(j(e),"."));return r.setUTCDate(-1===i?0:i),{type:q,value:r}})),_("setHours",[q,R],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCHours(r),{type:q,value:i}})),_("setMinutes",[q,R],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMinutes(r),{type:q,value:i}})),_("setSeconds",[q,R],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCSeconds(r),{type:q,value:i}})),_("setMillis",[q,R],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMilliseconds(r),{type:q,value:i}})),_("getYear",[q],tt),_("getMonth",[q],et),_("getDay",[q],nt),_("getDayOfWeek",[q],rt),_("getHours",[q],it),_("getMinutes",[q],ot),_("getSeconds",[q],at),_("getMillis",[q],lt),_("getIntervalSeconds",[R],(function(t,e){return wt(t,e,1e3,60)})),_("getIntervalTotalSeconds",[R],(function(t,e){return wt(t,e,1e3)})),_("getIntervalMinutes",[R],(function(t,e){return wt(t,e,6e4,60)})),_("getIntervalTotalMinutes",[R],(function(t,e){return wt(t,e,6e4)})),_("getIntervalHours",[R],(function(t,e){return wt(t,e,36e5,24)})),_("getIntervalTotalHours",[R],(function(t,e){return wt(t,e,36e5)})),_("getIntervalTotalDays",[R],(function(t,e){return wt(t,e,864e5)})),_("getIntervalTotalWeeks",[R],(function(t,e){return wt(t,e,6048e5)})),_("len",[B],(function(t,e){return{type:R,value:e.value.length}})),_("contains",[B,B],(function(t,e,n){return{type:W,value:e.value.includes(n.value)?1:0}})),_("substring",[B,R,R],(function(t,e,n,r){if(r.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||r.value<0||r.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:B,value:e.value.substring(Number(n.value),Number(r.value))}})),_("replaceAll",[B,B,B],(function(t,e,n,r){let i;return i=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:B,value:i}})),_("index",[B,B],(function(t,e,n){return{type:R,value:e.value.indexOf(n.value)}})),_("lastIndex",[B,B],(function(t,e,n){return{type:R,value:e.value.lastIndexOf(n.value)}})),_("trim",[B],(function(t,e){return{type:B,value:e.value.trim()}})),_("trimLeft",[B],(function(t,e){return{type:B,value:e.value.replace(/^\s+/,"")}})),_("trimRight",[B],(function(t,e){return{type:B,value:e.value.replace(/\s+$/,"")}})),_("toUpperCase",[B],(function(t,e){return{type:B,value:e.value.toUpperCase()}})),_("toLowerCase",[B],(function(t,e){return{type:B,value:e.value.toLowerCase()}})),_("padStart",[B,R,B],ut),_("padStart",[R,R,B],ut),_("padEnd",[B,R,B],dt),_("padEnd",[R,R,B],dt),_("div",[R,R],(function(t,e,n){if(n.value===l)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=S(0,r),N(t,r),{type:R,value:r}})),_("div",[U,U],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value/n.value;return{type:U,value:r}})),_("mod",[R,R],(function(t,e,n){if(n.value===l)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=S(0,r),N(t,r),{type:R,value:r}})),_("mod",[U,U],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value%n.value;return{type:U,value:r}})),_("mul",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:l;for(let e=1;e<n.length;++e)i*=n[e].value,i=S(0,i),N(t,i);return{type:R,value:i}})),_("mul",[{type:U,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i*=n[t].value;return{type:U,value:i}})),_("sub",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:l;for(let e=1;e<n.length;++e)i-=n[e].value,i=S(0,i),N(t,i);return{type:R,value:i}})),_("sub",[{type:U,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i-=n[t].value;return{type:U,value:i}})),_("sum",[{type:R,isVararg:!0}],(function(t){let e=l;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n=0;n<r.length;++n)e+=r[n].value,e=S(0,e),N(t,e);return{type:R,value:e}})),_("sum",[{type:U,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:U,value:e}})),_("abs",[R],(function(t,e){const n=s(e.value);return N(t,n),{type:e.type,value:n}})),_("abs",[U],(function(t,e){const n=Math.abs(e.value);return{type:U,value:n}})),_("max",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let i=n[0].value;for(let t=1;t<n.length;++t)n[t].value>i&&(i=n[t].value);return{type:R,value:i}})),_("max",[{type:U,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");return{type:U,value:Math.max(...n.map((t=>t.value)))}})),_("min",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let i=n[0].value;for(let t=1;t<n.length;++t)n[t].value<i&&(i=n[t].value);return{type:R,value:i}})),_("min",[{type:U,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");return{type:U,value:Math.min(...n.map((t=>t.value)))}})),_("maxNumber",[],(function(){return{type:U,value:J}})),_("minNumber",[],(function(){return{type:U,value:O}})),_("maxInteger",[],(function(t){return N(t,i),{type:R,value:i}})),_("minInteger",[],(function(t){return N(t,o),{type:R,value:o}})),_("round",[U],(function(t,e){const n=Math.sign(e.value);return{type:U,value:n*Math.round(Math.abs(e.value))}})),_("floor",[U],(function(t,e){return{type:U,value:Math.floor(e.value)}})),_("ceil",[U],(function(t,e){return{type:U,value:Math.ceil(e.value)}})),_("signum",[R],(function(t,e){return{type:R,value:c(e.value)}})),_("signum",[U],(function(t,e){return{type:U,value:Math.sign(e.value)}})),_("copySign",[R,R],(function(t,e,n){let r;if(n.value===l)r=e.value;else if(e.value===l)r=0;else{const t=c(n.value);r=s(e.value)*t}return N(t,r),{type:R,value:r}})),_("copySign",[U,U],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const i=Math.abs(e.value)*r;return{type:U,value:i}})),_("getColorAlpha",[B],ft),_("getColorAlpha",[L],ft),_("getColorRed",[B],gt),_("getColorRed",[L],gt),_("getColorGreen",[B],mt),_("getColorGreen",[L],mt),_("getColorBlue",[B],vt),_("getColorBlue",[L],vt),_("setColorAlpha",[B,U],yt),_("setColorAlpha",[L,U],yt),_("setColorRed",[B,U],$t),_("setColorRed",[L,U],$t),_("setColorGreen",[B,U],_t),_("setColorGreen",[L,U],_t),_("setColorBlue",[B,U],bt),_("setColorBlue",[L,U],bt),_("rgb",[U,U,U],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:L,value:T(i)}})),_("argb",[U,U,U,U],(function(t,e,n,r,i){const o={a:255*e.value,r:255*n.value,g:255*r.value,b:255*i.value};return{type:L,value:T(o)}}));const mn={StringLiteral:function(t,e){return{type:B,value:e.value}},NumberLiteral:function(t,e){return{type:U,value:e.value}},IntegerLiteral:function(t,e){return N(t,e.value),{type:R,value:e.value}},BooleanLiteral:function(t,e){return{type:W,value:e.value?1:0}},UnaryExpression:function(t,e){const n=A(vn(t,e.argument));switch(e.operator){case"!":if(n.type===W)return{type:W,value:n.value?0:1};F("".concat(e.operator).concat(D(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===R){const e=n.value*a(r);return N(t,e),{type:R,value:e}}if(n.type===U)return{type:U,value:n.value*r};F("".concat(e.operator).concat(D(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=A(vn(t,e.test));if(n.type===W)return n.value?vn(t,e.consequent):vn(t,e.alternate);F("".concat(D(n)," ? ").concat(D(vn(t,e.consequent))," : ").concat(D(vn(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 vn(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=j(vn(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:B,value:n}},LogicalExpression:function(t,e){const n=A(vn(t,e.left));if(n.type!==W&&F("".concat(D(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:W,value:0};const r=A(vn(t,e.right));return r.type!==W&&F("".concat(D(n)," ").concat(e.operator," ").concat(D(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(P(r.type),".")),{type:W,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=vn(t,e.left),i=vn(t,e.right);if(r.type!==i.type&&F("".concat(D(r)," ").concat(e.operator," ").concat(D(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(P(r.type)," and ").concat(P(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===q&&n.type===q?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:W,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==U&&e.type!==R&&e.type!==q&&F("".concat(D(e)," ").concat(t," ").concat(D(n)),"Operator '".concat(t,"' cannot be applied to ").concat(P(e.type)," type."));const i=e.type===q?e.value.getTime():e.value,o=n.type===q?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:W,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==B&&n.type!==U&&n.type!==R&&F("".concat(D(n)," ").concat(e," ").concat(D(r)),"Operator '".concat(e,"' cannot be applied to ").concat(P(n.type)," type.")),n.type===B)return"-"===e&&F("".concat(D(n)," - ").concat(D(r)),"Operator '".concat(e,"' cannot be applied to ").concat(P(n.type)," type.")),{type:B,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===R)try{i=S(0,i),N(t,i)}catch(t){F("".concat(D(n)," ").concat(e," ").concat(D(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let i;if(n.type!==R&&n.type!==U&&F("".concat(D(n)," ").concat(e," ").concat(D(r)),"Operator '".concat(e,"' cannot be applied to ").concat(P(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&F("".concat(D(n)," ").concat(e," ").concat(D(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===R)try{i=S(0,i),N(t,i)}catch(t){F("".concat(D(n)," ").concat(e," ").concat(D(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r;const i=e.arguments.map((e=>vn(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if($.has(o))r=$.get(o);else{const t=function(t,e){const n=y.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=b(n[t],e);if("match"===i.type)return n[t];r||(r=i)}if(!r)throw new Error("Missing function");return r}(n,i);if("expected"in t||"type"in t&&"missing"===t.type){const e=i.map((t=>P(t.type))).join(", "),r="".concat(n,"(").concat(gn(i),")");"few"===t.type&&0===i.length?F(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?F(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):F(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){F("".concat(n,"(").concat(gn(i),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function vn(t,e){if(e.type in mn)return mn[e.type](t,e);throw new Error("Unsupported expression")}function yn(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1};!function(t,e){let n="";if(w(e,{Variable(e){n||t.variables.has(e.id.name)||(n=e.id.name)}}),n)throw new Error("Variable '".concat(n,"' is missing."))}(n,e);const r=vn(n,e);return n.safeIntegerOverflow&&n.warnings.push(st(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:r,warnings:n.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}const $n=Symbol("root"),_n={text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_truncate_none:"divkit-c6ea1",text_multiline:"divkit-ee8e3",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002"},bn={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980"};function wn(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 xn(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 kn(t){let e=xn(t);return"0"===e&&(e+="em"),e}function En(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 Cn=Boolean;function An(t){if(1===t.length&&"solid"===t[0].type)return{color:k(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=k(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(Cn);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>k(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:Dn(t.bg.scale),pos:Pn(t.bg),image:'url("'+En(n)+'")'}}({bg:t}):"radial_gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(Cn);if(!n.length)return;const r=t.bg.radius;let i;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?i=kn(r.value):"relative"===r.type&&(i=Vn[r.value]));const o=jn(t.bg.center_x),a=jn(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(i||"farthest-corner"," at ").concat(o," ").concat(a)+","+n.map((t=>k(t))).join(",")+")"}}({bg:t}):void 0)).filter(Cn).reverse().reduce((function(t,e){return t.image.push(e.image),t.size.push(e.size||"auto"),t.position.push(e.pos||"50% 50%"),t}),{image:[],size:[],position:[]});return{image:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}const Vn={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function jn(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return kn(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function Dn(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function Pn(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 Sn(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Nn(t,e){return e.has(t)}function In(t,e){e&&t.push(e)}function Fn(t,e,n){const r=[];In(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&In(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const zn=function(t,e){var n;let{json:r,origJson:i,templateContext:o,rootCtx:a}=e;return null===(n=a.registerComponent)||void 0===n||n.call(a,{node:t,json:r,origJson:i,templateContext:o}),{destroy(){var e;null===(e=a.unregisterComponent)||void 0===e||e.call(a,{node:t})}}},Tn=Symbol("state");function Mn(t){return xn(t.top||0)+" "+xn(t.right||0)+" "+xn(t.bottom||0)+" "+xn(t.left||0)}function Jn(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function On(t){return Jn(t)&&t>=0}function Bn(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]&&!On(n[t]))return e;return Mn(t)}function Rn(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Un=Object.prototype.hasOwnProperty;function Wn(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!Un.call(e,i)||!Wn(t[i],e[i]))return!1}return!0}function Ln(t,e){return Wn(t,e)?e:t}function qn(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Hn(t,e){const n=Number(t);return isNaN(n)?e:n}function Gn(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Gn(t))})):e.push(t),e}function Kn(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!On(t[n[r]]))return e;return t}function Xn(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=>xn((t||e)/n*10))).join(" ")}function Yn(){}const Zn=Symbol("action");function Qn(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function tr(t){var e;let n,r,i,o,a,l,s,c;const u=t[19].default,d=zt(u,t,t[18],null);let h=[{class:r=t[2]+(t[9]?" ".concat(t[6]?"divkit-bd259":"divkit-d9099"," ").concat("divkit-c016b"):"")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?"divkit-f0cba":"")},{style:t[3]},{role:i=t[9]?"button":null},{tabindex:o=t[9]?0:null},t[4]],p={};for(let t=0;t<h.length;t+=1)p=Et(p,h[t]);return{c(){n=ee("span"),d&&d.c(),this.h()},l(t){n=he(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=ce(n);d&&d.l(e),e.forEach(Qt),this.h()},h(){se(n,p)},m(e,r){Zt(e,n,r),d&&d.m(n,null),l=!0,s||(c=[Bt(a=t[5].call(null,n)),ae(n,"click",(function(){jt(t[9]?t[10]:null)&&(t[9]?t[10]:null).apply(this,arguments)})),ae(n,"click",t[21]),ae(n,"dblclick",(function(){var e,n;jt(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),ae(n,"touchstart",(function(){var e,n;jt(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),ae(n,"touchmove",(function(){var e,n;jt(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),ae(n,"touchend",(function(){var e,n;jt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),ae(n,"touchcancel",(function(){var e,n;jt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),ae(n,"keydown",t[15])],s=!0)},p(e,a){var s;t=e,d&&d.p&&(!l||262144&a)&&Jt(d,u,t,t[18],l?Mt(u,t[18],a,null):Ot(t[18]),null),se(n,p=tn(h,[(!l||582&a&&r!==(r=t[2]+(t[9]?" ".concat(t[6]?"divkit-bd259":"divkit-d9099"," ").concat("divkit-c016b"):"")+" "+(null!==(s=t[1])&&void 0!==s&&s.length?"divkit-f0cba":"")))&&{class:r},(!l||8&a)&&{style:t[3]},(!l||512&a&&i!==(i=t[9]?"button":null))&&{role:i},(!l||512&a&&o!==(o=t[9]?0:null))&&{tabindex:o},16&a&&t[4]]))},i(t){l||(Ge(d,t),l=!0)},o(t){Ke(d,t),l=!1},d(t){t&&Qt(n),d&&d.d(t),s=!1,Vt(c)}}}function er(t){var e;let n,r,i,o,a,l;const s=t[19].default,c=zt(s,t,t[18],null);let u=[{href:t[7]},{target:t[8]},{style:t[3]},{class:r=t[2]+" "+(t[6]?"divkit-bd259":"divkit-d9099")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?"divkit-f0cba":"")},t[4]],d={};for(let t=0;t<u.length;t+=1)d=Et(d,u[t]);return{c(){n=ee("a"),c&&c.c(),this.h()},l(t){n=he(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=ce(n);c&&c.l(e),e.forEach(Qt),this.h()},h(){se(n,d)},m(e,r){Zt(e,n,r),c&&c.m(n,null),o=!0,a||(l=[Bt(i=t[5].call(null,n)),ae(n,"click",t[10]),ae(n,"click",t[20]),ae(n,"dblclick",(function(){var e,n;jt(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),ae(n,"touchstart",(function(){var e,n;jt(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),ae(n,"touchmove",(function(){var e,n;jt(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),ae(n,"touchend",(function(){var e,n;jt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),ae(n,"touchcancel",(function(){var e,n;jt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),ae(n,"keydown",t[15])],a=!0)},p(e,i){var a;t=e,c&&c.p&&(!o||262144&i)&&Jt(c,s,t,t[18],o?Mt(s,t[18],i,null):Ot(t[18]),null),se(n,d=tn(u,[(!o||128&i)&&{href:t[7]},(!o||256&i)&&{target:t[8]},(!o||8&i)&&{style:t[3]},(!o||70&i&&r!==(r=t[2]+" "+(t[6]?"divkit-bd259":"divkit-d9099")+" "+(null!==(a=t[1])&&void 0!==a&&a.length?"divkit-f0cba":"")))&&{class:r},16&i&&t[4]]))},i(t){o||(Ge(c,t),o=!0)},o(t){Ke(c,t),o=!1},d(t){t&&Qt(n),c&&c.d(t),a=!1,Vt(l)}}}function nr(t){let e,n,r,i;const o=[er,tr],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=o[e](t),{c(){n.c(),r=oe()},l(t){n.l(t),r=oe()},m(t,n){a[e].m(t,n),Zt(t,r,n),i=!0},p(t,i){let[s]=i,c=e;e=l(t),e===c?a[e].p(t,s):(qe(),Ke(a[c],1,1,(()=>{a[c]=null})),He(),n=a[e],n?n.p(t,s):(n=a[e]=o[e](t),n.c()),Ge(n,1),n.m(r.parentNode,r))},i(t){i||(Ge(n),i=!0)},o(t){Ke(n),i=!1},d(t){a[e].d(t),t&&Qt(r)}}}function rr(t,e,n){let{$$slots:r={},$$scope:i}=e,{actions:o}=e,{doubleTapActions:a}=e,{longTapActions:l}=e,{cls:s=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=Yn}=e,{customAction:h=null}=e,{isNativeActionAnimation:p=!0}=e;const f=Ae($n),g=Ae(Zn);Ce(Zn,{hasAction:()=>Boolean(g.hasAction()||(null==o?void 0:o.length))});let m,v="",y=-1,$=null,_=!1;if(Array.isArray(o)&&(null==o?void 0:o.length))for(let t=0;t<o.length;++t){const e=o[t].url;if(e){v=e,m=o[t].target||void 0;break}}Array.isArray(o)&&(null==o?void 0:o.length)&&g.hasAction()&&(v="",f.logError(st(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:o}})));let b=Boolean(h);return v&&!Nn(Sn(v),f.getBuiltinProtocols())&&(v="",b=!0),t.$$set=t=>{"actions"in t&&n(16,o=t.actions),"doubleTapActions"in t&&n(0,a=t.doubleTapActions),"longTapActions"in t&&n(1,l=t.longTapActions),"cls"in t&&n(2,s=t.cls),"style"in t&&n(3,c=t.style),"attrs"in t&&n(4,u=t.attrs),"use"in t&&n(5,d=t.use),"customAction"in t&&n(17,h=t.customAction),"isNativeActionAnimation"in t&&n(6,p=t.isNativeActionAnimation),"$$scope"in t&&n(18,i=t.$$scope)},[a,l,s,c,u,d,p,v,m,b,async function(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():o&&(o.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=Sn(e);return n&&!Nn(n,f.getBuiltinProtocols())}))&&t.preventDefault(),f.execAnyActions(o)))},function(t){g.hasAction()||void 0!==t.button&&0!==t.button||f.execAnyActions(a,!0)},function(t){t.touches.length>1||($=Qn(t),_=!1,y=Date.now())},function(t){if(!$)return;const e=Qn(t);(Math.abs($.x-e.x)>8||Math.abs($.y-e.y)>8)&&(_=!0)},function(){!$||y<0||(!_&&Date.now()-y>=400&&f.execAnyActions(l,!0),$=null,y=-1)},function(t){t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(o)&&o.length&&(f.execAnyActions(o),t.preventDefault())},o,h,i,r,function(e){Ve.call(this,t,e)},function(e){Ve.call(this,t,e)}]}const ir=class extends sn{constructor(t){super(),ln(this,t,rr,nr,St,{actions:16,doubleTapActions:0,longTapActions:1,cls:2,style:3,attrs:4,use:5,customAction:17,isNativeActionAnimation:6})}};function or(t){return Jn(t)&&t>0}function ar(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(or(t.radius))return"blur(".concat(kn(t.radius/2),")")}else e(st(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function lr(t,e,n){const r=t.slice();return r[5]=e[n],r}function sr(t){let e,n,r;return{c(){e=ee("span"),this.h()},l(t){e=he(t,"SPAN",{class:!0,style:!0}),ce(e).forEach(Qt),this.h()},h(){le(e,"class",n="divkit-b921d"),le(e,"style",r=wn(t[5].style))},m(t,n){Zt(t,e,n)},p(t,n){2&n&&r!==(r=wn(t[5].style))&&le(e,"style",r)},d(t){t&&Qt(e)}}}function cr(t){let e,n,r,i,o,a;return{c(){e=ee("img"),this.h()},l(t){e=he(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){Pt(e.src,n=t[5].image_url)||le(e,"src",n),le(e,"alt",""),le(e,"aria-hidden","true"),le(e,"loading","lazy"),le(e,"decoding","async"),le(e,"class",r="divkit-b921d"),le(e,"style",i=wn(t[5].style))},m(n,r){Zt(n,e,r),o||(a=ae(e,"error",t[2]),o=!0)},p(t,r){2&r&&!Pt(e.src,n=t[5].image_url)&&le(e,"src",n),2&r&&i!==(i=wn(t[5].style))&&le(e,"style",i)},d(t){t&&Qt(e),o=!1,a()}}}function ur(t){let e;function n(t,e){return t[5].image_url?cr:sr}let r=n(t),i=r(t);return{c(){i.c(),e=oe()},l(t){i.l(t),e=oe()},m(t,n){i.m(t,n),Zt(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){i.d(t),t&&Qt(e)}}}function dr(t){let e,n,r=t[1],i=[];for(let e=0;e<r.length;e+=1)i[e]=ur(lr(t,r,e));return{c(){e=ee("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=he(t,"SPAN",{class:!0});var n=ce(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(Qt),this.h()},h(){le(e,"class",n="divkit-bf253"+(t[0]?" divkit-dcad7":"")),ve(e,"border-radius",t[0],!1)},m(t,n){Zt(t,e,n);for(let t=0;t<i.length;t+=1)i[t].m(e,null)},p(t,o){let[a]=o;if(6&a){let n;for(r=t[1],n=0;n<r.length;n+=1){const o=lr(t,r,n);i[n]?i[n].p(o,a):(i[n]=ur(o),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=r.length}1&a&&n!==(n="divkit-bf253"+(t[0]?" divkit-dcad7":""))&&le(e,"class",n),1&a&&ve(e,"border-radius",t[0],!1)},i:xt,o:xt,d(t){t&&Qt(e),te(i,t)}}}function hr(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=Ae($n);return t.$$set=t=>{"background"in t&&n(3,i=t.background),"radius"in t&&n(0,o=t.radius)},t.$$.update=()=>{8&t.$$.dirty&&n(1,r=i.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=An([t]);"solid"===t.type&&(e["background-color"]=r.color),"gradient"===t.type&&(e["background-image"]=r.image),"image"===t.type&&(e.opacity=Number(t.alpha),n.image_url=t.image_url,e["object-fit"]=r.size,e["object-position"]=r.position,Array.isArray(t.filters)&&t.filters.length&&(e.filter=ar(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-cd613")},i]}const pr=class extends sn{constructor(t){super(),ln(this,t,hr,dr,St,{background:3,radius:0})}};function fr(t){let e,n;return e=new ir({props:{use:t[32],cls:t[0]+" "+Fn("outer",bn,t[15]),style:wn(t[13]),actions:t[10],doubleTapActions:t[11],longTapActions:t[12],attrs:t[6],isNativeActionAnimation:!t[4].length||$r(t[4]),$$slots:{default:[vr]},$$scope:{ctx:t}}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};32769&n[0]&&(r.cls=t[0]+" "+Fn("outer",bn,t[15])),8192&n[0]&&(r.style=wn(t[13])),1024&n[0]&&(r.actions=t[10]),2048&n[0]&&(r.doubleTapActions=t[11]),4096&n[0]&&(r.longTapActions=t[12]),64&n[0]&&(r.attrs=t[6]),16&n[0]&&(r.isNativeActionAnimation=!t[4].length||$r(t[4])),174&n[0]|262144&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function gr(t){let e,n;return e=new pr({props:{background:t[5],radius:t[2]}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function mr(t){let e,n,r;return{c(){e=ee("span"),this.h()},l(t){e=he(t,"SPAN",{class:!0,style:!0}),ce(e).forEach(Qt),this.h()},h(){le(e,"class",n=bn.outer__border),le(e,"style",r=wn(t[1]))},m(t,n){Zt(t,e,n)},p(t,n){2&n[0]&&r!==(r=wn(t[1]))&&le(e,"style",r)},d(t){t&&Qt(e)}}}function vr(t){let e,n,r,i=t[3]&&gr(t);const o=t[110].default,a=zt(o,t,t[111],null);let l=t[7]&&mr(t);return{c(){i&&i.c(),e=oe(),a&&a.c(),l&&l.c(),n=oe()},l(t){i&&i.l(t),e=oe(),a&&a.l(t),l&&l.l(t),n=oe()},m(t,o){i&&i.m(t,o),Zt(t,e,o),a&&a.m(t,o),l&&l.m(t,o),Zt(t,n,o),r=!0},p(t,s){t[3]?i?(i.p(t,s),8&s[0]&&Ge(i,1)):(i=gr(t),i.c(),Ge(i,1),i.m(e.parentNode,e)):i&&(qe(),Ke(i,1,1,(()=>{i=null})),He()),a&&a.p&&(!r||262144&s[3])&&Jt(a,o,t,t[111],r?Mt(o,t[111],s,null):Ot(t[111]),null),t[7]?l?l.p(t,s):(l=mr(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(Ge(i),Ge(a,t),r=!0)},o(t){Ke(i),Ke(a,t),r=!1},d(t){i&&i.d(t),t&&Qt(e),a&&a.d(t),l&&l.d(t),t&&Qt(n)}}}function yr(t){let e,n,r=!t[8]&&!t[9]&&fr(t);return{c(){r&&r.c(),e=oe()},l(t){r&&r.l(t),e=oe()},m(t,i){r&&r.m(t,i),Zt(t,e,i),n=!0},p(t,n){t[8]||t[9]?r&&(qe(),Ke(r,1,1,(()=>{r=null})),He()):r?(r.p(t,n),768&n[0]&&Ge(r,1)):(r=fr(t),r.c(),Ge(r,1),r.m(e.parentNode,e))},i(t){n||(Ge(r),n=!0)},o(t){Ke(r),n=!1},d(t){r&&r.d(t),t&&Qt(e)}}}function $r(t){return t.some((t=>"native"===t.name))}function _r(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,j,D,P,S,N,I,F,z,T,M,J,O,B,R,U,W,L=xt,q=xt,H=xt,G=xt,K=xt,X=xt,Y=xt,Z=xt,Q=xt,tt=xt,et=xt,nt=xt,rt=xt,it=xt,ot=xt,at=xt,lt=xt;t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>lt()));let{$$slots:ct={},$$scope:ut}=e;var dt,ht,pt,ft,gt,mt;let{json:vt={}}=e,{origJson:yt}=e,{templateContext:$t}=e,{cls:_t=""}=e,{style:bt}=e,{layoutParams:wt={}}=e,{customDescription:kt=!1}=e,{customPaddings:Et=!1}=e,{customActions:Ct=""}=e,{additionalPaddings:At=null}=e,{heightByAspect:Vt=!1}=e;const jt={left:"start",center:"center",right:"end"},Dt={top:"start",center:"center",bottom:"end",baseline:"baseline"},Pt=Ae($n),St=Ae(Tn);let Nt,Ft,zt,Tt,Mt,Jt,Ot,Bt,Rt,Ut,Wt,Lt={},qt={},Ht=!1,Gt=1,Kt="transparent",Xt=0,Yt={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Zt="",Qt=null,te="",ee={},ne=0,re=0,ie=0,oe=!1,ae=!1,le={},se=0,ce=0,ue=0,de=!1,he=!1,pe=1;const fe=wt.fakeElement?[]:vt.transition_triggers||["state_change","visibility_change"],ge=-1!==fe.indexOf("state_change")&&vt.id,me=-1!==fe.indexOf("visibility_change")&&vt.id;let ve,ye,$e,_e,be,we,xe,ke=[],Ee=[],Ce=[],Ve=[],je="";function De(t){const e=Hn(t.start_value,1),r=Hn(t.end_value,1),i=Rn(t.start_delay,0),o=Rn(t.duration,300),a=qn(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return n(79,_e=e),n(80,be=r),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return n(81,we=e),n(82,xe=r),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return Pt.logError(st(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let Pe,Se,Ne=!1,Ie="visible",Fe=0,Te=0;return t.$$set=t=>{"json"in t&&n(33,vt=t.json),"origJson"in t&&n(34,yt=t.origJson),"templateContext"in t&&n(35,$t=t.templateContext),"cls"in t&&n(0,_t=t.cls),"style"in t&&n(36,bt=t.style),"layoutParams"in t&&n(37,wt=t.layoutParams),"customDescription"in t&&n(38,kt=t.customDescription),"customPaddings"in t&&n(39,Et=t.customPaddings),"customActions"in t&&n(40,Ct=t.customActions),"additionalPaddings"in t&&n(41,At=t.additionalPaddings),"heightByAspect"in t&&n(42,Vt=t.heightByAspect),"$$scope"in t&&n(111,ut=t.$$scope)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&(n(31,r=Pt.getDerivedFromVars(vt.border)),lt(),lt=It(r,(t=>n(109,W=t)))),2&t.$$.dirty[0]|8384512&t.$$.dirty[1]|65536&t.$$.dirty[3]){let t={},e={},r=!1,i="";if(W){if(W.has_shadow){const e=W.shadow;t["box-shadow"]=e?xn((null===n(44,ht=null===n(43,dt=e.offset)||void 0===dt?void 0:dt.x)||void 0===ht?void 0:ht.value)||0)+" "+xn((null===n(46,ft=null===n(45,pt=e.offset)||void 0===pt?void 0:pt.y)||void 0===ft?void 0:ft.value)||0)+" "+xn(null!==n(47,gt=e.blur)&&void 0!==gt?gt:2)+" "+k(e.color||"#000000",null!==n(48,mt=e.alpha)&&void 0!==mt?mt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(W.stroke&&(r=!0,n(50,Gt=Rn(W.stroke.width,Gt)),n(51,Kt=k(W.stroke.color,1,Kt)),e.border="".concat(xn(Gt)," solid ").concat(Kt)),W.corners_radius?(n(53,Yt=function(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<n.length;++t)if(n[t]&&!On(n[t]))return e;return t}(W.corners_radius,Yt)),e["border-radius"]=t["border-radius"]=Xn(Yt)):W.corner_radius&&(n(52,Xt=Rn(W.corner_radius,Xt)),n(53,Yt={"top-left":Xt,"top-right":Xt,"bottom-right":Xt,"bottom-left":Xt}),e["border-radius"]=t["border-radius"]=xn(Xt)),r&&Gt&&(W.corners_radius||W.corner_radius)){let t=Object.assign({},Yt);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+Gt/2})),i=Xn(t)}}n(49,Lt=Ln(t,Lt)),n(1,qt=Ln(e,qt)),n(7,Ht=r),n(2,Zt=i)}if(4&t.$$.dirty[1]&&(n(30,i=Pt.getDerivedFromVars(vt.paddings)),at(),at=It(i,(t=>n(108,U=t)))),8388864&t.$$.dirty[1]|32768&t.$$.dirty[3]&&n(54,Qt=Kn(U&&!Et?U:void 0,Qt)),8389632&t.$$.dirty[1]&&n(90,o=Mn(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left"].forEach((r=>{const i=t[r];i&&(n[r]=i);const o=e[r];o&&(n[r]=(n[r]||0)+o)})),n}(Qt,At))),4&t.$$.dirty[1]&&(n(29,a=Pt.getDerivedFromVars(vt.margins)),it(),it=It(a,(t=>n(106,B=t)))),16777216&t.$$.dirty[1]|8192&t.$$.dirty[3]&&n(55,te=Bn(B,te)),4&t.$$.dirty[1]&&(n(28,l=Pt.getDerivedFromVars(vt.width)),nt(),nt=It(l,(t=>n(104,J=t)))),4&t.$$.dirty[1]&&(n(27,s=Pt.getDerivedFromVars(vt.alignment_horizontal)),ot(),ot=It(s,(t=>n(107,R=t)))),570425408&t.$$.dirty[1]|26624&t.$$.dirty[3]){let t,e,r,i,o={},a=0,l=0,s=!1,c=!1;const u=null==J?void 0:J.type;if("fixed"===u)n(60,ne=Rn(null==J?void 0:J.value,ne)),e=xn(ne);else if("wrap_content"!==u&&(wt.overlapParent||"match_parent"!==u&&u||!wt.parentHorizontalWrapContent))t="parent","vertical"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,Pt.logError(st(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===wt.parentLayoutOrientation?e="calc(100% - ".concat(kn(((null==B?void 0:B.left)||0)+((null==B?void 0:B.right)||0)),")"):"horizontal"===wt.parentContainerOrientation&&(a=J&&"weight"in J&&J.weight||1,wt.parentContainerWrap&&(s=!0));else{if(t="content",("wrap_content"===u&&(null==J?void 0:J.constrained)||("match_parent"===u||!u)&&wt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===wt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=J;t.min_size&&On(t.min_size.value)&&(r=xn(t.min_size.value)),t.max_size&&On(t.max_size.value)&&(i=xn(t.max_size.value))}"match_parent"!==u&&u||Pt.logError(st(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}if("parent"===t)o["halign-self"]="stretch";else{const t=R;o["halign-self"]="left"===t||"center"===t||"right"===t?jt[t]:wt.parentHAlign||"start"}t&&(o.width=t),n(57,zt=e),n(58,Tt=r),n(59,Mt=i),n(61,re=a),n(62,ie=l),n(56,ee=Ln(o,ee)),n(63,oe=s),n(8,ae=c)}if(4&t.$$.dirty[1]&&(n(26,c=Pt.getDerivedFromVars(vt.height)),et(),et=It(c,(t=>n(103,M=t)))),4&t.$$.dirty[1]&&(n(25,u=Pt.getDerivedFromVars(vt.alignment_vertical)),rt(),rt=It(u,(t=>n(105,O=t)))),2112&t.$$.dirty[1]|68&t.$$.dirty[2]|13312&t.$$.dirty[3]){let t,e,r,i,o={},a=0,l=0,s=!1,c=!1;const u=null==M?void 0:M.type;if(Vt);else if("fixed"===u)n(68,se=Rn(null==M?void 0:M.value,se)),e=xn(se);else if("match_parent"!==u||!wt.overlapParent&&wt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==M?void 0:M.constrained)||"match_parent"===u&&wt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===wt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=M;(null==t?void 0:t.min_size)&&On(t.min_size.value)&&(r=xn(t.min_size.value)),(null==t?void 0:t.max_size)&&On(t.max_size.value)&&(i=xn(t.max_size.value))}"match_parent"===u&&Pt.logError(st(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,Pt.logError(st(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===wt.parentLayoutOrientation?e="calc(100% - ".concat(kn(((null==B?void 0:B.top)||0)+((null==B?void 0:B.bottom)||0)),")"):"vertical"===wt.parentContainerOrientation&&(a=(null==M?void 0:M.weight)||1,wt.parentContainerWrap&&(s=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=O;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===wt.parentContainerOrientation?o["valign-self"]=Dt[t]:o["valign-self"]=wt.parentVAlign||"start"}t&&(o.height=t),n(65,Jt=e),n(66,Ot=r),n(67,Bt=i),n(69,ce=a),n(70,ue=l),n(64,le=Ln(o,le)),n(71,de=s),n(9,he=c)}var e,ct;if(64&t.$$.dirty[1]&&n(93,d=!!wt.overlapParent||void 0),64&t.$$.dirty[1]|3072&t.$$.dirty[3]&&n(92,h=wt.overlapParent&&(!J||"match_parent"===J.type)&&"match_parent"===(null==M?void 0:M.type)),64&t.$$.dirty[1]&&n(91,p=wt.gridArea?"".concat(wt.gridArea.y+1,"/").concat(wt.gridArea.x+1,"/span ").concat(wt.gridArea.rowSpan,"/span ").concat(wt.gridArea.colSpan):void 0),4&t.$$.dirty[1]&&(n(24,f=Pt.getDerivedFromVars(vt.alpha)),tt(),tt=It(f,(t=>n(102,T=t)))),1024&t.$$.dirty[2]|512&t.$$.dirty[3]&&(n(72,(ct=pe,pe=!On(e=T)||void 0===e||e>1?ct:Number(e))),n(73,Rt=1===pe?void 0:pe)),4&t.$$.dirty[1]&&(n(23,g=Pt.getDerivedFromVars(vt.accessibility)),Q(),Q=It(g,(t=>n(101,z=t)))),128&t.$$.dirty[1]|256&t.$$.dirty[3]&&(n(6,Ft=void 0),z&&!kt&&z.description&&(n(6,Ft={}),n(6,Ft["aria-label"]=z.description,Ft))),4&t.$$.dirty[1]&&(n(22,m=Pt.getDerivedFromVars(vt.background)),Z(),Z=It(m,(t=>n(5,F=t)))),44&t.$$.dirty[0]&&(n(74,Ut={}),n(3,Wt=!1),F&&(n(3,Wt=F.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(Zt)),!Wt))){const t=An(F);n(74,Ut["background-color"]=t.color,Ut),n(74,Ut["background-image"]=t.image,Ut),n(74,Ut["background-size"]=t.size,Ut),n(74,Ut["background-position"]=t.position,Ut),n(74,Ut["background-repeat"]="no-repeat",Ut)}if(4&t.$$.dirty[1]&&(n(75,ve=void 0),ge&&vt.transition_in&&Pt.isRunning("stateChange")&&n(75,ve=!0)),4&t.$$.dirty[1]&&(n(77,$e=void 0),ge&&vt.transition_change&&Pt.isRunning("stateChange")&&St.hasTransitionChange(vt.id)&&n(77,$e=!0)),4&t.$$.dirty[1]&&(n(21,v=Pt.getDerivedFromVars(vt.action)),X(),X=It(v,(t=>n(99,N=t)))),4&t.$$.dirty[1]&&(n(20,y=Pt.getDerivedFromVars(vt.actions)),Y(),Y=It(y,(t=>n(100,I=t)))),4&t.$$.dirty[1]&&(n(19,$=Pt.getDerivedFromVars(vt.doubletap_actions)),K(),K=It($,(t=>n(98,S=t)))),4&t.$$.dirty[1]&&(n(18,_=Pt.getDerivedFromVars(vt.longtap_actions)),G(),G=It(_,(t=>n(97,P=t)))),576&t.$$.dirty[1]|240&t.$$.dirty[3]){let t=I||N&&[N]||[],e=S||[],r=P||[];wt.fakeElement?(t=[],e=[],r=[]):(Array.isArray(t)||(t=[],Pt.logError(st(new Error("Actions should be array")))),Array.isArray(e)||(e=[],Pt.logError(st(new Error("DoubleTapActions should be array")))),Array.isArray(r)||(r=[],Pt.logError(st(new Error("LongTapActions should be array"))))),(t.length||e.length||r.length)&&Ct&&(t=[],e=[],r=[],Pt.logError(st(new Error('Cannot use action on component "'.concat(Ct,'"'))))),n(10,ke=t),n(11,Ee=e),n(12,Ce=r)}if(4&t.$$.dirty[1]&&(n(17,b=Pt.getDerivedFromVars(vt.action_animation)),H(),H=It(b,(t=>n(96,D=t)))),16&t.$$.dirty[0]|8&t.$$.dirty[3]&&D&&(n(4,Ve=Gn(D)),n(78,je=Ve.map(De).filter(Boolean).join(", "))),4&t.$$.dirty[1]&&(n(16,w=Pt.getDerivedFromVars(vt.visibility)),q(),q=It(w,(t=>n(95,j=t)))),6291456&t.$$.dirty[2]|4&t.$$.dirty[3]){const t=Ie,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(j,Ie);t!==e&&(!Ne||"visible"!==Ie&&"visible"!==e?n(84,Ie=e):async function(t){n(84,Ie=t);const e="visible"===t?"in":"out",r="in"===e?vt.transition_in:vt.transition_out;me&&r&&(await ze(),"in"===e&&n(76,ye=!0),St.runVisibilityTransition(Object.assign(Object.assign({},vt),{visibility:"visible"}),$t,r,Nt,e).then((()=>{"in"===e&&n(76,ye=!1)})).catch((t=>{throw"in"===e&&n(76,ye=!1),t})))}(e)),Ne||n(83,Ne=!0)}if(33554496&t.$$.dirty[1]|1078059012&t.$$.dirty[2]|1&t.$$.dirty[3]&&n(15,x=Object.assign(Object.assign(Object.assign({},ee),le),{"parent-overlap":d,"parent-overlap-absolute":h,"scroll-snap":wt.scrollSnap,"hide-on-transition-in":ve||ye||$e,visibility:Ie,"has-action-animation":Boolean(je),"parent-flex":wt.parentContainerOrientation||void 0,"parent-grid":Boolean(wt.gridArea)||void 0})),4&t.$$.dirty[1]&&(n(14,E=Pt.getDerivedFromVars(vt.transform)),L(),L=It(E,(t=>n(94,V=t)))),25165824&t.$$.dirty[2]|2&t.$$.dirty[3]&&V&&void 0!==V.rotation){const t=V.pivot_x||{type:"pivot-percentage",value:50};n(85,Fe=Hn(t.value,Fe));const e="pivot-fixed"===t.type?xn(Fe):"".concat(Fe,"%"),r=V.pivot_y||{type:"pivot-percentage",value:50};n(86,Te=Hn(r.value,Te));const i="pivot-fixed"===r.type?xn(Te):"".concat(Te,"%");n(87,Pe="".concat(e," ").concat(i)),n(88,Se="rotate(".concat(V.rotation,"deg)"))}1073741824&t.$$.dirty[1]|642&t.$$.dirty[2]&&n(89,C=oe||de?"100%":re||ce?0:void 0),1560543264&t.$$.dirty[1]|1042225593&t.$$.dirty[2]&&n(13,A=Object.assign(Object.assign(Object.assign(Object.assign({},bt),Ut),Lt),{width:zt,"min-width":Tt,"max-width":Mt,height:Jt,"min-height":Ot,"max-height":Bt||(null==bt?void 0:bt["max-height"]),"grid-area":p,padding:o,margin:te,opacity:Rt,transition:je,"transform-origin":Pe,transform:Se,"flex-grow":re||ce||void 0,"flex-shrink":ie||ue?1:void 0,"flex-basis":C,"--divkit-animation-opacity-start":_e,"--divkit-animation-opacity-end":be,"--divkit-animation-scale-start":we,"--divkit-animation-scale-end":xe}))},[_t,qt,Zt,Wt,Ve,F,Ft,Ht,ae,he,ke,Ee,Ce,A,E,x,w,b,_,$,y,v,m,g,f,u,c,s,l,a,i,r,function(t){Nt=t,ge&&vt.transition_in&&St.registerChildWithTransitionIn(vt,$t,vt.transition_in,t).then((()=>{n(75,ve=!1)})).catch((t=>{throw n(75,ve=!1),t})),ge&&vt.transition_out&&St.registerChildWithTransitionOut(vt,$t,vt.transition_out,t),ge&&vt.transition_change&&St.registerChildWithTransitionChange(vt,$t,vt.transition_change,t).then((()=>{n(77,$e=!1)})).catch((t=>{throw n(77,$e=!1),t}));const e=wt.fakeElement?[]:vt.visibility_actions||vt.visibility_action&&[vt.visibility_action];Array.isArray(e)&&e.length&&function(t,e){let{visibilityActions:n,rootCtx:r}=e;const i=n.map(((t,e)=>({index:e,action:t,visible:!1,count:0,finished:!1}))),o=n.map((t=>r.getJsonWithVars({visibility_percentage:t.visibility_percentage,visibility_duration:t.visibility_duration,log_limit:t.log_limit}))),a=[...new Set([...n.map(((t,e)=>(o[e].visibility_percentage||50)/100))])];new IntersectionObserver((t=>{t.forEach((t=>{i.forEach((e=>{const n=t.intersectionRatio>=(e.action.visibility_percentage||50)/100;!e.visible&&n?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=o[e.index],n=0===t.log_limit?1/0:t.log_limit||1;++e.count>=n&&(e.finished=!0);const i=r.getJsonWithVars(e.action),a=i.url;if(a){const t=Sn(a);t&&!Nn(t,r.getBuiltinProtocols())&&("div-action"===t?r.execAction(i):i.log_id&&r.execCustomAction(i))}r.logStat("visible",i)}),o[e.index].visibility_duration||800)):n||e.timer&&clearTimeout(e.timer),e.visible=n}))}))}),{threshold:a}).observe(t)}(t,{visibilityActions:e,rootCtx:Pt});const r=vt.id;r&&St.registerChild(r);let i=null;return zn&&!wt.fakeElement&&(i=zn(t,{json:vt,origJson:yt,rootCtx:Pt,templateContext:$t})),{destroy(){r&&St.unregisterChild(r),i&&i.destroy()}}},vt,yt,$t,bt,wt,kt,Et,Ct,At,Vt,dt,ht,pt,ft,gt,mt,Lt,Gt,Kt,Xt,Yt,Qt,te,ee,zt,Tt,Mt,ne,re,ie,oe,le,Jt,Ot,Bt,se,ce,ue,de,pe,Rt,Ut,ve,ye,$e,je,_e,be,we,xe,Ne,Ie,Fe,Te,Pe,Se,C,o,p,h,d,V,j,D,P,S,N,I,z,T,M,J,O,B,R,U,W,ct,ut]}const br=class extends sn{constructor(t){super(),ln(this,t,_r,yr,St,{json:33,origJson:34,templateContext:35,cls:0,style:36,layoutParams:37,customDescription:38,customPaddings:39,customActions:40,additionalPaddings:41,heightByAspect:42},null,[-1,-1,-1,-1])}},wr={"text-range":"divkit-faf07","text-range_singleline":"divkit-ccb64","text-range__top-offset":"divkit-d9237","text-range_decoration_both":"divkit-d7e07","text-range_decoration_underline":"divkit-f3dde","text-range_decoration_strike":"divkit-d27b7","text-range_decoration_none":"divkit-c6b0f"};function xr(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function kr(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Er(t,e){return kr(t)||e}function Cr(t){let e,n;return{c(){e=ee("span"),this.h()},l(t){e=he(t,"SPAN",{class:!0}),ce(e).forEach(Qt),this.h()},h(){le(e,"class",n=wr["text-range__top-offset"]),ve(e,"margin-top",t[4],!1)},m(t,n){Zt(t,e,n)},p(t,n){16&n&&ve(e,"margin-top",t[4],!1)},d(t){t&&Qt(e)}}}function Ar(t){let e;return{c(){e=re(t[0])},l(n){e=fe(n,t[0])},m(t,n){Zt(t,e,n)},p(t,n){1&n&&me(e,t[0])},d(t){t&&Qt(e)}}}function Vr(t){let e,n,r,i=t[4]&&Cr(t);return n=new ir({props:{cls:Fn("text-range",wr,t[3]),actions:t[1],style:wn(t[2]),$$slots:{default:[Ar]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=oe(),nn(n.$$.fragment)},l(t){i&&i.l(t),e=oe(),rn(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),Zt(t,e,o),on(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=Cr(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=Fn("text-range",wr,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=wn(t[2])),524289&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(Ge(n.$$.fragment,t),r=!0)},o(t){Ke(n.$$.fragment,t),r=!1},d(t){i&&i.d(t),t&&Qt(e),an(n,t)}}}function jr(t,e,n){let r,i,o,a,l;var s,c;let u,{text:d}=e,{rootFontSize:h}=e,{textStyles:p={}}=e,{singleline:f=!1}=e,{actions:g}=e,m="none",v=12,y=1.25,$="",_="",b=null;return t.$$set=t=>{"text"in t&&n(0,d=t.text),"rootFontSize"in t&&n(5,h=t.rootFontSize),"textStyles"in t&&n(6,p=t.textStyles),"singleline"in t&&n(7,f=t.singleline),"actions"in t&&n(1,g=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(p.underline||p.strike)&&("single"===p.underline&&"single"===p.strike?t="both":"single"===p.underline?t="underline":"single"===p.strike&&(t="strike")),n(10,m=t)}2112&t.$$.dirty&&n(11,v=xr(p.font_size,v)),2112&t.$$.dirty&&or(p.line_height)&&n(12,y=Number(p.line_height)/v),64&t.$$.dirty&&On(p.letter_spacing)&&n(13,$=xn(p.letter_spacing)),16448&t.$$.dirty&&n(14,u=Er(p.font_weight,u)),32832&t.$$.dirty&&n(15,_=k(p.text_color,1,_)),64&t.$$.dirty&&n(4,r=p.top_offset?xn(p.top_offset):""),64&t.$$.dirty&&n(18,i=p.background?An([p.background]):null),320&t.$$.dirty&&((null===n(8,s=p.border)||void 0===s?void 0:s.stroke)&&"transparent"!==k(p.border.stroke.color)&&or(p.border.stroke.width)?n(16,b={color:p.border.stroke.color,width:p.border.stroke.width}):n(16,b=null)),576&t.$$.dirty&&n(17,o=xr(null===n(9,c=p.border)||void 0===c?void 0:c.corner_radius,0)),1152&t.$$.dirty&&n(3,a={singleline:f,decoration:m}),522272&t.$$.dirty&&n(2,l={"font-size":xn(10*v/h),"line-height":y,"letter-spacing":$,"font-weight":u,color:_,background:(null==i?void 0:i.color)||void 0,"box-shadow":b?"inset 0 0 0 ".concat(xn(b.width)," ").concat(b.color):void 0,"border-radius":o?xn(o):void 0})},[d,g,l,a,r,h,p,f,s,c,m,v,y,$,u,_,b,o,i]}const Dr=class extends sn{constructor(t){super(),ln(this,t,jr,Vr,St,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function Pr(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Sr(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Nr(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:Ir}=Ze;function Fr(t,e,n){const r=t.slice();return r[55]=e[n],r[57]=n,r}function zr(t){let e,n;return e=new br({props:{cls:Fn("text",_n,t[13])+" "+(t[6]?"":"divkit-c016b"),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Ur]},$$scope:{ctx:t}}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=Fn("text",_n,t[13])+" "+(t[6]?"":"divkit-c016b")),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),134225584&n[0]|134217728&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function Tr(t){let e,n;return e=new Dr({props:{text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),134217728&n[0]&&(r.textStyles=t[27]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function Mr(t){let e,n,r=t[10],i=[];for(let e=0;e<r.length;e+=1)i[e]=Rr(Fr(t,r,e));const o=t=>Ke(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=oe()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=oe()},m(t,r){for(let e=0;e<i.length;e+=1)i[e].m(t,r);Zt(t,e,r),n=!0},p(t,n){if(268437152&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const o=Fr(t,r,a);i[a]?(i[a].p(o,n),Ge(i[a],1)):(i[a]=Rr(o),i[a].c(),Ge(i[a],1),i[a].m(e.parentNode,e))}for(qe(),a=r.length;a<i.length;a+=1)o(a);He()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ge(i[t]);n=!0}},o(t){i=i.filter(Ir);for(let t=0;t<i.length;t+=1)Ke(i[t]);n=!1},d(t){te(i,t),t&&Qt(e)}}}function Jr(t){let e,n,r,i,o,a,l,s;return{c(){e=ee("span"),n=ee("img"),this.h()},l(t){e=he(t,"SPAN",{style:!0});var r=ce(e);n=he(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(Qt),this.h()},h(){le(n,"class",r=_n.text__image),Pt(n.src,i=t[55].image.url)||le(n,"src",i),le(n,"loading","lazy"),le(n,"decoding","async"),le(n,"aria-hidden","true"),le(n,"alt",""),le(n,"style",o=wn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0})),le(e,"style",a=wn(t[55].image.wrapperStyle))},m(r,i){Zt(r,e,i),Yt(e,n),l||(s=ae(n,"error",t[28]),l=!0)},p(t,r){1024&r[0]&&!Pt(n.src,i=t[55].image.url)&&le(n,"src",i),1536&r[0]&&o!==(o=wn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0}))&&le(n,"style",o),1024&r[0]&&a!==(a=wn(t[55].image.wrapperStyle))&&le(e,"style",a)},i:xt,o:xt,d(t){t&&Qt(e),l=!1,s()}}}function Or(t){let e,n,r=t[55].text&&Br(t);return{c(){r&&r.c(),e=oe()},l(t){r&&r.l(t),e=oe()},m(t,i){r&&r.m(t,i),Zt(t,e,i),n=!0},p(t,n){t[55].text?r?(r.p(t,n),1024&n[0]&&Ge(r,1)):(r=Br(t),r.c(),Ge(r,1),r.m(e.parentNode,e)):r&&(qe(),Ke(r,1,1,(()=>{r=null})),He())},i(t){n||(Ge(r),n=!0)},o(t){Ke(r),n=!1},d(t){r&&r.d(t),t&&Qt(e)}}}function Br(t){let e,n;return e=new Dr({props:{text:t[55].text,rootFontSize:t[5],textStyles:t[55].textStyles,singleline:t[7],actions:t[55].actions}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[55].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[55].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[55].actions),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function Rr(t){let e,n,r,i;const o=[Or,Jr],a=[];function l(t,e){return"text"in t[55]?0:t[55].image?1:-1}return~(e=l(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=oe()},l(t){n&&n.l(t),r=oe()},m(t,n){~e&&a[e].m(t,n),Zt(t,r,n),i=!0},p(t,i){let s=e;e=l(t),e===s?~e&&a[e].p(t,i):(n&&(qe(),Ke(a[s],1,1,(()=>{a[s]=null})),He()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Ge(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(Ge(n),i=!0)},o(t){Ke(n),i=!1},d(t){~e&&a[e].d(t),t&&Qt(r)}}}function Ur(t){let e,n,r,i,o,a;const l=[Mr,Tr],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=ee("span"),r.c(),this.h()},l(t){e=he(t,"SPAN",{class:!0,style:!0});var n=ce(e);r.l(n),n.forEach(Qt),this.h()},h(){le(e,"class",i=Fn("text__inner",_n,t[12])),le(e,"style",o=wn(t[11]))},m(t,r){Zt(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):(qe(),Ke(s[d],1,1,(()=>{s[d]=null})),He(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),Ge(r,1),r.m(e,null)),(!a||4096&u[0]&&i!==(i=Fn("text__inner",_n,t[12])))&&le(e,"class",i),(!a||2048&u[0]&&o!==(o=wn(t[11])))&&le(e,"style",o)},i(t){a||(Ge(r),a=!0)},o(t){Ke(r),a=!1},d(t){t&&Qt(e),s[n].d()}}}function Wr(t){let e,n,r=!t[8]&&zr(t);return{c(){r&&r.c(),e=oe()},l(t){r&&r.l(t),e=oe()},m(t,i){r&&r.m(t,i),Zt(t,e,i),n=!0},p(t,n){t[8]?r&&(qe(),Ke(r,1,1,(()=>{r=null})),He()):r?(r.p(t,n),256&n[0]&&Ge(r,1)):(r=zr(t),r.c(),Ge(r,1),r.m(e.parentNode,e))},i(t){n||(Ge(r),n=!0)},o(t){Ke(r),n=!1},d(t){r&&r.d(t),t&&Qt(e)}}}function Lr(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,j,D,P,S,N,I,F,z,T=xt,M=xt,J=xt,O=xt,B=xt,R=xt,U=xt,W=xt,L=xt,q=xt,H=xt,G=xt,K=xt;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K()));let{json:X={}}=e,{templateContext:Y}=e,{origJson:Z}=e,{layoutParams:Q}=e;const tt=Ae($n);let et=!1,nt="",rt=12,it=1.25,ot=!1,at="",lt="",ct=!1,ut="left",dt="top",ht="",pt="",ft=!1,gt=[],mt=[];return Ee((()=>{mt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&n(0,X=t.json),"templateContext"in t&&n(1,Y=t.templateContext),"origJson"in t&&n(2,Z=t.origJson),"layoutParams"in t&&n(3,Q=t.layoutParams)},t.$$.update=()=>{var e,Y;if(1&t.$$.dirty[0]&&(n(26,r=tt.getDerivedFromVars(X.text)),K(),K=It(r,(t=>n(51,z=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(n(4,(e=z,Y=nt,nt=String(null!=e?e:"")||Y)),nt?n(8,et=!1):(n(8,et=!0),tt.logError(st(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(25,i=tt.getDerivedFromVars(X.ranges)),M(),M=It(i,(t=>n(41,E=t)))),1&t.$$.dirty[0]&&(n(24,o=tt.getDerivedFromVars(X.images)),T(),T=It(o,(t=>n(40,x=t)))),1&t.$$.dirty[0]&&(n(23,a=tt.getDerivedFromVars({font_size:X.font_size,letter_spacing:X.letter_spacing,font_weight:X.font_weight,text_color:X.text_color,underline:X.underline,strike:X.strike,line_height:X.line_height})),J(),J=It(a,(t=>n(27,C=t)))),1&t.$$.dirty[0]&&(n(22,l=tt.getDerivedFromVars(X.font_size)),G(),G=It(l,(t=>n(50,F=t)))),32&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(5,rt=xr(F,rt)),1&t.$$.dirty[0]&&(n(21,s=tt.getDerivedFromVars(X.line_height)),H(),H=It(s,(t=>n(49,I=t)))),32&t.$$.dirty[0]|262144&t.$$.dirty[1]){const t=I;or(t)?(n(29,it=Number(t)/rt),n(9,ot=!0)):n(9,ot=!1)}if(1&t.$$.dirty[0]&&(n(20,c=tt.getDerivedFromVars(X.max_lines)),W(),W=It(c,(t=>n(46,P=t)))),32768&t.$$.dirty[1]&&n(7,u=1===P),536870912&t.$$.dirty[0]|34304&t.$$.dirty[1]){let t="",e="",r=!1;if(P&&P>1){let n=Number(P);t=n*it+"em",E||x||(e=n,r=!0)}n(30,at=t),n(31,lt=e),n(32,ct=r)}if(1&t.$$.dirty[0]&&(n(19,d=tt.getDerivedFromVars(X.text_alignment_horizontal)),q(),q=It(d,(t=>n(48,N=t)))),131076&t.$$.dirty[1]&&n(33,ut=Pr(N,ut)),1&t.$$.dirty[0]&&(n(18,h=tt.getDerivedFromVars(X.text_alignment_vertical)),L(),L=It(h,(t=>n(47,S=t)))),65544&t.$$.dirty[1]&&n(34,dt=Sr(S,dt)),16&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(39,p=!E||nt&&1===E.length&&E[0]&&0===E[0].start&&"number"==typeof E[0].end&&E[0].end>=nt.length),1&t.$$.dirty[0]&&(n(17,f=tt.getDerivedFromVars(X.text_color)),U(),U=It(f,(t=>n(45,D=t)))),17408&t.$$.dirty[1]&&n(38,g=Boolean(D)!==Boolean(E&&E[0]&&E[0].text_color)),50576&t.$$.dirty[1]){let t="";P&&p&&g&&(t=k(D||E&&E[0]&&E[0].text_color,1,ht)),n(35,ht=t)}if(1&t.$$.dirty[0]&&(n(16,m=tt.getDerivedFromVars(X.truncate)),R(),R=It(m,(t=>n(44,j=t)))),8192&t.$$.dirty[1]&&n(37,v="none"===j?"none":""),1&t.$$.dirty[0]&&(n(15,y=tt.getDerivedFromVars(X.text_gradient)),B(),B=It(y,(t=>n(43,V=t)))),4096&t.$$.dirty[1]){let t="";if(V){const e=An([V]);e.image&&(t=e.image)}n(36,pt=t)}1&t.$$.dirty[0]&&(n(14,$=tt.getDerivedFromVars(X.selectable)),O(),O=It($,(t=>n(42,A=t)))),64&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(6,ft=function(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}(A,ft)),16&t.$$.dirty[0]|1536&t.$$.dirty[1]&&function(t,e,r){let i=[];if(mt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)})),mt=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(10,gt=[]);const o=t;let a=e||[{start:0,end:o.length}],l=r||[],s=0,c=[],u=[];a.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(u.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),u.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=o.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),u.forEach((t=>{var e;let n="image"===t.type?null:t.range,r=t.index;if(r>s){let n=Object.assign(Object.assign({},C),...c);i.push({text:o.substring(s,r),textStyles:n,actions:"rangeEnd"===t.type&&(null===(e=t.range)||void 0===e?void 0:e.actions)||void 0})}if("rangeStart"===t.type&&n)c.push(n);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},C),...c),n=xn(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=xn(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":xn(10*(Number(e.font_size)||12)/rt)};let a="";const l=t.image.tint_color,s=Nr(t.image.tint_mode,"source_in");if(l){const e=k(t.image.tint_color);a=tt.addSvgFilter(e,s),mt.push([e,s])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}s=r})),s<o.length&&i.push({text:o.substring(s),textStyles:Object.assign({},C)}),n(10,gt=i)}(nt,E,x),128&t.$$.dirty[0]|78&t.$$.dirty[1]&&n(13,_={singleline:u,multiline:ct,halign:ut,valign:dt,truncate:v}),32&t.$$.dirty[1]&&n(12,b={gradient:Boolean(pt)}),1610612768&t.$$.dirty[0]|49&t.$$.dirty[1]&&n(11,w={"font-size":xn(rt),"line-height":it,"max-height":at,"-webkit-line-clamp":lt,color:ht,"background-image":pt})},[X,Y,Z,Q,nt,rt,ft,u,et,ot,gt,w,b,_,$,y,m,f,h,d,c,s,l,a,o,i,r,C,function(t){t.target&&"classList"in t.target&&t.target.classList.add(_n.text__image_hidden)},it,at,lt,ct,ut,dt,ht,pt,v,g,p,x,E,A,V,j,D,P,S,N,I,F,z]}const qr={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226",container_orientation_horizontal:"divkit-fe458",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230",container_orientation_overlap:"divkit-a644d"};function Hr(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)i=t.shape,r={width:Number((null===(o=i.item_width)||void 0===o?void 0:o.value)||10),height:Number((null===(a=i.item_height)||void 0===a?void 0:a.value)||10),radius:Number(null!==(l=null===(s=i.corner_radius)||void 0===s?void 0:s.value)&&void 0!==l?l:5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Number((null===(e=t.radius)||void 0===e?void 0:e.value)||10);return{width:n,height:n,radius:n}}(t.shape)}var i,o,a,l,s;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?k(o.color):"",l=null!=o&&o.width?Number(null!==(r=o.width)&&void 0!==r?r:1):"";i.width=t.width,i.height=t.height,i.borderRadius=t.radius;const s=e.background_color||(null==n?void 0:n.color);return i.background=k(s),a&&l&&(i.boxShadow="inset 0 0 0 ".concat(xn(l)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}function Gr(t,e,n){null!=e&&e.show_at_start&&(n?t.top=e.style.height:t.left=e.style.width),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height:t.right=e.style.width)}function Kr(t,e,n){let r;return r="horizontal"===t?[null!=n&&n.show_between?n.style.height:0,null!=e&&e.show_between?e.style.width:0]:[null!=e&&e.show_between?e.style.height:0,null!=n&&n.show_between?n.style.width:0],r.map(xn).join(" ")}let Xr;function Yr(){if(void 0!==Xr)return Xr;const t=document.createElement("div");return t.style.position="absolute",t.style.display="flex",t.style.flexDirection="column",t.style.gap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),Xr=1===t.scrollHeight,document.body.removeChild(t),Xr}function Zr(t,e,n){const r=t.slice();return r[13]=e[n],r}function Qr(t){let e,n,r,i,o,a="".concat(t[13].style.width,"px"),l="".concat(t[13].style.height,"px"),s="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=ee("div"),n=ee("div"),i=ie(),this.h()},l(t){e=he(t,"DIV",{class:!0});var r=ce(e);n=he(r,"DIV",{class:!0}),ce(n).forEach(Qt),i=ge(r),r.forEach(Qt),this.h()},h(){le(n,"class",r="divkit-f6e9a"),ve(n,"width",a,!1),ve(n,"height",l,!1),ve(n,"border-radius",s,!1),ve(n,"background",t[13].style.background,!1),ve(n,"box-shadow",t[13].style.boxShadow,!1),le(e,"class",o="divkit-c770e"),ve(e,"left",c,!1),ve(e,"top",u,!1),ve(e,"width",d,!1),ve(e,"height",h,!1)},m(t,r){Zt(t,e,r),Yt(e,n),Yt(e,i)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&ve(n,"width",a,!1),2&r&&l!==(l="".concat(t[13].style.height,"px"))&&ve(n,"height",l,!1),2&r&&s!==(s="".concat(t[13].style.borderRadius,"px"))&&ve(n,"border-radius",s,!1),2&r&&ve(n,"background",t[13].style.background,!1),2&r&&ve(n,"box-shadow",t[13].style.boxShadow,!1),2&r&&c!==(c="".concat(t[13].left,"px"))&&ve(e,"left",c,!1),2&r&&u!==(u="".concat(t[13].top,"px"))&&ve(e,"top",u,!1),2&r&&d!==(d="".concat(t[13].width,"px"))&&ve(e,"width",d,!1),2&r&&h!==(h="".concat(t[13].height,"px"))&&ve(e,"height",h,!1)},d(t){t&&Qt(e)}}}function ti(t){let e,n,r,i,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=Qr(Zr(t,o,e));return{c(){e=ee("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=he(t,"DIV",{class:!0});var n=ce(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(Qt),this.h()},h(){le(e,"class",n="divkit-a7719")},m(n,o){Zt(n,e,o);for(let t=0;t<a.length;t+=1)a[t].m(e,null);t[10](e),r||(i=ae(window,"resize",t[2]),r=!0)},p(t,n){let[r]=n;if(2&r){let n;for(o=t[1],n=0;n<o.length;n+=1){const i=Zr(t,o,n);a[n]?a[n].p(i,r):(a[n]=Qr(i),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=o.length}},i:xt,o:xt,d(n){n&&Qt(e),te(a,n),t[10](null),r=!1,i()}}}function ei(t,e,n,r,i,o){o?t.push({top:n.bottom,left:i.left,width:i.right-i.left,height:r.top-n.bottom,style:e}):t.push({top:i.top,left:n.right,width:r.left-n.right,height:i.bottom-i.top,style:e})}function ni(t,e,n,r){const i={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if((null==e?void 0:e.show_at_start)&&ei(t,e.style,{top:0,right:n[0].left-e.style.width,bottom:n[0].top-e.style.height,left:0},n[0],i,r),null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)ei(t,e.style,n[o],n[o+1],i,r);if(null==e?void 0:e.show_at_end){const o=n[n.length-1];ei(t,e.style,o,{top:o.bottom+e.style.height,right:0,bottom:0,left:o.right+e.style.width},i,r)}}function ri(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e;const l=function(t,e){let n,r=0,i=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(i||(i=!0,setTimeout((()=>{i=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect();n(1,c=[]);let e=[...r.children].filter((t=>t!==s&&!t.classList.contains(bn.outer__border))),l=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),o=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===i){if(r.top<a)break}else if(r.left<o)break;o=Math.max(o,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}l.push(t)}const u=[];l.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));o&&ni(c,o,e,"vertical"===i);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};u.push(n)})),a&&ni(c,a,u,"horizontal"===i),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let s,c=[],u=!1,d=null,h=null;function p(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains("divkit-f6e9a"))&&!(null==n?void 0:n.contains("divkit-a7719"))}))&&l()}return ke((()=>{n(6,u=!0)})),Ee((()=>{n(6,u=!1)})),t.$$set=t=>{"orientation"in t&&n(3,i=t.orientation),"separator"in t&&n(4,o=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==s?void 0:s.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(p)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(l)),h.observe(r)))),576&t.$$.dirty&&u&&r&&l()},[s,c,l,i,o,a,u,d,h,r,function(t){De[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}const ii=class extends sn{constructor(t){super(),ln(this,t,ri,ti,St,{orientation:3,separator:4,lineSeparator:5})}},{Boolean:oi}=Ze;function ai(t,e,n){const r=t.slice();return r[46]=e[n],r}function li(t){let e,n;return e=new br({props:{cls:Fn("container",qr,t[11]),style:t[10],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[15],heightByAspect:Boolean(t[8]),$$slots:{default:[ui]},$$scope:{ctx:t}}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Fn("container",qr,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),32768&n[0]&&(r.additionalPaddings=t[15]),256&n[0]&&(r.heightByAspect=Boolean(t[8])),4195040&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function si(t){let e,n;return e=new Aa({props:{layoutParams:t[9],div:t[46].json,templateContext:t[46].templateContext,origJson:t[46].origJson}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.layoutParams=t[9]),4194304&n[0]&&(r.div=t[46].json),4194304&n[0]&&(r.templateContext=t[46].templateContext),4194304&n[0]&&(r.origJson=t[46].origJson),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function ci(t){let e,n;return e=new ii({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function ui(t){let e,n,r,i=t[22],o=[];for(let e=0;e<i.length;e+=1)o[e]=si(ai(t,i,e));const a=t=>Ke(o[t],1,1,(()=>{o[t]=null}));let l=(t[6]||t[7])&&ci(t);return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=ie(),l&&l.c(),n=oe()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=ge(t),l&&l.l(t),n=oe()},m(t,i){for(let e=0;e<o.length;e+=1)o[e].m(t,i);Zt(t,e,i),l&&l.m(t,i),Zt(t,n,i),r=!0},p(t,r){if(4194816&r[0]){let n;for(i=t[22],n=0;n<i.length;n+=1){const a=ai(t,i,n);o[n]?(o[n].p(a,r),Ge(o[n],1)):(o[n]=si(a),o[n].c(),Ge(o[n],1),o[n].m(e.parentNode,e))}for(qe(),n=i.length;n<o.length;n+=1)a(n);He()}t[6]||t[7]?l?(l.p(t,r),192&r[0]&&Ge(l,1)):(l=ci(t),l.c(),Ge(l,1),l.m(n.parentNode,n)):l&&(qe(),Ke(l,1,1,(()=>{l=null})),He())},i(t){if(!r){for(let t=0;t<i.length;t+=1)Ge(o[t]);Ge(l),r=!0}},o(t){o=o.filter(oi);for(let t=0;t<o.length;t+=1)Ke(o[t]);Ke(l),r=!1},d(t){te(o,t),t&&Qt(e),l&&l.d(t),t&&Qt(n)}}}function di(t){let e,n,r=!t[4]&&li(t);return{c(){r&&r.c(),e=oe()},l(t){r&&r.l(t),e=oe()},m(t,i){r&&r.m(t,i),Zt(t,e,i),n=!0},p(t,n){t[4]?r&&(qe(),Ke(r,1,1,(()=>{r=null})),He()):r?(r.p(t,n),16&n[0]&&Ge(r,1)):(r=li(t),r.c(),Ge(r,1),r.m(e.parentNode,e))},i(t){n||(Ge(r),n=!0)},o(t){Ke(r),n=!1},d(t){r&&r.d(t),t&&Qt(e)}}}function hi(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A=xt,V=xt,j=xt,D=xt,P=xt,S=xt,N=xt,I=xt,F=xt;var z,T,M,J,O,B;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F()));let{json:R={}}=e,{templateContext:U}=e,{origJson:W}=e,{layoutParams:L}=e;const q={left:"start",center:"center",right:"end"},H={top:"start",center:"center",bottom:"end",baseline:"baseline"},G=["rounded_rectangle","circle"],K=Ae($n);let X,Y=!1,Z="vertical",Q="top",tt="left",et=null,nt=null,rt={};return t.$$set=t=>{"json"in t&&n(0,R=t.json),"templateContext"in t&&n(1,U=t.templateContext),"origJson"in t&&n(2,W=t.origJson),"layoutParams"in t&&n(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(32,r=R.items),2&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,Y=!1):(n(4,Y=!0),K.logError(st(new Error('Incorrect or empty "items" prop for div "container"'))))),18&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(22,i=(!Y&&r||[]).map((t=>{let e=t,n=U;return({templateContext:n,json:e}=K.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(21,o=K.getDerivedFromVars(R.orientation)),F(),F=It(o,(t=>n(41,C=t)))),32&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(5,Z=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(C,Z)),1&t.$$.dirty[0]&&(n(20,a=K.getDerivedFromVars(R.content_alignment_vertical)),I(),I=It(a,(t=>n(40,E=t)))),536870912&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(29,Q=Sr(E,Q)),1&t.$$.dirty[0]&&(n(19,l=K.getDerivedFromVars(R.content_alignment_horizontal)),N(),N=It(l,(t=>n(39,k=t)))),1073741824&t.$$.dirty[0]|256&t.$$.dirty[1]&&n(30,tt=Pr(k,tt)),1&t.$$.dirty[0]&&(n(18,s=K.getDerivedFromVars(R.layout_mode)),S(),S=It(s,(t=>n(38,x=t)))),128&t.$$.dirty[1]&&n(31,c="wrap"===x),1&t.$$.dirty[0]&&(n(17,u=K.getDerivedFromVars(R.separator)),P(),P=It(u,(t=>n(37,w=t)))),58720352&t.$$.dirty[0]|64&t.$$.dirty[1])if((null==w?void 0:w.style)&&"overlap"!==Z&&Yr()){const t=Hr(w.style,G,(null==et?void 0:et.style)||null);n(6,et=t?{show_at_start:Boolean(null!==n(23,z=w.show_at_start)&&void 0!==z&&z),show_at_end:Boolean(null!==n(24,T=w.show_at_end)&&void 0!==T&&T),show_between:Boolean(null===n(25,M=w.show_between)||void 0===M||M),style:t}:null)}else n(6,et=null);if(1&t.$$.dirty[0]&&(n(16,d=K.getDerivedFromVars(R.line_separator)),D(),D=It(d,(t=>n(36,b=t)))),469762208&t.$$.dirty[0]|32&t.$$.dirty[1])if((null==b?void 0:b.style)&&"overlap"!==Z&&Yr()){const t=Hr(b.style,G,(null==nt?void 0:nt.style)||null);n(7,nt=t?{show_at_start:Boolean(null!==n(26,J=b.show_at_start)&&void 0!==J&&J),show_at_end:Boolean(null!==n(27,O=b.show_at_end)&&void 0!==O&&O),show_between:Boolean(null===n(28,B=b.show_between)||void 0===B||B),style:t}:null)}else n(7,nt=null);if(224&t.$$.dirty[0]&&n(15,h=et||nt?function(t,e,n){const r={};return Gr(r,e,"vertical"===t),Gr(r,n,"horizontal"===t),r}(Z,et,nt):null),1&t.$$.dirty[0]&&(n(14,p=K.getDerivedFromVars(R.aspect)),j(),j=It(p,(t=>n(35,_=t)))),16&t.$$.dirty[1]){const t=null==_?void 0:_.ratio;t&&or(t)?n(8,X=t):n(8,X=void 0)}if(1&t.$$.dirty[0]&&(n(13,f=K.getDerivedFromVars(R.width)),A(),A=It(f,(t=>n(33,y=t)))),1&t.$$.dirty[0]&&(n(12,g=K.getDerivedFromVars(R.height)),V(),V=It(g,(t=>n(34,$=t)))),1610613544&t.$$.dirty[0]|13&t.$$.dirty[1]){let t={};(null==L?void 0:L.fakeElement)&&(t.fakeElement=!0),"overlap"===Z&&(t.overlapParent=!0),"horizontal"!==Z&&(t.parentHAlign=q[tt],X||$&&"wrap_content"!==$.type&&("match_parent"!==$.type||!(null==L?void 0:L.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0)),"vertical"!==Z&&(t.parentVAlign=H[Q],("wrap_content"===(null==y?void 0:y.type)||"match_parent"===(null==y?void 0:y.type)&&(null==L?void 0:L.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===Z&&(t.parentContainerOrientation="horizontal"),"vertical"===Z&&(t.parentContainerOrientation="vertical"),c&&(t.parentContainerWrap=!0),n(9,rt=Ln(t,rt))}1610612768&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(11,m={orientation:Z,valign:Q,halign:tt,wrap:c}),480&t.$$.dirty[0]&&n(10,v={gap:et||nt?Kr(Z,et,nt):void 0,"aspect-ratio":X})},[R,U,W,L,Y,Z,et,nt,X,rt,v,m,g,f,p,h,d,u,s,l,a,o,i,z,T,M,J,O,B,Q,tt,c,r,y,$,_,b,w,x,k,E,C]}const pi={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function fi(t,e){return"vertical"===t||"horizontal"===t?t:e}function gi(t){let e,n,r;return{c(){e=ee("span"),this.h()},l(t){e=he(t,"SPAN",{class:!0,style:!0}),ce(e).forEach(Qt),this.h()},h(){le(e,"class",n=pi.separator__inner),le(e,"style",r=wn(t[5]))},m(t,n){Zt(t,e,n)},p(t,n){32&n&&r!==(r=wn(t[5]))&&le(e,"style",r)},d(t){t&&Qt(e)}}}function mi(t){let e,n=t[6]&&gi(t);return{c(){n&&n.c(),e=oe()},l(t){n&&n.l(t),e=oe()},m(t,r){n&&n.m(t,r),Zt(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=gi(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&Qt(e)}}}function vi(t){let e,n;return e=new br({props:{cls:Fn("separator",pi,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[mi]},$$scope:{ctx:t}}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=Fn("separator",pi,t[4])),1&r&&(i.json=t[0]),4&r&&(i.origJson=t[2]),2&r&&(i.templateContext=t[1]),8&r&&(i.layoutParams=t[3]),16480&r&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function yi(t,e,n){let r,i,o,a,l,s,c,u=xt;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:p}=e,{layoutParams:f}=e;const g=Ae($n);let m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&n(0,d=t.json),"templateContext"in t&&n(1,h=t.templateContext),"origJson"in t&&n(2,p=t.origJson),"layoutParams"in t&&n(3,f=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(n(7,r=g.getDerivedFromVars(d.delimiter_style)),u(),u=It(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=fi(null==c?void 0:c.orientation,m)),4096&t.$$.dirty&&n(6,i=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),4608&t.$$.dirty&&n(9,v=k(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,o="horizontal"===m?"100%":xn(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?xn(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:o,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,h,p,f,s,l,i,r,m,v,a,o,c]}const $i={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function _i(t){let e,n;return e=new br({props:{cls:Fn("image",$i,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[ki]},$$scope:{ctx:t}}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Fn("image",$i,t[10])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),67312&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function bi(t){let e,n,r,i,o,a,l;return{c(){e=ee("img"),this.h()},l(t){e=he(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){le(e,"class",n=$i.image__image),Pt(e.src,r=t[4]===Ai?Ci:t[7])||le(e,"src",r),le(e,"loading","lazy"),le(e,"decoding","async"),le(e,"style",i=wn(t[9])),le(e,"alt",t[16]),le(e,"aria-hidden",o=t[16]?null:"true")},m(n,r){Zt(n,e,r),a||(l=[ae(e,"load",t[26]),ae(e,"error",t[27])],a=!0)},p(t,n){144&n[0]&&!Pt(e.src,r=t[4]===Ai?Ci:t[7])&&le(e,"src",r),512&n[0]&&i!==(i=wn(t[9]))&&le(e,"style",i),65536&n[0]&&le(e,"alt",t[16]),65536&n[0]&&o!==(o=t[16]?null:"true")&&le(e,"aria-hidden",o)},d(t){t&&Qt(e),a=!1,Vt(l)}}}function wi(t){let e,n,r,i,o,a,l,s,c,u="".concat(t[5],"%");return{c(){e=ee("span"),n=ee("img"),this.h()},l(t){e=he(t,"SPAN",{class:!0});var r=ce(e);n=he(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(Qt),this.h()},h(){le(n,"class",r=$i.image__image),Pt(n.src,i=t[4]===Ai?Ci:t[7])||le(n,"src",i),le(n,"loading","lazy"),le(n,"decoding","async"),le(n,"style",o=wn(t[9])),le(n,"alt",t[16]),le(n,"aria-hidden",a=t[16]?null:"true"),le(e,"class",l=$i["image__aspect-wrapper"]),ve(e,"padding-bottom",u,!1)},m(r,i){Zt(r,e,i),Yt(e,n),s||(c=[ae(n,"load",t[26]),ae(n,"error",t[27])],s=!0)},p(t,r){144&r[0]&&!Pt(n.src,i=t[4]===Ai?Ci:t[7])&&le(n,"src",i),512&r[0]&&o!==(o=wn(t[9]))&&le(n,"style",o),65536&r[0]&&le(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&le(n,"aria-hidden",a),32&r[0]&&u!==(u="".concat(t[5],"%"))&&ve(e,"padding-bottom",u,!1)},d(t){t&&Qt(e),s=!1,Vt(c)}}}function xi(t){let e;function n(t,e){return t[10].aspect?wi:bi}let r=n(t),i=r(t);return{c(){i.c(),e=oe()},l(t){i.l(t),e=oe()},m(t,n){i.m(t,n),Zt(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){i.d(t),t&&Qt(e)}}}function ki(t){let e,n=t[6],r=xi(t);return{c(){r.c(),e=oe()},l(t){r.l(t),e=oe()},m(t,n){r.m(t,n),Zt(t,e,n)},p(t,i){64&i[0]&&St(n,n=t[6])?(r.d(1),r=xi(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&Qt(e),r.d(t)}}}function Ei(t){let e,n,r=!t[8]&&_i(t);return{c(){r&&r.c(),e=oe()},l(t){r&&r.l(t),e=oe()},m(t,i){r&&r.m(t,i),Zt(t,e,i),n=!0},p(t,n){t[8]?r&&(qe(),Ke(r,1,1,(()=>{r=null})),He()):r?(r.p(t,n),256&n[0]&&Ge(r,1)):(r=_i(t),r.c(),Ge(r,1),r.m(e.parentNode,e))},i(t){n||(Ge(r),n=!0)},o(t){Ke(r),n=!1},d(t){r&&r.d(t),t&&Qt(e)}}}const Ci="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ai=2;function Vi(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,j,D,P,S,N,I,F,z,T,M=xt,J=xt,O=xt,B=xt,R=xt,U=xt,W=xt,L=xt,q=xt,H=xt,G=xt,K=xt,X=xt,Y=xt;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y()));let{json:Z={}}=e,{templateContext:Q}=e,{origJson:tt}=e,{layoutParams:et}=e;const nt=Ae($n);let rt=0,it="rgba(0,0,0,0.08)",ot=!1,at="",lt="none",ct="50% 50%";let ut,dt="0",ht="source_in",pt="",ft="",gt=0,mt=0,vt=0,yt="",$t="";return Ee((()=>{nt.removeSvgFilter(ut,ht)})),t.$$set=t=>{"json"in t&&n(0,Z=t.json),"templateContext"in t&&n(1,Q=t.templateContext),"origJson"in t&&n(2,tt=t.origJson),"layoutParams"in t&&n(3,et=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(25,r=nt.getDerivedFromVars(Z.image_url)),Y(),Y=It(r,(t=>n(55,T=t)))),1&t.$$.dirty[0]&&(n(24,i=nt.getDerivedFromVars(Z.gif_url)),X(),X=It(i,(t=>n(54,z=t)))),25165824&t.$$.dirty[1]&&n(7,o=T||z),128&t.$$.dirty[0]&&n(4,rt=0),128&t.$$.dirty[0]&&(o?n(8,ot=!1):(n(8,ot=!0),nt.logError(st(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(23,a=nt.getDerivedFromVars(Z.width)),K(),K=It(a,(t=>n(53,F=t)))),4194304&t.$$.dirty[1]&&n(41,l="wrap_content"===(null==F?void 0:F.type)),1&t.$$.dirty[0]&&(n(22,s=nt.getDerivedFromVars(Z.height)),G(),G=It(s,(t=>n(52,I=t)))),2097152&t.$$.dirty[1]&&n(40,c="wrap_content"===(null==I?void 0:I.type)),1&t.$$.dirty[0]&&(n(21,u=nt.getDerivedFromVars(Z.preview)),H(),H=It(u,(t=>n(51,N=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=N;0!==rt&&rt!==Ai||!t?n(29,at=""):t.startsWith("data:")?n(29,at='url("'.concat(En(t),'")')):n(29,at='url("data:image/jpg;base64,'.concat(En(t),'")'))}if(1&t.$$.dirty[0]&&(n(20,d=nt.getDerivedFromVars(Z.placeholder_color)),q(),q=It(d,(t=>n(50,S=t)))),16&t.$$.dirty[0]|524288&t.$$.dirty[1]&&function(t,e){n(28,it=0===t||t===Ai?k(e,1,it):"")}(rt,S),1&t.$$.dirty[0]&&(n(19,h=nt.getDerivedFromVars(Z.scale)),L(),L=It(h,(t=>n(49,P=t)))),1073741824&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(30,lt=Dn(P)||lt),1&t.$$.dirty[0]&&(n(18,p=nt.getDerivedFromVars({content_alignment_horizontal:Z.content_alignment_horizontal,content_alignment_vertical:Z.content_alignment_vertical})),W(),W=It(p,(t=>n(48,D=t)))),131072&t.$$.dirty[1]&&n(31,ct=function(t,e){const n=t.content_alignment_horizontal,r=t.content_alignment_vertical;return n&&"left"!==n&&"center"!==n&&"right"!==n||r&&"top"!==r&&"center"!==r&&"bottom"!==r?e:Pn(t)}(D,ct)),1&t.$$.dirty[0]&&(n(17,f=nt.getDerivedFromVars(Z.accessibility)),U(),U=It(f,(t=>n(47,j=t)))),65536&t.$$.dirty[1]&&n(16,g=(null==j?void 0:j.description)||""),1&t.$$.dirty[0]&&(n(15,m=nt.getDerivedFromVars(Z.aspect)),R(),R=It(m,(t=>n(46,V=t)))),32768&t.$$.dirty[1]){const t=null==V?void 0:V.ratio;t&&or(t)?n(5,dt=(100/Number(t)).toFixed(2)):n(5,dt="0")}if(1&t.$$.dirty[0]&&(n(14,v=nt.getDerivedFromVars(Z.tint_color)),B(),B=It(v,(t=>n(45,A=t)))),1&t.$$.dirty[0]&&(n(13,y=nt.getDerivedFromVars(Z.tint_mode)),O(),O=It(y,(t=>n(44,C=t)))),24582&t.$$.dirty[1]){const t=A,e=t?k(t):void 0,r=Nr(C,ht);e===ut&&r===ht||(nt.removeSvgFilter(ut,ht),n(6,pt=e?nt.addSvgFilter(e,r):""),n(32,ut=e),n(33,ht=r))}if(1&t.$$.dirty[0]&&(n(12,$=nt.getDerivedFromVars(Z.appearance_animation)),J(),J=It($,(t=>n(43,E=t)))),4096&t.$$.dirty[1]&&E&&"fade"===E.type){const t=E;n(34,ft=qn(t.interpolator,"ease_in_out").replace(/_/g,"-")),n(37,vt=Rn(t.duration,300)),n(36,mt=Rn(t.start_delay,0)),n(35,gt=Rn(t.alpha,0))}if(1&t.$$.dirty[0]&&(n(11,_=nt.getDerivedFromVars(Z.filters)),M(),M=It(_,(t=>n(42,x=t)))),2048&t.$$.dirty[1]){let t="",e="";Array.isArray(x)&&x.length&&(t=ar(x,nt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),n(38,yt=t),n(39,$t=e)}48&t.$$.dirty[0]|1544&t.$$.dirty[1]&&n(10,b={aspect:"0"!==dt,"is-width-content":l,"is-height-content":c,loaded:1===rt,"before-appearance":Boolean(ft)&&0===rt}),1879048272&t.$$.dirty[0]|505&t.$$.dirty[1]&&n(9,w={"background-image":at,"background-color":at?void 0:it,"background-size":lt,"clip-path":$t||void 0,"object-fit":lt,"object-position":ct,filter:[1===rt&&pt?"url(#".concat(pt,")"):"",yt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":ft||void 0,"--divkit-appearance-fade-start":ft?gt:void 0,"--divkit-appearance-delay":ft?"".concat(mt,"ms"):void 0,"--divkit-appearance-duration":ft?"".concat(vt,"ms"):void 0})},[Z,Q,tt,et,rt,dt,pt,o,ot,w,b,_,$,y,v,m,g,f,p,h,d,u,s,a,i,r,function(){0===rt&&n(4,rt=1)},function(){0===rt&&n(4,rt=Ai)},it,at,lt,ct,ut,ht,ft,gt,mt,vt,yt,$t,c,l,x,E,C,A,V,j,D,P,S,N,I,F,z,T]}const ji=class extends sn{constructor(t){super(),ln(this,t,Vi,Ei,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Di={grid:"divkit-d9080",grid_halign_left:"divkit-f63b3",grid_halign_center:"divkit-a14a6",grid_halign_right:"divkit-b0717",grid_valign_top:"divkit-fbca8",grid_valign_center:"divkit-d4310",grid_valign_bottom:"divkit-e4205"};function Pi(t){return t>0&&t<1}function Si(t){return String(Math.ceil(1e3*t)/1e3)}function Ni(t,e,n){if(t.some(Pi)){const e=Math.max(...t.filter(Pi).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,i=0;const o=[];if(t.every(Boolean)){i=t.reduce(((t,e)=>t+e),0);for(let o=0;o<n;++o){if(!e[o])continue;const n=e[o]/t[o]*i;n>r&&(r=n)}}for(let e=0;e<n;++e)r?o[e]="minmax(".concat(xn(r*t[e]/i),",").concat(Si(t[e]),"fr)"):t[e]?o[e]="".concat(Si(t[e]),"fr"):o[e]="auto";return o.join(" ")}function Ii(t,e,n){const r=t.slice();return r[29]=e[n],r}function Fi(t){let e,n;return e=new br({props:{cls:Fn("grid",Di,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[Ti]},$$scope:{ctx:t}}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Fn("grid",Di,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||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function zi(t){let e,n;return e=new Aa({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(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||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function Ti(t){let e,n,r=t[5],i=[];for(let e=0;e<r.length;e+=1)i[e]=zi(Ii(t,r,e));const o=t=>Ke(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=oe()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=oe()},m(t,r){for(let e=0;e<i.length;e+=1)i[e].m(t,r);Zt(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=t[5],a=0;a<r.length;a+=1){const o=Ii(t,r,a);i[a]?(i[a].p(o,n),Ge(i[a],1)):(i[a]=zi(o),i[a].c(),Ge(i[a],1),i[a].m(e.parentNode,e))}for(qe(),a=r.length;a<i.length;a+=1)o(a);He()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Ge(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Ke(i[t]);n=!1},d(t){te(i,t),t&&Qt(e)}}}function Mi(t){let e,n,r=!t[6]&&Fi(t);return{c(){r&&r.c(),e=oe()},l(t){r&&r.l(t),e=oe()},m(t,i){r&&r.m(t,i),Zt(t,e,i),n=!0},p(t,n){t[6]?r&&(qe(),Ke(r,1,1,(()=>{r=null})),He()):r?(r.p(t,n),64&n[0]&&Ge(r,1)):(r=Fi(t),r.c(),Ge(r,1),r.m(e.parentNode,e))},i(t){n||(Ge(r),n=!0)},o(t){Ke(r),n=!1},d(t){r&&r.d(t),t&&Qt(e)}}}function Ji(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g=xt,m=xt,v=xt,y=xt;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y()));let{json:$={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:w}=e;const x=Ae($n);let k,E,C=!1,A=1,V=[],j=[],D=[],P=[],S=0,N=!1,I="top",F="left";return t.$$set=t=>{"json"in t&&n(0,$=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,w=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(23,r=$.items),8388608&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(12,C=!1):(n(12,C=!0),x.logError(st(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,i=x.getDerivedFromVars($.column_count)),y(),y=It(i,(t=>n(27,f=t)))),134225920&t.$$.dirty[0]&&n(13,A=xr(f,A)),8392706&t.$$.dirty[0]&&n(22,o=(!C&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=x.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];o.forEach((e=>{t.push(x.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=dn(t,(t=>[...t]))),v(),v=It(k,(t=>n(26,p=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,V=[]),n(15,j=[]),n(16,D=[]),n(17,P=[]),n(19,N=!1),n(5,E=o.map(((i,o)=>{var a,l,s,c;const u=p[o],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,f={x:e,y:r,colSpan:d,rowSpan:h},g="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(l=u.height)||void 0===l?void 0:l.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(s=u.width)||void 0===s?void 0:s.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let i=e;i<e+d;++i)for(let e=r;e<r+h;++e)t[i+"_"+e]?n(19,N=!0):(t[i+"_"+e]=!0,(!V[i]||V[i]<g)&&n(14,V[i]=g,V),(!j[e]||j[e]<m)&&n(15,j[e]=m,j),(!D[i]||D[i]<v)&&n(16,D[i]=v,D),(!P[e]||P[e]<y)&&n(17,P[e]=y,P));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},i),{layoutParams:{gridArea:f,fakeElement:(null==w?void 0:w.fakeElement)||!1}})}))),0!==e&&n(19,N=!0),N&&x.logError(st(new Error('Mismatching "grid" rows/columns'))),n(18,S=r)}1&t.$$.dirty[0]&&(n(10,a=x.getDerivedFromVars($.content_alignment_vertical)),m(),m=It(a,(t=>n(25,h=t)))),34603008&t.$$.dirty[0]&&n(20,I=Sr(h,I)),1&t.$$.dirty[0]&&(n(9,l=x.getDerivedFromVars($.content_alignment_horizontal)),g(),g=It(l,(t=>n(24,d=t)))),18874368&t.$$.dirty[0]&&n(21,F=Pr(d,F)),3145728&t.$$.dirty[0]&&n(8,s={valign:I,halign:F}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":Ni(V,D,A),"grid-template-rows":Ni(j,P,S)}),528384&t.$$.dirty[0]&&n(6,u=C||N)},[$,_,b,w,k,E,u,c,s,l,a,i,C,A,V,j,D,P,S,N,I,F,o,r,d,h,p,f]}const Oi={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function Bi(t){const e=[];let n=t[0],r=1;for(let i=1;i<=t.length;i++)t[i]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[i],r=1):r++;return e.join(" ")}function Ri(t,e){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,i),n=null}),e)}}const{Boolean:Ui}=Ze;function Wi(t,e,n){const r=t.slice();return r[72]=e[n],r[73]=e,r[74]=n,r}function Li(t,e,n){const r=t.slice();return r[75]=e[n],r}function qi(t){let e,n;return e=new br({props:{cls:Fn("gallery",Oi,t[16]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",$$slots:{default:[Zi]},$$scope:{ctx:t}}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=Fn("gallery",Oi,t[16])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),335953872&n[0]|65536&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function Hi(t){let e,n;return e=new Aa({props:{layoutParams:t[8],div:t[75].json,templateContext:t[75].templateContext,origJson:t[75].origJson}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),67108864&n[0]&&(r.div=t[75].json),67108864&n[0]&&(r.templateContext=t[75].templateContext),67108864&n[0]&&(r.origJson=t[75].origJson),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function Gi(t){let e,n,r,i,o,a=t[74],l=t[72],s=[];for(let e=0;e<l.length;e+=1)s[e]=Hi(Li(t,l,e));const c=t=>Ke(s[t],1,1,(()=>{s[t]=null})),u=()=>t[60](e,a),d=()=>t[60](null,a);return{c(){e=ee("div");for(let t=0;t<s.length;t+=1)s[t].c();n=ie(),this.h()},l(t){e=he(t,"DIV",{class:!0,style:!0});var r=ce(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=ge(r),r.forEach(Qt),this.h()},h(){le(e,"class",r=Oi.gallery__items),le(e,"style",i=wn(t[17]))},m(t,r){Zt(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);Yt(e,n),u(),o=!0},p(r,h){if(t=r,67109120&h[0]){let r;for(l=t[72],r=0;r<l.length;r+=1){const i=Li(t,l,r);s[r]?(s[r].p(i,h),Ge(s[r],1)):(s[r]=Hi(i),s[r].c(),Ge(s[r],1),s[r].m(e,n))}for(qe(),r=l.length;r<s.length;r+=1)c(r);He()}(!o||131072&h[0]&&i!==(i=wn(t[17])))&&le(e,"style",i),a!==t[74]&&(d(),a=t[74],u())},i(t){if(!o){for(let t=0;t<l.length;t+=1)Ge(s[t]);o=!0}},o(t){s=s.filter(Ui);for(let t=0;t<s.length;t+=1)Ke(s[t]);o=!1},d(t){t&&Qt(e),te(s,t),d()}}}function Ki(t){let e,n,r=t[12]&&t[9]&&Xi(t),i=t[13]&&t[9]&&Yi(t);return{c(){r&&r.c(),e=ie(),i&&i.c(),n=oe()},l(t){r&&r.l(t),e=ge(t),i&&i.l(t),n=oe()},m(t,o){r&&r.m(t,o),Zt(t,e,o),i&&i.m(t,o),Zt(t,n,o)},p(t,o){t[12]&&t[9]?r?r.p(t,o):(r=Xi(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?i?i.p(t,o):(i=Yi(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){r&&r.d(t),t&&Qt(e),i&&i.d(t),t&&Qt(n)}}}function Xi(t){let e,n,r,i,o=!t[29]&&function(t){let e,n,r,i;return{c(){e=ne("svg"),n=ne("path"),this.h()},l(t){e=pe(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=ce(e);n=pe(r,"path",{class:!0,d:!0}),ce(n).forEach(Qt),r.forEach(Qt),this.h()},h(){le(n,"class",r=Oi["gallery__arrow-icon-path"]),le(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),le(e,"class",i=Oi["gallery__arrow-icon"]),le(e,"xmlns","http://www.w3.org/2000/svg"),le(e,"width","32"),le(e,"height","32"),le(e,"viewBox","0 0 32 32"),le(e,"fill","none")},m(t,r){Zt(t,e,r),Yt(e,n)},p:xt,d(t){t&&Qt(e)}}}();return{c(){e=ee("div"),o&&o.c(),this.h()},l(t){e=he(t,"DIV",{class:!0});var n=ce(e);o&&o.l(n),n.forEach(Qt),this.h()},h(){le(e,"class",n=t[29]||"".concat(Oi.gallery__arrow," ").concat(Oi.gallery__arrow_left))},m(n,a){Zt(n,e,a),o&&o.m(e,null),r||(i=ae(e,"click",t[63]),r=!0)},p(t,e){t[29]||o.p(t,e)},d(t){t&&Qt(e),o&&o.d(),r=!1,i()}}}function Yi(t){let e,n,r,i,o=!t[30]&&function(t){let e,n,r,i;return{c(){e=ne("svg"),n=ne("path"),this.h()},l(t){e=pe(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=ce(e);n=pe(r,"path",{class:!0,d:!0}),ce(n).forEach(Qt),r.forEach(Qt),this.h()},h(){le(n,"class",r=Oi["gallery__arrow-icon-path"]),le(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),le(e,"class",i=Oi["gallery__arrow-icon"]),le(e,"xmlns","http://www.w3.org/2000/svg"),le(e,"width","32"),le(e,"height","32"),le(e,"viewBox","0 0 32 32"),le(e,"fill","none")},m(t,r){Zt(t,e,r),Yt(e,n)},p:xt,d(t){t&&Qt(e)}}}();return{c(){e=ee("div"),o&&o.c(),this.h()},l(t){e=he(t,"DIV",{class:!0});var n=ce(e);o&&o.l(n),n.forEach(Qt),this.h()},h(){le(e,"class",n=t[30]||"".concat(Oi.gallery__arrow," ").concat(Oi.gallery__arrow_right))},m(n,a){Zt(n,e,a),o&&o.m(e,null),r||(i=ae(e,"click",t[64]),r=!0)},p(t,e){t[30]||o.p(t,e)},d(t){t&&Qt(e),o&&o.d(),r=!1,i()}}}function Zi(t){let e,n,r,i,o,a,l,s,c,u,d,h=t[26],p=[];for(let e=0;e<h.length;e+=1)p[e]=Gi(Wi(t,h,e));const f=t=>Ke(p[t],1,1,(()=>{p[t]=null}));let g="horizontal"===t[6]&&Ki(t);return{c(){e=ee("div"),n=ee("div");for(let t=0;t<p.length;t+=1)p[t].c();l=ie(),g&&g.c(),s=oe(),this.h()},l(t){e=he(t,"DIV",{class:!0,style:!0});var r=ce(e);n=he(r,"DIV",{class:!0,style:!0});var i=ce(n);for(let t=0;t<p.length;t+=1)p[t].l(i);i.forEach(Qt),r.forEach(Qt),l=ge(t),g&&g.l(t),s=oe(),this.h()},h(){le(n,"class",r=Oi["gallery__items-grid"]),le(n,"style",i=wn(t[18])),le(e,"class",o=Oi.gallery__scroller+" "+(t[28]?"divkit-aa145":"")),le(e,"style",a=wn(t[7]))},m(r,i){Zt(r,e,i),Yt(e,n);for(let t=0;t<p.length;t+=1)p[t].m(n,null);t[61](n),t[62](e),Zt(r,l,i),g&&g.m(r,i),Zt(r,s,i),c=!0,u||(d=ae(e,"scroll",(function(){jt(t[9]?t[32]:null)&&(t[9]?t[32]:null).apply(this,arguments)})),u=!0)},p(r,l){if(t=r,67242240&l[0]){let e;for(h=t[26],e=0;e<h.length;e+=1){const r=Wi(t,h,e);p[e]?(p[e].p(r,l),Ge(p[e],1)):(p[e]=Gi(r),p[e].c(),Ge(p[e],1),p[e].m(n,null))}for(qe(),e=h.length;e<p.length;e+=1)f(e);He()}(!c||262144&l[0]&&i!==(i=wn(t[18])))&&le(n,"style",i),(!c||268435456&l[0]&&o!==(o=Oi.gallery__scroller+" "+(t[28]?"divkit-aa145":"")))&&le(e,"class",o),(!c||128&l[0]&&a!==(a=wn(t[7])))&&le(e,"style",a),"horizontal"===t[6]?g?g.p(t,l):(g=Ki(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)Ge(p[t]);c=!0}},o(t){p=p.filter(Ui);for(let t=0;t<p.length;t+=1)Ke(p[t]);c=!1},d(n){n&&Qt(e),te(p,n),t[61](null),t[62](null),n&&Qt(l),g&&g.d(n),n&&Qt(s),u=!1,d()}}}function Qi(t){let e,n,r,i,o=!t[5]&&qi(t);return{c(){o&&o.c(),e=oe()},l(t){o&&o.l(t),e=oe()},m(a,l){o&&o.m(a,l),Zt(a,e,l),n=!0,r||(i=ae(window,"resize",(function(){jt(t[9]?t[33]:null)&&(t[9]?t[33]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?o&&(qe(),Ke(o,1,1,(()=>{o=null})),He()):o?(o.p(t,r),32&r[0]&&Ge(o,1)):(o=qi(t),o.c(),Ge(o,1),o.m(e.parentNode,e))},i(t){n||(Ge(o),n=!0)},o(t){Ke(o),n=!1},d(t){o&&o.d(t),t&&Qt(e),r=!1,i()}}}function to(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P=xt,S=xt,N=xt,I=xt,F=xt,z=xt,T=xt,M=xt,J=xt,O=xt;t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O()));let{json:B={}}=e,{templateContext:R}=e,{origJson:U}=e,{layoutParams:W}=e;const L=Ae($n);let q,H,G=[],K=!1,X=!1,Y=null,Z=!1;const Q=L.getCustomization("galleryLeftClass"),tt=L.getCustomization("galleryRightClass");let et=!1;const nt=L.isDesktop;Ft(t,nt,(t=>n(59,j=t)));let rt,it,ot,at,lt=1,ct="horizontal",ut="start",dt=8,ht="",pt=[],ft={},gt=!1,mt={},vt=0;function yt(){if(!q)return;const t=q.scrollLeft,e=q.scrollWidth,r=q.offsetWidth;n(12,K=t>2),n(13,X=t+r<e-2)}const $t=Ri(yt,50);function _t(t){q.scroll({left:q.scrollLeft+.75*q.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function bt(){let t=[],e=G[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<lt;++e){const r=G[e].children[n];r&&t.push(r)}return t}function wt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===ct,i=r?"offsetLeft":"offsetTop",o=r?"left":"top";q.scroll({[o]:Math.max(0,t[e][i]-dt/2),behavior:n})}function kt(t){const e=bt(),n=q.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===ct?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const i=e.map((t=>function(t,e){return"horizontal"===ct?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),o=i.findIndex(Boolean);return-1!==o?"prev"===t&&2===i.filter(Boolean).length?o+1:o:"prev"===t?1:e.length-2}return!B.id||et||(null==W?void 0:W.fakeElement)||L.registerInstance(B.id,{setCurrentItem(t){const e=bt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');wt(e,t)},setPreviousItem(t){const e=kt("prev"),n=bt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),wt(n,r)},setNextItem(t){const e="horizontal"===ct?q.scrollLeft+q.offsetWidth===q.scrollWidth:q.scrollTop+q.offsetHeight===q.scrollHeight,n=bt();if(e&&"ring"===t)return void wt(n,0);const r=kt("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),wt(n,i)}}),ke((()=>{n(36,Z=!0),!et&&(yt(),vt)&&wt(bt(),vt,"auto")})),Ee((()=>{n(36,Z=!1),B.id&&!(null==W?void 0:W.fakeElement)&&L.unregisterInstance(B.id)})),t.$$set=t=>{"json"in t&&n(0,B=t.json),"templateContext"in t&&n(1,R=t.templateContext),"origJson"in t&&n(2,U=t.origJson),"layoutParams"in t&&n(3,W=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(49,r=B.items),262144&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(5,et=!1):(n(5,et=!0),L.logError(st(new Error('Incorrect or empty "items" prop for div "gallery"'))))),34&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(48,i=(!et&&r||[]).map((t=>{let e=t,n=R;return({templateContext:n,json:e}=L.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|268435488&t.$$.dirty[1]&&n(9,o=j&&Z&&!et),528&t.$$.dirty[0]|16&t.$$.dirty[1]&&(o?"undefined"!=typeof ResizeObserver&&(n(35,Y=new ResizeObserver((()=>{$t()}))),Y.observe(H)):Y&&(Y.disconnect(),n(35,Y=null))),1&t.$$.dirty[0]&&(n(27,a=L.getDerivedFromVars(B.column_count)),J(),J=It(a,(t=>n(58,V=t)))),134217792&t.$$.dirty[1]&&n(37,lt=xr(V,lt)),131136&t.$$.dirty[1]&&n(26,l=function(t,e){let n=0,r=[];for(let i=0;i<t.length;++i)r[n]||(r[n]=[]),r[n].push(t[i]),++n>=e&&(n=0);return r}(i,lt)),1&t.$$.dirty[0]&&(n(25,s=L.getDerivedFromVars(B.orientation)),M(),M=It(s,(t=>n(57,A=t)))),64&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&n(6,ct=fi(A,ct)),1&t.$$.dirty[0]&&(n(24,c=L.getDerivedFromVars(B.cross_content_alignment)),T(),T=It(c,(t=>n(56,C=t)))),33554560&t.$$.dirty[1]&&n(38,ut=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(C,ut)),1&t.$$.dirty[0]&&(n(23,u=L.getDerivedFromVars(B.item_spacing)),z(),z=It(u,(t=>n(55,E=t)))),16777728&t.$$.dirty[1]&&(n(40,dt=Rn(E,dt)),n(39,rt=xn(dt))),1&t.$$.dirty[0]&&(n(22,d=L.getDerivedFromVars(B.cross_spacing)),F(),F=It(d,(t=>n(54,k=t)))),8391168&t.$$.dirty[1]&&(n(42,ot=Rn(k,dt)),n(41,it=xn(ot))),1&t.$$.dirty[0]&&(n(21,h=L.getDerivedFromVars(B.paddings)),I(),I=It(h,(t=>n(53,x=t)))),4198400&t.$$.dirty[1]&&n(43,ht=Bn(x,ht)),64&t.$$.dirty[0]&&n(47,p="horizontal"===ct?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|131072&t.$$.dirty[1]){let t=[];i.forEach((e=>{const n="horizontal"===ct?"width":"height";t.push(L.getDerivedFromVars(e.json[n]))})),n(14,at=dn(t,(t=>t))),N(),N=It(at,(t=>n(52,w=t)))}if(64&t.$$.dirty[0]|2105408&t.$$.dirty[1]&&(n(44,pt=[]),lt>1?pt.push("auto"):w.forEach((t=>{!t&&"horizontal"===ct||"match_parent"===(null==t?void 0:t.type)?pt.push("100%"):pt.push("max-content")}))),1&t.$$.dirty[0]&&(n(20,f=L.getDerivedFromVars(B.scroll_mode)),S(),S=It(f,(t=>n(51,b=t)))),456&t.$$.dirty[0]|1049280&t.$$.dirty[1]){const t={};let e={};n(45,gt=!1),(null==W?void 0:W.fakeElement)&&(e.fakeElement=!0),"horizontal"===ct?e.parentVAlign=ut:e.parentHAlign=ut,"paging"===b&&(n(45,gt=!0),e.scrollSnap="start",t["horizontal"===ct?"scroll-padding-left":"scroll-padding-top"]=xn(dt/2)),1===lt&&(e.parentLayoutOrientation=ct),n(7,ft=Ln(t,ft)),n(8,mt=Ln(e,mt))}1&t.$$.dirty[0]&&(n(19,g=L.getDerivedFromVars(B.restrict_parent_scroll)),O(),O=It(g,(t=>n(28,D=t)))),5120&t.$$.dirty[1]&&n(18,m={padding:ht,"grid-gap":it}),73984&t.$$.dirty[1]&&n(17,v={"grid-gap":rt,[p]:Bi(pt)}),64&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(16,y={orientation:ct,"scroll-snap":gt}),1&t.$$.dirty[0]&&(n(15,$=L.getDerivedFromVars(B.default_item)),P(),P=It($,(t=>n(50,_=t)))),557056&t.$$.dirty[1]&&n(46,vt=Rn(_,vt))},[B,R,U,W,H,et,ct,ft,mt,o,q,G,K,X,at,$,y,v,m,g,f,h,d,u,c,s,l,a,D,Q,tt,nt,yt,$t,_t,Y,Z,lt,ut,rt,dt,it,ot,ht,pt,gt,vt,p,i,r,_,b,w,x,k,E,C,A,V,j,function(t,e){De[t?"unshift":"push"]((()=>{G[e]=t,n(11,G)}))},function(t){De[t?"unshift":"push"]((()=>{H=t,n(4,H)}))},function(t){De[t?"unshift":"push"]((()=>{q=t,n(10,q)}))},()=>_t("left"),()=>_t("right")]}const eo={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306",tabs__separator:"divkit-b85bf"},{Boolean:no}=Ze;function ro(t,e,n){const r=t.slice();return r[83]=e[n],r[85]=n,r}function io(t,e,n){const r=t.slice();r[83]=e[n],r[85]=n;const i=r[85]===r[6];return r[86]=i,r}function oo(t){let e,n;return e=new br({props:{cls:Fn("tabs",eo,t[42]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[ho]},$$scope:{ctx:t}}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),536870890&n[0]|517&n[1]|67108864&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function ao(t){let e,n,r=t[83].title+"";return{c(){e=re(r),n=ie()},l(t){e=fe(t,r),n=ge(t)},m(t,r){Zt(t,e,r),Zt(t,n,r)},p(t,n){262144&n[0]&&r!==(r=t[83].title+"")&&me(e,r)},d(t){t&&Qt(e),t&&Qt(n)}}}function lo(t){var e,n,r;let i,o;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[59](t[85],...n)}return i=new ir({props:{cls:Fn("tabs__item",eo,{selected:t[86],actionable:Boolean(t[83].title_click_action)}),actions:!t[83].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[83].title_click_action],attrs:{id:"".concat(t[41],"-tab-").concat(t[85]),"aria-controls":"".concat(t[41],"-panel-").concat(t[85]),role:"tab",tabindex:!t[86]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[83].title_click_action?void 0:"0","aria-selected":t[86]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[ao]},$$scope:{ctx:t}}}),{c(){nn(i.$$.fragment)},l(t){rn(i.$$.fragment,t)},m(t,e){on(i,t,e),o=!0},p(e,n){var r,o,l;t=e;const s={};262208&n[0]&&(s.cls=Fn("tabs__item",eo,{selected:t[86],actionable:Boolean(t[83].title_click_action)})),262152&n[0]&&(s.actions=!t[83].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[83].title_click_action]),262216&n[0]&&(s.attrs={id:"".concat(t[41],"-tab-").concat(t[85]),"aria-controls":"".concat(t[41],"-panel-").concat(t[85]),role:"tab",tabindex:!t[86]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[83].title_click_action?void 0:"0","aria-selected":t[86]?"true":"false"}),8&n[0]&&(s.customAction=null!==(l=t[3])&&void 0!==l&&l.fakeElement?null:a),262144&n[0]|67108864&n[2]&&(s.$$scope={dirty:n,ctx:t}),i.$set(s)},i(t){o||(Ge(i.$$.fragment,t),o=!0)},o(t){Ke(i.$$.fragment,t),o=!1},d(t){an(i,t)}}}function so(t){let e,n,r;return{c(){e=ee("div"),this.h()},l(t){e=he(t,"DIV",{class:!0,style:!0}),ce(e).forEach(Qt),this.h()},h(){le(e,"class",n=eo.tabs__separator),le(e,"style",r=wn(t[33]))},m(t,n){Zt(t,e,n)},p(t,n){4&n[1]&&r!==(r=wn(t[33]))&&le(e,"style",r)},d(t){t&&Qt(e)}}}function co(t){let e,n;return e=new Aa({props:{div:t[83].div,templateContext:t[1],layoutParams:t[5]}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};262144&n[0]&&(r.div=t[83].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function uo(t){let e,n,r,i,o,a,l=t[27][t[85]]&&co(t);return{c(){e=ee("div"),l&&l.c(),n=ie(),this.h()},l(t){e=he(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=ce(e);l&&l.l(r),n=ge(r),r.forEach(Qt),this.h()},h(){le(e,"class",r=Fn("tabs__panel",eo,{visible:t[28][t[85]]})),le(e,"role","tabpanel"),le(e,"id",i=t[41]+"-panel-"+t[85]),le(e,"aria-labelledby",o=t[41]+"-tab-"+t[85]),ve(e,"left",100*t[85]+"%")},m(t,r){Zt(t,e,r),l&&l.m(e,null),Yt(e,n),a=!0},p(t,i){t[27][t[85]]?l?(l.p(t,i),134217728&i[0]&&Ge(l,1)):(l=co(t),l.c(),Ge(l,1),l.m(e,n)):l&&(qe(),Ke(l,1,1,(()=>{l=null})),He()),(!a||268435456&i[0]&&r!==(r=Fn("tabs__panel",eo,{visible:t[28][t[85]]})))&&le(e,"class",r)},i(t){a||(Ge(l),a=!0)},o(t){Ke(l),a=!1},d(t){t&&Qt(e),l&&l.d()}}}function ho(t){let e,n,r,i,o,a,l,s,c,u,d,h=t[18],p=[];for(let e=0;e<h.length;e+=1)p[e]=lo(io(t,h,e));const f=t=>Ke(p[t],1,1,(()=>{p[t]=null}));let g=t[19]&&so(t),m=t[18],v=[];for(let e=0;e<m.length;e+=1)v[e]=uo(ro(t,m,e));const y=t=>Ke(v[t],1,1,(()=>{v[t]=null}));return{c(){e=ee("div");for(let t=0;t<p.length;t+=1)p[t].c();r=ie(),g&&g.c(),i=ie(),o=ee("div"),a=ee("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=he(t,"DIV",{class:!0,role:!0});var n=ce(e);for(let t=0;t<p.length;t+=1)p[t].l(n);n.forEach(Qt),r=ge(t),g&&g.l(t),i=ge(t),o=he(t,"DIV",{class:!0});var l=ce(o);a=he(l,"DIV",{class:!0});var s=ce(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(Qt),l.forEach(Qt),this.h()},h(){le(e,"class",n=eo.tabs__list+" "+(t[40]?"divkit-aa145":"")),le(e,"role","tablist"),ve(e,"--divkit-tabs-title-padding",t[17]?Mn(t[17]):"",!1),ve(e,"--divkit-tabs-font-size",xn(t[7]),!1),ve(e,"--divkit-tabs-paddings",t[8],!1),ve(e,"--divkit-tabs-line-height",t[23],!1),ve(e,"--divkit-tabs-letter-spacing",t[24],!1),ve(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),ve(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),ve(e,"--divkit-tabs-active-text-color",t[12],!1),ve(e,"--divkit-tabs-inactive-text-color",t[13],!1),ve(e,"--divkit-tabs-active-background-color",t[14],!1),ve(e,"--divkit-tabs-inactive-background-color",t[15],!1),ve(e,"--divkit-tabs-border-radius",t[9],!1),ve(e,"--divkit-tabs-items-spacing",t[16]?kn(t[16]):"",!1),le(a,"class",l=Fn("tabs__swiper",eo,{inited:t[25],animated:t[26]})),le(o,"class",s=eo.tabs__panels+" "+(t[40]?"divkit-aa145":""))},m(n,l){Zt(n,e,l);for(let t=0;t<p.length;t+=1)p[t].m(e,null);t[60](e),Zt(n,r,l),g&&g.m(n,l),Zt(n,i,l),Zt(n,o,l),Yt(o,a);for(let t=0;t<v.length;t+=1)v[t].m(a,null);t[61](a),t[62](o),c=!0,u||(d=[ae(e,"keydown",t[44]),ae(a,"touchstart",(function(){jt(t[31]?t[45]:void 0)&&(t[31]?t[45]:void 0).apply(this,arguments)})),ae(a,"touchmove",(function(){jt(t[31]?t[46]:void 0)&&(t[31]?t[46]:void 0).apply(this,arguments)})),ae(a,"touchend",(function(){jt(t[31]?t[47]:void 0)&&(t[31]?t[47]:void 0).apply(this,arguments)})),ae(a,"touchcancel",(function(){jt(t[31]?t[47]:void 0)&&(t[31]?t[47]:void 0).apply(this,arguments)}))],u=!0)},p(r,u){if(t=r,262216&u[0]|5120&u[1]){let n;for(h=t[18],n=0;n<h.length;n+=1){const r=io(t,h,n);p[n]?(p[n].p(r,u),Ge(p[n],1)):(p[n]=lo(r),p[n].c(),Ge(p[n],1),p[n].m(e,null))}for(qe(),n=h.length;n<p.length;n+=1)f(n);He()}if((!c||512&u[1]&&n!==(n=eo.tabs__list+" "+(t[40]?"divkit-aa145":"")))&&le(e,"class",n),131072&u[0]&&ve(e,"--divkit-tabs-title-padding",t[17]?Mn(t[17]):"",!1),128&u[0]&&ve(e,"--divkit-tabs-font-size",xn(t[7]),!1),256&u[0]&&ve(e,"--divkit-tabs-paddings",t[8],!1),8388608&u[0]&&ve(e,"--divkit-tabs-line-height",t[23],!1),16777216&u[0]&&ve(e,"--divkit-tabs-letter-spacing",t[24],!1),1024&u[0]&&ve(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),2048&u[0]&&ve(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),4096&u[0]&&ve(e,"--divkit-tabs-active-text-color",t[12],!1),8192&u[0]&&ve(e,"--divkit-tabs-inactive-text-color",t[13],!1),16384&u[0]&&ve(e,"--divkit-tabs-active-background-color",t[14],!1),32768&u[0]&&ve(e,"--divkit-tabs-inactive-background-color",t[15],!1),512&u[0]&&ve(e,"--divkit-tabs-border-radius",t[9],!1),65536&u[0]&&ve(e,"--divkit-tabs-items-spacing",t[16]?kn(t[16]):"",!1),t[19]?g?g.p(t,u):(g=so(t),g.c(),g.m(i.parentNode,i)):g&&(g.d(1),g=null),402915362&u[0]|1024&u[1]){let e;for(m=t[18],e=0;e<m.length;e+=1){const n=ro(t,m,e);v[e]?(v[e].p(n,u),Ge(v[e],1)):(v[e]=uo(n),v[e].c(),Ge(v[e],1),v[e].m(a,null))}for(qe(),e=m.length;e<v.length;e+=1)y(e);He()}(!c||100663296&u[0]&&l!==(l=Fn("tabs__swiper",eo,{inited:t[25],animated:t[26]})))&&le(a,"class",l),(!c||512&u[1]&&s!==(s=eo.tabs__panels+" "+(t[40]?"divkit-aa145":"")))&&le(o,"class",s)},i(t){if(!c){for(let t=0;t<h.length;t+=1)Ge(p[t]);for(let t=0;t<m.length;t+=1)Ge(v[t]);c=!0}},o(t){p=p.filter(no);for(let t=0;t<p.length;t+=1)Ke(p[t]);v=v.filter(no);for(let t=0;t<v.length;t+=1)Ke(v[t]);c=!1},d(n){n&&Qt(e),te(p,n),t[60](null),n&&Qt(r),g&&g.d(n),n&&Qt(i),n&&Qt(o),te(v,n),t[61](null),t[62](null),u=!1,Vt(d)}}}function po(t){let e,n,r=!t[4]&&oo(t);return{c(){r&&r.c(),e=oe()},l(t){r&&r.l(t),e=oe()},m(t,i){r&&r.m(t,i),Zt(t,e,i),n=!0},p(t,n){t[4]?r&&(qe(),Ke(r,1,1,(()=>{r=null})),He()):r?(r.p(t,n),16&n[0]&&Ge(r,1)):(r=oo(t),r.c(),Ge(r,1),r.m(e.parentNode,e))},i(t){n||(Ge(r),n=!0)},o(t){Ke(r),n=!1},d(t){r&&r.d(t),t&&Qt(e)}}}function fo(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C=xt,A=xt,V=xt,j=xt,D=xt,P=xt,S=xt,N=xt,I=xt;var F;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I()));let{json:z={}}=e,{templateContext:T}=e,{origJson:M}=e,{layoutParams:J}=e;const O=Ae($n),B=O.genId("tabs");let R,U,W,L=!1,q={};const H=O.getJsonWithVars(z.selected_tab);let G,K,X=H&&Number(H)||0,Y=12,Z="",Q="",tt="",et="",nt="",rt="",it="",ot="",at=0,lt="",ct="",ut=null,dt=!1,ht=!1,pt=X,ft=[],gt=[];async function mt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(pt=X,n(6,X=t),Et(),$t(),e){await ze();const t=R.querySelector(".".concat(eo.tabs__item_selected));t&&t.focus()}}function vt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==r?void 0:r.length;if(!n)return;let i=X+t;i>=n?i=0:i<0&&(i=n-1),mt(i,e)}function yt(t,e){return X===e||(mt(e),!1)}function $t(){n(26,ht=!0),_t(100*-X),bt(),async function(){await ze();const t=document.getElementById("".concat(B,"-panel-").concat(X));t&&n(21,U.style.height=xn(t.offsetHeight),U)}(),kt(),Vt=-X*U.clientWidth}async function _t(t){await ze(),n(22,W.style.transform="translate3d(".concat(t,"%,0,0)"),W)}function bt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,X-1):Math.min(X,pt),i=t?Math.min(r.length-1,X+1):Math.max(X,pt);n(27,ft=ft.map(((t,n)=>t||n>=e&&n<=i))),n(28,gt=gt.map(((t,n)=>n>=e&&n<=i)))}let wt=null;function kt(){wt&&clearTimeout(wt),wt=window.setTimeout((()=>{n(28,gt=r.map(((t,e)=>e===X)))}),400)}function Et(){dt||(n(25,dt=!0),n(21,U.style.height=xn(U.clientHeight),U),n(22,W.style.transform="translate3d(".concat(100*-pt,"%,0,0)"),W))}let Ct,At,Vt,jt=null,Dt=null,Pt=!1,St=!1;return!z.id||L||(null==J?void 0:J.fakeElement)||O.registerInstance(z.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');mt(t)},setPreviousItem(t){let e=X-1;e<0&&(e="ring"===t?r.length-1:X),mt(e)},setNextItem(t){let e=X+1;e>r.length-1&&(e="ring"===t?0:X),mt(e)}}),Ee((()=>{z.id&&!(null==J?void 0:J.fakeElement)&&O.unregisterInstance(z.id)})),t.$$set=t=>{"json"in t&&n(0,z=t.json),"templateContext"in t&&n(1,T=t.templateContext),"origJson"in t&&n(2,M=t.origJson),"layoutParams"in t&&n(3,J=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(18,r=z.items||[]),262144&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,L=!1):(n(4,L=!0),O.logError(st(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(n(39,i=O.getDerivedFromVars(z.width)),N(),N=It(i,(t=>n(58,x=t)))),1&t.$$.dirty[0]&&(n(38,o=O.getDerivedFromVars(z.height)),S(),S=It(o,(t=>n(57,w=t)))),40&t.$$.dirty[0]|201326592&t.$$.dirty[1]){let t={};(null==J?void 0:J.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==x?void 0:x.type)&&(t.parentHorizontalWrapContent=!0),w&&"wrap_content"!==w.type||(t.parentVerticalWrapContent=!0),n(5,q=Ln(t,q))}if(262225&t.$$.dirty[0]&&!L&&(X<0||X>=r.length)&&(O.logError(st(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:z.selected_tab,length:r.length}})),n(6,X=X<0?0:r.length-1)),1&t.$$.dirty[0]&&(n(37,a=O.getDerivedFromVars(z.tab_title_style)),P(),P=It(a,(t=>n(56,b=t)))),33554432&t.$$.dirty[1]&&n(51,l=b||{}),128&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(7,Y=xr(l.font_size,Y)),384&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(l.font_size||l.paddings)){const t=l.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/Y*10,right:(Number(t.right)||0)/Y*10,bottom:(Number(t.bottom)||0)/Y*10,left:(Number(t.left)||0)/Y*10};n(8,Z=Bn(e,Z))}if(128&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=l.line_height;void 0!==t&&or(t)&&n(23,Q=xn(t/Y*10))}if(128&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=l.letter_spacing;void 0!==t&&On(t)&&n(24,tt=xn(t/Y*10))}if(640&t.$$.dirty[0]|1179648&t.$$.dirty[1]&&(l.corner_radius||l.corners_radius||l.font_size)){const t=null!==n(48,F=l.corner_radius)&&void 0!==F?F:1e3;l.corners_radius?n(9,et=function(t,e,n,r){const i=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<i.length;++t)if(i[t]&&!On(i[t]))return r;return Xn(t,e,n)}(l.corners_radius,t,Y,et)):On(t)&&n(9,et=xn(t/Y*10))}1024&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(10,G=Er(l.active_font_weight||l.font_weight,G)),2048&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(11,K=Er(l.inactive_font_weight||l.font_weight,K)),4096&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(12,nt=k(l.active_text_color,1,nt)),8192&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(13,rt=k(l.inactive_text_color,1,rt)),16384&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(14,it=k(l.active_background_color,1,it)),32768&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(15,ot=k(l.inactive_background_color,1,ot)),65536&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(16,at=Rn(l.item_spacing,at)),1&t.$$.dirty[0]&&(n(36,s=O.getDerivedFromVars(z.has_separator)),D(),D=It(s,(t=>n(19,_=t)))),1&t.$$.dirty[0]&&(n(35,c=O.getDerivedFromVars(z.separator_color)),j(),j=It(c,(t=>n(55,$=t)))),1&t.$$.dirty[0]&&(n(34,u=O.getDerivedFromVars(z.separator_paddings)),V(),V=It(u,(t=>n(54,y=t)))),524288&t.$$.dirty[0]|25952256&t.$$.dirty[1]&&_&&($&&n(49,lt=k($,1,lt)),y&&n(50,ct=Bn(y,ct))),786432&t.$$.dirty[1]&&n(33,d={background:lt,margin:ct}),1&t.$$.dirty[0]&&(n(32,h=O.getDerivedFromVars(z.switch_tabs_by_content_swipe_enabled)),A(),A=It(h,(t=>n(53,v=t)))),4194304&t.$$.dirty[1]&&n(31,p=void 0===v||Boolean(v)),1&t.$$.dirty[0]&&(n(30,f=O.getDerivedFromVars(z.restrict_parent_scroll)),I(),I=It(f,(t=>n(40,E=t)))),1&t.$$.dirty[0]&&(n(29,g=O.getDerivedFromVars(z.title_paddings)),C(),C=It(g,(t=>n(52,m=t)))),131072&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&n(17,ut=Kn(m||void 0,ut)),262144&t.$$.dirty[0]&&(L||(n(27,ft=r.map(((t,e)=>e===X))),n(28,gt=r.map(((t,e)=>e===X)))))},[z,T,M,J,L,q,X,Y,Z,et,G,K,nt,rt,it,ot,at,ut,r,_,R,U,W,Q,tt,dt,ht,ft,gt,g,f,p,h,d,u,c,s,a,o,i,E,B,{},yt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(37===t.which)vt(-1,!0);else if(39===t.which)vt(1,!0);else if(36===t.which)mt(0,!0);else{if(35!==t.which)return;mt(r.length-1,!0)}t.preventDefault()}},function(t){var e;const i=t.target,o=null===(e=null==i?void 0:i.closest)||void 0===e?void 0:e.call(i,".".concat("divkit-aa145"));r.length<2||t.touches.length>1||o&&o!==U||(Pt=!1,St=!1,jt=Qn(t),Dt=null,Ct=Date.now(),At=Vt||-X*U.clientWidth,n(26,ht=!1),wt&&clearTimeout(wt))},function(t){const e=Qn(t);if(!jt||Dt&&Dt.x===e.x&&Dt.y===e.y)return;Dt=e;const n=U.clientWidth;if(Pt){Vt=e.x-jt.x+At;const t=n*r.length;if(Vt>0)Vt=Vt*n/(Vt+3*n);else if(-Vt+n>t){let e=-Vt+n-t;e=e*n/(e+3*n),Vt=n-t-e}_t(100*Vt/n)}else Math.abs(e.y-jt.y)>10?St=!0:!St&&Math.abs(e.x-jt.x)>8&&(Et(),Pt=!0,jt=e,_t(100*-X),bt(!0));Pt&&t.cancelable&&t.preventDefault()},function(){St=!1,jt=null;let t=X;if(!Pt)return;Pt=!1;const e=Math.min(512,U.clientWidth);Math.abs(At-Vt)>e/4*Math.min(1,(Date.now()-Ct)/750)&&(t+=At>Vt?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===X?(Vt=-t*e,_t(100*-t),kt()):mt(t)},F,lt,ct,l,m,v,y,$,b,w,x,(t,e)=>yt(0,t),function(t){De[t?"unshift":"push"]((()=>{R=t,n(20,R)}))},function(t){De[t?"unshift":"push"]((()=>{W=t,n(22,W)}))},function(t){De[t?"unshift":"push"]((()=>{U=t,n(21,U)}))}]}function go(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function mo(t){return t*t*t}function vo(t){const e=t-1;return e*e*e+1}function yo(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),i=n-r;return t[r]*i+t[r+1]*(1-i)}}const $o=yo([.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]),_o=yo([5e-4,.002,.0045,.0078,.0119,.0168,.0224,.0286,.0355,.0429,.0508,.0592,.0681,.0774,.087,.0969,.1072,.1177,.1285,.1395,.1507,.1621,.1736,.1853,.197,.2089,.2208,.2328,.2448,.2569,.2689,.281,.293,.305,.317,.3289,.3408,.3526,.3644,.376,.3876,.3991,.4105,.4218,.433,.444,.455,.4658,.4765,.4871,.4975,.5078,.518,.528,.5379,.5477,.5573,.5668,.5761,.5853,.5944,.6033,.612,.6206,.6291,.6374,.6456,.6537,.6616,.6693,.677,.6845,.6918,.699,.7061,.713,.7199,.7265,.7331,.7395,.7458,.752,.758,.764,.7698,.7755,.781,.7865,.7918,.7971,.8022,.8072,.8121,.8169,.8216,.8262,.8307,.8351,.8394,.8436,.8477,.8517,.8557,.8595,.8633,.8669,.8705,.874,.8775,.8808,.8841,.8873,.8904,.8934,.8964,.8993,.9022,.9049,.9076,.9103,.9129,.9154,.9178,.9202,.9226,.9249,.9271,.9293,.9314,.9335,.9355,.9375,.9394,.9413,.9431,.9449,.9466,.9483,.95,.9516,.9532,.9547,.9562,.9576,.9591,.9605,.9618,.9631,.9644,.9657,.9669,.9681,.9692,.9703,.9714,.9725,.9736,.9746,.9756,.9765,.9775,.9784,.9793,.9802,.981,.9818,.9826,.9834,.9842,.9849,.9856,.9863,.987,.9877,.9883,.989,.9896,.9902,.9908,.9913,.9919,.9924,.993,.9935,.994,.9944,.9949,.9954,.9958,.9963,.9967,.9971,.9975,.9979,.9983,.9986,.999,.9993,.9997,1]),bo={linear:kt,ease:$o,ease_in:mo,ease_out:vo,ease_in_out:go,spring:_o};function wo(t){return Math.max(...t.map((t=>(Number(t.duration)||200)+(Number(t.start_delay)||0))))}function xo(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:l}=e;const s=null!=l?l:1;return{duration:a,css:t=>{const e=t*a,l=n.map((t=>{const n=Number(t.start_delay)||0,a=Number(t.duration)||200,l=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-l:l,u=(bo[t.interpolator||"ease_in_out"]||go)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*s+u*(t.alpha||0)};if("slide"===t.type){var d;const e="top"===t.edge||"left"===t.edge?-1:1,n="top"!==t.edge&&"bottom"!==t.edge&&t.edge?"translateX":"translateY";let o=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===o&&(o="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(i["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(i["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=o*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,p;const e=1-u+u*(t.scale||0),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,i=null!==(p=t.pivot_y)&&void 0!==p?p:.5,o=(1-e)*r.width*n,a=(1-e)*r.height*i;return{active:u>0&&u<1,scale:"translate(".concat(o,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=l.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=l.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=l.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=l.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function ko(t,e,n){return t*(1-n)+e*n}const Eo={linear:kt,ease:$o,ease_in:mo,ease_out:vo,ease_in_out:go,spring:_o};function Co(t,e){var n,r;let{rootBbox:i,beforeBbox:o,afterBbox:a,transition:l}=e;return{delay:null!==(n=l.start_delay)&&void 0!==n?n:0,duration:null!==(r=l.duration)&&void 0!==r?r:200,easing:l.interpolator&&l.interpolator in Eo?Eo[l.interpolator]:go,css:t=>["top:".concat(ko(o.top,a.top,t)-i.top,"px"),"left:".concat(ko(o.left,a.left,t)-i.left,"px"),"width:".concat(ko(o.width,a.width,t),"px"),"height:".concat(ko(o.height,a.height,t),"px")].join(";")}}function Ao(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Ao(t))})):e.push(t),e}const{Map:Vo}=Ze;function jo(t,e,n){const r=t.slice();return r[27]=e[n],r}function Do(t){let e,n;return e=new br({props:{cls:"divkit-b8efc",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[zo]},$$scope:{ctx:t}}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),1073742034&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function Po(t){let e,n,r=t[7],i=So(t);return{c(){i.c(),e=oe()},l(t){i.l(t),e=oe()},m(t,r){i.m(t,r),Zt(t,e,r),n=!0},p(t,n){128&n&&St(r,r=t[7])?(qe(),Ke(i,1,1,xt),He(),i=So(t),i.c(),Ge(i,1),i.m(e.parentNode,e)):i.p(t,n)},i(t){n||(Ge(i),n=!0)},o(t){Ke(i),n=!1},d(t){t&&Qt(e),i.d(t)}}}function So(t){let e,n;return e=new Aa({props:{div:t[7].div,templateContext:t[1]}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(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||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function No(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[11](t[27])}return r=new Aa({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=ee("div"),n=ee("div"),nn(r.$$.fragment),o=ie(),this.h()},l(t){e=he(t,"DIV",{class:!0});var i=ce(e);n=he(i,"DIV",{class:!0});var a=ce(n);rn(r.$$.fragment,a),a.forEach(Qt),o=ge(i),i.forEach(Qt),this.h()},h(){le(n,"class",i="divkit-e08c6"),le(e,"class",a="divkit-eb860")},m(t,i){Zt(t,e,i),Yt(e,n),on(r,n,null),Yt(e,o),s=!0,c||(u=ae(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n&&(i.div=t[27].json),64&n&&(i.templateContext=t[27].templateContext),r.$set(i)},i(n){s||(Ge(r.$$.fragment,n),l||Te((()=>{l=Ye(e,Co,t[27]),l.start()})),s=!0)},o(t){Ke(r.$$.fragment,t),s=!1},d(t){t&&Qt(e),an(r),c=!1,u()}}}function Io(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[10](t[27])}return r=new Aa({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=ee("div"),n=ee("div"),nn(r.$$.fragment),o=ie(),this.h()},l(t){e=he(t,"DIV",{class:!0,style:!0});var i=ce(e);n=he(i,"DIV",{class:!0});var a=ce(n);rn(r.$$.fragment,a),a.forEach(Qt),o=ge(i),i.forEach(Qt),this.h()},h(){le(n,"class",i="divkit-e08c6"),le(e,"class",a="divkit-eb860"),ve(e,"left",t[27].offsetLeft+"px"),ve(e,"top",t[27].offsetTop+"px"),ve(e,"width",t[27].width+"px"),ve(e,"height",t[27].height+"px")},m(t,i){Zt(t,e,i),Yt(e,n),on(r,n,null),Yt(e,o),s=!0,c||(u=ae(e,"introend",d),c=!0)},p(n,i){t=n;const o={};64&i&&(o.div=t[27].json),64&i&&(o.templateContext=t[27].templateContext),r.$set(o),(!s||64&i)&&ve(e,"left",t[27].offsetLeft+"px"),(!s||64&i)&&ve(e,"top",t[27].offsetTop+"px"),(!s||64&i)&&ve(e,"width",t[27].width+"px"),(!s||64&i)&&ve(e,"height",t[27].height+"px")},i(n){s||(Ge(r.$$.fragment,n),l||Te((()=>{l=Ye(e,xo,t[27]),l.start()})),s=!0)},o(t){Ke(r.$$.fragment,t),s=!1},d(t){t&&Qt(e),an(r),c=!1,u()}}}function Fo(t,e){let n,r,i,o,a;const l=[Io,No],s=[];function c(t,e){return"direction"in t[27]?0:1}return r=c(e),i=s[r]=l[r](e),{key:t,first:null,c(){n=oe(),i.c(),o=oe(),this.h()},l(t){n=oe(),i.l(t),o=oe(),this.h()},h(){this.first=n},m(t,e){Zt(t,n,e),s[r].m(t,e),Zt(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(qe(),Ke(s[a],1,1,(()=>{s[a]=null})),He(),i=s[r],i?i.p(e,n):(i=s[r]=l[r](e),i.c()),Ge(i,1),i.m(o.parentNode,o))},i(t){a||(Ge(i),a=!0)},o(t){Ke(i),a=!1},d(t){t&&Qt(n),s[r].d(t),t&&Qt(o)}}}function zo(t){var e;let n,r,i,o,a=[],l=new Vo,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&Po(t),c=t[6];const u=t=>t[27];for(let e=0;e<c.length;e+=1){let n=jo(t,c,e),r=u(n);l.set(r,a[e]=Fo(r,n))}return{c(){s&&s.c(),n=ie(),r=ee("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=ge(t),r=he(t,"DIV",{class:!0,"aria-hidden":!0});var e=ce(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(Qt),this.h()},h(){le(r,"class",i="divkit-adaae"),le(r,"aria-hidden","true")},m(e,i){s&&s.m(e,i),Zt(e,n,i),Zt(e,r,i);for(let t=0;t<a.length;t+=1)a[t].m(r,null);t[12](r),o=!0},p(t,e){var i;null!==(i=t[7])&&void 0!==i&&i.div?s?(s.p(t,e),128&e&&Ge(s,1)):(s=Po(t),s.c(),Ge(s,1),s.m(n.parentNode,n)):s&&(qe(),Ke(s,1,1,(()=>{s=null})),He()),320&e&&(c=t[6],qe(),a=function(t,e,n,r,i,o,a,l,s,c,u,d){let h=t.length,p=o.length,f=h;const g={};for(;f--;)g[t[f].key]=f;const m=[],v=new Map,y=new Map;for(f=p;f--;){const t=d(i,o,f),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[f]=l),r in g&&y.set(r,Math.abs(f-g[r]))}const $=new Set,_=new Set;function b(t){Ge(t,1),t.m(l,u),a.set(t.key,t),u=t.first,p--}for(;h&&p;){const e=m[p-1],n=t[h-1],r=e.key,i=n.key;e===n?(u=e.first,h--,p--):v.has(i)?!a.has(r)||$.has(r)?b(e):_.has(i)?h--:y.get(r)>y.get(i)?(_.add(r),b(e)):($.add(i),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;p;)b(m[p-1]);return m}(a,e,u,0,t,c,l,r,Qe,Fo,null,jo),He())},i(t){if(!o){Ge(s);for(let t=0;t<c.length;t+=1)Ge(a[t]);o=!0}},o(t){Ke(s);for(let t=0;t<a.length;t+=1)Ke(a[t]);o=!1},d(e){s&&s.d(e),e&&Qt(n),e&&Qt(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function To(t){let e,n,r=!t[5]&&Do(t);return{c(){r&&r.c(),e=oe()},l(t){r&&r.l(t),e=oe()},m(t,i){r&&r.m(t,i),Zt(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r&&(qe(),Ke(r,1,1,(()=>{r=null})),He()):r?(r.p(t,i),32&i&&Ge(r,1)):(r=Do(t),r.c(),Ge(r,1),r.m(e.parentNode,e))},i(t){n||(Ge(r),n=!0)},o(t){Ke(r),n=!1},d(t){r&&r.d(t),t&&Qt(e)}}}function Mo(t){return"change_bounds"===t.type?t:"set"===t.type?Mo(t.items[0]):null}function Jo(t,e,n){let r,{json:i={}}=e,{templateContext:o}=e,{origJson:a}=e,{layoutParams:l}=e;const s=Ae($n),c=Ae(Tn);let u,d=new Map,h=new Set,p=!1,f=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=s.getJsonWithVars(r),o=s.getJsonWithVars(o);const l=Ao(o),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=l,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:c,rootBbox:t,transitions:l,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const _=i.div_id||i.id;let b;_?(null==l?void 0:l.fakeElement)||(c.registerInstance(_,{async setState(t){if(b===t)return;s.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let i=[];if(u){const t=u.getBoundingClientRect();i=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const o=r.find((e=>e.state_id===t))||null;if(o?(b=t,n(7,w=o)):s.logError(st(new Error("Cannot find state with id"),{additional:{stateId:t}})),await ze(),!u)return;const a=u.getBoundingClientRect();let l=m.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>$(a,t,"in")));i=i.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=i.concat(l),p=c.reduce(((t,e)=>Math.max(t,wo(e.transitions))),0),f=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:Mo(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),d.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(st(new Error("Missing state block with id"),{additional:{id:t}}))}}),Ce(Tn,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(st(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},unregisterInstance(t){null==f||f.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),l=wo(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,g=[...g.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return m.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const i=t.id;if(!i)return Promise.resolve();const o={id:i,json:t,templateContext:e,transitions:n,node:r};return y.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(p=!0,s.logError(st(new Error('Missing "id" prop for div "state"'))));let w=null;const x=s.getJsonWithVars(i.default_state_id);let k=!1;function E(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return Ee((()=>{_&&!(null==l?void 0:l.fakeElement)&&c.unregisterInstance(_)})),t.$$set=t=>{"json"in t&&n(0,i=t.json),"templateContext"in t&&n(1,o=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&i&&(h=new Set),1&t.$$.dirty&&n(9,r=i.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,p=!1):(n(5,p=!0),s.logError(st(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){k||(k=!0,t.length&&(x?(b=x,n(7,w=t.find((t=>t.state_id===b))||null),w||s.logError(st(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,w=t[0]),b=w.state_id)))}(r)},[i,o,a,l,u,p,g,w,E,r,t=>E(t),t=>E(t),function(t){De[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const Oo={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:Bo}=Ze;function Ro(t,e,n){const r=t.slice();return r[48]=e[n],r}function Uo(t){let e,n;return e=new br({props:{cls:Fn("pager",Oo,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[Lo]},$$scope:{ctx:t}}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Fn("pager",Oo,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),33336&n[0]|1048576&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function Wo(t){var e;let n,r,i,o,a;return r=new Aa({props:{div:t[48].json,templateContext:t[48].templateContext,origJson:t[48].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=ee("div"),nn(r.$$.fragment),i=ie(),this.h()},l(t){n=he(t,"DIV",{class:!0});var e=ce(n);rn(r.$$.fragment,e),i=ge(e),e.forEach(Qt),this.h()},h(){le(n,"class",o=Oo.pager__item)},m(t,e){Zt(t,n,e),on(r,n,null),Yt(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[48].json),16&e[0]&&(i.templateContext=t[48].templateContext),16&e[0]&&(i.origJson=t[48].origJson),8&e[0]&&(i.layoutParams=null!==(n=t[3])&&void 0!==n&&n.fakeElement?{fakeElement:!0}:void 0),r.$set(i)},i(t){a||(Ge(r.$$.fragment,t),a=!0)},o(t){Ke(r.$$.fragment,t),a=!1},d(t){t&&Qt(n),an(r)}}}function Lo(t){let e,n,r,i,o,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=Wo(Ro(t,l,e));const c=t=>Ke(s[t],1,1,(()=>{s[t]=null}));return{c(){e=ee("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=he(t,"DIV",{class:!0,style:!0});var n=ce(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(Qt),this.h()},h(){le(e,"class",n=Oo.pager__items+" "+(t[15]?"divkit-aa145":"")),le(e,"style",r=wn(t[9]))},m(n,r){Zt(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[36](e),i=!0,o||(a=ae(e,"scroll",t[16]),o=!0)},p(t,o){if(24&o[0]){let n;for(l=t[4],n=0;n<l.length;n+=1){const r=Ro(t,l,n);s[n]?(s[n].p(r,o),Ge(s[n],1)):(s[n]=Wo(r),s[n].c(),Ge(s[n],1),s[n].m(e,null))}for(qe(),n=l.length;n<s.length;n+=1)c(n);He()}(!i||32768&o[0]&&n!==(n=Oo.pager__items+" "+(t[15]?"divkit-aa145":"")))&&le(e,"class",n),(!i||512&o[0]&&r!==(r=wn(t[9])))&&le(e,"style",r)},i(t){if(!i){for(let t=0;t<l.length;t+=1)Ge(s[t]);i=!0}},o(t){s=s.filter(Bo);for(let t=0;t<s.length;t+=1)Ke(s[t]);i=!1},d(n){n&&Qt(e),te(s,n),t[36](null),o=!1,a()}}}function qo(t){let e,n,r=!t[7]&&Uo(t);return{c(){r&&r.c(),e=oe()},l(t){r&&r.l(t),e=oe()},m(t,i){r&&r.m(t,i),Zt(t,e,i),n=!0},p(t,n){t[7]?r&&(qe(),Ke(r,1,1,(()=>{r=null})),He()):r?(r.p(t,n),128&n[0]&&Ge(r,1)):(r=Uo(t),r.c(),Ge(r,1),r.m(e.parentNode,e))},i(t){n||(Ge(r),n=!0)},o(t){Ke(r),n=!1},d(t){r&&r.d(t),t&&Qt(e)}}}function Ho(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_=xt,b=xt,w=xt,x=xt,k=xt,E=xt;var C,A,V,j,D,P,S;t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:N={}}=e,{templateContext:I}=e,{origJson:F}=e,{layoutParams:z}=e;const T=Ae($n),M=T.genId("pager");let J,O=!1,B=!1,R=0,U=0,W=!1,L="horizontal",q="",H="",G="";const K=Ri((function(){if(!O)return;const t=function(){const t=Array.from(J.children),e=J.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===L?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:R}();t!==R&&n(25,R=t)}),50);function X(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===L,i=J.children[t],o=r?"offsetLeft":"offsetTop",a=r?"left":"top";J.scroll({[a]:i[o],behavior:e}),n(25,R=t)}return N.id&&!(null==z?void 0:z.fakeElement)&&T.registerInstance(N.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');X(t)},setPreviousItem(t){let e=R-1;e<0&&(e="ring"===t?r.length-1:R),X(e)},setNextItem(t){let e=R+1;e>r.length-1&&(e="ring"===t?0:R),X(e)}}),ke((()=>{if(O=!0,Boolean(document.getElementById("".concat(M,"-tab-0")))){const t=[...J.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(M,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(M,"-tab-").concat(e))}})),Ee((()=>{O=!1,N.id&&!(null==z?void 0:z.fakeElement)&&T.unregisterInstance(N.id)})),t.$$set=t=>{"json"in t&&n(0,N=t.json),"templateContext"in t&&n(1,I=t.templateContext),"origJson"in t&&n(2,F=t.origJson),"layoutParams"in t&&n(3,z=t.layoutParams)},t.$$.update=()=>{if(131073&t.$$.dirty[0]&&((null===n(17,C=N.items)||void 0===C?void 0:C.length)&&Array.isArray(N.items)?n(24,B=!1):(n(24,B=!0),T.logError(st(new Error('Incorrect or empty "items" prop for div "pager"'))))),16777219&t.$$.dirty[0]&&n(4,r=(!B&&N.items||[]).map((t=>{let e=t,n=I;return({templateContext:n,json:e}=T.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(14,i=T.getDerivedFromVars(N.layout_mode)),b(),b=It(i,(t=>n(32,g=t)))),2&t.$$.dirty[1]&&(g?"percentage"!==g.type&&"fixed"!==g.type?(n(26,W=!0),T.logError(st(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(26,W=!1):(n(26,W=!0),T.logError(st(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(13,o=T.getDerivedFromVars(N.orientation)),k(),k=It(o,(t=>n(35,y=t)))),134217728&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(27,L=fi(y,L)),1&t.$$.dirty[0]&&(n(12,a=T.getDerivedFromVars(N.item_spacing)),x(),x=It(a,(t=>n(34,v=t)))),8&t.$$.dirty[1]){const t=null==v?void 0:v.value;t&&On(t)&&n(28,q=xn(t||0))}if(1&t.$$.dirty[0]&&(n(11,l=T.getDerivedFromVars(N.paddings)),w(),w=It(l,(t=>n(33,m=t)))),536870912&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(29,H=Bn(m,H)),1&t.$$.dirty[0]&&(n(10,s=T.getDerivedFromVars(N.restrict_parent_scroll)),E(),E=It(s,(t=>n(15,$=t)))),134217728&t.$$.dirty[0]&&n(31,c="horizontal"===L?"grid-auto-columns":"grid-auto-rows"),419168257&t.$$.dirty[0]|2&t.$$.dirty[1])if("fixed"===(null==g?void 0:g.type)){const t=kn("horizontal"===L?((null===n(18,A=N.paddings)||void 0===A?void 0:A.left)||0)+((null===n(19,V=N.paddings)||void 0===V?void 0:V.right)||0):((null===n(20,j=N.paddings)||void 0===j?void 0:j.top)||0)+((null===n(21,D=N.paddings)||void 0===D?void 0:D.bottom)||0)),e=null===n(22,P=g.neighbour_page_width)||void 0===P?void 0:P.value;n(30,G=e?"calc(100% + ".concat(t," - 2 * ").concat(kn(e)," - 2 * ").concat(q,")"):"100%")}else if("percentage"===(null==g?void 0:g.type)){const t=null===n(23,S=g.page_width)||void 0===S?void 0:S.value;n(30,G="".concat(Number(t),"%"))}1879048192&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(9,u={"grid-gap":q,padding:H,[c]:G}),134217728&t.$$.dirty[0]&&n(8,d={orientation:L}),83886080&t.$$.dirty[0]&&n(7,h=B||W),33554448&t.$$.dirty[0]&&function(t,e){const n=N.id;if(n){const o=new Map(f);r=p,f=o.set(n,{instId:M,size:t,currentItem:e,scrollToPagerItem:X}),i=f,r.set(i)}var r,i}(r.length,R),33554432&t.$$.dirty[0]&&function(t){var e;if(t===U)return;U=t;const n=T.getJsonWithVars(null===(e=r[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&T.execAnyActions(n)}(R)},n(6,p=T.getStore("pagers")),_(),_=It(p,(t=>n(39,f=t))),[N,I,F,z,r,J,p,h,d,u,s,l,a,o,i,$,K,C,A,V,j,D,P,S,B,R,W,L,q,H,G,c,g,m,v,y,function(t){De[t?"unshift":"push"]((()=>{J=t,n(5,J)}))}]}const Go={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_placement_stretch:"divkit-b6bd3"};function Ko(t,e,n){const r=t.slice();r[43]=e[n],r[46]=n;const i=r[46]===r[12].currentItem;return r[44]=i,r}function Xo(t){let e,n=Array(t[12].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=Yo(Ko(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=oe()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=oe()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);Zt(t,e,n)},p(t,i){if(25169920&i[0]){let o;for(n=Array(t[12].size),o=0;o<n.length;o+=1){const a=Ko(t,n,o);r[o]?r[o].p(a,i):(r[o]=Yo(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){te(r,t),t&&Qt(e)}}}function Yo(t){let e,n,r,i,o,a,l,s;function c(){return t[36](t[46])}return{c(){e=ee("div"),this.h()},l(t){e=he(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),ce(e).forEach(Qt),this.h()},h(){le(e,"class",n=Fn("indicator__item",Go,{active:t[44]})+" divkit-bd259"),le(e,"role","tab"),le(e,"id",r=t[12].instId+"-tab-"+t[46]),le(e,"aria-controls",i=t[12].instId+"-panel-"+t[46]),le(e,"aria-selected",o=t[44]?"true":"false"),le(e,"tabindex",a=t[44]?0:-1)},m(n,r){Zt(n,e,r),l||(s=[ae(e,"click",c),ae(e,"keydown",t[24])],l=!0)},p(l,s){t=l,4096&s[0]&&n!==(n=Fn("indicator__item",Go,{active:t[44]})+" divkit-bd259")&&le(e,"class",n),4096&s[0]&&r!==(r=t[12].instId+"-tab-"+t[46])&&le(e,"id",r),4096&s[0]&&i!==(i=t[12].instId+"-panel-"+t[46])&&le(e,"aria-controls",i),4096&s[0]&&o!==(o=t[44]?"true":"false")&&le(e,"aria-selected",o),4096&s[0]&&a!==(a=t[44]?0:-1)&&le(e,"tabindex",a)},d(t){t&&Qt(e),l=!1,Vt(s)}}}function Zo(t){let e,n,r,i,o=t[12]&&Xo(t);return{c(){e=ee("div"),n=ee("div"),o&&o.c(),this.h()},l(t){e=he(t,"DIV",{class:!0});var r=ce(e);n=he(r,"DIV",{class:!0,role:!0});var i=ce(n);o&&o.l(i),i.forEach(Qt),r.forEach(Qt),this.h()},h(){le(n,"class",r=Go.indicator__items),le(n,"role","tablist"),ve(n,"margin","default"===t[6]?"0 ".concat(xn(Math.max(0,t[4].width-t[5].width)/2)):"",!1),ve(n,"--divkit-indicator-inactive-width",xn(t[5].width),!1),ve(n,"--divkit-indicator-inactive-height",xn(t[5].height),!1),ve(n,"--divkit-indicator-inactive-border-radius",xn(t[5].borderRadius),!1),ve(n,"--divkit-indicator-inactive-background",t[5].background||"",!1),ve(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||"",!1),ve(n,"--divkit-indicator-active-width",xn(t[4].width),!1),ve(n,"--divkit-indicator-active-height",xn(t[4].height),!1),ve(n,"--divkit-indicator-active-border-radius",xn(t[4].borderRadius),!1),ve(n,"--divkit-indicator-active-background",t[4].background||"",!1),ve(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||"",!1),ve(n,"--divkit-indicator-active-scale",t[4].width/t[5].width,!1),ve(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(xn((t[7]-t[5].width)/2)):"",!1),ve(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?xn(t[9]):"",!1),ve(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:"",!1),ve(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?xn((t[8]-1)*t[9]):"",!1),le(e,"class",i=Go.indicator__scroller)},m(r,i){Zt(r,e,i),Yt(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=Xo(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&ve(n,"margin","default"===t[6]?"0 ".concat(xn(Math.max(0,t[4].width-t[5].width)/2)):"",!1),32&e[0]&&ve(n,"--divkit-indicator-inactive-width",xn(t[5].width),!1),32&e[0]&&ve(n,"--divkit-indicator-inactive-height",xn(t[5].height),!1),32&e[0]&&ve(n,"--divkit-indicator-inactive-border-radius",xn(t[5].borderRadius),!1),32&e[0]&&ve(n,"--divkit-indicator-inactive-background",t[5].background||"",!1),32&e[0]&&ve(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||"",!1),16&e[0]&&ve(n,"--divkit-indicator-active-width",xn(t[4].width),!1),16&e[0]&&ve(n,"--divkit-indicator-active-height",xn(t[4].height),!1),16&e[0]&&ve(n,"--divkit-indicator-active-border-radius",xn(t[4].borderRadius),!1),16&e[0]&&ve(n,"--divkit-indicator-active-background",t[4].background||"",!1),16&e[0]&&ve(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||"",!1),48&e[0]&&ve(n,"--divkit-indicator-active-scale",t[4].width/t[5].width,!1),224&e[0]&&ve(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(xn((t[7]-t[5].width)/2)):"",!1),576&e[0]&&ve(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?xn(t[9]):"",!1),320&e[0]&&ve(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:"",!1),832&e[0]&&ve(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?xn((t[8]-1)*t[9]):"",!1)},d(n){n&&Qt(e),o&&o.d(),t[37](null),t[38](null)}}}function Qo(t){let e,n;return e=new br({props:{cls:Fn("indicator",Go,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Zo]},$$scope:{ctx:t}}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Fn("indicator",Go,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8176&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function ta(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w=xt,x=xt,E=xt,C=xt,A=xt,V=xt,j=xt,D=xt,P=xt;var S,N;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>P()));let{json:I={}}=e,{templateContext:F}=e,{origJson:z}=e,{layoutParams:T}=e;const M=["rounded_rectangle","circle"],J=Ae($n);let O,B,R,U={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},W={width:10,height:10,borderRadius:5,background:"#33919cb5"},L="default",q=15,H=10,G=5;function K(t){t!==R.currentItem&&R.scrollToPagerItem(t)}async function X(t){R.scrollToPagerItem(t),await ze();const e=B.querySelector(".".concat(Go.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,I=t.json),"templateContext"in t&&n(1,F=t.templateContext),"origJson"in t&&n(2,z=t.origJson),"layoutParams"in t&&n(3,T=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(22,r=J.getDerivedFromVars(I.shape)),V(),V=It(r,(t=>n(32,y=t)))),1&t.$$.dirty[0]&&(n(21,i=J.getDerivedFromVars(I.active_item_color)),C(),C=It(i,(t=>n(30,m=t)))),1&t.$$.dirty[0]&&(n(20,o=J.getDerivedFromVars(I.inactive_item_color)),A(),A=It(o,(t=>n(31,v=t)))),1&t.$$.dirty[0]&&(n(19,a=J.getDerivedFromVars(I.active_item_size)),j(),j=It(a,(t=>n(33,$=t)))),1&t.$$.dirty[0]&&(n(18,l=J.getDerivedFromVars(I.active_shape)),P(),P=It(l,(t=>n(35,b=t)))),1&t.$$.dirty[0]&&(n(17,s=J.getDerivedFromVars(I.inactive_shape)),D(),D=It(s,(t=>n(34,_=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(b&&n(4,U=Hr({type:"shape_drawable",shape:b},M,U)),_&&n(5,W=Hr({type:"shape_drawable",shape:_},M,W)),!b&&!_&&y)){const t=xr($,1.3);n(5,W=Hr({type:"shape_drawable",shape:y,color:W.background},M,W)),n(5,W.background=k(v,1,W.background),W),n(4,U=Object.assign(Object.assign({},W),{width:W.width*t,height:W.height*t,borderRadius:W.borderRadius*t,background:U.background})),n(4,U.background=k(m,1,U.background),U)}if(1&t.$$.dirty[0]&&(n(16,c=J.getDerivedFromVars(I.space_between_centers)),x(),x=It(c,(t=>n(28,f=t)))),1&t.$$.dirty[0]&&(n(15,u=J.getDerivedFromVars(I.items_placement)),E(),E=It(u,(t=>n(29,g=t)))),905970624&t.$$.dirty[0])if(!g||"default"!==g.type&&"stretch"!==g.type)n(6,L="default"),f&&n(7,q=Rn(f.value,q));else if(n(6,L=g.type),"default"===L)n(7,q=Rn(null===n(25,S=g.space_between_centers)||void 0===S?void 0:S.value,q));else if("stretch"===L){const t=g;n(8,H=xr(t.max_visible_items,H)),n(9,G=Rn(null===n(26,N=t.item_spacing)||void 0===N?void 0:N.value,G))}134217728&t.$$.dirty[0]&&async function(t){if(I.pager_id&&t.has(I.pager_id)&&(n(12,R=t.get(I.pager_id)),await ze(),B)){const t=B.children[R.currentItem].offsetLeft;O.scroll({left:t-O.clientWidth/2,behavior:"smooth"})}}(p),64&t.$$.dirty[0]&&n(13,h={placement:L})},n(14,d=J.getStore("pagers")),w(),w=It(d,(t=>n(27,p=t))),[I,F,z,T,U,W,L,q,H,G,O,B,R,h,d,u,c,s,l,a,o,i,r,K,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=R;if(37===t.which)X(n-1<0?n:n-1);else if(39===t.which)X(n+1>=e?n:n+1);else if(36===t.which)X(0);else{if(35!==t.which)return;X(e-1)}t.preventDefault()},S,N,p,f,g,m,v,y,$,_,b,t=>K(t),function(t){De[t?"unshift":"push"]((()=>{B=t,n(11,B)}))},function(t){De[t?"unshift":"push"]((()=>{O=t,n(10,O)}))}]}const ea={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function na(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&k(t.text_color)||"#000",i=kr(t.font_weight);if(or(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:xn(t.font_size),fontWeight:i,textColor:r};return"number"==typeof(null==n||null===(o=n.x)||void 0===o?void 0:o.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function ra(t,e,n){return Math.max(e,Math.min(n,Number(t)))}function ia(t,e,n){const r=t.slice();return r[78]=e[n],r}function oa(t,e,n){const r=t.slice();return r[78]=e[n],r}function aa(t){let e,n;return e=new br({props:{cls:Fn("slider",ea,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[da]},$$scope:{ctx:t}}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=Fn("slider",ea,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function la(t){let e,n;return{c(){e=ee("div"),this.h()},l(t){e=he(t,"DIV",{class:!0}),ce(e).forEach(Qt),this.h()},h(){le(e,"class",n=ea.slider__tick+" "+ea.slider__tick_active),ve(e,"--divkit-slider-tick",t[78],!1)},m(t,n){Zt(t,e,n)},p(t,n){131072&n[0]&&ve(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&Qt(e)}}}function sa(t){let e,n;return{c(){e=ee("div"),this.h()},l(t){e=he(t,"DIV",{class:!0}),ce(e).forEach(Qt),this.h()},h(){le(e,"class",n=ea.slider__tick+" "+ea.slider__tick_inactive),ve(e,"--divkit-slider-tick",t[78],!1)},m(t,n){Zt(t,e,n)},p(t,n){262144&n[0]&&ve(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&Qt(e)}}}function ca(t){let e,n,r,i,o;return{c(){e=ee("div"),n=ee("div"),r=re(t[6]),this.h()},l(i){e=he(i,"DIV",{class:!0});var o=ce(e);n=he(o,"DIV",{class:!0});var a=ce(n);r=fe(a,t[6]),a.forEach(Qt),o.forEach(Qt),this.h()},h(){var r,a,l;le(n,"class",i=ea["slider__thumb-text-inner"]),ve(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),ve(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),ve(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),le(e,"class",o=ea["slider__thumb-text"])},m(t,i){Zt(t,e,i),Yt(e,n),Yt(n,r)},p(t,e){var i,o,a;64&e[0]&&me(r,t[6]),4096&e[0]&&ve(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em",!1),4096&e[0]&&ve(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||"",!1),4096&e[0]&&ve(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Qt(e)}}}function ua(t){let e,n,r,i,o;return{c(){e=ee("div"),n=ee("div"),r=re(t[7]),this.h()},l(i){e=he(i,"DIV",{class:!0});var o=ce(e);n=he(o,"DIV",{class:!0});var a=ce(n);r=fe(a,t[7]),a.forEach(Qt),o.forEach(Qt),this.h()},h(){var r,a,l;le(n,"class",i=ea["slider__thumb-text-inner"]),ve(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),ve(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),ve(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),le(e,"class",o=ea["slider__thumb-text"]+" "+ea["slider__thumb-text_secondary"])},m(t,i){Zt(t,e,i),Yt(e,n),Yt(n,r)},p(t,e){var i,o,a;128&e[0]&&me(r,t[7]),8192&e[0]&&ve(n,"font-size",(null===(i=t[13])||void 0===i?void 0:i.fontSize)||"1em",!1),8192&e[0]&&ve(n,"font-weight",(null===(o=t[13])||void 0===o?void 0:o.fontWeight)||"",!1),8192&e[0]&&ve(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&Qt(e)}}}function da(t){let e,n,r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=t[17],k=[];for(let e=0;e<x.length;e+=1)k[e]=la(oa(t,x,e));let E=t[18],C=[];for(let e=0;e<E.length;e+=1)C[e]=sa(ia(t,E,e));let A=t[12]&&ca(t),V=t[37]&&function(t){let e,n,r=t[13]&&ua(t);return{c(){e=ee("div"),r&&r.c(),this.h()},l(t){e=he(t,"DIV",{class:!0});var n=ce(e);r&&r.l(n),n.forEach(Qt),this.h()},h(){le(e,"class",n=ea.slider__thumb+" "+ea.slider__thumb_secondary),ve(e,"border-radius",xn(t[9].borderRadius),!1),ve(e,"background",t[9].background,!1),ve(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){Zt(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=ua(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&ve(e,"border-radius",xn(t[9].borderRadius),!1),512&n[0]&&ve(e,"background",t[9].background,!1),512&n[0]&&ve(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&Qt(e),r&&r.d()}}}(t),j=t[37]&&function(t){let e,n,r,i,o;return{c(){e=ee("input"),this.h()},l(t){e=he(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){le(e,"type","range"),le(e,"class",n=t[16]?ea.slider__input:"".concat(ea.slider__input," ").concat(ea.slider__input_secondary)),le(e,"min",t[4]),le(e,"max",t[5]),le(e,"step","1"),e.value=r=t[16]?t[6]:t[7],le(e,"aria-label",t[20])},m(n,r){Zt(n,e,r),i||(o=[ae(e,"input",t[68]),ae(e,"mousedown",t[37]?t[40]:null),ae(e,"touchstart",t[37]?t[40]:null)],i=!0)},p(t,i){65536&i[0]&&n!==(n=t[16]?ea.slider__input:"".concat(ea.slider__input," ").concat(ea.slider__input_secondary))&&le(e,"class",n),16&i[0]&&le(e,"min",t[4]),32&i[0]&&le(e,"max",t[5]),65728&i[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&i[0]&&le(e,"aria-label",t[20])},d(t){t&&Qt(e),i=!1,Vt(o)}}}(t);return{c(){e=ee("div"),n=ee("div"),r=ee("div"),o=ie(),a=ee("div"),s=ie();for(let t=0;t<k.length;t+=1)k[t].c();c=ie();for(let t=0;t<C.length;t+=1)C[t].c();u=ie(),d=ee("div"),A&&A.c(),p=ie(),V&&V.c(),f=ie(),g=ee("input"),y=ie(),j&&j.c(),this.h()},l(t){e=he(t,"DIV",{class:!0});var i=ce(e);n=he(i,"DIV",{class:!0});var l=ce(n);r=he(l,"DIV",{class:!0}),ce(r).forEach(Qt),o=ge(l),a=he(l,"DIV",{class:!0}),ce(a).forEach(Qt),s=ge(l);for(let t=0;t<k.length;t+=1)k[t].l(l);c=ge(l);for(let t=0;t<C.length;t+=1)C[t].l(l);u=ge(l),d=he(l,"DIV",{class:!0});var h=ce(d);A&&A.l(h),h.forEach(Qt),p=ge(l),V&&V.l(l),f=ge(l),g=he(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=ge(l),j&&j.l(l),l.forEach(Qt),i.forEach(Qt),this.h()},h(){le(r,"class",i=ea.slider__track),ve(r,"height",xn(t[10].height),!1),ve(r,"border-radius",xn(t[10].borderRadius),!1),ve(r,"background",t[10].background,!1),ve(r,"box-shadow",t[10].boxShadow||"",!1),le(a,"class",l=ea["slider__active-track"]),ve(a,"left",(100*t[23]).toFixed(2)+"%",!1),ve(a,"width",(100*t[24]).toFixed(2)+"%",!1),ve(a,"height",xn(t[11].height),!1),ve(a,"border-radius",xn(t[11].borderRadius),!1),ve(a,"background",t[11].background,!1),ve(a,"box-shadow",t[11].boxShadow||"",!1),le(d,"class",h=ea.slider__thumb),ve(d,"border-radius",xn(t[8].borderRadius),!1),ve(d,"background",t[8].background,!1),ve(d,"box-shadow",t[8].boxShadow||"",!1),le(g,"type","range"),le(g,"class",m=t[16]?"".concat(ea.slider__input," ").concat(ea.slider__input_secondary):ea.slider__input),le(g,"min",t[4]),le(g,"max",t[5]),le(g,"step","1"),g.value=v=t[16]?t[7]:t[6],le(g,"aria-label",t[19]),le(n,"class",$=ea["slider__tracks-inner"]),le(e,"class",_=ea["slider__tracks-wrapper"])},m(i,l){Zt(i,e,l),Yt(e,n),Yt(n,r),Yt(n,o),Yt(n,a),Yt(n,s);for(let t=0;t<k.length;t+=1)k[t].m(n,null);Yt(n,c);for(let t=0;t<C.length;t+=1)C[t].m(n,null);Yt(n,u),Yt(n,d),A&&A.m(d,null),Yt(n,p),V&&V.m(n,null),Yt(n,f),Yt(n,g),Yt(n,y),j&&j.m(n,null),t[69](n),b||(w=ae(g,"input",t[67]),b=!0)},p(t,e){if(1024&e[0]&&ve(r,"height",xn(t[10].height),!1),1024&e[0]&&ve(r,"border-radius",xn(t[10].borderRadius),!1),1024&e[0]&&ve(r,"background",t[10].background,!1),1024&e[0]&&ve(r,"box-shadow",t[10].boxShadow||"",!1),8388608&e[0]&&ve(a,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&e[0]&&ve(a,"width",(100*t[24]).toFixed(2)+"%",!1),2048&e[0]&&ve(a,"height",xn(t[11].height),!1),2048&e[0]&&ve(a,"border-radius",xn(t[11].borderRadius),!1),2048&e[0]&&ve(a,"background",t[11].background,!1),2048&e[0]&&ve(a,"box-shadow",t[11].boxShadow||"",!1),131072&e[0]){let r;for(x=t[17],r=0;r<x.length;r+=1){const i=oa(t,x,r);k[r]?k[r].p(i,e):(k[r]=la(i),k[r].c(),k[r].m(n,c))}for(;r<k.length;r+=1)k[r].d(1);k.length=x.length}if(262144&e[0]){let r;for(E=t[18],r=0;r<E.length;r+=1){const i=ia(t,E,r);C[r]?C[r].p(i,e):(C[r]=sa(i),C[r].c(),C[r].m(n,u))}for(;r<C.length;r+=1)C[r].d(1);C.length=E.length}t[12]?A?A.p(t,e):(A=ca(t),A.c(),A.m(d,null)):A&&(A.d(1),A=null),256&e[0]&&ve(d,"border-radius",xn(t[8].borderRadius),!1),256&e[0]&&ve(d,"background",t[8].background,!1),256&e[0]&&ve(d,"box-shadow",t[8].boxShadow||"",!1),t[37]&&V.p(t,e),65536&e[0]&&m!==(m=t[16]?"".concat(ea.slider__input," ").concat(ea.slider__input_secondary):ea.slider__input)&&le(g,"class",m),16&e[0]&&le(g,"min",t[4]),32&e[0]&&le(g,"max",t[5]),65728&e[0]&&v!==(v=t[16]?t[7]:t[6])&&(g.value=v),524288&e[0]&&le(g,"aria-label",t[19]),t[37]&&j.p(t,e)},d(n){n&&Qt(e),te(k,n),te(C,n),A&&A.d(),V&&V.d(),j&&j.d(),t[69](null),b=!1,w()}}}function ha(t){let e,n,r,i,o=!t[14]&&aa(t);return{c(){o&&o.c(),e=oe()},l(t){o&&o.l(t),e=oe()},m(a,l){o&&o.m(a,l),Zt(a,e,l),n=!0,r||(i=ae(window,"resize",t[42]),r=!0)},p(t,n){t[14]?o&&(qe(),Ke(o,1,1,(()=>{o=null})),He()):o?(o.p(t,n),16384&n[0]&&Ge(o,1)):(o=aa(t),o.c(),Ge(o,1),o.m(e.parentNode,e))},i(t){n||(Ge(o),n=!0)},o(t){Ke(o),n=!1},d(t){o&&o.d(t),t&&Qt(e),r=!1,i()}}}function pa(t,e,n,r,i){let o=[];if(i)for(let i=t;i<e;++i)o.push((i-n)/(r-n));else{for(let e=n;e<t;++e)o.push((e-n)/(r-n));for(let t=e;t<r+1;++t)o.push((t-n)/(r-n))}return o}function fa(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,j,D,P,S,N,I,F,z,T=xt,M=xt,J=xt,O=xt,B=xt,R=xt,U=xt,W=xt,L=xt,q=xt,H=xt,G=xt;var K,X,Y,Z;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>G()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt={width:10,height:10,borderRadius:5,background:"#000"},it=["rounded_rectangle","circle"],ot=["rounded_rectangle"],at=Ae($n),lt=Ae(Zn);let ct,ut=!1,dt=0,ht=100;const pt=at.getJsonWithVars(Q.thumb_value_variable),ft=at.getJsonWithVars(Q.thumb_secondary_value_variable);let gt=pt&&at.getVariable(pt,"integer")||fn("temp","integer",0);Ft(t,gt,(t=>n(64,I=t)));let mt=ft&&at.getVariable(ft,"integer")||fn("temp","integer",0);Ft(t,mt,(t=>n(63,N=t)));let vt,yt,$t,_t=ra(I||0,dt,ht),bt=ra(N||0,dt,ht),wt=rt,kt=wt,Et=rt,Ct=rt,At=null,Vt=null,jt=$t,Dt="",Pt="",St=!1;function Nt(t,e){const r=Number(t.target.value);ut===("first"===e)?(n(7,bt=r),mt.setValue(r)):(n(6,_t=r),gt.setValue(r))}let zt=!1;function Tt(){if(!ct)return;const t=ht-dt,e=(null==At?void 0:At.width)||0,n=(null==Vt?void 0:Vt.width)||0;Math.max(e,n)*t>=(null==ct?void 0:ct.clientWidth)?zt||(at.logError(st(new Error("Slider ticks overlap each other"),{level:"warn"})),zt=!0):zt=!1}const Mt=Ri(Tt,50);return ke((()=>{Tt()})),t.$$set=t=>{"json"in t&&n(0,Q=t.json),"templateContext"in t&&n(1,tt=t.templateContext),"origJson"in t&&n(2,et=t.origJson),"layoutParams"in t&&n(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(36,r=at.getDerivedFromVars(Q.min_value)),G(),G=It(r,(t=>n(66,z=t)))),1&t.$$.dirty[0]&&(n(35,i=at.getDerivedFromVars(Q.max_value)),H(),H=It(i,(t=>n(65,F=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(n(4,dt=Hn(z,dt)),n(5,ht=Hn(F,ht)),Tt()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=ra(I||0,dt,ht);t!==_t&&n(6,_t=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=ra(N||0,dt,ht);t!==bt&&n(7,bt=t)}if(1&t.$$.dirty[0]&&(n(34,o=at.getDerivedFromVars(Q.thumb_style)),q(),q=It(o,(t=>n(62,S=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(8,wt=Hr(S,it,wt)),1&t.$$.dirty[0]&&(n(33,a=at.getDerivedFromVars(Q.thumb_secondary_style)),L(),L=It(a,(t=>n(61,P=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&n(9,kt=Hr(P,it,wt)),1&t.$$.dirty[0]&&(n(32,l=at.getDerivedFromVars(Q.track_inactive_style)),W(),W=It(l,(t=>n(60,D=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&n(10,Et=Hr(D,ot,Et)),1&t.$$.dirty[0]&&(n(31,s=at.getDerivedFromVars(Q.track_active_style)),U(),U=It(s,(t=>n(59,j=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(11,Ct=Hr(j,ot,Ct)),1&t.$$.dirty[0]&&(n(30,c=at.getDerivedFromVars(Q.tick_mark_active_style)),R(),R=It(c,(t=>n(58,V=t)))),134217728&t.$$.dirty[1]){let t=Hr(V,it,rt);t!==rt&&n(47,At=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(At?(n(17,vt=ft?pa(Math.min(_t,bt),Math.max(_t,bt)+1,dt,ht,!0):pa(dt,_t,dt,ht,!0)),Tt()):n(17,vt=[])),1&t.$$.dirty[0]&&(n(29,u=at.getDerivedFromVars(Q.tick_mark_inactive_style)),B(),B=It(u,(t=>n(57,A=t)))),67108864&t.$$.dirty[1]){let t=Hr(A,it,rt);t!==rt&&n(48,Vt=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(Vt?(n(18,yt=ft?pa(Math.min(_t,bt),Math.max(_t,bt)+1,dt,ht,!1):pa(_t+1,ht+1,dt,ht,!0)),Tt()):n(18,yt=[])),1&t.$$.dirty[0]&&(n(28,d=at.getDerivedFromVars(Q.thumb_text_style)),O(),O=It(d,(t=>n(56,C=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(12,$t=na(C,$t)),1&t.$$.dirty[0]&&(n(27,h=at.getDerivedFromVars(Q.thumb_secondary_text_style)),J(),J=It(h,(t=>n(55,E=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&n(13,jt=na(E,$t)),1&t.$$.dirty[0]&&(n(26,p=at.getDerivedFromVars(Q.accessibility)),M(),M=It(p,(t=>n(54,k=t)))),8388608&t.$$.dirty[1]&&((null==k?void 0:k.description)?n(19,Dt=k.description):at.logError(st(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,f=at.getDerivedFromVars(Q.secondary_value_accessibility)),T(),T=It(f,(t=>n(53,x=t)))),4194304&t.$$.dirty[1]&&((null==x?void 0:x.description)?n(20,Pt=x.description):ft&&at.logError(st(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;lt.hasAction()?(at.logError(st(new Error('Cannot show "slider" inside component with action'))),t=!0):wt===rt?(at.logError(st(new Error('Missing "thumb_style" in slider'))),t=!0):Ct===rt?(at.logError(st(new Error('Missing "track_active_style" in slider'))),t=!0):Et===rt&&(at.logError(st(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==St&&n(14,St=t)}768&t.$$.dirty[0]&&n(52,g=xn(Math.max(...[wt.width,kt.width,0].filter(On)))),768&t.$$.dirty[0]&&n(51,m=xn(Math.max(...[wt.height,kt.height,0].filter(On)))),112&t.$$.dirty[0]&&n(50,v=(_t-dt)/(ht-dt)),176&t.$$.dirty[0]&&n(49,y=ft?(bt-dt)/(ht-dt):void 0),786432&t.$$.dirty[1]&&n(24,$=void 0!==y?Math.abs(y-v):v),786432&t.$$.dirty[1]&&n(23,_=void 0!==y?Math.min(y,v):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&n(22,b={"--divkit-slider-thumb-width":xn(wt.width),"--divkit-slider-thumb-height":xn(wt.height),"--divkit-slider-thumb-secondary-width":xn(kt.width),"--divkit-slider-thumb-secondary-height":xn(kt.height),"--divkit-slider-text-offset-x":(null===n(43,K=null==$t?void 0:$t.offset)||void 0===K?void 0:K.x)?kn($t.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(44,X=null==$t?void 0:$t.offset)||void 0===X?void 0:X.y)?kn($t.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(45,Y=null==jt?void 0:jt.offset)||void 0===Y?void 0:Y.x)?kn(jt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(46,Z=null==jt?void 0:jt.offset)||void 0===Z?void 0:Z.y)?kn(jt.offset.y):void 0,"--divkit-slider-tick-active-width":At?xn(At.width):void 0,"--divkit-slider-tick-active-height":At?xn(At.height):void 0,"--divkit-slider-tick-active-border-radius":At?xn(At.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==At?void 0:At.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==At?void 0:At.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Vt?xn(Vt.width):void 0,"--divkit-slider-tick-inactive-height":Vt?xn(Vt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Vt?xn(Vt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Vt?void 0:Vt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Vt?void 0:Vt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":g,"--divkit-slider-max-thumb-height":m,"--divkit-slider-track-part":v,"--divkit-slider-track-secondary-part":y})},n(21,w={}),[Q,tt,et,nt,dt,ht,_t,bt,wt,kt,Et,Ct,$t,jt,St,ct,ut,vt,yt,Dt,Pt,w,b,_,$,f,p,h,d,u,c,s,l,a,o,i,r,ft,gt,mt,function(t){var e,r;const i="pageX"in t?t.pageX:null===(r=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===r?void 0:r.pageX;if(void 0===i)return;const o=ct.getBoundingClientRect(),a=(i-o.left)/o.width,l=(ht-dt)*a,s=Math.round(ra(l,dt,ht));n(16,ut=s<(_t+bt)/2==_t<bt)},Nt,Mt,K,X,Y,Z,At,Vt,y,v,m,g,x,k,E,C,A,V,j,D,P,S,N,I,F,z,t=>Nt(t,"first"),t=>Nt(t,"second"),function(t){De[t?"unshift":"push"]((()=>{ct=t,n(15,ct)}))}]}const ga={input:"divkit-c3a4c",input__wrapper:"divkit-ef7eb",input__holder:"divkit-bb3da",input_multiline:"divkit-e48a3",input__input:"divkit-f11e0","input_highlight-color":"divkit-cc00f","input_vertical-overflow":"divkit-b7075"};function ma(t){let e,n;return e=new br({props:{cls:Fn("input",ga,t[12]),style:t[11],customDescription:!0,customActions:"input",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[_a]},$$scope:{ctx:t}}}),{c(){nn(e.$$.fragment)},l(t){rn(e.$$.fragment,t)},m(t,r){on(e,t,r),n=!0},p(t,n){const r={};4096&n[0]&&(r.cls=Fn("input",ga,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||(Ge(e.$$.fragment,t),n=!0)},o(t){Ke(e.$$.fragment,t),n=!1},d(t){an(e,t)}}}function va(t){let e;return{c(){e=re("")},l(t){e=fe(t,"")},m(t,n){Zt(t,e,n)},d(t){t&&Qt(e)}}}function ya(t){let e,n,r,i;return{c(){e=ee("input"),this.h()},l(t){e=he(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),this.h()},h(){le(e,"type",t[9]),le(e,"class",n=ga.input__input),le(e,"autocomplete","off"),le(e,"autocapitalize","off"),le(e,"aria-label",t[10]),le(e,"placeholder",t[15]),e.value=t[8]},m(n,o){Zt(n,e,o),t[57](e),r||(i=[ae(e,"input",t[29]),ae(e,"mousedown",(function(){jt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),ae(e,"click",(function(){jt(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]&&le(e,"type",t[9]),1024&r[0]&&le(e,"aria-label",t[10]),32768&r[0]&&le(e,"placeholder",t[15]),256&r[0]&&e.value!==t[8]&&(e.value=t[8])},d(n){n&&Qt(e),t[57](null),r=!1,Vt(i)}}}function $a(t){let e,n,r,i;return{c(){e=ee("textarea"),this.h()},l(t){e=he(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,placeholder:!0}),ce(e).forEach(Qt),this.h()},h(){le(e,"class",n=ga.input__input),le(e,"autocomplete","off"),le(e,"autocapitalize","off"),le(e,"aria-label",t[10]),le(e,"placeholder",t[15]),e.value=t[8]},m(n,o){Zt(n,e,o),t[56](e),r||(i=[ae(e,"input",t[29]),ae(e,"mousedown",(function(){jt(t[16]?t[30]:void 0)&&(t[16]?t[30]:void 0).apply(this,arguments)})),ae(e,"click",(function(){jt(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]&&le(e,"aria-label",t[10]),32768&r[0]&&le(e,"placeholder",t[15]),256&r[0]&&(e.value=t[8])},d(n){n&&Qt(e),t[56](null),r=!1,Vt(i)}}}function _a(t){let e,n,r,i,o,a,l=t[8].endsWith("\n")||!t[8],s=l&&va();function c(t,e){return t[4]?$a:ya}let u=c(t),d=u(t);return{c(){e=ee("span"),n=ee("span"),r=re(t[8]),s&&s.c(),o=ie(),d.c(),this.h()},l(i){e=he(i,"SPAN",{class:!0});var a=ce(e);n=he(a,"SPAN",{class:!0,"aria-hidden":!0});var l=ce(n);r=fe(l,t[8]),s&&s.l(l),l.forEach(Qt),o=ge(a),d.l(a),a.forEach(Qt),this.h()},h(){le(n,"class",i=ga.input__holder),le(n,"aria-hidden","true"),le(e,"class",a=ga.input__wrapper)},m(i,a){Zt(i,e,a),Yt(e,n),Yt(n,r),s&&s.m(n,null),t[55](n),Yt(e,o),d.m(e,null)},p(t,i){256&i[0]&&me(r,t[8]),256&i[0]&&(l=t[8].endsWith("\n")||!t[8]),l?s||(s=va(),s.c(),s.m(n,null)):s&&(s.d(1),s=null),u===(u=c(t))&&d?d.p(t,i):(d.d(1),d=u(t),d&&(d.c(),d.m(e,null)))},d(n){n&&Qt(e),s&&s.d(),t[55](null),d.d()}}}function ba(t){let e,n,r=!t[7]&&ma(t);return{c(){r&&r.c(),e=oe()},l(t){r&&r.l(t),e=oe()},m(t,i){r&&r.m(t,i),Zt(t,e,i),n=!0},p(t,n){t[7]?r&&(qe(),Ke(r,1,1,(()=>{r=null})),He()):r?(r.p(t,n),128&n[0]&&Ge(r,1)):(r=ma(t),r.c(),Ge(r,1),r.m(e.parentNode,e))},i(t){n||(Ge(r),n=!0)},o(t){Ke(r),n=!1},d(t){r&&r.d(t),t&&Qt(e)}}}function wa(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=xt,E=xt;t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>E()));let{json:C={}}=e,{templateContext:A}=e,{origJson:V}=e,{layoutParams:j}=e;const D=Ae($n);let P,S,N=!1,I=!1;const F=D.getJsonWithVars(C.text_variable);let z=!1;F||(z=!0,D.logError(st(new Error('Missing "text_variable" in "input"'))));let T=F&&D.getVariable(F,"string")||fn("temp","string","");Ft(t,T,(t=>n(54,b=t)));let M="";const J=D.getDerivedFromVars(C.hint_text);Ft(t,J,(t=>n(53,_=t)));const O=D.getDerivedFromVars(C.hint_color);Ft(t,O,(t=>n(52,$=t)));let B="";const R=D.getDerivedFromVars(C.font_size);Ft(t,R,(t=>n(51,y=t)));let U=12;const W=D.getDerivedFromVars(C.font_weight);let L;Ft(t,W,(t=>n(50,v=t)));const q=D.getDerivedFromVars(C.line_height);let H;Ft(t,q,(t=>n(49,m=t)));const G=D.getDerivedFromVars(C.letter_spacing);Ft(t,G,(t=>n(48,g=t)));let K="";const X=D.getDerivedFromVars(C.text_color);Ft(t,X,(t=>n(47,f=t)));let Y="#000";const Z=D.getDerivedFromVars(C.highlight_color);Ft(t,Z,(t=>n(46,p=t)));let Q="";const tt=D.getDerivedFromVars(C.keyboard_type);Ft(t,tt,(t=>n(45,h=t)));const et={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let nt="multi_line_text",rt="text";const it=D.getDerivedFromVars(C.max_visible_lines);Ft(t,it,(t=>n(44,d=t)));let ot="",at="";const lt=D.getDerivedFromVars(C.select_all_on_focus);function ct(){n(32,I=S.scrollHeight>S.offsetHeight)}return Ft(t,lt,(t=>n(16,w=t))),ke((()=>{ct()})),t.$$set=t=>{"json"in t&&n(0,C=t.json),"templateContext"in t&&n(1,A=t.templateContext),"origJson"in t&&n(2,V=t.origJson),"layoutParams"in t&&n(3,j=t.layoutParams)},t.$$.update=()=>{if(8388608&t.$$.dirty[1]&&n(8,M=b),4194304&t.$$.dirty[1]&&n(15,r=_),2097156&t.$$.dirty[1]&&n(33,B=k($,1,B)),1048584&t.$$.dirty[1]&&n(34,U=xr(y,U)),524304&t.$$.dirty[1]&&n(35,L=Er(v,L)),262152&t.$$.dirty[1]){const t=m;or(t)&&n(36,H=t/U)}131080&t.$$.dirty[1]&&Jn(g)&&n(37,K=xn(g/U*10)),65664&t.$$.dirty[1]&&n(38,Y=k(f,1,Y)),33024&t.$$.dirty[1]&&n(39,Q=k(p,1,Q)),16384&t.$$.dirty[1]&&h&&h in et&&(n(9,rt=et[h]),n(40,nt=h)),512&t.$$.dirty[1]&&n(4,i="multi_line_text"===nt),1&t.$$.dirty[0]&&(n(14,o=D.getDerivedFromVars(C.paddings)),E(),E=It(o,(t=>n(43,u=t)))),12320&t.$$.dirty[1]&&or(d)&&n(41,ot="calc(".concat(d*(H||1.25)+"em"," + ").concat(kn(Rn(null==u?void 0:u.top,0)+Rn(null==u?void 0:u.bottom,0)),")")),1&t.$$.dirty[0]&&(n(13,a=D.getDerivedFromVars(C.accessibility)),x(),x=It(a,(t=>n(42,c=t)))),2048&t.$$.dirty[1]&&((null==c?void 0:c.description)?n(10,at=c.description):D.logError(st(new Error('Missing accessibility "description" for input'),{level:"warn"}))),16&t.$$.dirty[0]|258&t.$$.dirty[1]&&n(12,l={"highlight-color":Boolean(Q),"vertical-overflow":I,multiline:i}),1532&t.$$.dirty[1]&&n(11,s={"--divkit-input-hint-color":B,"--divkit-input-highlight-color":Q,"font-size":xn(U),"font-weight":L,"line-height":H,"letter-spacing":K,color:Y,"max-height":ot})},[C,A,V,j,i,P,S,z,M,rt,at,s,l,a,o,r,w,T,J,O,R,W,q,G,X,Z,tt,it,lt,function(t){const e=t.target.value||"";T.setValue(e),ct()},function(){N=!1,setTimeout((()=>{N=!0}),250)},function(){N||P.select()},I,B,U,L,H,K,Y,Q,nt,ot,c,u,d,h,p,f,g,m,v,y,$,_,b,function(t){De[t?"unshift":"push"]((()=>{S=t,n(6,S)}))},function(t){De[t?"unshift":"push"]((()=>{P=t,n(5,P)}))},function(t){De[t?"unshift":"push"]((()=>{P=t,n(5,P)}))}]}const xa={};function ka(t){let e,n,r;var i=t[5];function o(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return i&&(e=new i(o(t))),{c(){e&&nn(e.$$.fragment),n=oe()},l(t){e&&rn(e.$$.fragment,t),n=oe()},m(t,i){e&&on(e,t,i),Zt(t,n,i),r=!0},p(t,r){const a={};if(8&r&&(a.json=t[3]),16&r&&(a.templateContext=t[4]),4&r&&(a.layoutParams=t[2]),3&r&&(a.origJson=t[1]||t[0]),i!==(i=t[5])){if(e){qe();const t=e;Ke(t.$$.fragment,1,0,(()=>{an(t,1)})),He()}i?(e=new i(o(t)),nn(e.$$.fragment),Ge(e.$$.fragment,1),on(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){r||(e&&Ge(e.$$.fragment,t),r=!0)},o(t){e&&Ke(e.$$.fragment,t),r=!1},d(t){t&&Qt(n),e&&an(e,t)}}}function Ea(t){let e,n,r=t[5]&&ka(t);return{c(){r&&r.c(),e=oe()},l(t){r&&r.l(t),e=oe()},m(t,i){r&&r.m(t,i),Zt(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&Ge(r,1)):(r=ka(t),r.c(),Ge(r,1),r.m(e.parentNode,e)):r&&(qe(),Ke(r,1,1,(()=>{r=null})),He())},i(t){n||(Ge(r),n=!0)},o(t){Ke(r),n=!1},d(t){r&&r.d(t),t&&Qt(e)}}}function Ca(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const l=Ae($n);let s,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,i=t.templateContext),"origJson"in t&&n(1,o=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,s=r),n(4,c=i),n(5,u=s&&xa[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,i),n(5,u),n(4,c))),n(5,u=s&&xa[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(st(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,o,a,s,c,u,i]}xa.text=class extends sn{constructor(t){super(),ln(this,t,Lr,Wr,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},xa.container=class extends sn{constructor(t){super(),ln(this,t,hi,di,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},xa.separator=class extends sn{constructor(t){super(),ln(this,t,yi,vi,St,{json:0,templateContext:1,origJson:2,layoutParams:3})}},xa.image=ji,xa.gif=ji,xa.grid=class extends sn{constructor(t){super(),ln(this,t,Ji,Mi,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},xa.gallery=class extends sn{constructor(t){super(),ln(this,t,to,Qi,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},xa.tabs=class extends sn{constructor(t){super(),ln(this,t,fo,po,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},xa.state=class extends sn{constructor(t){super(),ln(this,t,Jo,To,St,{json:0,templateContext:1,origJson:2,layoutParams:3})}},xa.pager=class extends sn{constructor(t){super(),ln(this,t,Ho,qo,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},xa.indicator=class extends sn{constructor(t){super(),ln(this,t,ta,Qo,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},xa.slider=class extends sn{constructor(t){super(),ln(this,t,fa,ha,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},xa.input=class extends sn{constructor(t){super(),ln(this,t,wa,ba,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}};const Aa=class extends sn{constructor(t){super(),ln(this,t,Ca,Ea,St,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function Va(t,e,n){const r=t.slice();r[1]=e[n];const i=r[1].split(":");return r[2]=i[0],r[3]=i[1],r}function ja(t){let e,n,r,i=[...Object.keys(t[0])],o=[];for(let e=0;e<i.length;e+=1)o[e]=Na(Va(t,i,e));return{c(){e=ne("svg"),n=ne("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=pe(t,"svg",{class:!0,"aria-hidden":!0});var r=ce(e);n=pe(r,"defs",{});var i=ce(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(Qt),r.forEach(Qt),this.h()},h(){le(e,"class",r="divkit-dc22b"),le(e,"aria-hidden","true")},m(t,r){Zt(t,e,r),Yt(e,n);for(let t=0;t<o.length;t+=1)o[t].m(n,null)},p(t,e){if(1&e){let r;for(i=[...Object.keys(t[0])],r=0;r<i.length;r+=1){const a=Va(t,i,r);o[r]?o[r].p(a,e):(o[r]=Na(a),o[r].c(),o[r].m(n,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(t){t&&Qt(e),te(o,t)}}}function Da(t){let e,n;return{c(){e=ne("feBlend"),this.h()},l(t){e=pe(t,"feBlend",{in2:!0,mode:!0}),ce(e).forEach(Qt),this.h()},h(){le(e,"in2","SourceGraphic"),le(e,"mode",n=t[3])},m(t,n){Zt(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&le(e,"mode",n)},d(t){t&&Qt(e)}}}function Pa(t){let e;return{c(){e=ne("feComposite"),this.h()},l(t){e=pe(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),ce(e).forEach(Qt),this.h()},h(){le(e,"in2","SourceGraphic"),le(e,"operator","arithmetic"),le(e,"k1","1"),le(e,"k2","0"),le(e,"k3","0"),le(e,"k4","0")},m(t,n){Zt(t,e,n)},p:xt,d(t){t&&Qt(e)}}}function Sa(t){let e,n;return{c(){e=ne("feComposite"),this.h()},l(t){e=pe(t,"feComposite",{in2:!0,operator:!0}),ce(e).forEach(Qt),this.h()},h(){le(e,"in2","SourceGraphic"),le(e,"operator",n=t[3].split("_")[1])},m(t,n){Zt(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&le(e,"operator",n)},d(t){t&&Qt(e)}}}function Na(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?Sa:"multiply"===t[3]?Pa:Da}let a=o(t),l=a(t);return{c(){e=ne("filter"),n=ne("feFlood"),l.c(),this.h()},l(t){e=pe(t,"filter",{id:!0});var r=ce(e);n=pe(r,"feFlood",{"flood-color":!0}),ce(n).forEach(Qt),l.l(r),r.forEach(Qt),this.h()},h(){le(n,"flood-color",r=t[2]),le(e,"id",i=t[0][t[1]])},m(t,r){Zt(t,e,r),Yt(e,n),l.m(e,null)},p(t,s){1&s&&r!==(r=t[2])&&le(n,"flood-color",r),a===(a=o(t))&&l?l.p(t,s):(l.d(1),l=a(t),l&&(l.c(),l.m(e,null))),1&s&&i!==(i=t[0][t[1]])&&le(e,"id",i)},d(t){t&&Qt(e),l.d()}}}function Ia(t){let e,n=Object.keys(t[0]).length,r=n&&ja(t);return{c(){r&&r.c(),e=oe()},l(t){r&&r.l(t),e=oe()},m(t,n){r&&r.m(t,n),Zt(t,e,n)},p(t,i){let[o]=i;1&o&&(n=Object.keys(t[0]).length),n?r?r.p(t,o):(r=ja(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:xt,o:xt,d(t){r&&r.d(t),t&&Qt(e)}}}function Fa(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const za=class extends sn{constructor(t){super(),ln(this,t,Fa,Ia,St,{svgFiltersMap:0})}};function Ta(t,e,n,r){const i=n[t.type];if(!i)return r(st(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let o;const a={};for(o in e)e.hasOwnProperty(o)&&(a[o]=e[o]);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(a[o]=t[o]);const l=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),i=r.filter((t=>"$"!==t.charAt(0))),o=r.filter((t=>"$"===t.charAt(0)));return i.forEach((r=>{const i=n[r];"object"==typeof i&&null!==i?(e[r]=Array.isArray(i)?[]:{},t(e[r],i)):e[r]=i})),o.forEach((t=>{const r=n[t],i=a[r];if(void 0!==i){const n=t.substring(1);e[n]=i}})),e}({},i);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(l[o]=t[o]);return{json:l,templateContext:a}}function Ma(){}function Ja(t){return{subscribe:e=>(e(t),Ma)}}class Oa{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return w(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=yn(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(st(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return V(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=C(String(i));if(t)return T(t);e(st(new Error("Expression execution error")))}return"integer"===r.type?i>2147483647||i<-2147483648?void e(st(new Error("Expression result is out of 32-bit int range"))):Number(i):i}catch(t){return void e(st(new Error("Expression execution error")))}}}function Ba(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=v(t,{startRule:"JsonStringContents"}),r=I(n);return e.vars.push(...r),new Oa(n)}catch(e){return void n(st(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>Ba(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Ba(t[i],e,n);return r}}var r;return t}function Ra(t,e,n){if(t){if(t instanceof Oa)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>Ra(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=Ra(t[i],e,n);return r}}return t}function Ua(t,e){const n={vars:[],hasExpression:!1},r=Ba(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>Ra(r,t,e)}}const Wa={pagers:function(){return un(new Map)}},La=new Map,qa=new Map;function Ha(t){const e=La.get(t)||un("");return La.has(t)||La.set(t,e),e}function Ga(t){const e=qa.get(t)||new Map;return qa.has(t)||qa.set(t,e),e}class Ka{setVariable(t){const e=t.getName(),n=Ga(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),Ha(this).set(e)}getVariable(t){return Ga(this).get(t)}}function Xa(){return new Ka}function Ya(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Za=new Set(["start","stop","pause","resume","cancel","reset"]);class Qa{constructor(t){Ya(this,"timers",new Map),Ya(this,"awaitActions",[]),this.logError=t.logError,this.applyVars=t.applyVars,this.hasVariableWithType=t.hasVariableWithType,this.setVariableValue=t.setVariableValue,this.execAnyActions=t.execAnyActions,this.visibilityHandler=()=>{"visible"===document.visibilityState?(this.awaitActions.forEach((t=>{let{id:e,action:n}=t;this.execTimerAction(e,n)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[t,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(t){null!=t&&t.id?t.duration||t.tick_interval&&(t.value_variable||t.tick_actions)?this.timers.set(t.id,{state:"stopped",definition:t}):this.logError(st(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(st(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&Za.has(e)))return void this.logError(st(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),i=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-i)%n,e()}),i)};e()}}start(t){if("running"===t.state)return void this.logError(st(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(st(new Error("The timer is paused")));const e=t.definition.value_variable;!e||this.hasVariableWithType(e,"integer")?(e&&this.setVariableValue(e,0),t.definition.duration&&(t.duration=this.applyVars(t.definition.duration)),t.definition.tick_interval&&(t.tick=this.applyVars(t.definition.tick_interval)),void 0!==t.duration&&t.duration<0||void 0!==t.tick&&t.tick<=0?this.logError(st(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):(void 0!==t.duration&&void 0!==t.tick&&(t.tickCount=0,t.tickCountPredict=Math.floor(t.duration/t.tick)),this.startOrResume(t))):this.logError(st(new Error("Cannot find variable"),{additional:{name:e}}))}stop(t){"stopped"!==t.state?(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t),this.callActions(t,"end")):this.logError(st(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(st(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(st(new Error("The timer has already been paused")));t.state="paused",this.stopTimerTimeouts(t);const e=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+e-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+e-t.tickStarted);const n=t.definition.value_variable;n&&t.durationPassed&&this.setVariableValue(n,Math.round(t.durationPassed))}resume(t){"stopped"!==t.state?"running"!==t.state?this.startOrResume(t):this.logError(st(new Error("The timer is already running"))):this.logError(st(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);this.execAnyActions(t,!1)}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&this.tickOrUnholdAction(e),this.startOrResume(e)}}}function tl(t){let e,n,r,i,o,a,l,s;return n=new za({props:{svgFiltersMap:t[2]}}),i=new Aa({props:{div:t[3],templateContext:t[6]}}),{c(){e=ee("div"),nn(n.$$.fragment),r=ie(),nn(i.$$.fragment),this.h()},l(t){e=he(t,"DIV",{class:!0});var o=ce(e);rn(n.$$.fragment,o),r=ge(o),rn(i.$$.fragment,o),o.forEach(Qt),this.h()},h(){le(e,"class",o="divkit-b023c"+(t[4]?" ".concat("divkit-ee112"):"")+(t[0]?" ".concat(t[0]):""))},m(t,o){Zt(t,e,o),on(n,e,null),Yt(e,r),on(i,e,null),a=!0,l||(s=ae(e,"touchstart",nl,{passive:!0}),l=!0)},p(t,r){const l={};4&r[0]&&(l.svgFiltersMap=t[2]),n.$set(l);const s={};8&r[0]&&(s.div=t[3]),i.$set(s),(!a||17&r[0]&&o!==(o="divkit-b023c"+(t[4]?" ".concat("divkit-ee112"):"")+(t[0]?" ".concat(t[0]):"")))&&le(e,"class",o)},i(t){a||(Ge(n.$$.fragment,t),Ge(i.$$.fragment,t),a=!0)},o(t){Ke(n.$$.fragment,t),Ke(i.$$.fragment,t),a=!1},d(t){t&&Qt(e),an(n),an(i),l=!1,s()}}}function el(t){let e,n,r=!t[1]&&t[3]&&tl(t);return{c(){r&&r.c(),e=oe()},l(t){r&&r.l(t),e=oe()},m(t,i){r&&r.m(t,i),Zt(t,e,i),n=!0},p(t,n){!t[1]&&t[3]?r?(r.p(t,n),10&n[0]&&Ge(r,1)):(r=tl(t),r.c(),Ge(r,1),r.m(e.parentNode,e)):r&&(qe(),Ke(r,1,1,(()=>{r=null})),He())},i(t){n||(Ge(r),n=!0)},o(t){Ke(r),n=!1},d(t){r&&r.d(t),t&&Qt(e)}}}function nl(){}function rl(t,e,n){let r;var i,o,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new Ka}=e,{mix:p=""}=e,{customization:f={}}=e,{builtinProtocols:g=["http","https","tel","mailto","intent"]}=e,{onError:m}=e,{onStat:y}=e,{onCustomAction:$}=e,{onComponent:_}=e,b=un("desktop"===u);if(Ft(t,b,(t=>n(4,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");b.set(!t.matches),t.addListener((()=>{b.set(!t.matches)}))}let w="light",x=null;function k(){"system"===d&&x&&n(21,w=x.matches?"dark":"light")}const E=new Set(g);let C=!1;c||(C=!0,M(st(new Error('"json" prop is required')))),s||(C=!0,M(st(new Error('"id" prop is required'))));let A=function(t){if(!t)return st(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return st(new Error("Missing card"));if(!e.states||!e.states.length)return st(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in xa)return st(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return st(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return st(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const V=c.templates||{};A&&(C=!0,M(A));const j={stateChange:!1},D=Ha(h),P=Ga(h),S=new Map,N=new Map,F=new Map;let z=null;function T(t){const e=Ua(t,M);return e.vars.length?e.applyVars(N):t}function M(t){m?m({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function J(t,e){y&&y({type:t,action:e})}let O=0;function B(t){return"".concat(s,"-").concat(O++)}let R={},U={};function W(t){const e=t.url?String(t.url):"";if(e)try{const t=e.replace(/div-action:\/\//,""),n=/([^?]+)\?(.+)/.exec(t);if(!n)return;const r=new URLSearchParams(n[2]);switch(n[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=Y,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],i=n[t+1];let o=e.getChild(r);if(!o)return;o.setState(i),e=o}}(r.get("state_id"));break;case"set_current_item":!function(t,e){if(!t||!e)throw new Error('Missing data for "set-current-item" action');if(isNaN(Number(e)))throw new Error('Incorrect item for "set-current-item" action');const n=G(t);n&&n.setCurrentItem(Number(e))}(r.get("id"),r.get("item"));break;case"set_previous_item":!function(t,e){if(!t)throw new Error('Missing id for "set-previous-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-previous-item" action');e=e||"clamp";const n=G(t);n&&n.setPreviousItem(e)}(r.get("id"),r.get("overflow"));break;case"set_next_item":!function(t,e){if(!t)throw new Error('Missing id for "set-next-item" action');if(e&&"clamp"!==e&&"ring"!==e)throw new Error('Incorrect overflow value for "set-next-item" action');e=e||"clamp";const n=G(t);n&&n.setNextItem(e)}(r.get("id"),r.get("overflow"));break;case"set_variable":const n=r.get("name"),i=r.get("value");if(n&&null!==i){const t=N.get(n);t?t.set(i):M(st(new Error("Cannot find variable"),{additional:{name:n}}))}else M(st(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;case"timer":const o=r.get("action"),a=r.get("id");z?z.execTimerAction(a,o):M(st(new Error("Incorrect timer action"),{additional:{id:a,action:o}}));break;default:M(st(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){M(st(t,{additional:{url:e}}))}}async function L(t,e){if(t){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url;if(i){const t=Sn(i);if(t)if(Nn(t,E)){if(e)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(W(r),await ze()):r.log_id&&(q(r),await ze())}}t.forEach((t=>{t.log_id&&J("click",t)}))}}function q(t){null==$||$(t)}const H=new Map;function G(t){if(H.has(t))return H.get(t);M(st(new Error("Missing instance with id"),{additional:{id:t}}))}const K=new Map;function X(t){for(const e of t)N.has(e)&&t.delete(e);return t}Ce($n,{logError:M,logStat:J,hasTemplate:function(t){return t in V},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in V;){if(({json:t,templateContext:e}=Ta(t,e,V,M)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:B,genClass:function(t){return"divkit-".concat(B())},execAction:W,execAnyActions:L,execCustomAction:q,isRunning:function(t){return j[t]},setRunning:function(t,e){j[t]=e},registerInstance:function(t,e){H.has(t)?M(st(new Error("Duplicate instance id"),{additional:{id:t}})):H.set(t,e)},unregisterInstance:function(t){H.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(U[r]=U[r]||0,++U[r],R[r])return R[r];const i="".concat(B(),"-svg-filter");return n(2,R=Object.assign(Object.assign({},R),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);U[r]&&0==--U[r]&&n(2,R=Object.keys(R).reduce(((t,e)=>(U[e]&&(t[e]=R[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return Ja(t);const e=Ua(t,M);return e.vars.length?dn(e.vars.map((t=>N.get(t)||function(t){const e=F.get(t)||un(void 0);return F.has(t)||F.set(t,e),e}(t))).filter(Cn),(()=>e.applyVars(N))):e.hasExpression?Ja(e.applyVars(N)):Ja(t)},getJsonWithVars:T,getStore:function(t){return K.has(t)||function(t){K.has(t)||K.set(t,Wa[t]())}(t),K.get(t)},getVariable:function(t,e){const n=N.get(t);if(n){const r=n.getType();if(r!==e)return void M(st(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==f?void 0:f[t]},getBuiltinProtocols:function(){return E},isDesktop:b,registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:i}=t;_&&_({type:"mount",node:e,json:n,origJson:r,templateContext:i})},unregisterComponent:function(t){let{node:e}=t;_&&_({type:"destroy",node:e})}}),Ce(Zn,{hasAction:()=>!1});const Y={setState(t){throw new Error("Not implemented")},getChild(t){if(Z&&Z.has(t))return Z.get(t);M(st(new Error("Missing state block with id"),{additional:{id:t}}))}};let Z=null;Ce(Tn,{registerInstance(t,e){Z||(Z=new Map),Z.has(t)?M(st(new Error("Duplicate state with id"),{additional:{id:t}})):Z.set(t,e)},unregisterInstance(t){null==Z||Z.delete(t)},runVisibilityTransition:(t,e,n,r,i)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const Q=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variables;Array.isArray(Q)&&Q.forEach((t=>{if(t&&t.type in pn&&t.name){if(S.has(t.name))return void M(st(new Error("Duplicate variable"),{additional:{name:t.name}}));"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&M(st(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=fn(t.name,t.type,t.value);S.set(t.name,e),N.set(t.name,e)}catch(e){M(st(e,{additional:{name:t.name}}))}}}));const tt=c.palette;tt&&tt[w].forEach((t=>{if(S.has(t.name))M(st(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=fn(t.name,"color",t.color);S.set(t.name,e),N.set(t.name,e)}catch(e){M(st(e,{additional:{name:t.name}}))}}));for(const[t,e]of P)N.has(t)||N.set(t,e);D.subscribe((t=>{if(t&&!N.has(t)){const e=P.get(t);N.set(t,e);const n=F.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const et=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(et)&&et.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void M(st(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=v(t.condition,{startRule:"JsonStringContents"}),i=I(r);if(!i.length)return void M(st(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return X(e),e.size?new Promise((t=>{const n=D.subscribe((()=>{X(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{dn(i.map((t=>N.get(t))).filter(Cn),(()=>{const t=yn(N,r);return t.warnings.forEach(M),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=T(t);e.log_id&&W(e)})),e=Boolean(r.value)):M(st(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){M(st(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else M(st(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const nt=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(nt){const t=z=new Qa({logError:M,applyVars:T,hasVariableWithType:function(t,e){const n=N.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=N.get(t);n?n.setValue(e):M(st(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:L});nt.forEach((e=>t.createTimer(e)))}const rt=null===(l=null==c?void 0:c.card)||void 0===l?void 0:l.states;let it;return rt&&!C&&(it={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:rt.map((t=>({state_id:t.state_id.toString(),div:t.div})))}),Ee((()=>{z&&z.destroy()})),t.$$set=t=>{"id"in t&&n(8,s=t.id),"json"in t&&n(9,c=t.json),"platform"in t&&n(10,u=t.platform),"theme"in t&&n(7,d=t.theme),"globalVariablesController"in t&&n(11,h=t.globalVariablesController),"mix"in t&&n(0,p=t.mix),"customization"in t&&n(12,f=t.customization),"builtinProtocols"in t&&n(13,g=t.builtinProtocols),"onError"in t&&n(14,m=t.onError),"onStat"in t&&n(15,y=t.onStat),"onCustomAction"in t&&n(16,$=t.onCustomAction),"onComponent"in t&&n(17,_=t.onComponent)},t.$$.update=()=>{4194432&t.$$.dirty[0]&&("light"===d||"dark"===d?n(21,w=d):"system"===d?"undefined"!=typeof matchMedia?(x||(n(22,x=matchMedia("(prefers-color-scheme: dark)")),x.addListener(k)),n(21,w=x.matches?"dark":"light")):n(21,w="light"):M(st(new Error("Unsupported theme")))),2097152&t.$$.dirty[0]&&w&&tt&&tt[w].forEach((t=>{const e=N.get(t.name);e&&e.setValue(t.color)}))},[p,C,R,it,r,b,{},d,s,c,u,h,f,g,m,y,$,_,function(t){n(7,d=t)},function(){return N},W,w,x]}const il=class extends sn{constructor(t){super(),ln(this,t,rl,el,St,{id:8,json:9,platform:10,theme:7,globalVariablesController:11,mix:0,customization:12,builtinProtocols:13,onError:14,onStat:15,onCustomAction:16,onComponent:17,setTheme:18,getDebugVariables:19,execAction:20},null,[-1,-1,-1])}get setTheme(){return this.$$.ctx[18]}get getDebugVariables(){return this.$$.ctx[19]}get execAction(){return this.$$.ctx[20]}};function ol(t){return new il({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,mix:t.mix,customization:t.customization,builtinProtocols:t.builtinProtocols,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function al(t,e){return ll(t,e).result}function ll(t,e){let n;try{n=v(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{result:{type:"error",value:"Unable to parse expression"},warnings:[]}}return yn((null==e?void 0:e.variables)||new Map,n)}function sl(){return Array.from(y.keys())}var cl=e.M,ul=e.Os,dl=e.fz,hl=e.iL,pl=e.e4,fl=e.sY,gl=e.Z3;export{cl as createGlobalVariablesController,ul as createVariable,dl as evalExpression,hl as evalExpressionWithFullResult,pl as functionNames,fl as render,gl as valToString};
|
|
1
|
+
var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{Hy:()=>_l,M:()=>dl,Os:()=>mn,fz:()=>kl,iL:()=>El,e4:()=>Cl,_0:()=>wl,sY:()=>xl,Z3:()=>D});const n="function"==typeof BigInt;function r(t){return n?BigInt(t):Number(t)}const i=r("9223372036854775807"),o=r("-9223372036854775808");function a(t){const e=r(t);if(e>i||e<o)throw new Error("Integer overflow.");return e}const l=a(0);function s(t){let e=t;return e<0&&(e=-e),e}function c(t){let e=0;return t>0?e=1:t<0&&(e=-1),a(e)}function u(t,e){return e.reduce(((t,e)=>({type:"BinaryExpression",operator:e[1],left:t,right:e[3]})),t)}function d(t,e){return e.reduce(((t,e)=>({type:"LogicalExpression",operator:e[1],left:t,right:e[3]})),t)}function h(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 p(t){try{return a(t)}catch(e){throw new Error("Value ".concat(t," can't be converted to Integer type."))}}function f(t){if("'"===t||"\\"===t)return t;throw new Error("Incorrect string escape")}function g(t,e,n,r){var i=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(i,g.prototype),i.expected=e,i.found=n,i.location=r,i.name="SyntaxError",i}function m(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}function v(t,e){var n,r={},i=(e=void 0!==e?e:{}).grammarSource,o={start:Ft,JsonStringContents:function(){var t,e,n;for(t=wt,e=[],n=zt();n!==r;)e.push(n),n=zt();return xt=t,e=bt(e)}},a=Ft,l="@{",s="}",c="@{}",m="\\",v="||",y="&&",$="==",_="!=",b=">=",w="<=",x="+",k="-",E="true",C="false",A=/^[^}]/,V=/^[^'}]/,D=/^[0-9]/,j=/^[a-zA-Z_0-9.]/,P=/^[a-zA-Z_]/,S=/^[ \t\r\n]/,N=Dt("@{",!1),I=Dt("}",!1),F=Dt("@{}",!1),z=Dt("\\",!1),M={type:"any"},T=jt(["}"],!0,!1),O=Dt("?",!1),J=Dt(":",!1),B=Dt("||",!1),R=Dt("&&",!1),U=Dt("==",!1),L=Dt("!=",!1),W=Dt(">=",!1),H=Dt(">",!1),q=Dt("<=",!1),G=Dt("<",!1),K=Dt("+",!1),X=Dt("-",!1),Y=Dt("/",!1),Z=Dt("*",!1),Q=Dt("%",!1),tt=Dt("!",!1),et=Dt("(",!1),nt=Dt(")",!1),rt=Dt(",",!1),it=Pt("string"),ot=Dt("'",!1),at=jt(["'","}"],!0,!1),lt=Pt("integer"),st=jt([["0","9"]],!1,!1),ct=Pt("number"),ut=Dt(".",!1),dt=Dt("e",!1),ht=Dt("E",!1),pt=Pt("boolean"),ft=Dt("true",!1),gt=Dt("false",!1),mt=jt([["a","z"],["A","Z"],"_",["0","9"],"."],!1,!1),vt=Pt("identifier"),yt=jt([["a","z"],["A","Z"],"_"],!1,!1),$t=Pt("whitespace"),_t=jt([" ","\t","\r","\n"],!1,!1),bt=function(t){return h(t)},wt=0,xt=0,kt=[{line:1,column:1}],Et=0,Ct=[],At=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function Vt(){return t.substring(xt,wt)}function Dt(t,e){return{type:"literal",text:t,ignoreCase:e}}function jt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Pt(t){return{type:"other",description:t}}function St(e){var n,r=kt[e];if(r)return r;for(n=e-1;!kt[n];)n--;for(r={line:(r=kt[n]).line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return kt[e]=r,r}function Nt(t,e){var n=St(t),r=St(e);return{source:i,start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function It(t){wt<Et||(wt>Et&&(Et=wt,Ct=[]),Ct.push(t))}function Ft(){var t,e;return t=wt,Kt(),(e=Mt())!==r?(Kt(),xt=t,t=e):(wt=t,t=r),t}function zt(){var e,n,i,o,a;if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(N)),n!==r?(i=Kt(),(o=Mt())!==r?(Kt(),125===t.charCodeAt(wt)?(a=s,wt++):(a=r,0===At&&It(I)),a!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,t.substr(wt,3)===c?(n=c,wt+=3):(n=r,0===At&&It(F)),n!==r&&(xt=e,n=""),(e=n)===r&&(e=wt,n=wt,At++,92===t.charCodeAt(wt)?(i=m,wt++):(i=r,0===At&&It(z)),i===r&&(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(N))),At--,i===r?n=void 0:(wt=n,n=r),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(M)),i!==r?(xt=e,e=Vt()):(wt=e,e=r)):(wt=e,e=r),e===r))){if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(N)),n!==r){if(i=[],A.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(T)),o!==r)for(;o!==r;)i.push(o),A.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(T));else i=r;i!==r?(125===t.charCodeAt(wt)?(o=s,wt++):(o=r,0===At&&It(I)),o!==r?(xt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(wt=e,e=r)):(wt=e,e=r)}else wt=e,e=r;e===r&&(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(N)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=wt,92===t.charCodeAt(wt)?(n=m,wt++):(n=r,0===At&&It(z)),n!==r?(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(N)),i!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=m,wt++):(n=r,0===At&&It(z)),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(M)),i!==r?(xt=e,e=f(i)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=m,wt++):(n=r,0===At&&It(z)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Mt(){var e,n,i,o,a,l;return e=wt,(n=Tt())!==r?(Kt(),63===t.charCodeAt(wt)?(i="?",wt++):(i=r,0===At&&It(O)),i!==r?(Kt(),(o=Mt())!==r?(Kt(),58===t.charCodeAt(wt)?(a=":",wt++):(a=r,0===At&&It(J)),a!==r?(Kt(),(l=Mt())!==r?(xt=e,e={type:"ConditionalExpression",test:n,consequent:o,alternate:l}):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=Tt()),e}function Tt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Ot())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===v?(l=v,wt+=2):(l=r,0===At&&It(B)),l!==r?(s=Kt(),(c=Ot())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===v?(l=v,wt+=2):(l=r,0===At&&It(B)),l!==r?(s=Kt(),(c=Ot())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=d(n,i)}else wt=e,e=r;return e}function Ot(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Jt())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===y?(l=y,wt+=2):(l=r,0===At&&It(R)),l!==r?(s=Kt(),(c=Jt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===y?(l=y,wt+=2):(l=r,0===At&&It(R)),l!==r?(s=Kt(),(c=Jt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=d(n,i)}else wt=e,e=r;return e}function Jt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Bt())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===$?(l=$,wt+=2):(l=r,0===At&&It(U)),l===r&&(t.substr(wt,2)===_?(l=_,wt+=2):(l=r,0===At&&It(L))),l!==r?(s=Kt(),(c=Bt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===$?(l=$,wt+=2):(l=r,0===At&&It(U)),l===r&&(t.substr(wt,2)===_?(l=_,wt+=2):(l=r,0===At&&It(L))),l!==r?(s=Kt(),(c=Bt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=u(n,i)}else wt=e,e=r;return e}function Bt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Rt())!==r){for(i=[],o=wt,a=Kt(),t.substr(wt,2)===b?(l=b,wt+=2):(l=r,0===At&&It(W)),l===r&&(62===t.charCodeAt(wt)?(l=">",wt++):(l=r,0===At&&It(H)),l===r&&(t.substr(wt,2)===w?(l=w,wt+=2):(l=r,0===At&&It(q)),l===r&&(60===t.charCodeAt(wt)?(l="<",wt++):(l=r,0===At&&It(G))))),l!==r?(s=Kt(),(c=Rt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),t.substr(wt,2)===b?(l=b,wt+=2):(l=r,0===At&&It(W)),l===r&&(62===t.charCodeAt(wt)?(l=">",wt++):(l=r,0===At&&It(H)),l===r&&(t.substr(wt,2)===w?(l=w,wt+=2):(l=r,0===At&&It(q)),l===r&&(60===t.charCodeAt(wt)?(l="<",wt++):(l=r,0===At&&It(G))))),l!==r?(s=Kt(),(c=Rt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=u(n,i)}else wt=e,e=r;return e}function Rt(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Ut())!==r){for(i=[],o=wt,a=Kt(),43===t.charCodeAt(wt)?(l=x,wt++):(l=r,0===At&&It(K)),l===r&&(45===t.charCodeAt(wt)?(l=k,wt++):(l=r,0===At&&It(X))),l!==r?(s=Kt(),(c=Ut())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),43===t.charCodeAt(wt)?(l=x,wt++):(l=r,0===At&&It(K)),l===r&&(45===t.charCodeAt(wt)?(l=k,wt++):(l=r,0===At&&It(X))),l!==r?(s=Kt(),(c=Ut())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=u(n,i)}else wt=e,e=r;return e}function Ut(){var e,n,i,o,a,l,s,c;if(e=wt,(n=Lt())!==r){for(i=[],o=wt,a=Kt(),47===t.charCodeAt(wt)?(l="/",wt++):(l=r,0===At&&It(Y)),l===r&&(42===t.charCodeAt(wt)?(l="*",wt++):(l=r,0===At&&It(Z)),l===r&&(37===t.charCodeAt(wt)?(l="%",wt++):(l=r,0===At&&It(Q)))),l!==r?(s=Kt(),(c=Lt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,a=Kt(),47===t.charCodeAt(wt)?(l="/",wt++):(l=r,0===At&&It(Y)),l===r&&(42===t.charCodeAt(wt)?(l="*",wt++):(l=r,0===At&&It(Z)),l===r&&(37===t.charCodeAt(wt)?(l="%",wt++):(l=r,0===At&&It(Q)))),l!==r?(s=Kt(),(c=Lt())!==r?o=a=[a,l,s,c]:(wt=o,o=r)):(wt=o,o=r);xt=e,e=u(n,i)}else wt=e,e=r;return e}function Lt(){var e,n,i;return(e=qt())===r&&(e=Ht())===r&&(e=wt,33===t.charCodeAt(wt)?(n="!",wt++):(n=r,0===At&&It(tt)),n===r&&(43===t.charCodeAt(wt)?(n=x,wt++):(n=r,0===At&&It(K)),n===r&&(45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)))),n!==r?(Kt(),(i=Lt())!==r?(xt=e,e={type:"UnaryExpression",operator:n,argument:i}):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=function(){var e,n,i,o,a;return e=wt,(n=Gt())!==r?(Kt(),40===t.charCodeAt(wt)?(i="(",wt++):(i=r,0===At&&It(et)),i!==r?(Kt(),o=function(){var e,n,i,o,a,l,s;if(e=wt,(n=Mt())!==r){for(i=[],o=wt,Kt(),44===t.charCodeAt(wt)?(a=",",wt++):(a=r,0===At&&It(rt)),a!==r?(Kt(),(l=Mt())!==r?o=l:(wt=o,o=r)):(wt=o,o=r);o!==r;)i.push(o),o=wt,Kt(),44===t.charCodeAt(wt)?(a=",",wt++):(a=r,0===At&&It(rt)),a!==r?(Kt(),(l=Mt())!==r?o=l:(wt=o,o=r)):(wt=o,o=r);xt=e,s=i,e=[n,...s]}else wt=e,e=r;return e===r&&(e=Kt()),e}(),o!==r?(Kt(),41===t.charCodeAt(wt)?(a=")",wt++):(a=r,0===At&&It(nt)),a!==r?(xt=e,e={type:"CallExpression",callee:n,arguments:o}):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,(n=Gt())!==r&&(xt=e,n={type:"Variable",id:n}),(e=n)===r&&(e=function(){var e,n,i,o;return e=function(){var e,n,i,o;return At++,e=wt,39===t.charCodeAt(wt)?(n="'",wt++):(n=r,0===At&&It(ot)),n!==r?(i=function(){var t,e,n;for(t=wt,e=[],n=Wt();n!==r;)e.push(n),n=Wt();return xt=t,e=h(e)}(),39===t.charCodeAt(wt)?(o="'",wt++):(o=r,0===At&&It(ot)),o!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r),At--,e===r&&(n=r,0===At&&It(it)),e}(),e===r&&(e=qt())===r&&(e=Ht())===r&&(e=function(){var e,n;return At++,e=wt,t.substr(wt,4)===E?(n=E,wt+=4):(n=r,0===At&&It(ft)),n!==r&&(xt=e,n={type:"BooleanLiteral",value:!0}),(e=n)===r&&(e=wt,t.substr(wt,5)===C?(n=C,wt+=5):(n=r,0===At&&It(gt)),n!==r&&(xt=e,n={type:"BooleanLiteral",value:!1}),e=n),At--,e===r&&(n=r,0===At&&It(pt)),e}(),e===r&&(e=wt,40===t.charCodeAt(wt)?(n="(",wt++):(n=r,0===At&&It(et)),n!==r&&(i=Mt())!==r?(41===t.charCodeAt(wt)?(o=")",wt++):(o=r,0===At&&It(nt)),o!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r))),e}())),e}())),e}function Wt(){var e,n,i,o,a;if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(N)),n!==r?(i=Kt(),(o=Mt())!==r?(Kt(),125===t.charCodeAt(wt)?(a=s,wt++):(a=r,0===At&&It(I)),a!==r?(xt=e,e=o):(wt=e,e=r)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,t.substr(wt,3)===c?(n=c,wt+=3):(n=r,0===At&&It(F)),n!==r&&(xt=e,n=""),(e=n)===r&&(e=wt,n=wt,At++,92===t.charCodeAt(wt)?(i=m,wt++):(i=r,0===At&&It(z)),i===r&&(39===t.charCodeAt(wt)?(i="'",wt++):(i=r,0===At&&It(ot)),i===r&&(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(N)))),At--,i===r?n=void 0:(wt=n,n=r),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(M)),i!==r?(xt=e,e=Vt()):(wt=e,e=r)):(wt=e,e=r),e===r))){if(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(N)),n!==r){if(i=[],V.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(at)),o!==r)for(;o!==r;)i.push(o),V.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(at));else i=r;i!==r?(125===t.charCodeAt(wt)?(o=s,wt++):(o=r,0===At&&It(I)),o!==r?(xt=e,e=function(){throw new Error("Error tokenizing '"+t+"'.")}()):(wt=e,e=r)):(wt=e,e=r)}else wt=e,e=r;e===r&&(e=wt,t.substr(wt,2)===l?(n=l,wt+=2):(n=r,0===At&&It(N)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),(e=n)===r&&(e=wt,92===t.charCodeAt(wt)?(n=m,wt++):(n=r,0===At&&It(z)),n!==r?(t.substr(wt,2)===l?(i=l,wt+=2):(i=r,0===At&&It(N)),i!==r?(xt=e,e=i):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=m,wt++):(n=r,0===At&&It(z)),n!==r?(t.length>wt?(i=t.charAt(wt),wt++):(i=r,0===At&&It(M)),i!==r?(xt=e,e=f(i)):(wt=e,e=r)):(wt=e,e=r),e===r&&(e=wt,92===t.charCodeAt(wt)?(n=m,wt++):(n=r,0===At&&It(z)),n!==r&&(xt=e,n=function(){throw new Error("Error tokenizing '"+t+"'.")}()),e=n))))}return e}function Ht(){var e,n,i,o;if(At++,e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)),n===r&&(n=null),i=[],D.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st)),o!==r)for(;o!==r;)i.push(o),D.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));else i=r;return i!==r?(xt=e,e={type:"IntegerLiteral",value:p(Vt())}):(wt=e,e=r),At--,e===r&&(n=r,0===At&&It(lt)),e}function qt(){var e,n,i,o,a,l,s,c,u,d;for(At++,e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)),n===r&&(n=null),i=[],D.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));o!==r;)i.push(o),D.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));if(46===t.charCodeAt(wt)?(o=".",wt++):(o=r,0===At&&It(ut)),o!==r){if(a=[],D.test(t.charAt(wt))?(l=t.charAt(wt),wt++):(l=r,0===At&&It(st)),l!==r)for(;l!==r;)a.push(l),D.test(t.charAt(wt))?(l=t.charAt(wt),wt++):(l=r,0===At&&It(st));else a=r;if(a!==r){if(l=wt,101===t.charCodeAt(wt)?(s="e",wt++):(s=r,0===At&&It(dt)),s===r&&(69===t.charCodeAt(wt)?(s="E",wt++):(s=r,0===At&&It(ht))),s!==r){if(43===t.charCodeAt(wt)?(c=x,wt++):(c=r,0===At&&It(K)),c===r&&(45===t.charCodeAt(wt)?(c=k,wt++):(c=r,0===At&&It(X))),c===r&&(c=null),u=[],D.test(t.charAt(wt))?(d=t.charAt(wt),wt++):(d=r,0===At&&It(st)),d!==r)for(;d!==r;)u.push(d),D.test(t.charAt(wt))?(d=t.charAt(wt),wt++):(d=r,0===At&&It(st));else u=r;u!==r?l=s=[s,c,u]:(wt=l,l=r)}else wt=l,l=r;l===r&&(l=null),xt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}}else wt=e,e=r}else wt=e,e=r;if(e===r){if(e=wt,45===t.charCodeAt(wt)?(n=k,wt++):(n=r,0===At&&It(X)),n===r&&(n=null),i=[],D.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st)),o!==r)for(;o!==r;)i.push(o),D.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(st));else i=r;if(i!==r)if(101===t.charCodeAt(wt)?(o="e",wt++):(o=r,0===At&&It(dt)),o===r&&(69===t.charCodeAt(wt)?(o="E",wt++):(o=r,0===At&&It(ht))),o!==r){if(43===t.charCodeAt(wt)?(a=x,wt++):(a=r,0===At&&It(K)),a===r&&(45===t.charCodeAt(wt)?(a=k,wt++):(a=r,0===At&&It(X))),a===r&&(a=null),l=[],D.test(t.charAt(wt))?(s=t.charAt(wt),wt++):(s=r,0===At&&It(st)),s!==r)for(;s!==r;)l.push(s),D.test(t.charAt(wt))?(s=t.charAt(wt),wt++):(s=r,0===At&&It(st));else l=r;l!==r?(xt=e,e={type:"NumberLiteral",value:parseFloat(Vt())}):(wt=e,e=r)}else wt=e,e=r;else wt=e,e=r}return At--,e===r&&(n=r,0===At&&It(ct)),e}function Gt(){var e,n,i,o,a;if(At++,e=wt,n=wt,At++,i=function(){var e,n,i,o;return e=wt,t.substr(wt,4)===E?(n=E,wt+=4):(n=r,0===At&&It(ft)),n===r&&(t.substr(wt,5)===C?(n=C,wt+=5):(n=r,0===At&&It(gt))),n!==r?(i=wt,At++,j.test(t.charAt(wt))?(o=t.charAt(wt),wt++):(o=r,0===At&&It(mt)),At--,o===r?i=void 0:(wt=i,i=r),i!==r?e=n=[n,i]:(wt=e,e=r)):(wt=e,e=r),e}(),At--,i===r?n=void 0:(wt=n,n=r),n!==r)if(P.test(t.charAt(wt))?(i=t.charAt(wt),wt++):(i=r,0===At&&It(yt)),i!==r){for(o=[],j.test(t.charAt(wt))?(a=t.charAt(wt),wt++):(a=r,0===At&&It(mt));a!==r;)o.push(a),j.test(t.charAt(wt))?(a=t.charAt(wt),wt++):(a=r,0===At&&It(mt));xt=e,e={type:"Identifier",name:Vt()}}else wt=e,e=r;else wt=e,e=r;return At--,e===r&&(n=r,0===At&&It(vt)),e}function Kt(){var e,n;for(At++,e=[],S.test(t.charAt(wt))?(n=t.charAt(wt),wt++):(n=r,0===At&&It(_t));n!==r;)e.push(n),S.test(t.charAt(wt))?(n=t.charAt(wt),wt++):(n=r,0===At&&It(_t));return At--,n=r,0===At&&It($t),e}if((n=a())!==r&&wt===t.length)return n;throw n!==r&&wt<t.length&&It({type:"end"}),function(t,e,n){return new g(g.buildMessage(t,e),t,e,n)}(Ct,Et<t.length?t.charAt(Et):null,Et<t.length?Nt(Et,Et+1):Nt(Et,Et))}!function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(g,Error),g.prototype.format=function(t){var e="Error: "+this.message;if(this.location){var n,r=null;for(n=0;n<t.length;n++)if(t[n].source===this.location.source){r=t[n].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source+":"+i.line+":"+i.column;if(r){var a=this.location.end,l=m("",i.line.toString().length," "),s=r[i.line-1],c=(i.line===a.line?a.column:s.length+1)-i.column||1;e+="\n --\x3e "+o+"\n"+l+" |\n"+i.line+" | "+s+"\n"+l+" | "+m("",i.column-1," ")+m("",c,"^")}else e+="\n at "+o}return e},g.buildMessage=function(t,e){var n={literal:function(t){return'"'+i(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?o(t[0])+"-"+o(t[1]):o(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function i(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function o(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function a(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(a);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+i(t)+'"':"end of input"}(e)+" found."};const y=new Map,$=new Map;function _(t,e,n){const r={args:e,cb:n},i=y.get(t)||[];y.has(t)||y.set(t,i),i.push(r);const o=t+":"+e.map((t=>"object"==typeof t?t.type:t)).join("#");$.set(o,r)}function b(t,e){let n=t.args.length,r=t.args.length;const i=t.args[t.args.length-1];if("object"==typeof i&&i.isVararg&&(--n,r=1/0),e.length<n)return{type:"few",expected:n,found:e.length};if(e.length>r)return{type:"many",expected:r,found:e.length};for(let n=0;n<e.length;++n){let r=n>=t.args.length?t.args[t.args.length-1]:t.args[n];if("object"!=typeof r&&(r={type:r}),r.type!==e[n].type)return{type:"mismatch",expected:r.type,found:e[n].type}}return{type:"match"}}function w(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=>{w(t,e)}));break;case"BinaryExpression":case"LogicalExpression":w(t.left,e),w(t.right,e);break;case"UnaryExpression":w(t.argument,e);break;case"ConditionalExpression":w(t.test,e),w(t.consequent,e),w(t.alternate,e);break;case"CallExpression":t.arguments.forEach((t=>{w(t,e)}))}}function x(t,e){for(;t.length<e;)t="0"+t;return t}function k(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=C(t);return r?(r.a*=e,E(r)):n}function E(t){return 255===t.a?"#".concat([t.r,t.g,t.b].map((t=>x(Math.round(t).toString(16),2))).join("")):"rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat((t.a/255).toFixed(2),")")}function C(t){const e=t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])$/i)||t.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i)||t.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(e){if(5===e.length){const[t,n,r,i,o]=e,a=2===r.length?r:r+r,l=2===i.length?i:i+i,s=2===o.length?o:o+o,c=2===n.length?n:n+n;return{a:parseInt(c,16),r:parseInt(a,16),g:parseInt(l,16),b:parseInt(s,16)}}const[t,n,r,i]=e,o=2===n.length?n:n+n,a=2===r.length?r:r+r,l=2===i.length?i:i+i;return{a:255,r:parseInt(o,16),g:parseInt(a,16),b:parseInt(l,16)}}return null}function A(t){return"url"===t.type||"color"===t.type?{type:"string",value:t.value}:t}function V(t){return t.toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")}function D(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 V(t.value);if("color"===t.type)return M(z(t.value));if("url"===t.type)return t.value;throw new Error("Unexpected type ".concat(t.type))}function j(t){let e=D(t);return"string"===t.type&&(e="'"+e.replace(/\\/g,"\\'").replace(/'/g,"\\'")+"'"),e}function P(t){return"datetime"===t?"DateTime":t.charAt(0).toUpperCase()+t.substring(1)}function S(t,e){if(n)return a(e);if(e<0){const t=-Math.floor(-e);return 0===t?0:t}return Math.floor(e)}function N(t,e){if(e<o||e>i)throw new Error("Integer overflow.");!n&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.safeIntegerOverflow=!0)}function I(t){const e=[];return w(t,{Variable(t){e.push(t.id.name)}}),e}function F(t,e){throw new Error("Failed to evaluate [".concat(t,"]. ").concat(e))}function z(t){const e=C(t);if(e)return e;throw new Error("Unable to convert value to Color, expected format #AARRGGBB.")}function M(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 x(Math.round(t).toString(16),2)})).join("").toUpperCase())}function T(t){return M(z(t))}const O=Number.MAX_VALUE,J=Number.MIN_VALUE,B="string",R="integer",U="number",L="boolean",W="color",H="datetime";function q(t,e){return{type:B,value:D(e)}}function G(t,e){const n=Number(e.value);if(isNaN(n)||!Number.isFinite(n))throw new Error("Unable to convert value to Number.");return{type:U,value:n}}function K(t,e,n,r){const i=t.variables.get(e.value);let o;return o=i&&i.getType()===r?i.getValue():n.value,"color"===r&&(o=T(o)),{type:r,value:o}}function X(t,e,n){return K(t,e,n,n.type)}function Y(t,e,n){return K(t,e,n,"color")}function Z(t,e,n){return K(t,e,n,"url")}const Q=t=>(e,n)=>{let r=new Date(n.value.getTime())[t]();return"getUTCMonth"===t?++r:"getUTCDay"===t&&0===r&&(r=7),{type:R,value:r}},tt=Q("getUTCFullYear"),et=Q("getUTCMonth"),nt=Q("getUTCDate"),rt=Q("getUTCDay"),it=Q("getUTCHours"),ot=Q("getUTCMinutes"),at=Q("getUTCSeconds"),lt=Q("getUTCMilliseconds");function st(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}function ct(t,e,n,r){if(!r.value.length)return t.warnings.push(st(new Error("String for padding is empty."),{level:"warn"})),"";let i="";const o=e.type===B?e.value:D(e);for(;i.length+o.length<n.value;)i+=r.value;return i.length>0&&i.length+o.length>n.value&&(i=i.substring(0,Number(n.value)-Number(o.length))),i}function ut(t,e,n,r){const i=ct(t,e,n,r);return{type:B,value:i+D(e)}}function dt(t,e,n,r){const i=ct(t,e,n,r);return{type:B,value:D(e)+i}}function ht(t){return(e,n)=>{const r=z(n.value);return{type:U,value:r[t]/255}}}function pt(t){return(e,n,r)=>{const i=z(n.value);return i[t]=255*r.value,{type:W,value:M(i)}}}const ft=ht("a"),gt=ht("r"),mt=ht("g"),vt=ht("b"),yt=pt("a"),$t=pt("r"),_t=pt("g"),bt=pt("b");function wt(t,e,n,r){if(e.value<0)throw new Error("Expecting non-negative number of milliseconds.");let i=a(e.value)/a(n);return N(t,i),"number"==typeof i&&(i=Math.floor(i)),r&&(i=a(i)%a(r)),{type:R,value:i}}function xt(){}const kt=t=>t;function Et(t,e){for(const n in e)t[n]=e[n];return t}function Ct(t){return t()}function At(){return Object.create(null)}function Vt(t){t.forEach(Ct)}function Dt(t){return"function"==typeof t}let jt;function Pt(t,e){return jt||(jt=document.createElement("a")),jt.href=e,t===jt.href}function St(t,e){return t!=t?e==e:t!==e}function Nt(t){return 0===Object.keys(t).length}function It(t,...e){if(null==t)return xt;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Ft(t,e,n){t.$$.on_destroy.push(It(e,n))}function zt(t,e,n,r){if(t){const i=Mt(t,e,n,r);return t[0](i)}}function Mt(t,e,n,r){return t[1]&&r?Et(n.ctx.slice(),t[1](r(e))):n.ctx}function Tt(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|i[r];return t}return e.dirty|i}return e.dirty}function Ot(t,e,n,r,i,o){if(i){const a=Mt(e,n,r,o);t.p(a,i)}}function Jt(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 Bt(t,e,n){return t.set(n),e}function Rt(t){return t&&Dt(t.destroy)?t.destroy:xt}const Ut="undefined"!=typeof window;let Lt=Ut?()=>window.performance.now():()=>Date.now(),Wt=Ut?t=>requestAnimationFrame(t):xt;const Ht=new Set;function qt(t){Ht.forEach((e=>{e.c(t)||(Ht.delete(e),e.f())})),0!==Ht.size&&Wt(qt)}let Gt=!1;function Kt(t,e,n,r){for(;t<e;){const i=t+(e-t>>1);n(i)<=r?t=i+1:e=i}return t}function Xt(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Yt(t){const e=ne("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(Xt(t),e),e.sheet}function Zt(t,e){if(Gt){for(function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let i=0;for(let t=0;t<e.length;t++){const o=e[t].claim_order,a=(i>0&&e[n[i]].claim_order<=o?i+1:Kt(1,i,(t=>e[n[t]].claim_order),o))-1;r[t]=n[a]+1;const l=a+1;n[l]=t,i=Math.max(l,i)}const o=[],a=[];let l=e.length-1;for(let t=n[i]+1;0!=t;t=r[t-1]){for(o.push(e[t-1]);l>=t;l--)a.push(e[l]);l--}for(;l>=0;l--)a.push(e[l]);o.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<o.length&&a[e].claim_order>=o[n].claim_order;)n++;const r=n<o.length?o[n]:null;t.insertBefore(a[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function Qt(t,e,n){Gt&&!n?Zt(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function te(t){t.parentNode.removeChild(t)}function ee(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function ne(t){return document.createElement(t)}function re(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ie(t){return document.createTextNode(t)}function oe(){return ie(" ")}function ae(){return ie("")}function le(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function se(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function ce(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]:se(t,r,e[r])}function ue(t){return Array.from(t.childNodes)}function de(t,e,n,r,i=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const o=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i||(t.claim_info.last_index=r),o}}for(let r=t.claim_info.last_index-1;r>=0;r--){const o=t[r];if(e(o)){const e=n(o);return void 0===e?t.splice(r,1):t[r]=e,i?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,o}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function he(t,e,n,r){return de(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const i=t.attributes[r];n[i.name]||e.push(i.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}function pe(t,e,n){return he(t,e,n,ne)}function fe(t,e,n){return he(t,e,n,re)}function ge(t,e){return de(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}),(()=>ie(e)),!0)}function me(t){return ge(t," ")}function ve(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function ye(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function $e(t,e){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];if(r.__value===e)return void(r.selected=!0)}t.selectedIndex=-1}const _e=new Map;let be,we=0;function xe(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),i=n.length-r.length;i&&(t.style.animation=r.join(", "),we-=i,we||Wt((()=>{we||(_e.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),_e.clear())})))}function ke(t){be=t}function Ee(){if(!be)throw new Error("Function called outside component initialization");return be}function Ce(t){Ee().$$.on_mount.push(t)}function Ae(t){Ee().$$.on_destroy.push(t)}function Ve(t,e){return Ee().$$.context.set(t,e),e}function De(t){return Ee().$$.context.get(t)}function je(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const Pe=[],Se=[],Ne=[],Ie=[],Fe=Promise.resolve();let ze=!1;function Me(){ze||(ze=!0,Fe.then(Ue))}function Te(){return Me(),Fe}function Oe(t){Ne.push(t)}const Je=new Set;let Be,Re=0;function Ue(){const t=be;do{for(;Re<Pe.length;){const t=Pe[Re];Re++,ke(t),Le(t.$$)}for(ke(null),Pe.length=0,Re=0;Se.length;)Se.pop()();for(let t=0;t<Ne.length;t+=1){const e=Ne[t];Je.has(e)||(Je.add(e),e())}Ne.length=0}while(Pe.length);for(;Ie.length;)Ie.pop()();ze=!1,Je.clear(),ke(t)}function Le(t){if(null!==t.fragment){t.update(),Vt(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Oe)}}function We(t,e,n){t.dispatchEvent(function(t,e,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,r,e),i}(`${e?"intro":"outro"}${n}`))}const He=new Set;let qe;function Ge(){qe={r:0,c:[],p:qe}}function Ke(){qe.r||Vt(qe.c),qe=qe.p}function Xe(t,e){t&&t.i&&(He.delete(t),t.i(e))}function Ye(t,e,n,r){if(t&&t.o){if(He.has(t))return;He.add(t),qe.c.push((()=>{He.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}const Ze={duration:0};function Qe(t,e,n){let r,i,o=e(t,n),a=!1,l=0;function s(){r&&xe(t,r)}function c(){const{delay:e=0,duration:n=300,easing:c=kt,tick:u=xt,css:d}=o||Ze;d&&(r=function(t,e,n,r,i,o,a,l=0){const s=16.666/r;let c="{\n";for(let t=0;t<=1;t+=s){const r=e+(n-e)*o(t);c+=100*t+`%{${a(r,1-r)}}\n`}const u=c+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${l}`,h=Xt(t),{stylesheet:p,rules:f}=_e.get(h)||function(t,e){const n={stylesheet:Yt(e),rules:{}};return _e.set(t,n),n}(h,t);f[d]||(f[d]=!0,p.insertRule(`@keyframes ${d} ${u}`,p.cssRules.length));const g=t.style.animation||"";return t.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${i}ms 1 both`,we+=1,d}(t,0,1,n,e,c,d,l++)),u(0,1);const h=Lt()+e,p=h+n;i&&i.abort(),a=!0,Oe((()=>We(t,!0,"start"))),i=function(t){let e;return 0===Ht.size&&Wt(qt),{promise:new Promise((n=>{Ht.add(e={c:t,f:n})})),abort(){Ht.delete(e)}}}((e=>{if(a){if(e>=p)return u(1,0),We(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,xe(t),Dt(o)?(o=o(),(Be||(Be=Promise.resolve(),Be.then((()=>{Be=null}))),Be).then(c)):c())},invalidate(){u=!1},end(){a&&(s(),a=!1)}}}const tn="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function en(t,e){Ye(t,1,1,(()=>{e.delete(t.key)}))}function nn(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const a=t[o],l=e[o];if(l){for(const t in a)t in l||(r[t]=1);for(const t in l)i[t]||(n[t]=l[t],i[t]=1);t[o]=l}else for(const t in a)i[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}let rn;function on(t){t&&t.c()}function an(t,e){t&&t.l(e)}function ln(t,e,n,r){const{fragment:i,on_mount:o,on_destroy:a,after_update:l}=t.$$;i&&i.m(e,n),r||Oe((()=>{const e=o.map(Ct).filter(Dt);a?a.push(...e):Vt(e),t.$$.on_mount=[]})),l.forEach(Oe)}function sn(t,e){const n=t.$$;null!==n.fragment&&(Vt(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function cn(t,e,n,r,i,o,a,l=[-1]){const s=be;ke(t);const c=t.$$={fragment:null,ctx:null,props:o,update:xt,not_equal:i,bound:At(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:At(),dirty:l,skip_bound:!1,root:e.target||s.$$.root};a&&a(c.root);let u=!1;if(c.ctx=n?n(t,e.props||{},((e,n,...r)=>{const o=r.length?r[0]:n;return c.ctx&&i(c.ctx[e],c.ctx[e]=o)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](o),u&&function(t,e){-1===t.$$.dirty[0]&&(Pe.push(t),Me(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],c.update(),u=!0,Vt(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){Gt=!0;const t=ue(e.target);c.fragment&&c.fragment.l(t),t.forEach(te)}else c.fragment&&c.fragment.c();e.intro&&Xe(t.$$.fragment),ln(t,e.target,e.anchor,e.customElement),Gt=!1,Ue()}ke(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&&(rn=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(Ct).filter(Dt);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){Vt(this.$$.on_disconnect)}$destroy(){sn(this,1),this.$destroy=xt}$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&&!Nt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class un{$destroy(){sn(this,1),this.$destroy=xt}$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&&!Nt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const dn=[];function hn(t,e=xt){let n;const r=new Set;function i(e){if(o=e,((i=t)!=i?o==o:i!==o||i&&"object"==typeof i||"function"==typeof i)&&(t=e,n)){const e=!dn.length;for(const e of r)e[1](),dn.push(e,t);if(e){for(let t=0;t<dn.length;t+=2)dn[t][0](dn[t+1]);dn.length=0}}var i,o}return{set:i,update:function(e){i(e(t))},subscribe:function(o,a=xt){const l=[o,a];return r.add(l),1===r.size&&(n=e(i)||xt),o(t),()=>{r.delete(l),0===r.size&&(n(),n=null)}}}}function pn(t,e,n){const r=!Array.isArray(t),i=r?[t]:t,o=e.length<2;return{subscribe:hn(n,(t=>{let n=!1;const a=[];let l=0,s=xt;const c=()=>{if(l)return;s();const n=e(r?a[0]:a,t);o?t(n):s=Dt(n)?n:xt},u=i.map(((t,e)=>It(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){Vt(u),s()}})).subscribe}}class fn{constructor(t,e){const n=this.convertValue(e);this.name=t,this.value=n}getName(){return this.name}subscribe(t){return this.store||(this.store=hn(this.value)),this.store.subscribe(t)}set(t){const e=this.fromString(t);this.setValue(e)}setValue(t){const e=this.convertValue(t);this.value=e,this.store&&this.store.set(e)}getValue(){return this.value}}const gn={string:class extends fn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"string"}},number:class extends fn{convertValue(t){if("number"!=typeof t||isNaN(t)||!isFinite(t))throw new Error("Incorrect variable value");return t}fromString(t){const e=Number(t);return this.convertValue(e)}getType(){return"number"}},integer:class extends fn{convertValue(t){if("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&(isNaN(t)||t!==Math.round(t))||t>i||t<o)throw new Error("Incorrect variable value");return a(t)}fromString(t){const e=a(t);return this.convertValue(e)}getType(){return"integer"}},boolean:class extends fn{convertValue(t){if(1!==t&&0!==t&&!0!==t&&!1!==t)throw new Error("Incorrect variable value");return Number(t)}fromString(t){if("1"===t||"true"===t)return 1;if("0"===t||"false"===t)return 0;throw new Error("Incorrect variable value")}getType(){return"boolean"}},color:class extends fn{convertValue(t){if("string"!=typeof t||!C(t))throw new Error("Incorrect variable value");return t}fromString(t){return this.convertValue(t)}getType(){return"color"}},url:class extends fn{convertValue(t){if("string"!=typeof t)throw new Error("Incorrect variable value");return t}fromString(t){return t}getType(){return"url"}}};function mn(t,e,n){if(!(e in gn))throw new Error("Unsupported variable type");return new gn[e](t,n)}function vn(t){return t.map(j).join(", ")}_("toString",[R],q),_("toString",[U],q),_("toString",[L],q),_("toString",[W],q),_("toString",["url"],q),_("toNumber",[R],G),_("toNumber",[B],G),_("toInteger",[U],(function(t,e){if(e.value>i||e.value<o)throw new Error("Unable to convert value to Integer.");const n=e.value-e.value%1;return{type:R,value:a(n)}})),_("toInteger",[B],(function(t,e){let n;try{n=a(e.value)}catch(t){throw new Error("Unable to convert value to Integer.")}if("number"==typeof n&&(isNaN(n)||n%1!=0)||n>i||n<o)throw new Error("Unable to convert value to Integer.");return{type:R,value:n}})),_("toInteger",[L],(function(t,e){return{type:R,value:a(e.value?1:0)}})),_("toBoolean",[R],(function(t,e){const n=Number(e.value);if(1!==n&&0!==n)throw new Error("Unable to convert value to Boolean.");return{type:L,value:n}})),_("toBoolean",[B],(function(t,e){if("true"!==e.value&&"false"!==e.value)throw new Error("Unable to convert value to Boolean.");return{type:L,value:"true"===e.value?1:0}})),_("toColor",[B],(function(t,e){return{type:W,value:T(e.value)}})),_("toUrl",[B],(function(t,e){return{type:"url",value:e.value}})),_("encodeUri",[B],(function(t,e){try{return{type:B,value:encodeURIComponent(e.value)}}catch(t){throw new Error("Unable to encodeUri string.")}})),_("decodeUri",[B],(function(t,e){try{return{type:B,value:decodeURIComponent(e.value)}}catch(t){throw new Error("Unable to decodeUri string.")}})),_("getIntegerValue",[B,R],X),_("getNumberValue",[B,U],X),_("getBooleanValue",[B,L],X),_("getStringValue",[B,B],X),_("getColorValue",[B,W],Y),_("getColorValue",[B,B],Y),_("getUrlValue",[B,"url"],Z),_("getUrlValue",[B,B],Z),_("parseUnixTime",[R],(function(t,e){return{type:H,value:new Date(1e3*Number(e.value))}})),_("nowLocal",[],(function(){return{type:H,value:new Date}})),_("addMillis",[H,R],(function(t,e,n){return{type:H,value:new Date(e.value.getTime()+Number(n.value))}})),_("setYear",[H,R],(function(t,e,n){const r=new Date(e.value);return r.setUTCFullYear(Number(n.value)),{type:H,value:r}})),_("setMonth",[H,R],(function(t,e,n){const r=Number(n.value);if(r<1||r>12)throw new Error("Expecting month in [1..12], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMonth(r-1),{type:H,value:i}})),_("setDay",[H,R],(function(t,e,n){const r=new Date(e.value),i=Number(n.value);if(i<=0&&-1!==i||i>function(t){const e=new Date(t);return e.setUTCMonth(e.getUTCMonth()+1),e.setUTCDate(0),e.getUTCDate()}(r))throw new Error("Unable to set day ".concat(i," for date ").concat(D(e),"."));return r.setUTCDate(-1===i?0:i),{type:H,value:r}})),_("setHours",[H,R],(function(t,e,n){const r=Number(n.value);if(r<0||r>23)throw new Error("Expecting hours in [0..23], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCHours(r),{type:H,value:i}})),_("setMinutes",[H,R],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting minutes in [0..59], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMinutes(r),{type:H,value:i}})),_("setSeconds",[H,R],(function(t,e,n){const r=Number(n.value);if(r<0||r>59)throw new Error("Expecting seconds in [0..59], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCSeconds(r),{type:H,value:i}})),_("setMillis",[H,R],(function(t,e,n){const r=Number(n.value);if(r<0||r>999)throw new Error("Expecting millis in [0..999], instead got ".concat(r,"."));const i=new Date(e.value);return i.setUTCMilliseconds(r),{type:H,value:i}})),_("getYear",[H],tt),_("getMonth",[H],et),_("getDay",[H],nt),_("getDayOfWeek",[H],rt),_("getHours",[H],it),_("getMinutes",[H],ot),_("getSeconds",[H],at),_("getMillis",[H],lt),_("getIntervalSeconds",[R],(function(t,e){return wt(t,e,1e3,60)})),_("getIntervalTotalSeconds",[R],(function(t,e){return wt(t,e,1e3)})),_("getIntervalMinutes",[R],(function(t,e){return wt(t,e,6e4,60)})),_("getIntervalTotalMinutes",[R],(function(t,e){return wt(t,e,6e4)})),_("getIntervalHours",[R],(function(t,e){return wt(t,e,36e5,24)})),_("getIntervalTotalHours",[R],(function(t,e){return wt(t,e,36e5)})),_("getIntervalTotalDays",[R],(function(t,e){return wt(t,e,864e5)})),_("getIntervalTotalWeeks",[R],(function(t,e){return wt(t,e,6048e5)})),_("len",[B],(function(t,e){return{type:R,value:e.value.length}})),_("contains",[B,B],(function(t,e,n){return{type:L,value:e.value.includes(n.value)?1:0}})),_("substring",[B,R,R],(function(t,e,n,r){if(r.value<n.value)throw new Error("Indexes should be in ascending order.");if(n.value<0||n.value>e.value.length||r.value<0||r.value>e.value.length)throw new Error("Indexes are out of bounds.");return{type:B,value:e.value.substring(Number(n.value),Number(r.value))}})),_("replaceAll",[B,B,B],(function(t,e,n,r){let i;return i=n.value?e.value.replace(new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(n.value),"g"),r.value):e.value,{type:B,value:i}})),_("index",[B,B],(function(t,e,n){return{type:R,value:e.value.indexOf(n.value)}})),_("lastIndex",[B,B],(function(t,e,n){return{type:R,value:e.value.lastIndexOf(n.value)}})),_("trim",[B],(function(t,e){return{type:B,value:e.value.trim()}})),_("trimLeft",[B],(function(t,e){return{type:B,value:e.value.replace(/^\s+/,"")}})),_("trimRight",[B],(function(t,e){return{type:B,value:e.value.replace(/\s+$/,"")}})),_("toUpperCase",[B],(function(t,e){return{type:B,value:e.value.toUpperCase()}})),_("toLowerCase",[B],(function(t,e){return{type:B,value:e.value.toLowerCase()}})),_("padStart",[B,R,B],ut),_("padStart",[R,R,B],ut),_("padEnd",[B,R,B],dt),_("padEnd",[R,R,B],dt),_("div",[R,R],(function(t,e,n){if(n.value===l)throw new Error("Division by zero is not supported.");let r=e.value/n.value;return r=S(0,r),N(t,r),{type:R,value:r}})),_("div",[U,U],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value/n.value;return{type:U,value:r}})),_("mod",[R,R],(function(t,e,n){if(n.value===l)throw new Error("Division by zero is not supported.");let r=e.value%n.value;return r=S(0,r),N(t,r),{type:R,value:r}})),_("mod",[U,U],(function(t,e,n){if(0===n.value)throw new Error("Division by zero is not supported.");const r=e.value%n.value;return{type:U,value:r}})),_("mul",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:l;for(let e=1;e<n.length;++e)i*=n[e].value,i=S(0,i),N(t,i);return{type:R,value:i}})),_("mul",[{type:U,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i*=n[t].value;return{type:U,value:i}})),_("sub",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:l;for(let e=1;e<n.length;++e)i-=n[e].value,i=S(0,i),N(t,i);return{type:R,value:i}})),_("sub",[{type:U,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=n.length?n[0].value:0;for(let t=1;t<n.length;++t)i-=n[t].value;return{type:U,value:i}})),_("sum",[{type:R,isVararg:!0}],(function(t){let e=l;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n=0;n<r.length;++n)e+=r[n].value,e=S(0,e),N(t,e);return{type:R,value:e}})),_("sum",[{type:U,isVararg:!0}],(function(t){let e=0;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let t=0;t<r.length;++t)e+=r[t].value;return{type:U,value:e}})),_("abs",[R],(function(t,e){const n=s(e.value);return N(t,n),{type:e.type,value:n}})),_("abs",[U],(function(t,e){const n=Math.abs(e.value);return{type:U,value:n}})),_("max",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");let i=n[0].value;for(let t=1;t<n.length;++t)n[t].value>i&&(i=n[t].value);return{type:R,value:i}})),_("max",[{type:U,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'max'.");return{type:U,value:Math.max(...n.map((t=>t.value)))}})),_("min",[{type:R,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");let i=n[0].value;for(let t=1;t<n.length;++t)n[t].value<i&&(i=n[t].value);return{type:R,value:i}})),_("min",[{type:U,isVararg:!0}],(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)throw new Error("Non empty argument list is required for function 'min'.");return{type:U,value:Math.min(...n.map((t=>t.value)))}})),_("maxNumber",[],(function(){return{type:U,value:O}})),_("minNumber",[],(function(){return{type:U,value:J}})),_("maxInteger",[],(function(t){return N(t,i),{type:R,value:i}})),_("minInteger",[],(function(t){return N(t,o),{type:R,value:o}})),_("round",[U],(function(t,e){const n=Math.sign(e.value);return{type:U,value:n*Math.round(Math.abs(e.value))}})),_("floor",[U],(function(t,e){return{type:U,value:Math.floor(e.value)}})),_("ceil",[U],(function(t,e){return{type:U,value:Math.ceil(e.value)}})),_("signum",[R],(function(t,e){return{type:R,value:c(e.value)}})),_("signum",[U],(function(t,e){return{type:U,value:Math.sign(e.value)}})),_("copySign",[R,R],(function(t,e,n){let r;if(n.value===l)r=e.value;else if(e.value===l)r=0;else{const t=c(n.value);r=s(e.value)*t}return N(t,r),{type:R,value:r}})),_("copySign",[U,U],(function(t,e,n){let r=Math.sign(n.value);0===r&&(r=Object.is(r,0)?1:-1);const i=Math.abs(e.value)*r;return{type:U,value:i}})),_("getColorAlpha",[B],ft),_("getColorAlpha",[W],ft),_("getColorRed",[B],gt),_("getColorRed",[W],gt),_("getColorGreen",[B],mt),_("getColorGreen",[W],mt),_("getColorBlue",[B],vt),_("getColorBlue",[W],vt),_("setColorAlpha",[B,U],yt),_("setColorAlpha",[W,U],yt),_("setColorRed",[B,U],$t),_("setColorRed",[W,U],$t),_("setColorGreen",[B,U],_t),_("setColorGreen",[W,U],_t),_("setColorBlue",[B,U],bt),_("setColorBlue",[W,U],bt),_("rgb",[U,U,U],(function(t,e,n,r){const i={a:255,r:255*e.value,g:255*n.value,b:255*r.value};return{type:W,value:M(i)}})),_("argb",[U,U,U,U],(function(t,e,n,r,i){const o={a:255*e.value,r:255*n.value,g:255*r.value,b:255*i.value};return{type:W,value:M(o)}}));const yn={StringLiteral:function(t,e){return{type:B,value:e.value}},NumberLiteral:function(t,e){return{type:U,value:e.value}},IntegerLiteral:function(t,e){return N(t,e.value),{type:R,value:e.value}},BooleanLiteral:function(t,e){return{type:L,value:e.value?1:0}},UnaryExpression:function(t,e){const n=A($n(t,e.argument));switch(e.operator){case"!":if(n.type===L)return{type:L,value:n.value?0:1};F("".concat(e.operator).concat(j(n)),"A Boolean is expected after a unary not.");case"+":case"-":const r="+"===e.operator?1:-1;if(n.type===R){const e=n.value*a(r);return N(t,e),{type:R,value:e}}if(n.type===U)return{type:U,value:n.value*r};F("".concat(e.operator).concat(j(n)),"A Number is expected after a unary ".concat("+"===e.operator?"plus":"minus","."))}},ConditionalExpression:function(t,e){const n=A($n(t,e.test));if(n.type===L)return n.value?$n(t,e.consequent):$n(t,e.alternate);F("".concat(j(n)," ? ").concat(j($n(t,e.consequent))," : ").concat(j($n(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 $n(t,e.expressions[0]);for(let r=0;r<e.expressions.length;++r)n+=e.quasis[r].value,n+=D($n(t,e.expressions[r]));return n+=e.quasis[e.quasis.length-1].value,{type:B,value:n}},LogicalExpression:function(t,e){const n=A($n(t,e.left));if(n.type!==L&&F("".concat(j(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:L,value:0};const r=A($n(t,e.right));return r.type!==L&&F("".concat(j(n)," ").concat(e.operator," ").concat(j(r)),"Operator '".concat(e.operator,"' cannot be applied to different types: Boolean and ").concat(P(r.type),".")),{type:L,value:r.value}},BinaryExpression:function(t,e){const n=e.operator,r=$n(t,e.left),i=$n(t,e.right);if(r.type!==i.type&&F("".concat(j(r)," ").concat(e.operator," ").concat(j(i)),"Operator '".concat(n,"' cannot be applied to different types: ").concat(P(r.type)," and ").concat(P(i.type),".")),"=="===n||"!="===n)return function(t,e,n){let r;return r=e.type===H&&n.type===H?e.value.getTime()===n.value.getTime():e.value===n.value,"!="===t&&(r=!r),{type:L,value:r?1:0}}(n,r,i);if(">"===n||">="===n||"<"===n||"<="===n)return function(t,e,n){let r;e.type!==U&&e.type!==R&&e.type!==H&&F("".concat(j(e)," ").concat(t," ").concat(j(n)),"Operator '".concat(t,"' cannot be applied to ").concat(P(e.type)," type."));const i=e.type===H?e.value.getTime():e.value,o=n.type===H?n.value.getTime():n.value;return r=">"===t?i>o:">="===t?i>=o:"<"===t?i<o:i<=o,{type:L,value:r?1:0}}(n,r,i);if("+"===n||"-"===n)return function(t,e,n,r){if(n.type!==B&&n.type!==U&&n.type!==R&&F("".concat(j(n)," ").concat(e," ").concat(j(r)),"Operator '".concat(e,"' cannot be applied to ").concat(P(n.type)," type.")),n.type===B)return"-"===e&&F("".concat(j(n)," - ").concat(j(r)),"Operator '".concat(e,"' cannot be applied to ").concat(P(n.type)," type.")),{type:B,value:n.value+r.value};let i="+"===e?n.value+r.value:n.value-r.value;if(n.type===R)try{i=S(0,i),N(t,i)}catch(t){F("".concat(j(n)," ").concat(e," ").concat(j(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);if("/"===n||"*"===n||"%"===n)return function(t,e,n,r){let i;if(n.type!==R&&n.type!==U&&F("".concat(j(n)," ").concat(e," ").concat(j(r)),"Operator '".concat(e,"' cannot be applied to ").concat(P(n.type)," type.")),"*"===e)i=n.value*r.value;else{if("/"!==e&&"%"!==e)throw new Error("Unsupported operation ".concat(e));0===Number(r.value)&&F("".concat(j(n)," ").concat(e," ").concat(j(r)),"Division by zero is not supported."),i="/"===e?n.value/r.value:n.value%r.value}if(n.type===R)try{i=S(0,i),N(t,i)}catch(t){F("".concat(j(n)," ").concat(e," ").concat(j(r)),t.message)}return{type:n.type,value:i}}(t,n,r,i);throw new Error("Unsupported operation ".concat(n))},CallExpression:function(t,e){const n=e.callee.name;let r;const i=e.arguments.map((e=>$n(t,e))),o=n+":"+i.map((t=>t.type)).join("#");if($.has(o))r=$.get(o);else{const t=function(t,e){const n=y.get(t);if(!n)return{type:"missing"};let r=null;for(let t=0;t<n.length;++t){const i=b(n[t],e);if("match"===i.type)return n[t];r||(r=i)}if(!r)throw new Error("Missing function");return r}(n,i);if("expected"in t||"type"in t&&"missing"===t.type){const e=i.map((t=>P(t.type))).join(", "),r="".concat(n,"(").concat(vn(i),")");"few"===t.type&&0===i.length?F(r,"Non empty argument list is required for function '".concat(n,"'.")):"many"===t.type||"few"===t.type||"mismatch"===t.type?F(r,"Function '".concat(n,"' has no matching override for given argument types: ").concat(e,".")):F(r,"Unknown function name: ".concat(n,"."))}r=t}if(!r)throw new Error("Function not found");try{return r.cb(t,...i)}catch(t){F("".concat(n,"(").concat(vn(i),")"),t.message)}},Variable:function(t,e){const n=e.id.name,r=t.variables.get(n);if(r)return function(t){return{type:t.getType(),value:t.getValue()}}(r);throw new Error("Variable '".concat(n,"' is missing."))}};function $n(t,e){if(e.type in yn)return yn[e.type](t,e);throw new Error("Unsupported expression")}function _n(t,e){try{const n={variables:t,warnings:[],safeIntegerOverflow:!1};!function(t,e){let n="";if(w(e,{Variable(e){n||t.variables.has(e.id.name)||(n=e.id.name)}}),n)throw new Error("Variable '".concat(n,"' is missing."))}(n,e);const r=$n(n,e);return n.safeIntegerOverflow&&n.warnings.push(st(new Error("Safe integer overflow, values may lose accuracy."),{level:"warn"})),{result:r,warnings:n.warnings}}catch(t){return{result:{type:"error",value:t.message},warnings:[]}}}const bn=Symbol("root"),wn={text:"divkit-d9b0e",text_halign_left:"divkit-a4cb7",text_halign_center:"divkit-e1659",text_halign_right:"divkit-ea280",text_valign_top:"divkit-d8ce0",text_valign_center:"divkit-ef58e",text_valign_bottom:"divkit-fe8ed",text_valign_baseline:"divkit-e0c6c",text__inner:"divkit-b8528",text_singleline:"divkit-ef11c",text_truncate_none:"divkit-c6ea1",text_multiline:"divkit-ee8e3",text__inner_gradient:"divkit-cb8e0",text__image:"divkit-bf6e2",text__image_hidden:"divkit-f1002"},xn={outer:"divkit-d65a7","outer_hide-on-transition-in":"divkit-a6d12","outer_halign-self_start":"divkit-cc452","outer_halign-self_center":"divkit-b8331","outer_halign-self_end":"divkit-c573c","outer_halign-self_stretch":"divkit-dcc74","outer_valign-self_start":"divkit-e8077","outer_valign-self_center":"divkit-d40a7","outer_valign-self_end":"divkit-e9f84","outer_valign-self_stretch":"divkit-b7aa3","outer_parent-flex_vertical":"divkit-c143f","outer_parent-flex_horizontal":"divkit-ef302","outer_valign-self_baseline":"divkit-e72b5",outer_width_content:"divkit-b8f4d",outer_height_content:"divkit-faa66","outer_width-constrained":"divkit-d3211","outer_parent-grid":"divkit-ff439","outer_height-constrained":"divkit-a5256","outer_parent-overlap":"divkit-dab2d","outer_parent-overlap-absolute":"divkit-d43fb","outer_scroll-snap_center":"divkit-d9e38","outer_scroll-snap_start":"divkit-efd1e",outer__border:"divkit-d4056",outer_visibility_invisible:"divkit-f018b",outer_visibility_gone:"divkit-e784b","outer_has-action-animation":"divkit-f4980"};function kn(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 En(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 Cn(t){let e=En(t);return"0"===e&&(e+="em"),e}function An(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 Vn=Boolean;function Dn(t){if(1===t.length&&"solid"===t[0].type)return{color:k(t[0].color||"transparent"),size:"auto",position:"50% 50%"};const e=t.map((t=>"solid"===t.type?function(t){const e=k(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(Vn);return n.length?{size:void 0,pos:void 0,image:"linear-gradient("+(90-Number(t.bg.angle||0))+"deg,"+n.map((t=>k(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:Sn(t.bg.scale),pos:Nn(t.bg),image:'url("'+An(n)+'")'}}({bg:t}):"radial_gradient"===t.type?function(t){var e;if(!Array.isArray(null===(e=t.bg)||void 0===e?void 0:e.colors))return;const n=t.bg.colors.filter(Vn);if(!n.length)return;const r=t.bg.radius;let i;r&&"object"==typeof r&&"type"in r&&void 0!==r.value&&("fixed"===r.type?i=Cn(r.value):"relative"===r.type&&(i=jn[r.value]));const o=Pn(t.bg.center_x),a=Pn(t.bg.center_y);return{size:void 0,pos:void 0,image:"radial-gradient("+"circle ".concat(i||"farthest-corner"," at ").concat(o," ").concat(a)+","+n.map((t=>k(t))).join(",")+")"}}({bg:t}):void 0)).filter(Vn).reverse().reduce((function(t,e){return t.image.push(e.image),t.size.push(e.size||"auto"),t.position.push(e.pos||"50% 50%"),t}),{image:[],size:[],position:[]});return{image:e.image.join(","),size:e.size.join(","),position:e.position.join(",")}}const jn={nearest_corner:"closest-corner",farthest_corner:"farthest-corner",nearest_side:"closest-side",farthest_side:"farthest-side"};function Pn(t){if(t&&"object"==typeof t&&"type"in t&&void 0!==t.value){if("fixed"===t.type)return Cn(t.value);if("relative"===t.type)return"".concat(100*Number(t.value),"%")}return"50%"}function Sn(t){return"fit"===t?"contain":"stretch"===t?"fill":"no_scale"===t?"none":"cover"}function Nn(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 In(t){const e=/^([^/]+):\/\//.exec(t);return e&&e[1]||""}function Fn(t,e){return e.has(t)}function zn(t,e){e&&t.push(e)}function Mn(t,e,n){const r=[];zn(r,e[t]);for(const i in n)if(n.hasOwnProperty(i)){const o=n[i];o&&zn(r,e["".concat(t,"_").concat(i)+("string"==typeof o?"_".concat(o):"")])}return r.join(" ")}const Tn=function(t,e){var n;let{json:r,origJson:i,templateContext:o,rootCtx:a}=e;return null===(n=a.registerComponent)||void 0===n||n.call(a,{node:t,json:r,origJson:i,templateContext:o}),{destroy(){var e;null===(e=a.unregisterComponent)||void 0===e||e.call(a,{node:t})}}},On=Symbol("state");function Jn(t){return En(t.top||0)+" "+En(t.right||0)+" "+En(t.bottom||0)+" "+En(t.left||0)}function Bn(t){if("number"!=typeof t&&"string"!=typeof t)return!1;const e=Number(t);return!isNaN(e)}function Rn(t){return Bn(t)&&t>=0}function Un(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]&&!Rn(n[t]))return e;return Jn(t)}function Ln(t,e){const n=Number(t);return isNaN(n)||n<0?e:n}const Wn=Object.prototype.hasOwnProperty;function Hn(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return Object.is(t,e);const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!Wn.call(e,i)||!Hn(t[i],e[i]))return!1}return!0}function qn(t,e){return Hn(t,e)?e:t}function Gn(t,e){return"linear"===t||"ease"===t||"ease_in_out"===t||"ease_in"===t||"ease_out"===t?t:e}function Kn(t,e){const n=Number(t);return isNaN(n)?e:n}function Xn(t){const e=[];return"set"===t.name?(t.items||[]).forEach((t=>{e.push(...Xn(t))})):e.push(t),e}function Yn(t,e){if(!t||"object"!=typeof t)return e;const n=["top","right","bottom","left"];for(let r=0;r<n.length;++r)if(t[n[r]]&&!Rn(t[n[r]]))return e;return t}function Zn(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=>En((t||e)/n*10))).join(" ")}function Qn(){}const tr=Symbol("action");function er(t){const e=t.touches[0];return{x:e.clientX||e.pageX,y:e.clientY||e.pageY}}function nr(t){var e;let n,r,i,o,a,l,s,c;const u=t[19].default,d=zt(u,t,t[18],null);let h=[{class:r=t[2]+(t[9]?" ".concat(t[6]?"divkit-bd259":"divkit-d9099"," ").concat("divkit-c016b"):"")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?"divkit-f0cba":"")},{style:t[3]},{role:i=t[9]?"button":null},{tabindex:o=t[9]?0:null},t[4]],p={};for(let t=0;t<h.length;t+=1)p=Et(p,h[t]);return{c(){n=ne("span"),d&&d.c(),this.h()},l(t){n=pe(t,"SPAN",{class:!0,style:!0,role:!0,tabindex:!0});var e=ue(n);d&&d.l(e),e.forEach(te),this.h()},h(){ce(n,p)},m(e,r){Qt(e,n,r),d&&d.m(n,null),l=!0,s||(c=[Rt(a=t[5].call(null,n)),le(n,"click",(function(){Dt(t[9]?t[10]:null)&&(t[9]?t[10]:null).apply(this,arguments)})),le(n,"click",t[21]),le(n,"dblclick",(function(){var e,n;Dt(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),le(n,"touchstart",(function(){var e,n;Dt(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),le(n,"touchmove",(function(){var e,n;Dt(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),le(n,"touchend",(function(){var e,n;Dt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),le(n,"touchcancel",(function(){var e,n;Dt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),le(n,"keydown",t[15])],s=!0)},p(e,a){var s;t=e,d&&d.p&&(!l||262144&a)&&Ot(d,u,t,t[18],l?Tt(u,t[18],a,null):Jt(t[18]),null),ce(n,p=nn(h,[(!l||582&a&&r!==(r=t[2]+(t[9]?" ".concat(t[6]?"divkit-bd259":"divkit-d9099"," ").concat("divkit-c016b"):"")+" "+(null!==(s=t[1])&&void 0!==s&&s.length?"divkit-f0cba":"")))&&{class:r},(!l||8&a)&&{style:t[3]},(!l||512&a&&i!==(i=t[9]?"button":null))&&{role:i},(!l||512&a&&o!==(o=t[9]?0:null))&&{tabindex:o},16&a&&t[4]]))},i(t){l||(Xe(d,t),l=!0)},o(t){Ye(d,t),l=!1},d(t){t&&te(n),d&&d.d(t),s=!1,Vt(c)}}}function rr(t){var e;let n,r,i,o,a,l;const s=t[19].default,c=zt(s,t,t[18],null);let u=[{href:t[7]},{target:t[8]},{style:t[3]},{class:r=t[2]+" "+(t[6]?"divkit-bd259":"divkit-d9099")+" "+(null!==(e=t[1])&&void 0!==e&&e.length?"divkit-f0cba":"")},t[4]],d={};for(let t=0;t<u.length;t+=1)d=Et(d,u[t]);return{c(){n=ne("a"),c&&c.c(),this.h()},l(t){n=pe(t,"A",{href:!0,target:!0,style:!0,class:!0});var e=ue(n);c&&c.l(e),e.forEach(te),this.h()},h(){ce(n,d)},m(e,r){Qt(e,n,r),c&&c.m(n,null),o=!0,a||(l=[Rt(i=t[5].call(null,n)),le(n,"click",t[10]),le(n,"click",t[20]),le(n,"dblclick",(function(){var e,n;Dt(null!==(e=t[0])&&void 0!==e&&e.length?t[11]:null)&&(null!==(n=t[0])&&void 0!==n&&n.length?t[11]:null).apply(this,arguments)})),le(n,"touchstart",(function(){var e,n;Dt(null!==(e=t[1])&&void 0!==e&&e.length?t[12]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[12]:null).apply(this,arguments)})),le(n,"touchmove",(function(){var e,n;Dt(null!==(e=t[1])&&void 0!==e&&e.length?t[13]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[13]:null).apply(this,arguments)})),le(n,"touchend",(function(){var e,n;Dt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),le(n,"touchcancel",(function(){var e,n;Dt(null!==(e=t[1])&&void 0!==e&&e.length?t[14]:null)&&(null!==(n=t[1])&&void 0!==n&&n.length?t[14]:null).apply(this,arguments)})),le(n,"keydown",t[15])],a=!0)},p(e,i){var a;t=e,c&&c.p&&(!o||262144&i)&&Ot(c,s,t,t[18],o?Tt(s,t[18],i,null):Jt(t[18]),null),ce(n,d=nn(u,[(!o||128&i)&&{href:t[7]},(!o||256&i)&&{target:t[8]},(!o||8&i)&&{style:t[3]},(!o||70&i&&r!==(r=t[2]+" "+(t[6]?"divkit-bd259":"divkit-d9099")+" "+(null!==(a=t[1])&&void 0!==a&&a.length?"divkit-f0cba":"")))&&{class:r},16&i&&t[4]]))},i(t){o||(Xe(c,t),o=!0)},o(t){Ye(c,t),o=!1},d(t){t&&te(n),c&&c.d(t),a=!1,Vt(l)}}}function ir(t){let e,n,r,i;const o=[rr,nr],a=[];function l(t,e){return t[7]?0:1}return e=l(t),n=a[e]=o[e](t),{c(){n.c(),r=ae()},l(t){n.l(t),r=ae()},m(t,n){a[e].m(t,n),Qt(t,r,n),i=!0},p(t,i){let[s]=i,c=e;e=l(t),e===c?a[e].p(t,s):(Ge(),Ye(a[c],1,1,(()=>{a[c]=null})),Ke(),n=a[e],n?n.p(t,s):(n=a[e]=o[e](t),n.c()),Xe(n,1),n.m(r.parentNode,r))},i(t){i||(Xe(n),i=!0)},o(t){Ye(n),i=!1},d(t){a[e].d(t),t&&te(r)}}}function or(t,e,n){let{$$slots:r={},$$scope:i}=e,{actions:o}=e,{doubleTapActions:a}=e,{longTapActions:l}=e,{cls:s=""}=e,{style:c=null}=e,{attrs:u}=e,{use:d=Qn}=e,{customAction:h=null}=e,{isNativeActionAnimation:p=!0}=e;const f=De(bn),g=De(tr);Ve(tr,{hasAction:()=>Boolean(g.hasAction()||(null==o?void 0:o.length))});let m,v="",y=-1,$=null,_=!1,b=!1;return t.$$set=t=>{"actions"in t&&n(16,o=t.actions),"doubleTapActions"in t&&n(0,a=t.doubleTapActions),"longTapActions"in t&&n(1,l=t.longTapActions),"cls"in t&&n(2,s=t.cls),"style"in t&&n(3,c=t.style),"attrs"in t&&n(4,u=t.attrs),"use"in t&&n(5,d=t.use),"customAction"in t&&n(17,h=t.customAction),"isNativeActionAnimation"in t&&n(6,p=t.isNativeActionAnimation),"$$scope"in t&&n(18,i=t.$$scope)},t.$$.update=()=>{if(196736&t.$$.dirty){if(Array.isArray(o)&&(null==o?void 0:o.length))for(let t=0;t<o.length;++t){const e=o[t].url;if(e){n(7,v=e),n(8,m=o[t].target||void 0);break}}Array.isArray(o)&&(null==o?void 0:o.length)&&g.hasAction()&&(n(7,v=""),f.logError(st(new Error("Actionable element is forbidden inside other actionable element"),{level:"warn",additional:{actions:o}}))),n(9,b=Boolean(h)),v&&!Fn(In(v),f.getBuiltinProtocols())&&(n(7,v=""),n(9,b=!0))}},[a,l,s,c,u,d,p,v,m,b,async function(t){g.hasAction()||void 0!==t.button&&0!==t.button||(!1===(null==h?void 0:h(t))?t.preventDefault():o&&(o.some((t=>{const e=null==t?void 0:t.url;if(!e)return!1;const n=In(e);return n&&!Fn(n,f.getBuiltinProtocols())}))&&t.preventDefault(),f.execAnyActions(o)))},function(t){g.hasAction()||void 0!==t.button&&0!==t.button||f.execAnyActions(a,!0)},function(t){t.touches.length>1||($=er(t),_=!1,y=Date.now())},function(t){if(!$)return;const e=er(t);(Math.abs($.x-e.x)>8||Math.abs($.y-e.y)>8)&&(_=!0)},function(){!$||y<0||(!_&&Date.now()-y>=400&&f.execAnyActions(l,!0),$=null,y=-1)},function(t){t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||"Enter"===t.key&&Array.isArray(o)&&o.length&&(f.execAnyActions(o),t.preventDefault())},o,h,i,r,function(e){je.call(this,t,e)},function(e){je.call(this,t,e)}]}const ar=class extends un{constructor(t){super(),cn(this,t,or,ir,St,{actions:16,doubleTapActions:0,longTapActions:1,cls:2,style:3,attrs:4,use:5,customAction:17,isNativeActionAnimation:6})}};function lr(t){return Bn(t)&&t>0}function sr(t,e){return t.map((t=>{if("blur"===(null==t?void 0:t.type)){if(lr(t.radius))return"blur(".concat(Cn(t.radius/2),")")}else e(st(new Error("Unknown filter"),{level:"warn",additional:{filter:null==t?void 0:t.type}}))})).filter(Boolean).join(" ")}function cr(t,e,n){const r=t.slice();return r[5]=e[n],r}function ur(t){let e,n,r;return{c(){e=ne("span"),this.h()},l(t){e=pe(t,"SPAN",{class:!0,style:!0}),ue(e).forEach(te),this.h()},h(){se(e,"class",n="divkit-b921d"),se(e,"style",r=kn(t[5].style))},m(t,n){Qt(t,e,n)},p(t,n){2&n&&r!==(r=kn(t[5].style))&&se(e,"style",r)},d(t){t&&te(e)}}}function dr(t){let e,n,r,i,o,a;return{c(){e=ne("img"),this.h()},l(t){e=pe(t,"IMG",{src:!0,alt:!0,"aria-hidden":!0,loading:!0,decoding:!0,class:!0,style:!0}),this.h()},h(){Pt(e.src,n=t[5].image_url)||se(e,"src",n),se(e,"alt",""),se(e,"aria-hidden","true"),se(e,"loading","lazy"),se(e,"decoding","async"),se(e,"class",r="divkit-b921d"),se(e,"style",i=kn(t[5].style))},m(n,r){Qt(n,e,r),o||(a=le(e,"error",t[2]),o=!0)},p(t,r){2&r&&!Pt(e.src,n=t[5].image_url)&&se(e,"src",n),2&r&&i!==(i=kn(t[5].style))&&se(e,"style",i)},d(t){t&&te(e),o=!1,a()}}}function hr(t){let e;function n(t,e){return t[5].image_url?dr:ur}let r=n(t),i=r(t);return{c(){i.c(),e=ae()},l(t){i.l(t),e=ae()},m(t,n){i.m(t,n),Qt(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){i.d(t),t&&te(e)}}}function pr(t){let e,n,r=t[1],i=[];for(let e=0;e<r.length;e+=1)i[e]=hr(cr(t,r,e));return{c(){e=ne("span");for(let t=0;t<i.length;t+=1)i[t].c();this.h()},l(t){e=pe(t,"SPAN",{class:!0});var n=ue(e);for(let t=0;t<i.length;t+=1)i[t].l(n);n.forEach(te),this.h()},h(){se(e,"class",n="divkit-bf253"+(t[0]?" divkit-dcad7":"")),ye(e,"border-radius",t[0],!1)},m(t,n){Qt(t,e,n);for(let t=0;t<i.length;t+=1)i[t].m(e,null)},p(t,o){let[a]=o;if(6&a){let n;for(r=t[1],n=0;n<r.length;n+=1){const o=cr(t,r,n);i[n]?i[n].p(o,a):(i[n]=hr(o),i[n].c(),i[n].m(e,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=r.length}1&a&&n!==(n="divkit-bf253"+(t[0]?" divkit-dcad7":""))&&se(e,"class",n),1&a&&ye(e,"border-radius",t[0],!1)},i:xt,o:xt,d(t){t&&te(e),ee(i,t)}}}function fr(t,e,n){let r,{background:i=[]}=e,{radius:o=""}=e;const a=De(bn);return t.$$set=t=>{"background"in t&&n(3,i=t.background),"radius"in t&&n(0,o=t.radius)},t.$$.update=()=>{8&t.$$.dirty&&n(1,r=i.map((t=>{const e={},n={style:e};if("nine_patch_image"===t.type&&t.insets)e["border-image"]='url("'.concat(t.image_url,'") ').concat(t.insets.top||0," ").concat(t.insets.right||0," ").concat(t.insets.bottom||0," ").concat(t.insets.left||0," fill"),e["border-image-width"]="auto";else{const r=Dn([t]);"solid"===t.type&&(e["background-color"]=r.color),"gradient"===t.type&&(e["background-image"]=r.image),"image"===t.type&&(e.opacity=Number(t.alpha),n.image_url=t.image_url,e["object-fit"]=r.size,e["object-position"]=r.position,Array.isArray(t.filters)&&t.filters.length&&(e.filter=sr(t.filters,a.logError)))}return n})))},[o,r,function(t){t.target&&"classList"in t.target&&t.target.classList.add("divkit-cd613")},i]}const gr=class extends un{constructor(t){super(),cn(this,t,fr,pr,St,{background:3,radius:0})}};function mr(t){let e,n;return e=new ar({props:{use:t[32],cls:t[0]+" "+Mn("outer",xn,t[15]),style:kn(t[13]),actions:t[10],doubleTapActions:t[11],longTapActions:t[12],attrs:t[6],isNativeActionAnimation:!t[4].length||br(t[4]),$$slots:{default:[$r]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};32769&n[0]&&(r.cls=t[0]+" "+Mn("outer",xn,t[15])),8192&n[0]&&(r.style=kn(t[13])),1024&n[0]&&(r.actions=t[10]),2048&n[0]&&(r.doubleTapActions=t[11]),4096&n[0]&&(r.longTapActions=t[12]),64&n[0]&&(r.attrs=t[6]),16&n[0]&&(r.isNativeActionAnimation=!t[4].length||br(t[4])),174&n[0]|262144&n[3]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function vr(t){let e,n;return e=new gr({props:{background:t[5],radius:t[2]}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};32&n[0]&&(r.background=t[5]),4&n[0]&&(r.radius=t[2]),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function yr(t){let e,n,r;return{c(){e=ne("span"),this.h()},l(t){e=pe(t,"SPAN",{class:!0,style:!0}),ue(e).forEach(te),this.h()},h(){se(e,"class",n=xn.outer__border),se(e,"style",r=kn(t[1]))},m(t,n){Qt(t,e,n)},p(t,n){2&n[0]&&r!==(r=kn(t[1]))&&se(e,"style",r)},d(t){t&&te(e)}}}function $r(t){let e,n,r,i=t[3]&&vr(t);const o=t[110].default,a=zt(o,t,t[111],null);let l=t[7]&&yr(t);return{c(){i&&i.c(),e=ae(),a&&a.c(),l&&l.c(),n=ae()},l(t){i&&i.l(t),e=ae(),a&&a.l(t),l&&l.l(t),n=ae()},m(t,o){i&&i.m(t,o),Qt(t,e,o),a&&a.m(t,o),l&&l.m(t,o),Qt(t,n,o),r=!0},p(t,s){t[3]?i?(i.p(t,s),8&s[0]&&Xe(i,1)):(i=vr(t),i.c(),Xe(i,1),i.m(e.parentNode,e)):i&&(Ge(),Ye(i,1,1,(()=>{i=null})),Ke()),a&&a.p&&(!r||262144&s[3])&&Ot(a,o,t,t[111],r?Tt(o,t[111],s,null):Jt(t[111]),null),t[7]?l?l.p(t,s):(l=yr(t),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(t){r||(Xe(i),Xe(a,t),r=!0)},o(t){Ye(i),Ye(a,t),r=!1},d(t){i&&i.d(t),t&&te(e),a&&a.d(t),l&&l.d(t),t&&te(n)}}}function _r(t){let e,n,r=!t[8]&&!t[9]&&mr(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,i){r&&r.m(t,i),Qt(t,e,i),n=!0},p(t,n){t[8]||t[9]?r&&(Ge(),Ye(r,1,1,(()=>{r=null})),Ke()):r?(r.p(t,n),768&n[0]&&Xe(r,1)):(r=mr(t),r.c(),Xe(r,1),r.m(e.parentNode,e))},i(t){n||(Xe(r),n=!0)},o(t){Ye(r),n=!1},d(t){r&&r.d(t),t&&te(e)}}}function br(t){return t.some((t=>"native"===t.name))}function wr(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,j,P,S,N,I,F,z,M,T,O,J,B,R,U,L,W=xt,H=xt,q=xt,G=xt,K=xt,X=xt,Y=xt,Z=xt,Q=xt,tt=xt,et=xt,nt=xt,rt=xt,it=xt,ot=xt,at=xt,lt=xt;t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y())),t.$$.on_destroy.push((()=>Z())),t.$$.on_destroy.push((()=>Q())),t.$$.on_destroy.push((()=>tt())),t.$$.on_destroy.push((()=>et())),t.$$.on_destroy.push((()=>nt())),t.$$.on_destroy.push((()=>rt())),t.$$.on_destroy.push((()=>it())),t.$$.on_destroy.push((()=>ot())),t.$$.on_destroy.push((()=>at())),t.$$.on_destroy.push((()=>lt()));let{$$slots:ct={},$$scope:ut}=e;var dt,ht,pt,ft,gt,mt;let{json:vt={}}=e,{origJson:yt}=e,{templateContext:$t}=e,{cls:_t=""}=e,{style:bt}=e,{layoutParams:wt={}}=e,{customDescription:kt=!1}=e,{customPaddings:Et=!1}=e,{customActions:Ct=""}=e,{additionalPaddings:At=null}=e,{heightByAspect:Vt=!1}=e;const Dt={left:"start",center:"center",right:"end"},jt={top:"start",center:"center",bottom:"end",baseline:"baseline"},Pt=De(bn),St=De(On);let Nt,Ft,zt,Mt,Tt,Ot,Jt,Bt,Rt,Ut,Lt,Wt=null,Ht={},qt={},Gt=!1,Kt=1,Xt="transparent",Yt=0,Zt={"top-left":0,"top-right":0,"bottom-right":0,"bottom-left":0},Qt="",te=null,ee="",ne={},re=0,ie=0,oe=0,ae=!1,le=!1,se={},ce=0,ue=0,de=0,he=!1,pe=!1,fe=1;const ge=wt.fakeElement?[]:vt.transition_triggers||["state_change","visibility_change"],me=-1!==ge.indexOf("state_change")&&vt.id,ve=-1!==ge.indexOf("visibility_change")&&vt.id;let ye,$e,_e,be,we,xe,ke,Ee=[],Ce=[],Ae=[],Ve=[],je="";function Pe(t){const e=Kn(t.start_value,1),r=Kn(t.end_value,1),i=Ln(t.start_delay,0),o=Ln(t.duration,300),a=Gn(t.interpolator,"ease_in_out").replace(/_/g,"-");switch(t.name){case"fade":return n(79,be=e),n(80,we=r),"opacity ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"scale":return n(81,xe=e),n(82,ke=r),"transform ".concat(o,"ms ").concat(a," ").concat(i,"ms");case"native":case"no_animation":return"";default:return Pt.logError(st(new Error("Unknown action_animation name"),{additional:{animation:t.name}})),""}}let Se,Ne,Ie=!1,Fe="visible",ze=0,Me=0;return t.$$set=t=>{"json"in t&&n(33,vt=t.json),"origJson"in t&&n(34,yt=t.origJson),"templateContext"in t&&n(35,$t=t.templateContext),"cls"in t&&n(0,_t=t.cls),"style"in t&&n(36,bt=t.style),"layoutParams"in t&&n(37,wt=t.layoutParams),"customDescription"in t&&n(38,kt=t.customDescription),"customPaddings"in t&&n(39,Et=t.customPaddings),"customActions"in t&&n(40,Ct=t.customActions),"additionalPaddings"in t&&n(41,At=t.additionalPaddings),"heightByAspect"in t&&n(42,Vt=t.heightByAspect),"$$scope"in t&&n(111,ut=t.$$scope)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&(n(31,r=Pt.getDerivedFromVars(vt.border)),lt(),lt=It(r,(t=>n(109,L=t)))),2&t.$$.dirty[0]|8384512&t.$$.dirty[1]|65536&t.$$.dirty[3]){let t={},e={},r=!1,i="";if(L){if(L.has_shadow){const e=L.shadow;t["box-shadow"]=e?En((null===n(44,ht=null===n(43,dt=e.offset)||void 0===dt?void 0:dt.x)||void 0===ht?void 0:ht.value)||0)+" "+En((null===n(46,ft=null===n(45,pt=e.offset)||void 0===pt?void 0:pt.y)||void 0===ft?void 0:ft.value)||0)+" "+En(null!==n(47,gt=e.blur)&&void 0!==gt?gt:2)+" "+k(e.color||"#000000",null!==n(48,mt=e.alpha)&&void 0!==mt?mt:.19):"0 1px 2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07)"}if(L.stroke&&(r=!0,n(50,Kt=Ln(L.stroke.width,Kt)),n(51,Xt=k(L.stroke.color,1,Xt)),e.border="".concat(En(Kt)," solid ").concat(Xt)),L.corners_radius?(n(53,Zt=function(t,e){const n=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<n.length;++t)if(n[t]&&!Rn(n[t]))return e;return t}(L.corners_radius,Zt)),e["border-radius"]=t["border-radius"]=Zn(Zt)):L.corner_radius&&(n(52,Yt=Ln(L.corner_radius,Yt)),n(53,Zt={"top-left":Yt,"top-right":Yt,"bottom-right":Yt,"bottom-left":Yt}),e["border-radius"]=t["border-radius"]=En(Yt)),r&&Kt&&(L.corners_radius||L.corner_radius)){let t=Object.assign({},Zt);["top-left","top-right","bottom-right","bottom-left"].forEach((e=>{t[e]=(t[e]||0)+Kt/2})),i=Zn(t)}}n(49,Ht=qn(t,Ht)),n(1,qt=qn(e,qt)),n(7,Gt=r),n(2,Qt=i)}if(4&t.$$.dirty[1]&&(n(30,i=Pt.getDerivedFromVars(vt.paddings)),at(),at=It(i,(t=>n(108,U=t)))),8388864&t.$$.dirty[1]|32768&t.$$.dirty[3]&&n(54,te=Yn(U&&!Et?U:void 0,te)),8389632&t.$$.dirty[1]&&n(90,o=Jn(function(t,e){if(!t&&!e)return{};if(!e)return t;if(!t)return e;const n={};return["top","right","bottom","left"].forEach((r=>{const i=t[r];i&&(n[r]=i);const o=e[r];o&&(n[r]=(n[r]||0)+o)})),n}(te,At))),4&t.$$.dirty[1]&&(n(29,a=Pt.getDerivedFromVars(vt.margins)),it(),it=It(a,(t=>n(106,B=t)))),16777216&t.$$.dirty[1]|8192&t.$$.dirty[3]&&n(55,ee=Un(B,ee)),4&t.$$.dirty[1]&&(n(28,l=Pt.getDerivedFromVars(vt.width)),nt(),nt=It(l,(t=>n(104,O=t)))),4&t.$$.dirty[1]&&(n(27,s=Pt.getDerivedFromVars(vt.alignment_horizontal)),ot(),ot=It(s,(t=>n(107,R=t)))),570425408&t.$$.dirty[1]|26624&t.$$.dirty[3]){let t,e,r,i,o={},a=0,l=0,s=!1,c=!1;const u=null==O?void 0:O.type;if("fixed"===u)n(60,re=Ln(null==O?void 0:O.value,re)),e=En(re);else if("wrap_content"!==u&&(wt.overlapParent||"match_parent"!==u&&u||!wt.parentHorizontalWrapContent))t="parent","vertical"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,Pt.logError(st(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"vertical"===wt.parentLayoutOrientation?e="calc(100% - ".concat(Cn(((null==B?void 0:B.left)||0)+((null==B?void 0:B.right)||0)),")"):"horizontal"===wt.parentContainerOrientation&&(a=O&&"weight"in O&&O.weight||1,wt.parentContainerWrap&&(s=!0));else{if(t="content",("wrap_content"===u&&(null==O?void 0:O.constrained)||("match_parent"===u||!u)&&wt.parentHorizontalWrapContent)&&(o["width-constrained"]=!0,"horizontal"===wt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=O;t.min_size&&Rn(t.min_size.value)&&(r=En(t.min_size.value)),t.max_size&&Rn(t.max_size.value)&&(i=En(t.max_size.value))}"match_parent"!==u&&u||Pt.logError(st(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}if("parent"===t)o["halign-self"]="stretch";else{const t=R;o["halign-self"]="left"===t||"center"===t||"right"===t?Dt[t]:wt.parentHAlign||"start"}t&&(o.width=t),n(57,zt=e),n(58,Mt=r),n(59,Tt=i),n(61,ie=a),n(62,oe=l),n(56,ne=qn(o,ne)),n(63,ae=s),n(8,le=c)}if(4&t.$$.dirty[1]&&(n(26,c=Pt.getDerivedFromVars(vt.height)),et(),et=It(c,(t=>n(103,T=t)))),4&t.$$.dirty[1]&&(n(25,u=Pt.getDerivedFromVars(vt.alignment_vertical)),rt(),rt=It(u,(t=>n(105,J=t)))),2112&t.$$.dirty[1]|68&t.$$.dirty[2]|13312&t.$$.dirty[3]){let t,e,r,i,o={},a=0,l=0,s=!1,c=!1;const u=null==T?void 0:T.type;if(Vt);else if("fixed"===u)n(68,ce=Ln(null==T?void 0:T.value,ce)),e=En(ce);else if("match_parent"!==u||!wt.overlapParent&&wt.parentVerticalWrapContent){if(t="content",("wrap_content"===u&&(null==T?void 0:T.constrained)||"match_parent"===u&&wt.parentVerticalWrapContent)&&(o["height-constrained"]=!0,"vertical"===wt.parentContainerOrientation&&(l=1)),"wrap_content"===u){const t=T;(null==t?void 0:t.min_size)&&Rn(t.min_size.value)&&(r=En(t.min_size.value)),(null==t?void 0:t.max_size)&&Rn(t.max_size.value)&&(i=En(t.max_size.value))}"match_parent"===u&&Pt.logError(st(new Error("Cannot place child with match_parent size inside wrap_content"),{level:"warn"}))}else t="parent","horizontal"===wt.parentContainerOrientation&&wt.parentContainerWrap&&(c=!0,Pt.logError(st(new Error("Cannot place a match_parent items on the cross-axis of wrap"),{level:"error"}))),"horizontal"===wt.parentLayoutOrientation?e="calc(100% - ".concat(Cn(((null==B?void 0:B.top)||0)+((null==B?void 0:B.bottom)||0)),")"):"vertical"===wt.parentContainerOrientation&&(a=(null==T?void 0:T.weight)||1,wt.parentContainerWrap&&(s=!0));if("parent"===t)o["valign-self"]="stretch";else{const t=J;"top"===t||"center"===t||"bottom"===t||"baseline"===t&&"horizontal"===wt.parentContainerOrientation?o["valign-self"]=jt[t]:o["valign-self"]=wt.parentVAlign||"start"}t&&(o.height=t),n(65,Ot=e),n(66,Jt=r),n(67,Bt=i),n(69,ue=a),n(70,de=l),n(64,se=qn(o,se)),n(71,he=s),n(9,pe=c)}var e,ct;if(64&t.$$.dirty[1]&&n(93,d=!!wt.overlapParent||void 0),64&t.$$.dirty[1]|3072&t.$$.dirty[3]&&n(92,h=wt.overlapParent&&(!O||"match_parent"===O.type)&&"match_parent"===(null==T?void 0:T.type)),64&t.$$.dirty[1]&&n(91,p=wt.gridArea?"".concat(wt.gridArea.y+1,"/").concat(wt.gridArea.x+1,"/span ").concat(wt.gridArea.rowSpan,"/span ").concat(wt.gridArea.colSpan):void 0),4&t.$$.dirty[1]&&(n(24,f=Pt.getDerivedFromVars(vt.alpha)),tt(),tt=It(f,(t=>n(102,M=t)))),1024&t.$$.dirty[2]|512&t.$$.dirty[3]&&(n(72,(ct=fe,fe=!Rn(e=M)||void 0===e||e>1?ct:Number(e))),n(73,Rt=1===fe?void 0:fe)),4&t.$$.dirty[1]&&(n(23,g=Pt.getDerivedFromVars(vt.accessibility)),Q(),Q=It(g,(t=>n(101,z=t)))),128&t.$$.dirty[1]|256&t.$$.dirty[3]&&(n(6,Ft=void 0),z&&!kt&&z.description&&(n(6,Ft={}),n(6,Ft["aria-label"]=z.description,Ft))),4&t.$$.dirty[1]&&(n(22,m=Pt.getDerivedFromVars(vt.background)),Z(),Z=It(m,(t=>n(5,F=t)))),44&t.$$.dirty[0]&&(n(74,Ut={}),n(3,Lt=!1),F&&(n(3,Lt=F.some((t=>"image"===t.type||"nine_patch_image"===t.type))||Boolean(Qt)),!Lt))){const t=Dn(F);n(74,Ut["background-color"]=t.color,Ut),n(74,Ut["background-image"]=t.image,Ut),n(74,Ut["background-size"]=t.size,Ut),n(74,Ut["background-position"]=t.position,Ut),n(74,Ut["background-repeat"]="no-repeat",Ut)}if(4&t.$$.dirty[1]&&(n(75,ye=void 0),me&&vt.transition_in&&Pt.isRunning("stateChange")&&n(75,ye=!0)),4&t.$$.dirty[1]&&(n(77,_e=void 0),me&&vt.transition_change&&Pt.isRunning("stateChange")&&St.hasTransitionChange(vt.id)&&n(77,_e=!0)),4&t.$$.dirty[1]&&(n(21,v=Pt.getDerivedFromVars(vt.action)),X(),X=It(v,(t=>n(99,N=t)))),4&t.$$.dirty[1]&&(n(20,y=Pt.getDerivedFromVars(vt.actions)),Y(),Y=It(y,(t=>n(100,I=t)))),4&t.$$.dirty[1]&&(n(19,$=Pt.getDerivedFromVars(vt.doubletap_actions)),K(),K=It($,(t=>n(98,S=t)))),4&t.$$.dirty[1]&&(n(18,_=Pt.getDerivedFromVars(vt.longtap_actions)),G(),G=It(_,(t=>n(97,P=t)))),576&t.$$.dirty[1]|240&t.$$.dirty[3]){let t=I||N&&[N]||[],e=S||[],r=P||[];wt.fakeElement?(t=[],e=[],r=[]):(Array.isArray(t)||(t=[],Pt.logError(st(new Error("Actions should be array")))),Array.isArray(e)||(e=[],Pt.logError(st(new Error("DoubleTapActions should be array")))),Array.isArray(r)||(r=[],Pt.logError(st(new Error("LongTapActions should be array"))))),(t.length||e.length||r.length)&&Ct&&(t=[],e=[],r=[],Pt.logError(st(new Error('Cannot use action on component "'.concat(Ct,'"'))))),n(10,Ee=t),n(11,Ce=e),n(12,Ae=r)}if(4&t.$$.dirty[1]&&(n(17,b=Pt.getDerivedFromVars(vt.action_animation)),q(),q=It(b,(t=>n(96,j=t)))),16&t.$$.dirty[0]|8&t.$$.dirty[3]&&j&&(n(4,Ve=Xn(j)),n(78,je=Ve.map(Pe).filter(Boolean).join(", "))),4&t.$$.dirty[1]&&(n(16,w=Pt.getDerivedFromVars(vt.visibility)),H(),H=It(w,(t=>n(95,D=t)))),6291456&t.$$.dirty[2]|4&t.$$.dirty[3]){const t=Fe,e=function(t,e){return"visible"===t||"invisible"===t||"gone"===t?t:e}(D,Fe);t!==e&&(!Ie||"visible"!==Fe&&"visible"!==e?n(84,Fe=e):async function(t){n(84,Fe=t);const e="visible"===t?"in":"out",r="in"===e?vt.transition_in:vt.transition_out;ve&&r&&(await Te(),"in"===e&&n(76,$e=!0),St.runVisibilityTransition(Object.assign(Object.assign({},vt),{visibility:"visible"}),$t,r,Nt,e).then((()=>{"in"===e&&n(76,$e=!1)})).catch((t=>{throw"in"===e&&n(76,$e=!1),t})))}(e)),Ie||n(83,Ie=!0)}if(33554496&t.$$.dirty[1]|1078059012&t.$$.dirty[2]|1&t.$$.dirty[3]&&n(15,x=Object.assign(Object.assign(Object.assign({},ne),se),{"parent-overlap":d,"parent-overlap-absolute":h,"scroll-snap":wt.scrollSnap,"hide-on-transition-in":ye||$e||_e,visibility:Fe,"has-action-animation":Boolean(je),"parent-flex":wt.parentContainerOrientation||void 0,"parent-grid":Boolean(wt.gridArea)||void 0})),4&t.$$.dirty[1]&&(n(14,E=Pt.getDerivedFromVars(vt.transform)),W(),W=It(E,(t=>n(94,V=t)))),25165824&t.$$.dirty[2]|2&t.$$.dirty[3]&&V&&void 0!==V.rotation){const t=V.pivot_x||{type:"pivot-percentage",value:50};n(85,ze=Kn(t.value,ze));const e="pivot-fixed"===t.type?En(ze):"".concat(ze,"%"),r=V.pivot_y||{type:"pivot-percentage",value:50};n(86,Me=Kn(r.value,Me));const i="pivot-fixed"===r.type?En(Me):"".concat(Me,"%");n(87,Se="".concat(e," ").concat(i)),n(88,Ne="rotate(".concat(V.rotation,"deg)"))}1073741824&t.$$.dirty[1]|642&t.$$.dirty[2]&&n(89,C=ae||he?"100%":ie||ue?0:void 0),1560543264&t.$$.dirty[1]|1042225593&t.$$.dirty[2]&&n(13,A=Object.assign(Object.assign(Object.assign(Object.assign({},bt),Ut),Ht),{width:zt,"min-width":Mt,"max-width":Tt,height:Ot,"min-height":Jt,"max-height":Bt||(null==bt?void 0:bt["max-height"]),"grid-area":p,padding:o,margin:ee,opacity:Rt,transition:je,"transform-origin":Se,transform:Ne,"flex-grow":ie||ue||void 0,"flex-shrink":oe||de?1:void 0,"flex-basis":C,"--divkit-animation-opacity-start":be,"--divkit-animation-opacity-end":we,"--divkit-animation-scale-start":xe,"--divkit-animation-scale-end":ke}))},[_t,qt,Qt,Lt,Ve,F,Ft,Gt,le,pe,Ee,Ce,Ae,A,E,x,w,b,_,$,y,v,m,g,f,u,c,s,l,a,i,r,function(t){Nt=t,me&&vt.transition_in&&St.registerChildWithTransitionIn(vt,$t,vt.transition_in,t).then((()=>{n(75,ye=!1)})).catch((t=>{throw n(75,ye=!1),t})),me&&vt.transition_out&&St.registerChildWithTransitionOut(vt,$t,vt.transition_out,t),me&&vt.transition_change&&St.registerChildWithTransitionChange(vt,$t,vt.transition_change,t).then((()=>{n(77,_e=!1)})).catch((t=>{throw n(77,_e=!1),t}));const e=wt.fakeElement?[]:vt.visibility_actions||vt.visibility_action&&[vt.visibility_action];Array.isArray(e)&&e.length&&function(t,e){let{visibilityActions:n,rootCtx:r}=e;const i=n.map(((t,e)=>({index:e,action:t,visible:!1,count:0,finished:!1}))),o=n.map((t=>r.getJsonWithVars({visibility_percentage:t.visibility_percentage,visibility_duration:t.visibility_duration,log_limit:t.log_limit}))),a=[...new Set([...n.map(((t,e)=>(o[e].visibility_percentage||50)/100))])];new IntersectionObserver((t=>{t.forEach((t=>{i.forEach((e=>{const n=t.intersectionRatio>=(e.action.visibility_percentage||50)/100;!e.visible&&n?e.finished||(e.timer=setTimeout((()=>{++e.count;const t=o[e.index],n=0===t.log_limit?1/0:t.log_limit||1;++e.count>=n&&(e.finished=!0);const i=r.getJsonWithVars(e.action),a=i.url;if(a){const t=In(a);t&&!Fn(t,r.getBuiltinProtocols())&&("div-action"===t?r.execAction(i):i.log_id&&r.execCustomAction(i))}r.logStat("visible",i)}),o[e.index].visibility_duration||800)):n||e.timer&&clearTimeout(e.timer),e.visible=n}))}))}),{threshold:a}).observe(t)}(t,{visibilityActions:e,rootCtx:Pt});const r=vt.id;r&&St.registerChild(r);let i=null;if(Tn&&!wt.fakeElement&&(i=Tn(t,{json:vt,origJson:yt,rootCtx:Pt,templateContext:$t})),Array.isArray(vt.extensions)){const e=Pt.getExtensionContext();Wt=vt.extensions.map((n=>{var r;const i=Pt.getExtension(n.id,n.params);return i&&(null===(r=i.mountView)||void 0===r||r.call(i,t,e)),i})).filter(Vn)}return{destroy(){if(r&&St.unregisterChild(r),Wt){const e=Pt.getExtensionContext();Wt.forEach((n=>{var r;null===(r=n.unmountView)||void 0===r||r.call(n,t,e)})),Wt=null}i&&i.destroy()}}},vt,yt,$t,bt,wt,kt,Et,Ct,At,Vt,dt,ht,pt,ft,gt,mt,Ht,Kt,Xt,Yt,Zt,te,ee,ne,zt,Mt,Tt,re,ie,oe,ae,se,Ot,Jt,Bt,ce,ue,de,he,fe,Rt,Ut,ye,$e,_e,je,be,we,xe,ke,Ie,Fe,ze,Me,Se,Ne,C,o,p,h,d,V,D,j,P,S,N,I,z,M,T,O,J,B,R,U,L,ct,ut]}const xr=class extends un{constructor(t){super(),cn(this,t,wr,_r,St,{json:33,origJson:34,templateContext:35,cls:0,style:36,layoutParams:37,customDescription:38,customPaddings:39,customActions:40,additionalPaddings:41,heightByAspect:42},null,[-1,-1,-1,-1])}},kr={"text-range":"divkit-faf07","text-range_singleline":"divkit-ccb64","text-range__top-offset":"divkit-d9237","text-range_decoration_both":"divkit-d7e07","text-range_decoration_underline":"divkit-f3dde","text-range_decoration_strike":"divkit-d27b7","text-range_decoration_none":"divkit-c6b0f"};function Er(t,e){const n=Number(t);return isNaN(n)||n<=0?e:n}function Cr(t){if("light"===t||"medium"===t||"bold"===t||"regular"===t)return"medium"===t?500:"bold"===t?700:"light"===t?300:400}function Ar(t,e){return Cr(t)||e}function Vr(t){let e,n;return{c(){e=ne("span"),this.h()},l(t){e=pe(t,"SPAN",{class:!0}),ue(e).forEach(te),this.h()},h(){se(e,"class",n=kr["text-range__top-offset"]),ye(e,"margin-top",t[4],!1)},m(t,n){Qt(t,e,n)},p(t,n){16&n&&ye(e,"margin-top",t[4],!1)},d(t){t&&te(e)}}}function Dr(t){let e;return{c(){e=ie(t[0])},l(n){e=ge(n,t[0])},m(t,n){Qt(t,e,n)},p(t,n){1&n&&ve(e,t[0])},d(t){t&&te(e)}}}function jr(t){let e,n,r,i=t[4]&&Vr(t);return n=new ar({props:{cls:Mn("text-range",kr,t[3]),actions:t[1],style:kn(t[2]),$$slots:{default:[Dr]},$$scope:{ctx:t}}}),{c(){i&&i.c(),e=ae(),on(n.$$.fragment)},l(t){i&&i.l(t),e=ae(),an(n.$$.fragment,t)},m(t,o){i&&i.m(t,o),Qt(t,e,o),ln(n,t,o),r=!0},p(t,r){let[o]=r;t[4]?i?i.p(t,o):(i=Vr(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null);const a={};8&o&&(a.cls=Mn("text-range",kr,t[3])),2&o&&(a.actions=t[1]),4&o&&(a.style=kn(t[2])),524289&o&&(a.$$scope={dirty:o,ctx:t}),n.$set(a)},i(t){r||(Xe(n.$$.fragment,t),r=!0)},o(t){Ye(n.$$.fragment,t),r=!1},d(t){i&&i.d(t),t&&te(e),sn(n,t)}}}function Pr(t,e,n){let r,i,o,a,l;var s,c;let u,{text:d}=e,{rootFontSize:h}=e,{textStyles:p={}}=e,{singleline:f=!1}=e,{actions:g}=e,m="none",v=12,y=1.25,$="",_="",b=null;return t.$$set=t=>{"text"in t&&n(0,d=t.text),"rootFontSize"in t&&n(5,h=t.rootFontSize),"textStyles"in t&&n(6,p=t.textStyles),"singleline"in t&&n(7,f=t.singleline),"actions"in t&&n(1,g=t.actions)},t.$$.update=()=>{if(64&t.$$.dirty){let t="none";(p.underline||p.strike)&&("single"===p.underline&&"single"===p.strike?t="both":"single"===p.underline?t="underline":"single"===p.strike&&(t="strike")),n(10,m=t)}2112&t.$$.dirty&&n(11,v=Er(p.font_size,v)),2112&t.$$.dirty&&lr(p.line_height)&&n(12,y=Number(p.line_height)/v),64&t.$$.dirty&&Rn(p.letter_spacing)&&n(13,$=En(p.letter_spacing)),16448&t.$$.dirty&&n(14,u=Ar(p.font_weight,u)),32832&t.$$.dirty&&n(15,_=k(p.text_color,1,_)),64&t.$$.dirty&&n(4,r=p.top_offset?En(p.top_offset):""),64&t.$$.dirty&&n(18,i=p.background?Dn([p.background]):null),320&t.$$.dirty&&((null===n(8,s=p.border)||void 0===s?void 0:s.stroke)&&"transparent"!==k(p.border.stroke.color)&&lr(p.border.stroke.width)?n(16,b={color:p.border.stroke.color,width:p.border.stroke.width}):n(16,b=null)),576&t.$$.dirty&&n(17,o=Er(null===n(9,c=p.border)||void 0===c?void 0:c.corner_radius,0)),1152&t.$$.dirty&&n(3,a={singleline:f,decoration:m}),522272&t.$$.dirty&&n(2,l={"font-size":En(10*v/h),"line-height":y,"letter-spacing":$,"font-weight":u,color:_,background:(null==i?void 0:i.color)||void 0,"box-shadow":b?"inset 0 0 0 ".concat(En(b.width)," ").concat(b.color):void 0,"border-radius":o?En(o):void 0})},[d,g,l,a,r,h,p,f,s,c,m,v,y,$,u,_,b,o,i]}const Sr=class extends un{constructor(t){super(),cn(this,t,Pr,jr,St,{text:0,rootFontSize:5,textStyles:6,singleline:7,actions:1})}};function Nr(t,e){return"left"===t||"center"===t||"right"===t?t:e}function Ir(t,e){return"top"===t||"center"===t||"bottom"===t||"baseline"===t?t:e}function Fr(t,e){return"source_in"===t||"source_atop"===t||"darken"===t||"lighten"===t||"multiply"===t||"screen"===t?t:e}const{Boolean:zr}=tn;function Mr(t,e,n){const r=t.slice();return r[55]=e[n],r[57]=n,r}function Tr(t){let e,n;return e=new xr({props:{cls:Mn("text",wn,t[13])+" "+(t[6]?"":"divkit-c016b"),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Wr]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};8256&n[0]&&(r.cls=Mn("text",wn,t[13])+" "+(t[6]?"":"divkit-c016b")),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),134225584&n[0]|134217728&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function Or(t){let e,n;return e=new Sr({props:{text:t[4],rootFontSize:t[5],textStyles:t[27],singleline:t[7]}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.text=t[4]),32&n[0]&&(r.rootFontSize=t[5]),134217728&n[0]&&(r.textStyles=t[27]),128&n[0]&&(r.singleline=t[7]),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function Jr(t){let e,n,r=t[10],i=[];for(let e=0;e<r.length;e+=1)i[e]=Lr(Mr(t,r,e));const o=t=>Ye(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=ae()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=ae()},m(t,r){for(let e=0;e<i.length;e+=1)i[e].m(t,r);Qt(t,e,r),n=!0},p(t,n){if(268437152&n[0]){let a;for(r=t[10],a=0;a<r.length;a+=1){const o=Mr(t,r,a);i[a]?(i[a].p(o,n),Xe(i[a],1)):(i[a]=Lr(o),i[a].c(),Xe(i[a],1),i[a].m(e.parentNode,e))}for(Ge(),a=r.length;a<i.length;a+=1)o(a);Ke()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Xe(i[t]);n=!0}},o(t){i=i.filter(zr);for(let t=0;t<i.length;t+=1)Ye(i[t]);n=!1},d(t){ee(i,t),t&&te(e)}}}function Br(t){let e,n,r,i,o,a,l,s;return{c(){e=ne("span"),n=ne("img"),this.h()},l(t){e=pe(t,"SPAN",{style:!0});var r=ue(e);n=pe(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,"aria-hidden":!0,alt:!0,style:!0}),r.forEach(te),this.h()},h(){se(n,"class",r=wn.text__image),Pt(n.src,i=t[55].image.url)||se(n,"src",i),se(n,"loading","lazy"),se(n,"decoding","async"),se(n,"aria-hidden","true"),se(n,"alt",""),se(n,"style",o=kn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0})),se(e,"style",a=kn(t[55].image.wrapperStyle))},m(r,i){Qt(r,e,i),Zt(e,n),l||(s=le(n,"error",t[28]),l=!0)},p(t,r){1024&r[0]&&!Pt(n.src,i=t[55].image.url)&&se(n,"src",i),1536&r[0]&&o!==(o=kn({width:t[55].image.width,height:t[55].image.height,"margin-top":t[9]?"-".concat(t[55].image.height):void 0,"margin-bottom":t[9]?"-".concat(t[55].image.height):void 0,filter:t[55].image.svgFilterId?"url(#".concat(t[55].image.svgFilterId,")"):void 0}))&&se(n,"style",o),1024&r[0]&&a!==(a=kn(t[55].image.wrapperStyle))&&se(e,"style",a)},i:xt,o:xt,d(t){t&&te(e),l=!1,s()}}}function Rr(t){let e,n,r=t[55].text&&Ur(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,i){r&&r.m(t,i),Qt(t,e,i),n=!0},p(t,n){t[55].text?r?(r.p(t,n),1024&n[0]&&Xe(r,1)):(r=Ur(t),r.c(),Xe(r,1),r.m(e.parentNode,e)):r&&(Ge(),Ye(r,1,1,(()=>{r=null})),Ke())},i(t){n||(Xe(r),n=!0)},o(t){Ye(r),n=!1},d(t){r&&r.d(t),t&&te(e)}}}function Ur(t){let e,n;return e=new Sr({props:{text:t[55].text,rootFontSize:t[5],textStyles:t[55].textStyles,singleline:t[7],actions:t[55].actions}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.text=t[55].text),32&n[0]&&(r.rootFontSize=t[5]),1024&n[0]&&(r.textStyles=t[55].textStyles),128&n[0]&&(r.singleline=t[7]),1024&n[0]&&(r.actions=t[55].actions),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function Lr(t){let e,n,r,i;const o=[Rr,Br],a=[];function l(t,e){return"text"in t[55]?0:t[55].image?1:-1}return~(e=l(t))&&(n=a[e]=o[e](t)),{c(){n&&n.c(),r=ae()},l(t){n&&n.l(t),r=ae()},m(t,n){~e&&a[e].m(t,n),Qt(t,r,n),i=!0},p(t,i){let s=e;e=l(t),e===s?~e&&a[e].p(t,i):(n&&(Ge(),Ye(a[s],1,1,(()=>{a[s]=null})),Ke()),~e?(n=a[e],n?n.p(t,i):(n=a[e]=o[e](t),n.c()),Xe(n,1),n.m(r.parentNode,r)):n=null)},i(t){i||(Xe(n),i=!0)},o(t){Ye(n),i=!1},d(t){~e&&a[e].d(t),t&&te(r)}}}function Wr(t){let e,n,r,i,o,a;const l=[Jr,Or],s=[];function c(t,e){return t[10].length?0:1}return n=c(t),r=s[n]=l[n](t),{c(){e=ne("span"),r.c(),this.h()},l(t){e=pe(t,"SPAN",{class:!0,style:!0});var n=ue(e);r.l(n),n.forEach(te),this.h()},h(){se(e,"class",i=Mn("text__inner",wn,t[12])),se(e,"style",o=kn(t[11]))},m(t,r){Qt(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):(Ge(),Ye(s[d],1,1,(()=>{s[d]=null})),Ke(),r=s[n],r?r.p(t,u):(r=s[n]=l[n](t),r.c()),Xe(r,1),r.m(e,null)),(!a||4096&u[0]&&i!==(i=Mn("text__inner",wn,t[12])))&&se(e,"class",i),(!a||2048&u[0]&&o!==(o=kn(t[11])))&&se(e,"style",o)},i(t){a||(Xe(r),a=!0)},o(t){Ye(r),a=!1},d(t){t&&te(e),s[n].d()}}}function Hr(t){let e,n,r=!t[8]&&Tr(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,i){r&&r.m(t,i),Qt(t,e,i),n=!0},p(t,n){t[8]?r&&(Ge(),Ye(r,1,1,(()=>{r=null})),Ke()):r?(r.p(t,n),256&n[0]&&Xe(r,1)):(r=Tr(t),r.c(),Xe(r,1),r.m(e.parentNode,e))},i(t){n||(Xe(r),n=!0)},o(t){Ye(r),n=!1},d(t){r&&r.d(t),t&&te(e)}}}function qr(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,j,P,S,N,I,F,z,M=xt,T=xt,O=xt,J=xt,B=xt,R=xt,U=xt,L=xt,W=xt,H=xt,q=xt,G=xt,K=xt;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K()));let{json:X={}}=e,{templateContext:Y}=e,{origJson:Z}=e,{layoutParams:Q}=e;const tt=De(bn);let et=!1,nt="",rt=12,it=1.25,ot=!1,at="",lt="",ct=!1,ut="left",dt="top",ht="",pt="",ft=!1,gt=[],mt=[];return Ae((()=>{mt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)}))})),t.$$set=t=>{"json"in t&&n(0,X=t.json),"templateContext"in t&&n(1,Y=t.templateContext),"origJson"in t&&n(2,Z=t.origJson),"layoutParams"in t&&n(3,Q=t.layoutParams)},t.$$.update=()=>{var e,Y;if(1&t.$$.dirty[0]&&(n(26,r=tt.getDerivedFromVars(X.text)),K(),K=It(r,(t=>n(51,z=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(n(4,(e=z,Y=nt,nt=String(null!=e?e:"")||Y)),nt?n(8,et=!1):(n(8,et=!0),tt.logError(st(new Error('Missing "text" prop for div "text"'))))),1&t.$$.dirty[0]&&(n(25,i=tt.getDerivedFromVars(X.ranges)),T(),T=It(i,(t=>n(41,E=t)))),1&t.$$.dirty[0]&&(n(24,o=tt.getDerivedFromVars(X.images)),M(),M=It(o,(t=>n(40,x=t)))),1&t.$$.dirty[0]&&(n(23,a=tt.getDerivedFromVars({font_size:X.font_size,letter_spacing:X.letter_spacing,font_weight:X.font_weight,text_color:X.text_color,underline:X.underline,strike:X.strike,line_height:X.line_height})),O(),O=It(a,(t=>n(27,C=t)))),1&t.$$.dirty[0]&&(n(22,l=tt.getDerivedFromVars(X.font_size)),G(),G=It(l,(t=>n(50,F=t)))),32&t.$$.dirty[0]|524288&t.$$.dirty[1]&&n(5,rt=Er(F,rt)),1&t.$$.dirty[0]&&(n(21,s=tt.getDerivedFromVars(X.line_height)),q(),q=It(s,(t=>n(49,I=t)))),32&t.$$.dirty[0]|262144&t.$$.dirty[1]){const t=I;lr(t)?(n(29,it=Number(t)/rt),n(9,ot=!0)):n(9,ot=!1)}if(1&t.$$.dirty[0]&&(n(20,c=tt.getDerivedFromVars(X.max_lines)),L(),L=It(c,(t=>n(46,P=t)))),32768&t.$$.dirty[1]&&n(7,u=1===P),536870912&t.$$.dirty[0]|34304&t.$$.dirty[1]){let t="",e="",r=!1;if(P&&P>1){let n=Number(P);t=n*it+"em",E||x||(e=n,r=!0)}n(30,at=t),n(31,lt=e),n(32,ct=r)}if(1&t.$$.dirty[0]&&(n(19,d=tt.getDerivedFromVars(X.text_alignment_horizontal)),H(),H=It(d,(t=>n(48,N=t)))),131076&t.$$.dirty[1]&&n(33,ut=Nr(N,ut)),1&t.$$.dirty[0]&&(n(18,h=tt.getDerivedFromVars(X.text_alignment_vertical)),W(),W=It(h,(t=>n(47,S=t)))),65544&t.$$.dirty[1]&&n(34,dt=Ir(S,dt)),16&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(39,p=!E||nt&&1===E.length&&E[0]&&0===E[0].start&&"number"==typeof E[0].end&&E[0].end>=nt.length),1&t.$$.dirty[0]&&(n(17,f=tt.getDerivedFromVars(X.text_color)),U(),U=It(f,(t=>n(45,j=t)))),17408&t.$$.dirty[1]&&n(38,g=Boolean(j)!==Boolean(E&&E[0]&&E[0].text_color)),50576&t.$$.dirty[1]){let t="";P&&p&&g&&(t=k(j||E&&E[0]&&E[0].text_color,1,ht)),n(35,ht=t)}if(1&t.$$.dirty[0]&&(n(16,m=tt.getDerivedFromVars(X.truncate)),R(),R=It(m,(t=>n(44,D=t)))),8192&t.$$.dirty[1]&&n(37,v="none"===D?"none":""),1&t.$$.dirty[0]&&(n(15,y=tt.getDerivedFromVars(X.text_gradient)),B(),B=It(y,(t=>n(43,V=t)))),4096&t.$$.dirty[1]){let t="";if(V){const e=Dn([V]);e.image&&(t=e.image)}n(36,pt=t)}1&t.$$.dirty[0]&&(n(14,$=tt.getDerivedFromVars(X.selectable)),J(),J=It($,(t=>n(42,A=t)))),64&t.$$.dirty[0]|2048&t.$$.dirty[1]&&n(6,ft=function(t,e){return 1===t||0===t||!1===t||!0===t?Boolean(t):e}(A,ft)),16&t.$$.dirty[0]|1536&t.$$.dirty[1]&&function(t,e,r){let i=[];if(mt.forEach((t=>{let[e,n]=t;tt.removeSvgFilter(e,n)})),mt=[],!(Array.isArray(e)&&e.length||Array.isArray(r)&&r.length&&t))return void n(10,gt=[]);const o=t;let a=e||[{start:0,end:o.length}],l=r||[],s=0,c=[],u=[];a.forEach((t=>{void 0!==t.start&&void 0!==t.end&&(u.push({index:t.start,range:t,type:"rangeStart",isStart:!0}),u.push({index:t.end,range:t,type:"rangeEnd"}))})),l.forEach(((t,e)=>{void 0!==t.start&&t.url&&t.start<=o.length&&u.push({index:t.start,image:t,type:"image",arrayIndex:e})})),u.sort(((t,e)=>t.index===e.index?t.type!==e.type?"image"===t.type?-1:"image"===e.type?1:t.type<e.type?-1:1:"image"===t.type&&"image"===e.type?e.arrayIndex-t.arrayIndex:"rangeStart"===t.type&&"rangeStart"===e.type?t.range.end-e.range.end:"rangeStart"===t.type?1:"rangeStart"===e.type?-1:"image"!==t.type&&"image"!==e.type?t.range.start-e.range.start:0:t.index-e.index)),u.forEach((t=>{var e;let n="image"===t.type?null:t.range,r=t.index;if(r>s){let n=Object.assign(Object.assign({},C),...c);i.push({text:o.substring(s,r),textStyles:n,actions:"rangeEnd"===t.type&&(null===(e=t.range)||void 0===e?void 0:e.actions)||void 0})}if("rangeStart"===t.type&&n)c.push(n);else if("rangeEnd"===t.type)c=c.filter((e=>e!==t.range));else if("image"===t.type){let e=Object.assign(Object.assign({},C),...c),n=En(10*(t.image.width&&t.image.width.value||20)/(e.font_size||12)),r=En(10*(t.image.height&&t.image.height.value||20)/(e.font_size||12));const o={"font-size":En(10*(Number(e.font_size)||12)/rt)};let a="";const l=t.image.tint_color,s=Fr(t.image.tint_mode,"source_in");if(l){const e=k(t.image.tint_color);a=tt.addSvgFilter(e,s),mt.push([e,s])}i.push({image:{url:t.image.url,width:n,height:r,wrapperStyle:o,svgFilterId:a}})}s=r})),s<o.length&&i.push({text:o.substring(s),textStyles:Object.assign({},C)}),n(10,gt=i)}(nt,E,x),128&t.$$.dirty[0]|78&t.$$.dirty[1]&&n(13,_={singleline:u,multiline:ct,halign:ut,valign:dt,truncate:v}),32&t.$$.dirty[1]&&n(12,b={gradient:Boolean(pt)}),1610612768&t.$$.dirty[0]|49&t.$$.dirty[1]&&n(11,w={"font-size":En(rt),"line-height":it,"max-height":at,"-webkit-line-clamp":lt,color:ht,"background-image":pt})},[X,Y,Z,Q,nt,rt,ft,u,et,ot,gt,w,b,_,$,y,m,f,h,d,c,s,l,a,o,i,r,C,function(t){t.target&&"classList"in t.target&&t.target.classList.add(wn.text__image_hidden)},it,at,lt,ct,ut,dt,ht,pt,v,g,p,x,E,A,V,D,j,P,S,N,I,F,z]}const Gr={container:"divkit-d37d6",container_wrap:"divkit-c8551",container_orientation_vertical:"divkit-ddc33",container_valign_top:"divkit-a331a",container_valign_center:"divkit-aae61",container_valign_bottom:"divkit-c2226",container_orientation_horizontal:"divkit-fe458",container_halign_left:"divkit-a3091",container_halign_center:"divkit-bac9d",container_halign_right:"divkit-f4230",container_orientation_overlap:"divkit-a644d"};function Kr(t,e,n){if(!(t&&t.shape&&t.shape.type&&e.includes(t.shape.type)&&"shape_drawable"===t.type))return n;let r;if("rounded_rectangle"===t.shape.type)i=t.shape,r={width:Number((null===(o=i.item_width)||void 0===o?void 0:o.value)||10),height:Number((null===(a=i.item_height)||void 0===a?void 0:a.value)||10),radius:Number(null!==(l=null===(s=i.corner_radius)||void 0===s?void 0:s.value)&&void 0!==l?l:5)};else{if("circle"!==t.shape.type)return n;r=function(t){var e;const n=2*Number((null===(e=t.radius)||void 0===e?void 0:e.value)||10);return{width:n,height:n,radius:n}}(t.shape)}var i,o,a,l,s;return function(t,e,n){var r;const i={},o=e.stroke||(null==n?void 0:n.stroke),a=null!=o&&o.color?k(o.color):"",l=null!=o&&o.width?Number(null!==(r=o.width)&&void 0!==r?r:1):"";i.width=t.width,i.height=t.height,i.borderRadius=t.radius;const s=e.background_color||(null==n?void 0:n.color);return i.background=k(s),a&&l&&(i.boxShadow="inset 0 0 0 ".concat(En(l)," ").concat(a)),i}(r,t.shape,{color:t.color,stroke:t.stroke})}function Xr(t,e,n){null!=e&&e.show_at_start&&(n?t.top=e.style.height:t.left=e.style.width),null!=e&&e.show_at_end&&(n?t.bottom=e.style.height:t.right=e.style.width)}function Yr(t,e,n){let r;return r="horizontal"===t?[null!=n&&n.show_between?n.style.height:0,null!=e&&e.show_between?e.style.width:0]:[null!=e&&e.show_between?e.style.height:0,null!=n&&n.show_between?n.style.width:0],r.map(En).join(" ")}let Zr;function Qr(){if(void 0!==Zr)return Zr;const t=document.createElement("div");return t.style.position="absolute",t.style.display="flex",t.style.flexDirection="column",t.style.gap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),Zr=1===t.scrollHeight,document.body.removeChild(t),Zr}function ti(t,e,n){const r=t.slice();return r[13]=e[n],r}function ei(t){let e,n,r,i,o,a="".concat(t[13].style.width,"px"),l="".concat(t[13].style.height,"px"),s="".concat(t[13].style.borderRadius,"px"),c="".concat(t[13].left,"px"),u="".concat(t[13].top,"px"),d="".concat(t[13].width,"px"),h="".concat(t[13].height,"px");return{c(){e=ne("div"),n=ne("div"),i=oe(),this.h()},l(t){e=pe(t,"DIV",{class:!0});var r=ue(e);n=pe(r,"DIV",{class:!0}),ue(n).forEach(te),i=me(r),r.forEach(te),this.h()},h(){se(n,"class",r="divkit-f6e9a"),ye(n,"width",a,!1),ye(n,"height",l,!1),ye(n,"border-radius",s,!1),ye(n,"background",t[13].style.background,!1),ye(n,"box-shadow",t[13].style.boxShadow,!1),se(e,"class",o="divkit-c770e"),ye(e,"left",c,!1),ye(e,"top",u,!1),ye(e,"width",d,!1),ye(e,"height",h,!1)},m(t,r){Qt(t,e,r),Zt(e,n),Zt(e,i)},p(t,r){2&r&&a!==(a="".concat(t[13].style.width,"px"))&&ye(n,"width",a,!1),2&r&&l!==(l="".concat(t[13].style.height,"px"))&&ye(n,"height",l,!1),2&r&&s!==(s="".concat(t[13].style.borderRadius,"px"))&&ye(n,"border-radius",s,!1),2&r&&ye(n,"background",t[13].style.background,!1),2&r&&ye(n,"box-shadow",t[13].style.boxShadow,!1),2&r&&c!==(c="".concat(t[13].left,"px"))&&ye(e,"left",c,!1),2&r&&u!==(u="".concat(t[13].top,"px"))&&ye(e,"top",u,!1),2&r&&d!==(d="".concat(t[13].width,"px"))&&ye(e,"width",d,!1),2&r&&h!==(h="".concat(t[13].height,"px"))&&ye(e,"height",h,!1)},d(t){t&&te(e)}}}function ni(t){let e,n,r,i,o=t[1],a=[];for(let e=0;e<o.length;e+=1)a[e]=ei(ti(t,o,e));return{c(){e=ne("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){e=pe(t,"DIV",{class:!0});var n=ue(e);for(let t=0;t<a.length;t+=1)a[t].l(n);n.forEach(te),this.h()},h(){se(e,"class",n="divkit-a7719")},m(n,o){Qt(n,e,o);for(let t=0;t<a.length;t+=1)a[t].m(e,null);t[10](e),r||(i=le(window,"resize",t[2]),r=!0)},p(t,n){let[r]=n;if(2&r){let n;for(o=t[1],n=0;n<o.length;n+=1){const i=ti(t,o,n);a[n]?a[n].p(i,r):(a[n]=ei(i),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=o.length}},i:xt,o:xt,d(n){n&&te(e),ee(a,n),t[10](null),r=!1,i()}}}function ri(t,e,n,r,i,o){o?t.push({top:n.bottom,left:i.left,width:i.right-i.left,height:r.top-n.bottom,style:e}):t.push({top:i.top,left:n.right,width:r.left-n.right,height:i.bottom-i.top,style:e})}function ii(t,e,n,r){const i={top:Math.min(...n.map((t=>t.top))),right:Math.max(...n.map((t=>t.right))),bottom:Math.max(...n.map((t=>t.bottom))),left:Math.min(...n.map((t=>t.left)))};if((null==e?void 0:e.show_at_start)&&ri(t,e.style,{top:0,right:n[0].left-e.style.width,bottom:n[0].top-e.style.height,left:0},n[0],i,r),null==e?void 0:e.show_between)for(let o=0;o<n.length-1;++o)ri(t,e.style,n[o],n[o+1],i,r);if(null==e?void 0:e.show_at_end){const o=n[n.length-1];ri(t,e.style,o,{top:o.bottom+e.style.height,right:0,bottom:0,left:o.right+e.style.width},i,r)}}function oi(t,e,n){let r,{orientation:i}=e,{separator:o}=e,{lineSeparator:a}=e;const l=function(t,e){let n,r=0,i=!1;return function(){const e=Date.now();return!r||Math.abs(e-r)>10?(r=e,n=t.apply(this,arguments)):(i||(i=!0,setTimeout((()=>{i=!1,n=t.apply(this,arguments)}),10)),n)}}((function(){if(!r)return;const t=r.getBoundingClientRect();n(1,c=[]);let e=[...r.children].filter((t=>t!==s&&!t.classList.contains(xn.outer__border))),l=[];for(;e.length;){const t=[],n=e.shift();t.push(n);let r=n.getBoundingClientRect(),o=r.right,a=r.bottom;for(;e.length;){let n=e[0],r=n.getBoundingClientRect();if("vertical"===i){if(r.top<a)break}else if(r.left<o)break;o=Math.max(o,r.right),a=Math.max(a,r.bottom),t.push(n),e.shift()}l.push(t)}const u=[];l.forEach((t=>{const e=t.map((t=>function(t){const e=t.getBoundingClientRect(),n=getComputedStyle(t);return{top:e.top-parseFloat(n.marginTop),right:e.right+parseFloat(n.marginRight),bottom:e.bottom+parseFloat(n.marginBottom),left:e.left-parseFloat(n.marginLeft)}}(t)));o&&ii(c,o,e,"vertical"===i);const n={top:Math.min(...e.map((t=>t.top))),right:Math.max(...e.map((t=>t.right))),bottom:Math.max(...e.map((t=>t.bottom))),left:Math.min(...e.map((t=>t.left)))};u.push(n)})),a&&ii(c,a,u,"horizontal"===i),c.forEach((e=>{e.top-=t.top,e.left-=t.left}))}));let s,c=[],u=!1,d=null,h=null;function p(t){t.some((t=>{var e;const n=null===(e=t.target)||void 0===e?void 0:e.classList;return!(null==n?void 0:n.contains("divkit-f6e9a"))&&!(null==n?void 0:n.contains("divkit-a7719"))}))&&l()}return Ce((()=>{n(6,u=!0)})),Ae((()=>{n(6,u=!1)})),t.$$set=t=>{"orientation"in t&&n(3,i=t.orientation),"separator"in t&&n(4,o=t.separator),"lineSeparator"in t&&n(5,a=t.lineSeparator)},t.$$.update=()=>{1&t.$$.dirty&&n(9,r=(null==s?void 0:s.parentElement)||null),960&t.$$.dirty&&(u&&r||d||h)&&(d&&(d.disconnect(),n(7,d=null)),h&&(h.disconnect(),n(8,h=null)),u&&r&&("undefined"!=typeof MutationObserver&&(n(7,d=new MutationObserver(p)),d.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})),"undefined"!=typeof ResizeObserver&&(n(8,h=new ResizeObserver(l)),h.observe(r)))),576&t.$$.dirty&&u&&r&&l()},[s,c,l,i,o,a,u,d,h,r,function(t){Se[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}const ai=class extends un{constructor(t){super(),cn(this,t,oi,ni,St,{orientation:3,separator:4,lineSeparator:5})}},{Boolean:li}=tn;function si(t,e,n){const r=t.slice();return r[46]=e[n],r}function ci(t){let e,n;return e=new xr({props:{cls:Mn("container",Gr,t[11]),style:t[10],json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],additionalPaddings:t[15],heightByAspect:Boolean(t[8]),$$slots:{default:[hi]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};2048&n[0]&&(r.cls=Mn("container",Gr,t[11])),1024&n[0]&&(r.style=t[10]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),32768&n[0]&&(r.additionalPaddings=t[15]),256&n[0]&&(r.heightByAspect=Boolean(t[8])),4195040&n[0]|262144&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function ui(t){let e,n;return e=new Ra({props:{layoutParams:t[9],div:t[46].json,templateContext:t[46].templateContext,origJson:t[46].origJson}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};512&n[0]&&(r.layoutParams=t[9]),4194304&n[0]&&(r.div=t[46].json),4194304&n[0]&&(r.templateContext=t[46].templateContext),4194304&n[0]&&(r.origJson=t[46].origJson),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function di(t){let e,n;return e=new ai({props:{separator:t[6],lineSeparator:t[7],orientation:t[5]}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};64&n[0]&&(r.separator=t[6]),128&n[0]&&(r.lineSeparator=t[7]),32&n[0]&&(r.orientation=t[5]),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function hi(t){let e,n,r,i=t[22],o=[];for(let e=0;e<i.length;e+=1)o[e]=ui(si(t,i,e));const a=t=>Ye(o[t],1,1,(()=>{o[t]=null}));let l=(t[6]||t[7])&&di(t);return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=oe(),l&&l.c(),n=ae()},l(t){for(let e=0;e<o.length;e+=1)o[e].l(t);e=me(t),l&&l.l(t),n=ae()},m(t,i){for(let e=0;e<o.length;e+=1)o[e].m(t,i);Qt(t,e,i),l&&l.m(t,i),Qt(t,n,i),r=!0},p(t,r){if(4194816&r[0]){let n;for(i=t[22],n=0;n<i.length;n+=1){const a=si(t,i,n);o[n]?(o[n].p(a,r),Xe(o[n],1)):(o[n]=ui(a),o[n].c(),Xe(o[n],1),o[n].m(e.parentNode,e))}for(Ge(),n=i.length;n<o.length;n+=1)a(n);Ke()}t[6]||t[7]?l?(l.p(t,r),192&r[0]&&Xe(l,1)):(l=di(t),l.c(),Xe(l,1),l.m(n.parentNode,n)):l&&(Ge(),Ye(l,1,1,(()=>{l=null})),Ke())},i(t){if(!r){for(let t=0;t<i.length;t+=1)Xe(o[t]);Xe(l),r=!0}},o(t){o=o.filter(li);for(let t=0;t<o.length;t+=1)Ye(o[t]);Ye(l),r=!1},d(t){ee(o,t),t&&te(e),l&&l.d(t),t&&te(n)}}}function pi(t){let e,n,r=!t[4]&&ci(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,i){r&&r.m(t,i),Qt(t,e,i),n=!0},p(t,n){t[4]?r&&(Ge(),Ye(r,1,1,(()=>{r=null})),Ke()):r?(r.p(t,n),16&n[0]&&Xe(r,1)):(r=ci(t),r.c(),Xe(r,1),r.m(e.parentNode,e))},i(t){n||(Xe(r),n=!0)},o(t){Ye(r),n=!1},d(t){r&&r.d(t),t&&te(e)}}}function fi(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A=xt,V=xt,D=xt,j=xt,P=xt,S=xt,N=xt,I=xt,F=xt;var z,M,T,O,J,B;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F()));let{json:R={}}=e,{templateContext:U}=e,{origJson:L}=e,{layoutParams:W}=e;const H={left:"start",center:"center",right:"end"},q={top:"start",center:"center",bottom:"end",baseline:"baseline"},G=["rounded_rectangle","circle"],K=De(bn);let X,Y=!1,Z="vertical",Q="top",tt="left",et=null,nt=null,rt={};return t.$$set=t=>{"json"in t&&n(0,R=t.json),"templateContext"in t&&n(1,U=t.templateContext),"origJson"in t&&n(2,L=t.origJson),"layoutParams"in t&&n(3,W=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(32,r=R.items),2&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,Y=!1):(n(4,Y=!0),K.logError(st(new Error('Incorrect or empty "items" prop for div "container"'))))),18&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(22,i=(!Y&&r||[]).map((t=>{let e=t,n=U;return({templateContext:n,json:e}=K.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(21,o=K.getDerivedFromVars(R.orientation)),F(),F=It(o,(t=>n(41,C=t)))),32&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(5,Z=function(t,e){return"vertical"===t||"horizontal"===t||"overlap"===t?t:e}(C,Z)),1&t.$$.dirty[0]&&(n(20,a=K.getDerivedFromVars(R.content_alignment_vertical)),I(),I=It(a,(t=>n(40,E=t)))),536870912&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(29,Q=Ir(E,Q)),1&t.$$.dirty[0]&&(n(19,l=K.getDerivedFromVars(R.content_alignment_horizontal)),N(),N=It(l,(t=>n(39,k=t)))),1073741824&t.$$.dirty[0]|256&t.$$.dirty[1]&&n(30,tt=Nr(k,tt)),1&t.$$.dirty[0]&&(n(18,s=K.getDerivedFromVars(R.layout_mode)),S(),S=It(s,(t=>n(38,x=t)))),128&t.$$.dirty[1]&&n(31,c="wrap"===x),1&t.$$.dirty[0]&&(n(17,u=K.getDerivedFromVars(R.separator)),P(),P=It(u,(t=>n(37,w=t)))),58720352&t.$$.dirty[0]|64&t.$$.dirty[1])if((null==w?void 0:w.style)&&"overlap"!==Z&&Qr()){const t=Kr(w.style,G,(null==et?void 0:et.style)||null);n(6,et=t?{show_at_start:Boolean(null!==n(23,z=w.show_at_start)&&void 0!==z&&z),show_at_end:Boolean(null!==n(24,M=w.show_at_end)&&void 0!==M&&M),show_between:Boolean(null===n(25,T=w.show_between)||void 0===T||T),style:t}:null)}else n(6,et=null);if(1&t.$$.dirty[0]&&(n(16,d=K.getDerivedFromVars(R.line_separator)),j(),j=It(d,(t=>n(36,b=t)))),469762208&t.$$.dirty[0]|32&t.$$.dirty[1])if((null==b?void 0:b.style)&&"overlap"!==Z&&Qr()){const t=Kr(b.style,G,(null==nt?void 0:nt.style)||null);n(7,nt=t?{show_at_start:Boolean(null!==n(26,O=b.show_at_start)&&void 0!==O&&O),show_at_end:Boolean(null!==n(27,J=b.show_at_end)&&void 0!==J&&J),show_between:Boolean(null===n(28,B=b.show_between)||void 0===B||B),style:t}:null)}else n(7,nt=null);if(224&t.$$.dirty[0]&&n(15,h=et||nt?function(t,e,n){const r={};return Xr(r,e,"vertical"===t),Xr(r,n,"horizontal"===t),r}(Z,et,nt):null),1&t.$$.dirty[0]&&(n(14,p=K.getDerivedFromVars(R.aspect)),D(),D=It(p,(t=>n(35,_=t)))),16&t.$$.dirty[1]){const t=null==_?void 0:_.ratio;t&&lr(t)?n(8,X=t):n(8,X=void 0)}if(1&t.$$.dirty[0]&&(n(13,f=K.getDerivedFromVars(R.width)),A(),A=It(f,(t=>n(33,y=t)))),1&t.$$.dirty[0]&&(n(12,g=K.getDerivedFromVars(R.height)),V(),V=It(g,(t=>n(34,$=t)))),1610613544&t.$$.dirty[0]|13&t.$$.dirty[1]){let t={};(null==W?void 0:W.fakeElement)&&(t.fakeElement=!0),"overlap"===Z&&(t.overlapParent=!0),"horizontal"!==Z&&(t.parentHAlign=H[tt],X||$&&"wrap_content"!==$.type&&("match_parent"!==$.type||!(null==W?void 0:W.parentVerticalWrapContent))||(t.parentVerticalWrapContent=!0)),"vertical"!==Z&&(t.parentVAlign=q[Q],("wrap_content"===(null==y?void 0:y.type)||"match_parent"===(null==y?void 0:y.type)&&(null==W?void 0:W.parentHorizontalWrapContent))&&(t.parentHorizontalWrapContent=!0)),"horizontal"===Z&&(t.parentContainerOrientation="horizontal"),"vertical"===Z&&(t.parentContainerOrientation="vertical"),c&&(t.parentContainerWrap=!0),n(9,rt=qn(t,rt))}1610612768&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(11,m={orientation:Z,valign:Q,halign:tt,wrap:c}),480&t.$$.dirty[0]&&n(10,v={gap:et||nt?Yr(Z,et,nt):void 0,"aspect-ratio":X})},[R,U,L,W,Y,Z,et,nt,X,rt,v,m,g,f,p,h,d,u,s,l,a,o,i,z,M,T,O,J,B,Q,tt,c,r,y,$,_,b,w,x,k,E,C]}const gi={separator:"divkit-a30bb",separator_orientation_horizontal:"divkit-f529e",separator_orientation_vertical:"divkit-e9e27",separator__inner:"divkit-db7d8"};function mi(t,e){return"vertical"===t||"horizontal"===t?t:e}function vi(t){let e,n,r;return{c(){e=ne("span"),this.h()},l(t){e=pe(t,"SPAN",{class:!0,style:!0}),ue(e).forEach(te),this.h()},h(){se(e,"class",n=gi.separator__inner),se(e,"style",r=kn(t[5]))},m(t,n){Qt(t,e,n)},p(t,n){32&n&&r!==(r=kn(t[5]))&&se(e,"style",r)},d(t){t&&te(e)}}}function yi(t){let e,n=t[6]&&vi(t);return{c(){n&&n.c(),e=ae()},l(t){n&&n.l(t),e=ae()},m(t,r){n&&n.m(t,r),Qt(t,e,r)},p(t,r){t[6]?n?n.p(t,r):(n=vi(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&te(e)}}}function $i(t){let e,n;return e=new xr({props:{cls:Mn("separator",gi,t[4]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[yi]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){let[r]=n;const i={};16&r&&(i.cls=Mn("separator",gi,t[4])),1&r&&(i.json=t[0]),4&r&&(i.origJson=t[2]),2&r&&(i.templateContext=t[1]),8&r&&(i.layoutParams=t[3]),16480&r&&(i.$$scope={dirty:r,ctx:t}),e.$set(i)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function _i(t,e,n){let r,i,o,a,l,s,c,u=xt;t.$$.on_destroy.push((()=>u()));let{json:d={}}=e,{templateContext:h}=e,{origJson:p}=e,{layoutParams:f}=e;const g=De(bn);let m="horizontal",v="rgba(0,0,0,0.08)";return t.$$set=t=>{"json"in t&&n(0,d=t.json),"templateContext"in t&&n(1,h=t.templateContext),"origJson"in t&&n(2,p=t.origJson),"layoutParams"in t&&n(3,f=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&(n(7,r=g.getDerivedFromVars(d.delimiter_style)),u(),u=It(r,(t=>n(12,c=t)))),4352&t.$$.dirty&&n(8,m=mi(null==c?void 0:c.orientation,m)),4096&t.$$.dirty&&n(6,i=!((null==c?void 0:c.color)&&("transparent"===c.color||9===c.color.length&&0===c.color.indexOf("#00")))),4608&t.$$.dirty&&n(9,v=k(null==c?void 0:c.color,1,v)),256&t.$$.dirty&&n(11,o="horizontal"===m?"100%":En(1)),256&t.$$.dirty&&n(10,a="horizontal"===m?En(1):"100%"),3584&t.$$.dirty&&n(5,l={background:v,width:o,height:a}),256&t.$$.dirty&&n(4,s={orientation:m})},[d,h,p,f,s,l,i,r,m,v,a,o,c]}const bi={image:"divkit-a448f","image_is-width-content":"divkit-fe14a","image_is-height-content":"divkit-f4d92",image__image:"divkit-ce046",image_error:"divkit-f10d9","image__aspect-wrapper":"divkit-dc808",image_aspect:"divkit-ae784",image_loaded:"divkit-cf4e0","divkit-image-appearance":"divkit-e555f","image_before-appearance":"divkit-ffe8a"};function wi(t){let e,n;return e=new xr({props:{cls:Mn("image",bi,t[10]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customDescription:!0,$$slots:{default:[Ci]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Mn("image",bi,t[10])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),67312&n[0]|536870912&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function xi(t){let e,n,r,i,o,a,l;return{c(){e=ne("img"),this.h()},l(t){e=pe(t,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),this.h()},h(){se(e,"class",n=bi.image__image),Pt(e.src,r=t[4]===Di?Vi:t[7])||se(e,"src",r),se(e,"loading","lazy"),se(e,"decoding","async"),se(e,"style",i=kn(t[9])),se(e,"alt",t[16]),se(e,"aria-hidden",o=t[16]?null:"true")},m(n,r){Qt(n,e,r),a||(l=[le(e,"load",t[26]),le(e,"error",t[27])],a=!0)},p(t,n){144&n[0]&&!Pt(e.src,r=t[4]===Di?Vi:t[7])&&se(e,"src",r),512&n[0]&&i!==(i=kn(t[9]))&&se(e,"style",i),65536&n[0]&&se(e,"alt",t[16]),65536&n[0]&&o!==(o=t[16]?null:"true")&&se(e,"aria-hidden",o)},d(t){t&&te(e),a=!1,Vt(l)}}}function ki(t){let e,n,r,i,o,a,l,s,c,u="".concat(t[5],"%");return{c(){e=ne("span"),n=ne("img"),this.h()},l(t){e=pe(t,"SPAN",{class:!0});var r=ue(e);n=pe(r,"IMG",{class:!0,src:!0,loading:!0,decoding:!0,style:!0,alt:!0,"aria-hidden":!0}),r.forEach(te),this.h()},h(){se(n,"class",r=bi.image__image),Pt(n.src,i=t[4]===Di?Vi:t[7])||se(n,"src",i),se(n,"loading","lazy"),se(n,"decoding","async"),se(n,"style",o=kn(t[9])),se(n,"alt",t[16]),se(n,"aria-hidden",a=t[16]?null:"true"),se(e,"class",l=bi["image__aspect-wrapper"]),ye(e,"padding-bottom",u,!1)},m(r,i){Qt(r,e,i),Zt(e,n),s||(c=[le(n,"load",t[26]),le(n,"error",t[27])],s=!0)},p(t,r){144&r[0]&&!Pt(n.src,i=t[4]===Di?Vi:t[7])&&se(n,"src",i),512&r[0]&&o!==(o=kn(t[9]))&&se(n,"style",o),65536&r[0]&&se(n,"alt",t[16]),65536&r[0]&&a!==(a=t[16]?null:"true")&&se(n,"aria-hidden",a),32&r[0]&&u!==(u="".concat(t[5],"%"))&&ye(e,"padding-bottom",u,!1)},d(t){t&&te(e),s=!1,Vt(c)}}}function Ei(t){let e;function n(t,e){return t[10].aspect?ki:xi}let r=n(t),i=r(t);return{c(){i.c(),e=ae()},l(t){i.l(t),e=ae()},m(t,n){i.m(t,n),Qt(t,e,n)},p(t,o){r===(r=n(t))&&i?i.p(t,o):(i.d(1),i=r(t),i&&(i.c(),i.m(e.parentNode,e)))},d(t){i.d(t),t&&te(e)}}}function Ci(t){let e,n=t[6],r=Ei(t);return{c(){r.c(),e=ae()},l(t){r.l(t),e=ae()},m(t,n){r.m(t,n),Qt(t,e,n)},p(t,i){64&i[0]&&St(n,n=t[6])?(r.d(1),r=Ei(t),r.c(),r.m(e.parentNode,e)):r.p(t,i)},d(t){t&&te(e),r.d(t)}}}function Ai(t){let e,n,r=!t[8]&&wi(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,i){r&&r.m(t,i),Qt(t,e,i),n=!0},p(t,n){t[8]?r&&(Ge(),Ye(r,1,1,(()=>{r=null})),Ke()):r?(r.p(t,n),256&n[0]&&Xe(r,1)):(r=wi(t),r.c(),Xe(r,1),r.m(e.parentNode,e))},i(t){n||(Xe(r),n=!0)},o(t){Ye(r),n=!1},d(t){r&&r.d(t),t&&te(e)}}}const Vi="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Di=2;function ji(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A,V,D,j,P,S,N,I,F,z,M,T=xt,O=xt,J=xt,B=xt,R=xt,U=xt,L=xt,W=xt,H=xt,q=xt,G=xt,K=xt,X=xt,Y=xt;t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G())),t.$$.on_destroy.push((()=>K())),t.$$.on_destroy.push((()=>X())),t.$$.on_destroy.push((()=>Y()));let{json:Z={}}=e,{templateContext:Q}=e,{origJson:tt}=e,{layoutParams:et}=e;const nt=De(bn);let rt=0,it="rgba(0,0,0,0.08)",ot=!1,at="",lt="none",ct="50% 50%";let ut,dt="0",ht="source_in",pt="",ft="",gt=0,mt=0,vt=0,yt="",$t="";return Ae((()=>{nt.removeSvgFilter(ut,ht)})),t.$$set=t=>{"json"in t&&n(0,Z=t.json),"templateContext"in t&&n(1,Q=t.templateContext),"origJson"in t&&n(2,tt=t.origJson),"layoutParams"in t&&n(3,et=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(25,r=nt.getDerivedFromVars(Z.image_url)),Y(),Y=It(r,(t=>n(55,M=t)))),1&t.$$.dirty[0]&&(n(24,i=nt.getDerivedFromVars(Z.gif_url)),X(),X=It(i,(t=>n(54,z=t)))),25165824&t.$$.dirty[1]&&n(7,o=M||z),128&t.$$.dirty[0]&&n(4,rt=0),128&t.$$.dirty[0]&&(o?n(8,ot=!1):(n(8,ot=!0),nt.logError(st(new Error('Missing "image_url" for "image"'))))),1&t.$$.dirty[0]&&(n(23,a=nt.getDerivedFromVars(Z.width)),K(),K=It(a,(t=>n(53,F=t)))),4194304&t.$$.dirty[1]&&n(41,l="wrap_content"===(null==F?void 0:F.type)),1&t.$$.dirty[0]&&(n(22,s=nt.getDerivedFromVars(Z.height)),G(),G=It(s,(t=>n(52,I=t)))),2097152&t.$$.dirty[1]&&n(40,c="wrap_content"===(null==I?void 0:I.type)),1&t.$$.dirty[0]&&(n(21,u=nt.getDerivedFromVars(Z.preview)),q(),q=It(u,(t=>n(51,N=t)))),16&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=N;0!==rt&&rt!==Di||!t?n(29,at=""):t.startsWith("data:")?n(29,at='url("'.concat(An(t),'")')):n(29,at='url("data:image/jpg;base64,'.concat(An(t),'")'))}if(1&t.$$.dirty[0]&&(n(20,d=nt.getDerivedFromVars(Z.placeholder_color)),H(),H=It(d,(t=>n(50,S=t)))),16&t.$$.dirty[0]|524288&t.$$.dirty[1]&&function(t,e){n(28,it=0===t||t===Di?k(e,1,it):"")}(rt,S),1&t.$$.dirty[0]&&(n(19,h=nt.getDerivedFromVars(Z.scale)),W(),W=It(h,(t=>n(49,P=t)))),1073741824&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(30,lt=Sn(P)||lt),1&t.$$.dirty[0]&&(n(18,p=nt.getDerivedFromVars({content_alignment_horizontal:Z.content_alignment_horizontal,content_alignment_vertical:Z.content_alignment_vertical})),L(),L=It(p,(t=>n(48,j=t)))),131072&t.$$.dirty[1]&&n(31,ct=function(t,e){const n=t.content_alignment_horizontal,r=t.content_alignment_vertical;return n&&"left"!==n&&"center"!==n&&"right"!==n||r&&"top"!==r&&"center"!==r&&"bottom"!==r?e:Nn(t)}(j,ct)),1&t.$$.dirty[0]&&(n(17,f=nt.getDerivedFromVars(Z.accessibility)),U(),U=It(f,(t=>n(47,D=t)))),65536&t.$$.dirty[1]&&n(16,g=(null==D?void 0:D.description)||""),1&t.$$.dirty[0]&&(n(15,m=nt.getDerivedFromVars(Z.aspect)),R(),R=It(m,(t=>n(46,V=t)))),32768&t.$$.dirty[1]){const t=null==V?void 0:V.ratio;t&&lr(t)?n(5,dt=(100/Number(t)).toFixed(2)):n(5,dt="0")}if(1&t.$$.dirty[0]&&(n(14,v=nt.getDerivedFromVars(Z.tint_color)),B(),B=It(v,(t=>n(45,A=t)))),1&t.$$.dirty[0]&&(n(13,y=nt.getDerivedFromVars(Z.tint_mode)),J(),J=It(y,(t=>n(44,C=t)))),24582&t.$$.dirty[1]){const t=A,e=t?k(t):void 0,r=Fr(C,ht);e===ut&&r===ht||(nt.removeSvgFilter(ut,ht),n(6,pt=e?nt.addSvgFilter(e,r):""),n(32,ut=e),n(33,ht=r))}if(1&t.$$.dirty[0]&&(n(12,$=nt.getDerivedFromVars(Z.appearance_animation)),O(),O=It($,(t=>n(43,E=t)))),4096&t.$$.dirty[1]&&E&&"fade"===E.type){const t=E;n(34,ft=Gn(t.interpolator,"ease_in_out").replace(/_/g,"-")),n(37,vt=Ln(t.duration,300)),n(36,mt=Ln(t.start_delay,0)),n(35,gt=Ln(t.alpha,0))}if(1&t.$$.dirty[0]&&(n(11,_=nt.getDerivedFromVars(Z.filters)),T(),T=It(_,(t=>n(42,x=t)))),2048&t.$$.dirty[1]){let t="",e="";Array.isArray(x)&&x.length&&(t=sr(x,nt.logError)),t&&(e="polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%)"),n(38,yt=t),n(39,$t=e)}48&t.$$.dirty[0]|1544&t.$$.dirty[1]&&n(10,b={aspect:"0"!==dt,"is-width-content":l,"is-height-content":c,loaded:1===rt,"before-appearance":Boolean(ft)&&0===rt}),1879048272&t.$$.dirty[0]|505&t.$$.dirty[1]&&n(9,w={"background-image":at,"background-color":at?void 0:it,"background-size":lt,"clip-path":$t||void 0,"object-fit":lt,"object-position":ct,filter:[1===rt&&pt?"url(#".concat(pt,")"):"",yt].filter(Boolean).join(" "),"--divkit-appearance-interpolator":ft||void 0,"--divkit-appearance-fade-start":ft?gt:void 0,"--divkit-appearance-delay":ft?"".concat(mt,"ms"):void 0,"--divkit-appearance-duration":ft?"".concat(vt,"ms"):void 0})},[Z,Q,tt,et,rt,dt,pt,o,ot,w,b,_,$,y,v,m,g,f,p,h,d,u,s,a,i,r,function(){0===rt&&n(4,rt=1)},function(){0===rt&&n(4,rt=Di)},it,at,lt,ct,ut,ht,ft,gt,mt,vt,yt,$t,c,l,x,E,C,A,V,D,j,P,S,N,I,F,z,M]}const Pi=class extends un{constructor(t){super(),cn(this,t,ji,Ai,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Si={grid:"divkit-d9080",grid_halign_left:"divkit-f63b3",grid_halign_center:"divkit-a14a6",grid_halign_right:"divkit-b0717",grid_valign_top:"divkit-fbca8",grid_valign_center:"divkit-d4310",grid_valign_bottom:"divkit-e4205"};function Ni(t){return t>0&&t<1}function Ii(t){return String(Math.ceil(1e3*t)/1e3)}function Fi(t,e,n){if(t.some(Ni)){const e=Math.max(...t.filter(Ni).map((t=>1/t)));t=t.map((t=>t*e))}let r=0,i=0;const o=[];if(t.every(Boolean)){i=t.reduce(((t,e)=>t+e),0);for(let o=0;o<n;++o){if(!e[o])continue;const n=e[o]/t[o]*i;n>r&&(r=n)}}for(let e=0;e<n;++e)r?o[e]="minmax(".concat(En(r*t[e]/i),",").concat(Ii(t[e]),"fr)"):t[e]?o[e]="".concat(Ii(t[e]),"fr"):o[e]="auto";return o.join(" ")}function zi(t,e,n){const r=t.slice();return r[29]=e[n],r}function Mi(t){let e,n;return e=new xr({props:{cls:Mn("grid",Si,t[8]),json:t[0],origJson:t[2],templateContext:t[1],style:t[7],layoutParams:t[3],$$slots:{default:[Oi]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Mn("grid",Si,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||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function Ti(t){let e,n;return e=new Ra({props:{layoutParams:t[29].layoutParams,div:t[29].json,templateContext:t[29].templateContext,origJson:t[29].origJson}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(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||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function Oi(t){let e,n,r=t[5],i=[];for(let e=0;e<r.length;e+=1)i[e]=Ti(zi(t,r,e));const o=t=>Ye(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=ae()},l(t){for(let e=0;e<i.length;e+=1)i[e].l(t);e=ae()},m(t,r){for(let e=0;e<i.length;e+=1)i[e].m(t,r);Qt(t,e,r),n=!0},p(t,n){if(32&n[0]){let a;for(r=t[5],a=0;a<r.length;a+=1){const o=zi(t,r,a);i[a]?(i[a].p(o,n),Xe(i[a],1)):(i[a]=Ti(o),i[a].c(),Xe(i[a],1),i[a].m(e.parentNode,e))}for(Ge(),a=r.length;a<i.length;a+=1)o(a);Ke()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)Xe(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Ye(i[t]);n=!1},d(t){ee(i,t),t&&te(e)}}}function Ji(t){let e,n,r=!t[6]&&Mi(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,i){r&&r.m(t,i),Qt(t,e,i),n=!0},p(t,n){t[6]?r&&(Ge(),Ye(r,1,1,(()=>{r=null})),Ke()):r?(r.p(t,n),64&n[0]&&Xe(r,1)):(r=Mi(t),r.c(),Xe(r,1),r.m(e.parentNode,e))},i(t){n||(Xe(r),n=!0)},o(t){Ye(r),n=!1},d(t){r&&r.d(t),t&&te(e)}}}function Bi(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g=xt,m=xt,v=xt,y=xt;t.$$.on_destroy.push((()=>g())),t.$$.on_destroy.push((()=>m())),t.$$.on_destroy.push((()=>v())),t.$$.on_destroy.push((()=>y()));let{json:$={}}=e,{templateContext:_}=e,{origJson:b}=e,{layoutParams:w}=e;const x=De(bn);let k,E,C=!1,A=1,V=[],D=[],j=[],P=[],S=0,N=!1,I="top",F="left";return t.$$set=t=>{"json"in t&&n(0,$=t.json),"templateContext"in t&&n(1,_=t.templateContext),"origJson"in t&&n(2,b=t.origJson),"layoutParams"in t&&n(3,w=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(23,r=$.items),8388608&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(12,C=!1):(n(12,C=!0),x.logError(st(new Error('Incorrect or empty "items" prop for div "grid"'))))),1&t.$$.dirty[0]&&(n(11,i=x.getDerivedFromVars($.column_count)),y(),y=It(i,(t=>n(27,f=t)))),134225920&t.$$.dirty[0]&&n(13,A=Er(f,A)),8392706&t.$$.dirty[0]&&n(22,o=(!C&&r||[]).map((t=>{let e=t,n=_;return({templateContext:n,json:e}=x.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),4194304&t.$$.dirty[0]){let t=[];o.forEach((e=>{t.push(x.getDerivedFromVars({rowSpan:e.json.row_span,columnSpan:e.json.column_span,width:e.json.width,height:e.json.height}))})),n(4,k=pn(t,(t=>[...t]))),v(),v=It(k,(t=>n(26,p=t)))}if(72081416&t.$$.dirty[0]){const t={};let e=0,r=0;n(14,V=[]),n(15,D=[]),n(16,j=[]),n(17,P=[]),n(19,N=!1),n(5,E=o.map(((i,o)=>{var a,l,s,c;const u=p[o],d=Number(u.columnSpan)||1,h=Number(u.rowSpan)||1,f={x:e,y:r,colSpan:d,rowSpan:h},g="match_parent"===(null===(a=u.width)||void 0===a?void 0:a.type)?Number(u.width.weight||1)/d:0,m="match_parent"===(null===(l=u.height)||void 0===l?void 0:l.type)?Number(u.height.weight||1)/h:0,v=1===d&&"fixed"===(null===(s=u.width)||void 0===s?void 0:s.type)&&u.width.value?Number(u.width.value)/d:0,y=1===h&&"fixed"===(null===(c=u.height)||void 0===c?void 0:c.type)&&u.height.value?Number(u.height.value)/h:0;for(let i=e;i<e+d;++i)for(let e=r;e<r+h;++e)t[i+"_"+e]?n(19,N=!0):(t[i+"_"+e]=!0,(!V[i]||V[i]<g)&&n(14,V[i]=g,V),(!D[e]||D[e]<m)&&n(15,D[e]=m,D),(!j[i]||j[i]<v)&&n(16,j[i]=v,j),(!P[e]||P[e]<y)&&n(17,P[e]=y,P));do{++e,e>=A&&(e=0,++r)}while(t[e+"_"+r]);return Object.assign(Object.assign({},i),{layoutParams:{gridArea:f,fakeElement:(null==w?void 0:w.fakeElement)||!1}})}))),0!==e&&n(19,N=!0),N&&x.logError(st(new Error('Mismatching "grid" rows/columns'))),n(18,S=r)}1&t.$$.dirty[0]&&(n(10,a=x.getDerivedFromVars($.content_alignment_vertical)),m(),m=It(a,(t=>n(25,h=t)))),34603008&t.$$.dirty[0]&&n(20,I=Ir(h,I)),1&t.$$.dirty[0]&&(n(9,l=x.getDerivedFromVars($.content_alignment_horizontal)),g(),g=It(l,(t=>n(24,d=t)))),18874368&t.$$.dirty[0]&&n(21,F=Nr(d,F)),3145728&t.$$.dirty[0]&&n(8,s={valign:I,halign:F}),516096&t.$$.dirty[0]&&n(7,c={"grid-template-columns":Fi(V,j,A),"grid-template-rows":Fi(D,P,S)}),528384&t.$$.dirty[0]&&n(6,u=C||N)},[$,_,b,w,k,E,u,c,s,l,a,i,C,A,V,D,j,P,S,N,I,F,o,r,d,h,p,f]}const Ri={gallery:"divkit-cbb0f",gallery_orientation_horizontal:"divkit-c9be7",gallery_orientation_vertical:"divkit-a72d5",gallery__scroller:"divkit-a4e39","gallery_scroll-snap":"divkit-f606e","gallery__items-grid":"divkit-eb4a5",gallery__items:"divkit-af276",gallery__arrow:"divkit-b72d7","gallery__arrow-icon":"divkit-d100d",gallery__arrow_left:"divkit-a0a5d",gallery__arrow_right:"divkit-f0f59","gallery__arrow-icon-path":"divkit-b4173"};function Ui(t){const e=[];let n=t[0],r=1;for(let i=1;i<=t.length;i++)t[i]!==n?(e.push(r>1?"repeat(".concat(r,", ").concat(n,")"):n),n=t[i],r=1):r++;return e.join(" ")}function Li(t,e){let n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null!==n&&clearTimeout(n),n=setTimeout((()=>{t.apply(this,i),n=null}),e)}}const{Boolean:Wi}=tn;function Hi(t,e,n){const r=t.slice();return r[72]=e[n],r[73]=e,r[74]=n,r}function qi(t,e,n){const r=t.slice();return r[75]=e[n],r}function Gi(t){let e,n;return e=new xr({props:{cls:Mn("gallery",Ri,t[16]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,customActions:"gallery",$$slots:{default:[to]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};65536&n[0]&&(r.cls=Mn("gallery",Ri,t[16])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),335953872&n[0]|65536&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function Ki(t){let e,n;return e=new Ra({props:{layoutParams:t[8],div:t[75].json,templateContext:t[75].templateContext,origJson:t[75].origJson}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.layoutParams=t[8]),67108864&n[0]&&(r.div=t[75].json),67108864&n[0]&&(r.templateContext=t[75].templateContext),67108864&n[0]&&(r.origJson=t[75].origJson),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function Xi(t){let e,n,r,i,o,a=t[74],l=t[72],s=[];for(let e=0;e<l.length;e+=1)s[e]=Ki(qi(t,l,e));const c=t=>Ye(s[t],1,1,(()=>{s[t]=null})),u=()=>t[60](e,a),d=()=>t[60](null,a);return{c(){e=ne("div");for(let t=0;t<s.length;t+=1)s[t].c();n=oe(),this.h()},l(t){e=pe(t,"DIV",{class:!0,style:!0});var r=ue(e);for(let t=0;t<s.length;t+=1)s[t].l(r);n=me(r),r.forEach(te),this.h()},h(){se(e,"class",r=Ri.gallery__items),se(e,"style",i=kn(t[17]))},m(t,r){Qt(t,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);Zt(e,n),u(),o=!0},p(r,h){if(t=r,67109120&h[0]){let r;for(l=t[72],r=0;r<l.length;r+=1){const i=qi(t,l,r);s[r]?(s[r].p(i,h),Xe(s[r],1)):(s[r]=Ki(i),s[r].c(),Xe(s[r],1),s[r].m(e,n))}for(Ge(),r=l.length;r<s.length;r+=1)c(r);Ke()}(!o||131072&h[0]&&i!==(i=kn(t[17])))&&se(e,"style",i),a!==t[74]&&(d(),a=t[74],u())},i(t){if(!o){for(let t=0;t<l.length;t+=1)Xe(s[t]);o=!0}},o(t){s=s.filter(Wi);for(let t=0;t<s.length;t+=1)Ye(s[t]);o=!1},d(t){t&&te(e),ee(s,t),d()}}}function Yi(t){let e,n,r=t[12]&&t[9]&&Zi(t),i=t[13]&&t[9]&&Qi(t);return{c(){r&&r.c(),e=oe(),i&&i.c(),n=ae()},l(t){r&&r.l(t),e=me(t),i&&i.l(t),n=ae()},m(t,o){r&&r.m(t,o),Qt(t,e,o),i&&i.m(t,o),Qt(t,n,o)},p(t,o){t[12]&&t[9]?r?r.p(t,o):(r=Zi(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),t[13]&&t[9]?i?i.p(t,o):(i=Qi(t),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(t){r&&r.d(t),t&&te(e),i&&i.d(t),t&&te(n)}}}function Zi(t){let e,n,r,i,o=!t[29]&&function(t){let e,n,r,i;return{c(){e=re("svg"),n=re("path"),this.h()},l(t){e=fe(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=ue(e);n=fe(r,"path",{class:!0,d:!0}),ue(n).forEach(te),r.forEach(te),this.h()},h(){se(n,"class",r=Ri["gallery__arrow-icon-path"]),se(n,"d","m10 16 8.3 8 1.03-1-4-6-.7-1 .7-1 4-6-1.03-1z"),se(e,"class",i=Ri["gallery__arrow-icon"]),se(e,"xmlns","http://www.w3.org/2000/svg"),se(e,"width","32"),se(e,"height","32"),se(e,"viewBox","0 0 32 32"),se(e,"fill","none")},m(t,r){Qt(t,e,r),Zt(e,n)},p:xt,d(t){t&&te(e)}}}();return{c(){e=ne("div"),o&&o.c(),this.h()},l(t){e=pe(t,"DIV",{class:!0});var n=ue(e);o&&o.l(n),n.forEach(te),this.h()},h(){se(e,"class",n=t[29]||"".concat(Ri.gallery__arrow," ").concat(Ri.gallery__arrow_left))},m(n,a){Qt(n,e,a),o&&o.m(e,null),r||(i=le(e,"click",t[63]),r=!0)},p(t,e){t[29]||o.p(t,e)},d(t){t&&te(e),o&&o.d(),r=!1,i()}}}function Qi(t){let e,n,r,i,o=!t[30]&&function(t){let e,n,r,i;return{c(){e=re("svg"),n=re("path"),this.h()},l(t){e=fe(t,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0});var r=ue(e);n=fe(r,"path",{class:!0,d:!0}),ue(n).forEach(te),r.forEach(te),this.h()},h(){se(n,"class",r=Ri["gallery__arrow-icon-path"]),se(n,"d","M22 16l-8.3 8-1.03-1 4-6 .7-1-.7-1-4-6 1.03-1 8.3 8z"),se(e,"class",i=Ri["gallery__arrow-icon"]),se(e,"xmlns","http://www.w3.org/2000/svg"),se(e,"width","32"),se(e,"height","32"),se(e,"viewBox","0 0 32 32"),se(e,"fill","none")},m(t,r){Qt(t,e,r),Zt(e,n)},p:xt,d(t){t&&te(e)}}}();return{c(){e=ne("div"),o&&o.c(),this.h()},l(t){e=pe(t,"DIV",{class:!0});var n=ue(e);o&&o.l(n),n.forEach(te),this.h()},h(){se(e,"class",n=t[30]||"".concat(Ri.gallery__arrow," ").concat(Ri.gallery__arrow_right))},m(n,a){Qt(n,e,a),o&&o.m(e,null),r||(i=le(e,"click",t[64]),r=!0)},p(t,e){t[30]||o.p(t,e)},d(t){t&&te(e),o&&o.d(),r=!1,i()}}}function to(t){let e,n,r,i,o,a,l,s,c,u,d,h=t[26],p=[];for(let e=0;e<h.length;e+=1)p[e]=Xi(Hi(t,h,e));const f=t=>Ye(p[t],1,1,(()=>{p[t]=null}));let g="horizontal"===t[6]&&Yi(t);return{c(){e=ne("div"),n=ne("div");for(let t=0;t<p.length;t+=1)p[t].c();l=oe(),g&&g.c(),s=ae(),this.h()},l(t){e=pe(t,"DIV",{class:!0,style:!0});var r=ue(e);n=pe(r,"DIV",{class:!0,style:!0});var i=ue(n);for(let t=0;t<p.length;t+=1)p[t].l(i);i.forEach(te),r.forEach(te),l=me(t),g&&g.l(t),s=ae(),this.h()},h(){se(n,"class",r=Ri["gallery__items-grid"]),se(n,"style",i=kn(t[18])),se(e,"class",o=Ri.gallery__scroller+" "+(t[28]?"divkit-aa145":"")),se(e,"style",a=kn(t[7]))},m(r,i){Qt(r,e,i),Zt(e,n);for(let t=0;t<p.length;t+=1)p[t].m(n,null);t[61](n),t[62](e),Qt(r,l,i),g&&g.m(r,i),Qt(r,s,i),c=!0,u||(d=le(e,"scroll",(function(){Dt(t[9]?t[32]:null)&&(t[9]?t[32]:null).apply(this,arguments)})),u=!0)},p(r,l){if(t=r,67242240&l[0]){let e;for(h=t[26],e=0;e<h.length;e+=1){const r=Hi(t,h,e);p[e]?(p[e].p(r,l),Xe(p[e],1)):(p[e]=Xi(r),p[e].c(),Xe(p[e],1),p[e].m(n,null))}for(Ge(),e=h.length;e<p.length;e+=1)f(e);Ke()}(!c||262144&l[0]&&i!==(i=kn(t[18])))&&se(n,"style",i),(!c||268435456&l[0]&&o!==(o=Ri.gallery__scroller+" "+(t[28]?"divkit-aa145":"")))&&se(e,"class",o),(!c||128&l[0]&&a!==(a=kn(t[7])))&&se(e,"style",a),"horizontal"===t[6]?g?g.p(t,l):(g=Yi(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)Xe(p[t]);c=!0}},o(t){p=p.filter(Wi);for(let t=0;t<p.length;t+=1)Ye(p[t]);c=!1},d(n){n&&te(e),ee(p,n),t[61](null),t[62](null),n&&te(l),g&&g.d(n),n&&te(s),u=!1,d()}}}function eo(t){let e,n,r,i,o=!t[5]&&Gi(t);return{c(){o&&o.c(),e=ae()},l(t){o&&o.l(t),e=ae()},m(a,l){o&&o.m(a,l),Qt(a,e,l),n=!0,r||(i=le(window,"resize",(function(){Dt(t[9]?t[33]:null)&&(t[9]?t[33]:null).apply(this,arguments)})),r=!0)},p(n,r){(t=n)[5]?o&&(Ge(),Ye(o,1,1,(()=>{o=null})),Ke()):o?(o.p(t,r),32&r[0]&&Xe(o,1)):(o=Gi(t),o.c(),Xe(o,1),o.m(e.parentNode,e))},i(t){n||(Xe(o),n=!0)},o(t){Ye(o),n=!1},d(t){o&&o.d(t),t&&te(e),r=!1,i()}}}function no(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,j,P=xt,S=xt,N=xt,I=xt,F=xt,z=xt,M=xt,T=xt,O=xt,J=xt;t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I())),t.$$.on_destroy.push((()=>F())),t.$$.on_destroy.push((()=>z())),t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J()));let{json:B={}}=e,{templateContext:R}=e,{origJson:U}=e,{layoutParams:L}=e;const W=De(bn);let H,q,G=[],K=!1,X=!1,Y=null,Z=!1;const Q=W.getCustomization("galleryLeftClass"),tt=W.getCustomization("galleryRightClass");let et=!1;const nt=W.isDesktop;Ft(t,nt,(t=>n(59,D=t)));let rt,it,ot,at,lt=1,ct="horizontal",ut="start",dt=8,ht="",pt=[],ft={},gt=!1,mt={},vt=0;function yt(){if(!H)return;const t=H.scrollLeft,e=H.scrollWidth,r=H.offsetWidth;n(12,K=t>2),n(13,X=t+r<e-2)}const $t=Li(yt,50);function _t(t){H.scroll({left:H.scrollLeft+.75*H.offsetWidth*("right"===t?1:-1),behavior:"smooth"})}function bt(){let t=[],e=G[0].children.length;for(let n=0;n<e;++n)for(let e=0;e<lt;++e){const r=G[e].children[n];r&&t.push(r)}return t}function wt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth";const r="horizontal"===ct,i=r?"offsetLeft":"offsetTop",o=r?"left":"top";H.scroll({[o]:Math.max(0,t[e][i]-dt/2),behavior:n})}function kt(t){const e=bt(),n=H.getBoundingClientRect(),r=e.findIndex((t=>function(t,e){return"horizontal"===ct?e.left>=t.left&&e.right<=t.right:e.top>=t.top&&e.bottom<=t.bottom}(n,t.getBoundingClientRect())));if(-1!==r)return r;const i=e.map((t=>function(t,e){return"horizontal"===ct?e.right>t.left&&t.right>e.left:e.bottom>t.top&&t.bottom>e.top}(n,t.getBoundingClientRect()))),o=i.findIndex(Boolean);return-1!==o?"prev"===t&&2===i.filter(Boolean).length?o+1:o:"prev"===t?1:e.length-2}return!B.id||et||(null==L?void 0:L.fakeElement)||W.registerInstance(B.id,{setCurrentItem(t){const e=bt();if(t<0||t>e.length-1)throw new Error('Item is out of range in "set-current-item" action');wt(e,t)},setPreviousItem(t){const e=kt("prev"),n=bt();let r=e-1;r<0&&(r="ring"===t?n.length-1:e),wt(n,r)},setNextItem(t){const e="horizontal"===ct?H.scrollLeft+H.offsetWidth===H.scrollWidth:H.scrollTop+H.offsetHeight===H.scrollHeight,n=bt();if(e&&"ring"===t)return void wt(n,0);const r=kt("next");let i=r+1;i>n.length-1&&(i="ring"===t?0:r),wt(n,i)}}),Ce((()=>{n(36,Z=!0),!et&&(yt(),vt)&&wt(bt(),vt,"auto")})),Ae((()=>{n(36,Z=!1),B.id&&!(null==L?void 0:L.fakeElement)&&W.unregisterInstance(B.id)})),t.$$set=t=>{"json"in t&&n(0,B=t.json),"templateContext"in t&&n(1,R=t.templateContext),"origJson"in t&&n(2,U=t.origJson),"layoutParams"in t&&n(3,L=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(49,r=B.items),262144&t.$$.dirty[1]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(5,et=!1):(n(5,et=!0),W.logError(st(new Error('Incorrect or empty "items" prop for div "gallery"'))))),34&t.$$.dirty[0]|262144&t.$$.dirty[1]&&n(48,i=(!et&&r||[]).map((t=>{let e=t,n=R;return({templateContext:n,json:e}=W.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),32&t.$$.dirty[0]|268435488&t.$$.dirty[1]&&n(9,o=D&&Z&&!et),528&t.$$.dirty[0]|16&t.$$.dirty[1]&&(o?"undefined"!=typeof ResizeObserver&&(n(35,Y=new ResizeObserver((()=>{$t()}))),Y.observe(q)):Y&&(Y.disconnect(),n(35,Y=null))),1&t.$$.dirty[0]&&(n(27,a=W.getDerivedFromVars(B.column_count)),O(),O=It(a,(t=>n(58,V=t)))),134217792&t.$$.dirty[1]&&n(37,lt=Er(V,lt)),131136&t.$$.dirty[1]&&n(26,l=function(t,e){let n=0,r=[];for(let i=0;i<t.length;++i)r[n]||(r[n]=[]),r[n].push(t[i]),++n>=e&&(n=0);return r}(i,lt)),1&t.$$.dirty[0]&&(n(25,s=W.getDerivedFromVars(B.orientation)),T(),T=It(s,(t=>n(57,A=t)))),64&t.$$.dirty[0]|67108864&t.$$.dirty[1]&&n(6,ct=mi(A,ct)),1&t.$$.dirty[0]&&(n(24,c=W.getDerivedFromVars(B.cross_content_alignment)),M(),M=It(c,(t=>n(56,C=t)))),33554560&t.$$.dirty[1]&&n(38,ut=function(t,e){return"start"===t||"center"===t||"end"===t?t:e}(C,ut)),1&t.$$.dirty[0]&&(n(23,u=W.getDerivedFromVars(B.item_spacing)),z(),z=It(u,(t=>n(55,E=t)))),16777728&t.$$.dirty[1]&&(n(40,dt=Ln(E,dt)),n(39,rt=En(dt))),1&t.$$.dirty[0]&&(n(22,d=W.getDerivedFromVars(B.cross_spacing)),F(),F=It(d,(t=>n(54,k=t)))),8391168&t.$$.dirty[1]&&(n(42,ot=Ln(k,dt)),n(41,it=En(ot))),1&t.$$.dirty[0]&&(n(21,h=W.getDerivedFromVars(B.paddings)),I(),I=It(h,(t=>n(53,x=t)))),4198400&t.$$.dirty[1]&&n(43,ht=Un(x,ht)),64&t.$$.dirty[0]&&n(47,p="horizontal"===ct?"grid-template-columns":"grid-template-rows"),64&t.$$.dirty[0]|131072&t.$$.dirty[1]){let t=[];i.forEach((e=>{const n="horizontal"===ct?"width":"height";t.push(W.getDerivedFromVars(e.json[n]))})),n(14,at=pn(t,(t=>t))),N(),N=It(at,(t=>n(52,w=t)))}if(64&t.$$.dirty[0]|2105408&t.$$.dirty[1]&&(n(44,pt=[]),lt>1?pt.push("auto"):w.forEach((t=>{!t&&"horizontal"===ct||"match_parent"===(null==t?void 0:t.type)?pt.push("100%"):pt.push("max-content")}))),1&t.$$.dirty[0]&&(n(20,f=W.getDerivedFromVars(B.scroll_mode)),S(),S=It(f,(t=>n(51,b=t)))),456&t.$$.dirty[0]|1049280&t.$$.dirty[1]){const t={};let e={};n(45,gt=!1),(null==L?void 0:L.fakeElement)&&(e.fakeElement=!0),"horizontal"===ct?e.parentVAlign=ut:e.parentHAlign=ut,"paging"===b&&(n(45,gt=!0),e.scrollSnap="start",t["horizontal"===ct?"scroll-padding-left":"scroll-padding-top"]=En(dt/2)),1===lt&&(e.parentLayoutOrientation=ct),n(7,ft=qn(t,ft)),n(8,mt=qn(e,mt))}1&t.$$.dirty[0]&&(n(19,g=W.getDerivedFromVars(B.restrict_parent_scroll)),J(),J=It(g,(t=>n(28,j=t)))),5120&t.$$.dirty[1]&&n(18,m={padding:ht,"grid-gap":it}),73984&t.$$.dirty[1]&&n(17,v={"grid-gap":rt,[p]:Ui(pt)}),64&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(16,y={orientation:ct,"scroll-snap":gt}),1&t.$$.dirty[0]&&(n(15,$=W.getDerivedFromVars(B.default_item)),P(),P=It($,(t=>n(50,_=t)))),557056&t.$$.dirty[1]&&n(46,vt=Ln(_,vt))},[B,R,U,L,q,et,ct,ft,mt,o,H,G,K,X,at,$,y,v,m,g,f,h,d,u,c,s,l,a,j,Q,tt,nt,yt,$t,_t,Y,Z,lt,ut,rt,dt,it,ot,ht,pt,gt,vt,p,i,r,_,b,w,x,k,E,C,A,V,D,function(t,e){Se[t?"unshift":"push"]((()=>{G[e]=t,n(11,G)}))},function(t){Se[t?"unshift":"push"]((()=>{q=t,n(4,q)}))},function(t){Se[t?"unshift":"push"]((()=>{H=t,n(10,H)}))},()=>_t("left"),()=>_t("right")]}const ro={tabs:"divkit-e0df5",tabs__list:"divkit-ea19b",tabs__item:"divkit-c25c7",tabs__item_selected:"divkit-d560a",tabs__item_actionable:"divkit-dfda0",tabs__panels:"divkit-f5dc0",tabs__swiper:"divkit-eb42c",tabs__swiper_animated:"divkit-b9f18",tabs__swiper_inited:"divkit-fa574",tabs__panel:"divkit-cc9fb",tabs__panel_visible:"divkit-e7306",tabs__separator:"divkit-b85bf"},{Boolean:io}=tn;function oo(t,e,n){const r=t.slice();return r[83]=e[n],r[85]=n,r}function ao(t,e,n){const r=t.slice();r[83]=e[n],r[85]=n;const i=r[85]===r[6];return r[86]=i,r}function lo(t){let e,n;return e=new xr({props:{cls:Mn("tabs",ro,t[42]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customActions:"tabs",$$slots:{default:[fo]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),536870890&n[0]|517&n[1]|67108864&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function so(t){let e,n,r=t[83].title+"";return{c(){e=ie(r),n=oe()},l(t){e=ge(t,r),n=me(t)},m(t,r){Qt(t,e,r),Qt(t,n,r)},p(t,n){262144&n[0]&&r!==(r=t[83].title+"")&&ve(e,r)},d(t){t&&te(e),t&&te(n)}}}function co(t){var e,n,r;let i,o;function a(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[59](t[85],...n)}return i=new ar({props:{cls:Mn("tabs__item",ro,{selected:t[86],actionable:Boolean(t[83].title_click_action)}),actions:!t[83].title_click_action||null!==(e=t[3])&&void 0!==e&&e.fakeElement?[]:[t[83].title_click_action],attrs:{id:"".concat(t[41],"-tab-").concat(t[85]),"aria-controls":"".concat(t[41],"-panel-").concat(t[85]),role:"tab",tabindex:!t[86]||null!==(n=t[3])&&void 0!==n&&n.fakeElement?"-1":t[83].title_click_action?void 0:"0","aria-selected":t[86]?"true":"false"},customAction:null!==(r=t[3])&&void 0!==r&&r.fakeElement?null:a,$$slots:{default:[so]},$$scope:{ctx:t}}}),{c(){on(i.$$.fragment)},l(t){an(i.$$.fragment,t)},m(t,e){ln(i,t,e),o=!0},p(e,n){var r,o,l;t=e;const s={};262208&n[0]&&(s.cls=Mn("tabs__item",ro,{selected:t[86],actionable:Boolean(t[83].title_click_action)})),262152&n[0]&&(s.actions=!t[83].title_click_action||null!==(r=t[3])&&void 0!==r&&r.fakeElement?[]:[t[83].title_click_action]),262216&n[0]&&(s.attrs={id:"".concat(t[41],"-tab-").concat(t[85]),"aria-controls":"".concat(t[41],"-panel-").concat(t[85]),role:"tab",tabindex:!t[86]||null!==(o=t[3])&&void 0!==o&&o.fakeElement?"-1":t[83].title_click_action?void 0:"0","aria-selected":t[86]?"true":"false"}),8&n[0]&&(s.customAction=null!==(l=t[3])&&void 0!==l&&l.fakeElement?null:a),262144&n[0]|67108864&n[2]&&(s.$$scope={dirty:n,ctx:t}),i.$set(s)},i(t){o||(Xe(i.$$.fragment,t),o=!0)},o(t){Ye(i.$$.fragment,t),o=!1},d(t){sn(i,t)}}}function uo(t){let e,n,r;return{c(){e=ne("div"),this.h()},l(t){e=pe(t,"DIV",{class:!0,style:!0}),ue(e).forEach(te),this.h()},h(){se(e,"class",n=ro.tabs__separator),se(e,"style",r=kn(t[33]))},m(t,n){Qt(t,e,n)},p(t,n){4&n[1]&&r!==(r=kn(t[33]))&&se(e,"style",r)},d(t){t&&te(e)}}}function ho(t){let e,n;return e=new Ra({props:{div:t[83].div,templateContext:t[1],layoutParams:t[5]}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};262144&n[0]&&(r.div=t[83].div),2&n[0]&&(r.templateContext=t[1]),32&n[0]&&(r.layoutParams=t[5]),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function po(t){let e,n,r,i,o,a,l=t[27][t[85]]&&ho(t);return{c(){e=ne("div"),l&&l.c(),n=oe(),this.h()},l(t){e=pe(t,"DIV",{class:!0,role:!0,id:!0,"aria-labelledby":!0,style:!0});var r=ue(e);l&&l.l(r),n=me(r),r.forEach(te),this.h()},h(){se(e,"class",r=Mn("tabs__panel",ro,{visible:t[28][t[85]]})),se(e,"role","tabpanel"),se(e,"id",i=t[41]+"-panel-"+t[85]),se(e,"aria-labelledby",o=t[41]+"-tab-"+t[85]),ye(e,"left",100*t[85]+"%")},m(t,r){Qt(t,e,r),l&&l.m(e,null),Zt(e,n),a=!0},p(t,i){t[27][t[85]]?l?(l.p(t,i),134217728&i[0]&&Xe(l,1)):(l=ho(t),l.c(),Xe(l,1),l.m(e,n)):l&&(Ge(),Ye(l,1,1,(()=>{l=null})),Ke()),(!a||268435456&i[0]&&r!==(r=Mn("tabs__panel",ro,{visible:t[28][t[85]]})))&&se(e,"class",r)},i(t){a||(Xe(l),a=!0)},o(t){Ye(l),a=!1},d(t){t&&te(e),l&&l.d()}}}function fo(t){let e,n,r,i,o,a,l,s,c,u,d,h=t[18],p=[];for(let e=0;e<h.length;e+=1)p[e]=co(ao(t,h,e));const f=t=>Ye(p[t],1,1,(()=>{p[t]=null}));let g=t[19]&&uo(t),m=t[18],v=[];for(let e=0;e<m.length;e+=1)v[e]=po(oo(t,m,e));const y=t=>Ye(v[t],1,1,(()=>{v[t]=null}));return{c(){e=ne("div");for(let t=0;t<p.length;t+=1)p[t].c();r=oe(),g&&g.c(),i=oe(),o=ne("div"),a=ne("div");for(let t=0;t<v.length;t+=1)v[t].c();this.h()},l(t){e=pe(t,"DIV",{class:!0,role:!0});var n=ue(e);for(let t=0;t<p.length;t+=1)p[t].l(n);n.forEach(te),r=me(t),g&&g.l(t),i=me(t),o=pe(t,"DIV",{class:!0});var l=ue(o);a=pe(l,"DIV",{class:!0});var s=ue(a);for(let t=0;t<v.length;t+=1)v[t].l(s);s.forEach(te),l.forEach(te),this.h()},h(){se(e,"class",n=ro.tabs__list+" "+(t[40]?"divkit-aa145":"")),se(e,"role","tablist"),ye(e,"--divkit-tabs-title-padding",t[17]?Jn(t[17]):"",!1),ye(e,"--divkit-tabs-font-size",En(t[7]),!1),ye(e,"--divkit-tabs-paddings",t[8],!1),ye(e,"--divkit-tabs-line-height",t[23],!1),ye(e,"--divkit-tabs-letter-spacing",t[24],!1),ye(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),ye(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),ye(e,"--divkit-tabs-active-text-color",t[12],!1),ye(e,"--divkit-tabs-inactive-text-color",t[13],!1),ye(e,"--divkit-tabs-active-background-color",t[14],!1),ye(e,"--divkit-tabs-inactive-background-color",t[15],!1),ye(e,"--divkit-tabs-border-radius",t[9],!1),ye(e,"--divkit-tabs-items-spacing",t[16]?Cn(t[16]):"",!1),se(a,"class",l=Mn("tabs__swiper",ro,{inited:t[25],animated:t[26]})),se(o,"class",s=ro.tabs__panels+" "+(t[40]?"divkit-aa145":""))},m(n,l){Qt(n,e,l);for(let t=0;t<p.length;t+=1)p[t].m(e,null);t[60](e),Qt(n,r,l),g&&g.m(n,l),Qt(n,i,l),Qt(n,o,l),Zt(o,a);for(let t=0;t<v.length;t+=1)v[t].m(a,null);t[61](a),t[62](o),c=!0,u||(d=[le(e,"keydown",t[44]),le(a,"touchstart",(function(){Dt(t[31]?t[45]:void 0)&&(t[31]?t[45]:void 0).apply(this,arguments)})),le(a,"touchmove",(function(){Dt(t[31]?t[46]:void 0)&&(t[31]?t[46]:void 0).apply(this,arguments)})),le(a,"touchend",(function(){Dt(t[31]?t[47]:void 0)&&(t[31]?t[47]:void 0).apply(this,arguments)})),le(a,"touchcancel",(function(){Dt(t[31]?t[47]:void 0)&&(t[31]?t[47]:void 0).apply(this,arguments)}))],u=!0)},p(r,u){if(t=r,262216&u[0]|5120&u[1]){let n;for(h=t[18],n=0;n<h.length;n+=1){const r=ao(t,h,n);p[n]?(p[n].p(r,u),Xe(p[n],1)):(p[n]=co(r),p[n].c(),Xe(p[n],1),p[n].m(e,null))}for(Ge(),n=h.length;n<p.length;n+=1)f(n);Ke()}if((!c||512&u[1]&&n!==(n=ro.tabs__list+" "+(t[40]?"divkit-aa145":"")))&&se(e,"class",n),131072&u[0]&&ye(e,"--divkit-tabs-title-padding",t[17]?Jn(t[17]):"",!1),128&u[0]&&ye(e,"--divkit-tabs-font-size",En(t[7]),!1),256&u[0]&&ye(e,"--divkit-tabs-paddings",t[8],!1),8388608&u[0]&&ye(e,"--divkit-tabs-line-height",t[23],!1),16777216&u[0]&&ye(e,"--divkit-tabs-letter-spacing",t[24],!1),1024&u[0]&&ye(e,"--divkit-tabs-active-font-weight",t[10]||"",!1),2048&u[0]&&ye(e,"--divkit-tabs-inactive-font-weight",t[11]||"",!1),4096&u[0]&&ye(e,"--divkit-tabs-active-text-color",t[12],!1),8192&u[0]&&ye(e,"--divkit-tabs-inactive-text-color",t[13],!1),16384&u[0]&&ye(e,"--divkit-tabs-active-background-color",t[14],!1),32768&u[0]&&ye(e,"--divkit-tabs-inactive-background-color",t[15],!1),512&u[0]&&ye(e,"--divkit-tabs-border-radius",t[9],!1),65536&u[0]&&ye(e,"--divkit-tabs-items-spacing",t[16]?Cn(t[16]):"",!1),t[19]?g?g.p(t,u):(g=uo(t),g.c(),g.m(i.parentNode,i)):g&&(g.d(1),g=null),402915362&u[0]|1024&u[1]){let e;for(m=t[18],e=0;e<m.length;e+=1){const n=oo(t,m,e);v[e]?(v[e].p(n,u),Xe(v[e],1)):(v[e]=po(n),v[e].c(),Xe(v[e],1),v[e].m(a,null))}for(Ge(),e=m.length;e<v.length;e+=1)y(e);Ke()}(!c||100663296&u[0]&&l!==(l=Mn("tabs__swiper",ro,{inited:t[25],animated:t[26]})))&&se(a,"class",l),(!c||512&u[1]&&s!==(s=ro.tabs__panels+" "+(t[40]?"divkit-aa145":"")))&&se(o,"class",s)},i(t){if(!c){for(let t=0;t<h.length;t+=1)Xe(p[t]);for(let t=0;t<m.length;t+=1)Xe(v[t]);c=!0}},o(t){p=p.filter(io);for(let t=0;t<p.length;t+=1)Ye(p[t]);v=v.filter(io);for(let t=0;t<v.length;t+=1)Ye(v[t]);c=!1},d(n){n&&te(e),ee(p,n),t[60](null),n&&te(r),g&&g.d(n),n&&te(i),n&&te(o),ee(v,n),t[61](null),t[62](null),u=!1,Vt(d)}}}function go(t){let e,n,r=!t[4]&&lo(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,i){r&&r.m(t,i),Qt(t,e,i),n=!0},p(t,n){t[4]?r&&(Ge(),Ye(r,1,1,(()=>{r=null})),Ke()):r?(r.p(t,n),16&n[0]&&Xe(r,1)):(r=lo(t),r.c(),Xe(r,1),r.m(e.parentNode,e))},i(t){n||(Xe(r),n=!0)},o(t){Ye(r),n=!1},d(t){r&&r.d(t),t&&te(e)}}}function mo(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C=xt,A=xt,V=xt,D=xt,j=xt,P=xt,S=xt,N=xt,I=xt;var F;t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>P())),t.$$.on_destroy.push((()=>S())),t.$$.on_destroy.push((()=>N())),t.$$.on_destroy.push((()=>I()));let{json:z={}}=e,{templateContext:M}=e,{origJson:T}=e,{layoutParams:O}=e;const J=De(bn),B=J.genId("tabs");let R,U,L,W=!1,H={};const q=J.getJsonWithVars(z.selected_tab);let G,K,X=q&&Number(q)||0,Y=12,Z="",Q="",tt="",et="",nt="",rt="",it="",ot="",at=0,lt="",ct="",ut=null,dt=!1,ht=!1,pt=X,ft=[],gt=[];async function mt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(pt=X,n(6,X=t),Et(),$t(),e){await Te();const t=R.querySelector(".".concat(ro.tabs__item_selected));t&&t.focus()}}function vt(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=null==r?void 0:r.length;if(!n)return;let i=X+t;i>=n?i=0:i<0&&(i=n-1),mt(i,e)}function yt(t,e){return X===e||(mt(e),!1)}function $t(){n(26,ht=!0),_t(100*-X),bt(),async function(){await Te();const t=document.getElementById("".concat(B,"-panel-").concat(X));t&&n(21,U.style.height=En(t.offsetHeight),U)}(),kt(),Vt=-X*U.clientWidth}async function _t(t){await Te(),n(22,L.style.transform="translate3d(".concat(t,"%,0,0)"),L)}function bt(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=t?Math.max(0,X-1):Math.min(X,pt),i=t?Math.min(r.length-1,X+1):Math.max(X,pt);n(27,ft=ft.map(((t,n)=>t||n>=e&&n<=i))),n(28,gt=gt.map(((t,n)=>n>=e&&n<=i)))}let wt=null;function kt(){wt&&clearTimeout(wt),wt=window.setTimeout((()=>{n(28,gt=r.map(((t,e)=>e===X)))}),400)}function Et(){dt||(n(25,dt=!0),n(21,U.style.height=En(U.clientHeight),U),n(22,L.style.transform="translate3d(".concat(100*-pt,"%,0,0)"),L))}let Ct,At,Vt,Dt=null,jt=null,Pt=!1,St=!1;return!z.id||W||(null==O?void 0:O.fakeElement)||J.registerInstance(z.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');mt(t)},setPreviousItem(t){let e=X-1;e<0&&(e="ring"===t?r.length-1:X),mt(e)},setNextItem(t){let e=X+1;e>r.length-1&&(e="ring"===t?0:X),mt(e)}}),Ae((()=>{z.id&&!(null==O?void 0:O.fakeElement)&&J.unregisterInstance(z.id)})),t.$$set=t=>{"json"in t&&n(0,z=t.json),"templateContext"in t&&n(1,M=t.templateContext),"origJson"in t&&n(2,T=t.origJson),"layoutParams"in t&&n(3,O=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&n(18,r=z.items||[]),262144&t.$$.dirty[0]&&((null==r?void 0:r.length)&&Array.isArray(r)?n(4,W=!1):(n(4,W=!0),J.logError(st(new Error('Incorrect or empty "items" prop for div "tabs"'))))),1&t.$$.dirty[0]&&(n(39,i=J.getDerivedFromVars(z.width)),N(),N=It(i,(t=>n(58,x=t)))),1&t.$$.dirty[0]&&(n(38,o=J.getDerivedFromVars(z.height)),S(),S=It(o,(t=>n(57,w=t)))),40&t.$$.dirty[0]|201326592&t.$$.dirty[1]){let t={};(null==O?void 0:O.fakeElement)&&(t.fakeElement=!0),"wrap_content"===(null==x?void 0:x.type)&&(t.parentHorizontalWrapContent=!0),w&&"wrap_content"!==w.type||(t.parentVerticalWrapContent=!0),n(5,H=qn(t,H))}if(262225&t.$$.dirty[0]&&!W&&(X<0||X>=r.length)&&(J.logError(st(new Error('Incorrect "selected_tab" prop for div "tabs"'),{additional:{selected:z.selected_tab,length:r.length}})),n(6,X=X<0?0:r.length-1)),1&t.$$.dirty[0]&&(n(37,a=J.getDerivedFromVars(z.tab_title_style)),P(),P=It(a,(t=>n(56,b=t)))),33554432&t.$$.dirty[1]&&n(51,l=b||{}),128&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(7,Y=Er(l.font_size,Y)),384&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&(l.font_size||l.paddings)){const t=l.paddings||{top:6,right:8,bottom:6,left:8},e={top:(Number(t.top)||0)/Y*10,right:(Number(t.right)||0)/Y*10,bottom:(Number(t.bottom)||0)/Y*10,left:(Number(t.left)||0)/Y*10};n(8,Z=Un(e,Z))}if(128&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=l.line_height;void 0!==t&&lr(t)&&n(23,Q=En(t/Y*10))}if(128&t.$$.dirty[0]|1048576&t.$$.dirty[1]){const t=l.letter_spacing;void 0!==t&&Rn(t)&&n(24,tt=En(t/Y*10))}if(640&t.$$.dirty[0]|1179648&t.$$.dirty[1]&&(l.corner_radius||l.corners_radius||l.font_size)){const t=null!==n(48,F=l.corner_radius)&&void 0!==F?F:1e3;l.corners_radius?n(9,et=function(t,e,n,r){const i=[t["top-left"],t["top-right"],t["bottom-right"],t["bottom-left"]];for(let t=0;t<i.length;++t)if(i[t]&&!Rn(i[t]))return r;return Zn(t,e,n)}(l.corners_radius,t,Y,et)):Rn(t)&&n(9,et=En(t/Y*10))}1024&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(10,G=Ar(l.active_font_weight||l.font_weight,G)),2048&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(11,K=Ar(l.inactive_font_weight||l.font_weight,K)),4096&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(12,nt=k(l.active_text_color,1,nt)),8192&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(13,rt=k(l.inactive_text_color,1,rt)),16384&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(14,it=k(l.active_background_color,1,it)),32768&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(15,ot=k(l.inactive_background_color,1,ot)),65536&t.$$.dirty[0]|1048576&t.$$.dirty[1]&&n(16,at=Ln(l.item_spacing,at)),1&t.$$.dirty[0]&&(n(36,s=J.getDerivedFromVars(z.has_separator)),j(),j=It(s,(t=>n(19,_=t)))),1&t.$$.dirty[0]&&(n(35,c=J.getDerivedFromVars(z.separator_color)),D(),D=It(c,(t=>n(55,$=t)))),1&t.$$.dirty[0]&&(n(34,u=J.getDerivedFromVars(z.separator_paddings)),V(),V=It(u,(t=>n(54,y=t)))),524288&t.$$.dirty[0]|25952256&t.$$.dirty[1]&&_&&($&&n(49,lt=k($,1,lt)),y&&n(50,ct=Un(y,ct))),786432&t.$$.dirty[1]&&n(33,d={background:lt,margin:ct}),1&t.$$.dirty[0]&&(n(32,h=J.getDerivedFromVars(z.switch_tabs_by_content_swipe_enabled)),A(),A=It(h,(t=>n(53,v=t)))),4194304&t.$$.dirty[1]&&n(31,p=void 0===v||Boolean(v)),1&t.$$.dirty[0]&&(n(30,f=J.getDerivedFromVars(z.restrict_parent_scroll)),I(),I=It(f,(t=>n(40,E=t)))),1&t.$$.dirty[0]&&(n(29,g=J.getDerivedFromVars(z.title_paddings)),C(),C=It(g,(t=>n(52,m=t)))),131072&t.$$.dirty[0]|2097152&t.$$.dirty[1]&&n(17,ut=Yn(m||void 0,ut)),262144&t.$$.dirty[0]&&(W||(n(27,ft=r.map(((t,e)=>e===X))),n(28,gt=r.map(((t,e)=>e===X)))))},[z,M,T,O,W,H,X,Y,Z,et,G,K,nt,rt,it,ot,at,ut,r,_,R,U,L,Q,tt,dt,ht,ft,gt,g,f,p,h,d,u,c,s,a,o,i,E,B,{},yt,function(t){if(!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&r){if(37===t.which)vt(-1,!0);else if(39===t.which)vt(1,!0);else if(36===t.which)mt(0,!0);else{if(35!==t.which)return;mt(r.length-1,!0)}t.preventDefault()}},function(t){var e;const i=t.target,o=null===(e=null==i?void 0:i.closest)||void 0===e?void 0:e.call(i,".".concat("divkit-aa145"));r.length<2||t.touches.length>1||o&&o!==U||(Pt=!1,St=!1,Dt=er(t),jt=null,Ct=Date.now(),At=Vt||-X*U.clientWidth,n(26,ht=!1),wt&&clearTimeout(wt))},function(t){const e=er(t);if(!Dt||jt&&jt.x===e.x&&jt.y===e.y)return;jt=e;const n=U.clientWidth;if(Pt){Vt=e.x-Dt.x+At;const t=n*r.length;if(Vt>0)Vt=Vt*n/(Vt+3*n);else if(-Vt+n>t){let e=-Vt+n-t;e=e*n/(e+3*n),Vt=n-t-e}_t(100*Vt/n)}else Math.abs(e.y-Dt.y)>10?St=!0:!St&&Math.abs(e.x-Dt.x)>8&&(Et(),Pt=!0,Dt=e,_t(100*-X),bt(!0));Pt&&t.cancelable&&t.preventDefault()},function(){St=!1,Dt=null;let t=X;if(!Pt)return;Pt=!1;const e=Math.min(512,U.clientWidth);Math.abs(At-Vt)>e/4*Math.min(1,(Date.now()-Ct)/750)&&(t+=At>Vt?1:-1),t>=r.length?t=r.length-1:t<0&&(t=0),t===X?(Vt=-t*e,_t(100*-t),kt()):mt(t)},F,lt,ct,l,m,v,y,$,b,w,x,(t,e)=>yt(0,t),function(t){Se[t?"unshift":"push"]((()=>{R=t,n(20,R)}))},function(t){Se[t?"unshift":"push"]((()=>{L=t,n(22,L)}))},function(t){Se[t?"unshift":"push"]((()=>{U=t,n(21,U)}))}]}function vo(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function yo(t){return t*t*t}function $o(t){const e=t-1;return e*e*e+1}function _o(t){return e=>{if(e<=0)return 0;if(e>=1)return 1;const n=e*t.length,r=Math.floor(n),i=n-r;return t[r]*i+t[r+1]*(1-i)}}const bo=_o([.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]),wo=_o([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]),xo={linear:kt,ease:bo,ease_in:yo,ease_out:$o,ease_in_out:vo,spring:wo};function ko(t){return Math.max(...t.map((t=>(Number(t.duration)||200)+(Number(t.start_delay)||0))))}function Eo(t,e){let{transitions:n,elementBbox:r,rootBbox:i,direction:o,maxDuration:a,alpha:l}=e;const s=null!=l?l:1;return{duration:a,css:t=>{const e=t*a,l=n.map((t=>{const n=Number(t.start_delay)||0,a=Number(t.duration)||200,l=Math.max(0,Math.min(1,(e-n)/a)),c="in"===o?1-l:l,u=(xo[t.interpolator||"ease_in_out"]||vo)(c);if("fade"===t.type)return u>=1?{active:!1,opacity:0}:{active:u>0&&u<1,opacity:(1-u)*s+u*(t.alpha||0)};if("slide"===t.type){var d;const e="top"===t.edge||"left"===t.edge?-1:1,n="top"!==t.edge&&"bottom"!==t.edge&&t.edge?"translateX":"translateY";let o=null===(d=t.distance)||void 0===d?void 0:d.value;void 0===o&&(o="top"!==t.edge&&"bottom"!==t.edge&&t.edge?Math.abs(i["left"===t.edge?"left":"right"]-r["left"===t.edge?"right":"left"]):Math.abs(i["bottom"===t.edge?"bottom":"top"]-r["bottom"===t.edge?"top":"bottom"]));const a=o*u;return{active:u>0&&u<1,translate:"".concat(n,"(").concat(a*e,"px)")}}if("scale"===t.type){var h,p;const e=1-u+u*(t.scale||0),n=null!==(h=t.pivot_x)&&void 0!==h?h:.5,i=null!==(p=t.pivot_y)&&void 0!==p?p:.5,o=(1-e)*r.width*n,a=(1-e)*r.height*i;return{active:u>0&&u<1,scale:"translate(".concat(o,"px, ").concat(a,"px) scale(").concat(e,")")}}return{}})),c=l.map((t=>t.opacity)).filter((t=>void 0!==t)).reduce(((t,e)=>t*e),1),u=l.map((t=>t.translate)).filter((t=>void 0!==t)).join(" "),d=l.map((t=>t.scale)).filter((t=>void 0!==t)).join(" "),h=l.filter((t=>t.active)).map((t=>t.scale)).filter((t=>void 0!==t)),p=[u,h.length?h[h.length-1]:d].filter(Boolean).join(" ");return"transform:".concat(p||"none",";opacity:").concat(c)}}}function Co(t,e,n){return t*(1-n)+e*n}const Ao={linear:kt,ease:bo,ease_in:yo,ease_out:$o,ease_in_out:vo,spring:wo};function Vo(t,e){var n,r;let{rootBbox:i,beforeBbox:o,afterBbox:a,transition:l}=e;return{delay:null!==(n=l.start_delay)&&void 0!==n?n:0,duration:null!==(r=l.duration)&&void 0!==r?r:200,easing:l.interpolator&&l.interpolator in Ao?Ao[l.interpolator]:vo,css:t=>["top:".concat(Co(o.top,a.top,t)-i.top,"px"),"left:".concat(Co(o.left,a.left,t)-i.left,"px"),"width:".concat(Co(o.width,a.width,t),"px"),"height:".concat(Co(o.height,a.height,t),"px")].join(";")}}function Do(t){const e=[];return"set"===t.type?(t.items||[]).forEach((t=>{e.push(...Do(t))})):e.push(t),e}const{Map:jo}=tn;function Po(t,e,n){const r=t.slice();return r[27]=e[n],r}function So(t){let e,n;return e=new xr({props:{cls:"divkit-b8efc",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[To]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.json=t[0]),4&n&&(r.origJson=t[2]),2&n&&(r.templateContext=t[1]),8&n&&(r.layoutParams=t[3]),1073742034&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function No(t){let e,n,r=t[7],i=Io(t);return{c(){i.c(),e=ae()},l(t){i.l(t),e=ae()},m(t,r){i.m(t,r),Qt(t,e,r),n=!0},p(t,n){128&n&&St(r,r=t[7])?(Ge(),Ye(i,1,1,xt),Ke(),i=Io(t),i.c(),Xe(i,1),i.m(e.parentNode,e)):i.p(t,n)},i(t){n||(Xe(i),n=!0)},o(t){Ye(i),n=!1},d(t){t&&te(e),i.d(t)}}}function Io(t){let e,n;return e=new Ra({props:{div:t[7].div,templateContext:t[1]}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(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||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function Fo(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[11](t[27])}return r=new Ra({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=ne("div"),n=ne("div"),on(r.$$.fragment),o=oe(),this.h()},l(t){e=pe(t,"DIV",{class:!0});var i=ue(e);n=pe(i,"DIV",{class:!0});var a=ue(n);an(r.$$.fragment,a),a.forEach(te),o=me(i),i.forEach(te),this.h()},h(){se(n,"class",i="divkit-e08c6"),se(e,"class",a="divkit-eb860")},m(t,i){Qt(t,e,i),Zt(e,n),ln(r,n,null),Zt(e,o),s=!0,c||(u=le(e,"introend",d),c=!0)},p(e,n){t=e;const i={};64&n&&(i.div=t[27].json),64&n&&(i.templateContext=t[27].templateContext),r.$set(i)},i(n){s||(Xe(r.$$.fragment,n),l||Oe((()=>{l=Qe(e,Vo,t[27]),l.start()})),s=!0)},o(t){Ye(r.$$.fragment,t),s=!1},d(t){t&&te(e),sn(r),c=!1,u()}}}function zo(t){let e,n,r,i,o,a,l,s,c,u;function d(){return t[10](t[27])}return r=new Ra({props:{div:t[27].json,templateContext:t[27].templateContext,layoutParams:{fakeElement:!0}}}),{c(){e=ne("div"),n=ne("div"),on(r.$$.fragment),o=oe(),this.h()},l(t){e=pe(t,"DIV",{class:!0,style:!0});var i=ue(e);n=pe(i,"DIV",{class:!0});var a=ue(n);an(r.$$.fragment,a),a.forEach(te),o=me(i),i.forEach(te),this.h()},h(){se(n,"class",i="divkit-e08c6"),se(e,"class",a="divkit-eb860"),ye(e,"left",t[27].offsetLeft+"px"),ye(e,"top",t[27].offsetTop+"px"),ye(e,"width",t[27].width+"px"),ye(e,"height",t[27].height+"px")},m(t,i){Qt(t,e,i),Zt(e,n),ln(r,n,null),Zt(e,o),s=!0,c||(u=le(e,"introend",d),c=!0)},p(n,i){t=n;const o={};64&i&&(o.div=t[27].json),64&i&&(o.templateContext=t[27].templateContext),r.$set(o),(!s||64&i)&&ye(e,"left",t[27].offsetLeft+"px"),(!s||64&i)&&ye(e,"top",t[27].offsetTop+"px"),(!s||64&i)&&ye(e,"width",t[27].width+"px"),(!s||64&i)&&ye(e,"height",t[27].height+"px")},i(n){s||(Xe(r.$$.fragment,n),l||Oe((()=>{l=Qe(e,Eo,t[27]),l.start()})),s=!0)},o(t){Ye(r.$$.fragment,t),s=!1},d(t){t&&te(e),sn(r),c=!1,u()}}}function Mo(t,e){let n,r,i,o,a;const l=[zo,Fo],s=[];function c(t,e){return"direction"in t[27]?0:1}return r=c(e),i=s[r]=l[r](e),{key:t,first:null,c(){n=ae(),i.c(),o=ae(),this.h()},l(t){n=ae(),i.l(t),o=ae(),this.h()},h(){this.first=n},m(t,e){Qt(t,n,e),s[r].m(t,e),Qt(t,o,e),a=!0},p(t,n){let a=r;r=c(e=t),r===a?s[r].p(e,n):(Ge(),Ye(s[a],1,1,(()=>{s[a]=null})),Ke(),i=s[r],i?i.p(e,n):(i=s[r]=l[r](e),i.c()),Xe(i,1),i.m(o.parentNode,o))},i(t){a||(Xe(i),a=!0)},o(t){Ye(i),a=!1},d(t){t&&te(n),s[r].d(t),t&&te(o)}}}function To(t){var e;let n,r,i,o,a=[],l=new jo,s=(null===(e=t[7])||void 0===e?void 0:e.div)&&No(t),c=t[6];const u=t=>t[27];for(let e=0;e<c.length;e+=1){let n=Po(t,c,e),r=u(n);l.set(r,a[e]=Mo(r,n))}return{c(){s&&s.c(),n=oe(),r=ne("div");for(let t=0;t<a.length;t+=1)a[t].c();this.h()},l(t){s&&s.l(t),n=me(t),r=pe(t,"DIV",{class:!0,"aria-hidden":!0});var e=ue(r);for(let t=0;t<a.length;t+=1)a[t].l(e);e.forEach(te),this.h()},h(){se(r,"class",i="divkit-adaae"),se(r,"aria-hidden","true")},m(e,i){s&&s.m(e,i),Qt(e,n,i),Qt(e,r,i);for(let t=0;t<a.length;t+=1)a[t].m(r,null);t[12](r),o=!0},p(t,e){var i;null!==(i=t[7])&&void 0!==i&&i.div?s?(s.p(t,e),128&e&&Xe(s,1)):(s=No(t),s.c(),Xe(s,1),s.m(n.parentNode,n)):s&&(Ge(),Ye(s,1,1,(()=>{s=null})),Ke()),320&e&&(c=t[6],Ge(),a=function(t,e,n,r,i,o,a,l,s,c,u,d){let h=t.length,p=o.length,f=h;const g={};for(;f--;)g[t[f].key]=f;const m=[],v=new Map,y=new Map;for(f=p;f--;){const t=d(i,o,f),r=n(t);let l=a.get(r);l?l.p(t,e):(l=c(r,t),l.c()),v.set(r,m[f]=l),r in g&&y.set(r,Math.abs(f-g[r]))}const $=new Set,_=new Set;function b(t){Xe(t,1),t.m(l,u),a.set(t.key,t),u=t.first,p--}for(;h&&p;){const e=m[p-1],n=t[h-1],r=e.key,i=n.key;e===n?(u=e.first,h--,p--):v.has(i)?!a.has(r)||$.has(r)?b(e):_.has(i)?h--:y.get(r)>y.get(i)?(_.add(r),b(e)):($.add(i),h--):(s(n,a),h--)}for(;h--;){const e=t[h];v.has(e.key)||s(e,a)}for(;p;)b(m[p-1]);return m}(a,e,u,0,t,c,l,r,en,Mo,null,Po),Ke())},i(t){if(!o){Xe(s);for(let t=0;t<c.length;t+=1)Xe(a[t]);o=!0}},o(t){Ye(s);for(let t=0;t<a.length;t+=1)Ye(a[t]);o=!1},d(e){s&&s.d(e),e&&te(n),e&&te(r);for(let t=0;t<a.length;t+=1)a[t].d();t[12](null)}}}function Oo(t){let e,n,r=!t[5]&&So(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,i){r&&r.m(t,i),Qt(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r&&(Ge(),Ye(r,1,1,(()=>{r=null})),Ke()):r?(r.p(t,i),32&i&&Xe(r,1)):(r=So(t),r.c(),Xe(r,1),r.m(e.parentNode,e))},i(t){n||(Xe(r),n=!0)},o(t){Ye(r),n=!1},d(t){r&&r.d(t),t&&te(e)}}}function Jo(t){return"change_bounds"===t.type?t:"set"===t.type?Jo(t.items[0]):null}function Bo(t,e,n){let r,{json:i={}}=e,{templateContext:o}=e,{origJson:a}=e,{layoutParams:l}=e;const s=De(bn),c=De(On);let u,d=new Map,h=new Set,p=!1,f=null,g=[],m=[],v=[],y=[];function $(t,e,n){let{json:r,templateContext:i,transitions:o,node:a}=e;r=s.getJsonWithVars(r),o=s.getJsonWithVars(o);const l=Do(o),c=a.getBoundingClientRect();return{json:Object.assign(Object.assign({},r),{margins:void 0,alpha:(u=l,u.some((t=>"fade"===t.type))?void 0:r.alpha)}),templateContext:i,elementBbox:c,rootBbox:t,transitions:l,alpha:r.alpha,width:c.width,height:c.height,offsetTop:c.top-t.top,offsetLeft:c.left-t.left,direction:n,resolvePromise:e.resolvePromise,node:e.node};var u}const _=i.div_id||i.id;let b;_?(null==l?void 0:l.fakeElement)||(c.registerInstance(_,{async setState(t){if(b===t)return;s.setRunning("stateChange",!0);const e=new Set(h);g.forEach((t=>{t.resolvePromise&&t.resolvePromise()})),n(6,g=[]);let i=[];if(u){const t=u.getBoundingClientRect();i=v.map((e=>$(t,e,"out")))}y.forEach((t=>{d.set(t.id,t.node.getBoundingClientRect())})),m=[],v=[],y=[];const o=r.find((e=>e.state_id===t))||null;if(o?(b=t,n(7,w=o)):s.logError(st(new Error("Cannot find state with id"),{additional:{stateId:t}})),await Te(),!u)return;const a=u.getBoundingClientRect();let l=m.filter((t=>{var n;return!(!t.json.id||e.has(t.json.id))||(null===(n=t.resolvePromise)||void 0===n||n.call(t),!1)})).map((t=>$(a,t,"in")));i=i.filter((t=>{var e;return!(!t.json.id||h.has(t.json.id))||(null===(e=t.resolvePromise)||void 0===e||e.call(t),!1)}));const c=i.concat(l),p=c.reduce(((t,e)=>Math.max(t,ko(e.transitions))),0),f=y.filter((t=>d.has(t.id))).map((t=>({json:Object.assign(Object.assign({},t.json),{margins:void 0,width:{type:"match_parent"},height:{type:"match_parent"}}),templateContext:t.templateContext,rootBbox:a,beforeBbox:d.get(t.id),afterBbox:t.node.getBoundingClientRect(),node:t.node,transition:Jo(t.transitions),resolvePromise:t.resolvePromise})));n(6,g=[...c.map((t=>Object.assign(Object.assign({},t),{maxDuration:p}))),...f]),d.clear(),s.setRunning("stateChange",!1)},getChild(t){if(f&&f.has(t))return f.get(t);s.logError(st(new Error("Missing state block with id"),{additional:{id:t}}))}}),Ve(On,{registerInstance(t,e){f||(f=new Map),f.has(t)?s.logError(st(new Error("Duplicate state with id"),{additional:{id:t}})):f.set(t,e)},unregisterInstance(t){null==f||f.delete(t)},runVisibilityTransition(t,e,r,i,o){if(!u)return Promise.resolve();const a=$(u.getBoundingClientRect(),{json:t,templateContext:e,transitions:r,node:i},o),l=ko(a.transitions),s=Object.assign(Object.assign({},a),{maxDuration:l});return n(6,g=[...g.filter((t=>t.node!==a.node)),s]),new Promise((t=>{s.resolvePromise=t}))},registerChildWithTransitionIn(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return m.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionOut(t,e,n,r){const i={json:t,templateContext:e,transitions:n,node:r};return v.push(i),new Promise((t=>{i.resolvePromise=t}))},registerChildWithTransitionChange(t,e,n,r){const i=t.id;if(!i)return Promise.resolve();const o={id:i,json:t,templateContext:e,transitions:n,node:r};return y.push(o),new Promise((t=>{o.resolvePromise=t}))},hasTransitionChange:t=>!!t&&d.has(t),registerChild(t){h.add(t)},unregisterChild(t){h.delete(t)}})):(p=!0,s.logError(st(new Error('Missing "id" prop for div "state"'))));let w=null;const x=s.getJsonWithVars(i.default_state_id);let k=!1;function E(t){n(6,g=g.filter((e=>e!==t))),t.resolvePromise&&t.resolvePromise()}return Ae((()=>{_&&!(null==l?void 0:l.fakeElement)&&c.unregisterInstance(_)})),t.$$set=t=>{"json"in t&&n(0,i=t.json),"templateContext"in t&&n(1,o=t.templateContext),"origJson"in t&&n(2,a=t.origJson),"layoutParams"in t&&n(3,l=t.layoutParams)},t.$$.update=()=>{1&t.$$.dirty&&i&&(h=new Set),1&t.$$.dirty&&n(9,r=i.states||[]),512&t.$$.dirty&&((null==r?void 0:r.length)?n(5,p=!1):(n(5,p=!0),s.logError(st(new Error('Empty "states" prop for div "state"'))))),512&t.$$.dirty&&function(t){k||(k=!0,t.length&&(x?(b=x,n(7,w=t.find((t=>t.state_id===b))||null),w||s.logError(st(new Error("Cannot find state for default_state_id"),{additional:{selectedId:b}}))):(n(7,w=t[0]),b=w.state_id)))}(r)},[i,o,a,l,u,p,g,w,E,r,t=>E(t),t=>E(t),function(t){Se[t?"unshift":"push"]((()=>{u=t,n(4,u)}))}]}const Ro={pager:"divkit-c5feb",pager__items:"divkit-f6987",pager__item:"divkit-feca7",pager_orientation_horizontal:"divkit-b0a1c",pager_orientation_vertical:"divkit-f772f"},{Boolean:Uo}=tn;function Lo(t,e,n){const r=t.slice();return r[48]=e[n],r}function Wo(t){let e,n;return e=new xr({props:{cls:Mn("pager",Ro,t[8]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],customPaddings:!0,$$slots:{default:[qo]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};256&n[0]&&(r.cls=Mn("pager",Ro,t[8])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),33336&n[0]|1048576&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function Ho(t){var e;let n,r,i,o,a;return r=new Ra({props:{div:t[48].json,templateContext:t[48].templateContext,origJson:t[48].origJson,layoutParams:null!==(e=t[3])&&void 0!==e&&e.fakeElement?{fakeElement:!0}:void 0}}),{c(){n=ne("div"),on(r.$$.fragment),i=oe(),this.h()},l(t){n=pe(t,"DIV",{class:!0});var e=ue(n);an(r.$$.fragment,e),i=me(e),e.forEach(te),this.h()},h(){se(n,"class",o=Ro.pager__item)},m(t,e){Qt(t,n,e),ln(r,n,null),Zt(n,i),a=!0},p(t,e){var n;const i={};16&e[0]&&(i.div=t[48].json),16&e[0]&&(i.templateContext=t[48].templateContext),16&e[0]&&(i.origJson=t[48].origJson),8&e[0]&&(i.layoutParams=null!==(n=t[3])&&void 0!==n&&n.fakeElement?{fakeElement:!0}:void 0),r.$set(i)},i(t){a||(Xe(r.$$.fragment,t),a=!0)},o(t){Ye(r.$$.fragment,t),a=!1},d(t){t&&te(n),sn(r)}}}function qo(t){let e,n,r,i,o,a,l=t[4],s=[];for(let e=0;e<l.length;e+=1)s[e]=Ho(Lo(t,l,e));const c=t=>Ye(s[t],1,1,(()=>{s[t]=null}));return{c(){e=ne("div");for(let t=0;t<s.length;t+=1)s[t].c();this.h()},l(t){e=pe(t,"DIV",{class:!0,style:!0});var n=ue(e);for(let t=0;t<s.length;t+=1)s[t].l(n);n.forEach(te),this.h()},h(){se(e,"class",n=Ro.pager__items+" "+(t[15]?"divkit-aa145":"")),se(e,"style",r=kn(t[9]))},m(n,r){Qt(n,e,r);for(let t=0;t<s.length;t+=1)s[t].m(e,null);t[36](e),i=!0,o||(a=le(e,"scroll",t[16]),o=!0)},p(t,o){if(24&o[0]){let n;for(l=t[4],n=0;n<l.length;n+=1){const r=Lo(t,l,n);s[n]?(s[n].p(r,o),Xe(s[n],1)):(s[n]=Ho(r),s[n].c(),Xe(s[n],1),s[n].m(e,null))}for(Ge(),n=l.length;n<s.length;n+=1)c(n);Ke()}(!i||32768&o[0]&&n!==(n=Ro.pager__items+" "+(t[15]?"divkit-aa145":"")))&&se(e,"class",n),(!i||512&o[0]&&r!==(r=kn(t[9])))&&se(e,"style",r)},i(t){if(!i){for(let t=0;t<l.length;t+=1)Xe(s[t]);i=!0}},o(t){s=s.filter(Uo);for(let t=0;t<s.length;t+=1)Ye(s[t]);i=!1},d(n){n&&te(e),ee(s,n),t[36](null),o=!1,a()}}}function Go(t){let e,n,r=!t[7]&&Wo(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,i){r&&r.m(t,i),Qt(t,e,i),n=!0},p(t,n){t[7]?r&&(Ge(),Ye(r,1,1,(()=>{r=null})),Ke()):r?(r.p(t,n),128&n[0]&&Xe(r,1)):(r=Wo(t),r.c(),Xe(r,1),r.m(e.parentNode,e))},i(t){n||(Xe(r),n=!0)},o(t){Ye(r),n=!1},d(t){r&&r.d(t),t&&te(e)}}}function Ko(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_=xt,b=xt,w=xt,x=xt,k=xt,E=xt;var C,A,V,D,j,P,S;t.$$.on_destroy.push((()=>_())),t.$$.on_destroy.push((()=>b())),t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>k())),t.$$.on_destroy.push((()=>E()));let{json:N={}}=e,{templateContext:I}=e,{origJson:F}=e,{layoutParams:z}=e;const M=De(bn),T=M.genId("pager");let O,J=!1,B=!1,R=0,U=0,L=!1,W="horizontal",H="",q="",G="";const K=Li((function(){if(!J)return;const t=function(){const t=Array.from(O.children),e=O.getBoundingClientRect(),n=t.findIndex((t=>{return n=e,r=t.getBoundingClientRect(),"horizontal"===W?r.left>=n.left&&r.right<=n.right:r.top>=n.top&&r.bottom<=n.bottom;var n,r}));return-1!==n?n:R}();t!==R&&n(25,R=t)}),50);function X(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth";const r="horizontal"===W,i=O.children[t],o=r?"offsetLeft":"offsetTop",a=r?"left":"top";O.scroll({[a]:i[o],behavior:e}),n(25,R=t)}return N.id&&!(null==z?void 0:z.fakeElement)&&M.registerInstance(N.id,{setCurrentItem(t){if(t<0||t>r.length-1)throw new Error('Item is out of range in "set-current-item" action');X(t)},setPreviousItem(t){let e=R-1;e<0&&(e="ring"===t?r.length-1:R),X(e)},setNextItem(t){let e=R+1;e>r.length-1&&(e="ring"===t?0:R),X(e)}}),Ce((()=>{if(J=!0,Boolean(document.getElementById("".concat(T,"-tab-0")))){const t=[...O.children];for(const[e,n]of t.entries())n.setAttribute("role","tabpanel"),n.setAttribute("id","".concat(T,"-panel-").concat(e)),n.setAttribute("aria-labelledby","".concat(T,"-tab-").concat(e))}})),Ae((()=>{J=!1,N.id&&!(null==z?void 0:z.fakeElement)&&M.unregisterInstance(N.id)})),t.$$set=t=>{"json"in t&&n(0,N=t.json),"templateContext"in t&&n(1,I=t.templateContext),"origJson"in t&&n(2,F=t.origJson),"layoutParams"in t&&n(3,z=t.layoutParams)},t.$$.update=()=>{if(131073&t.$$.dirty[0]&&((null===n(17,C=N.items)||void 0===C?void 0:C.length)&&Array.isArray(N.items)?n(24,B=!1):(n(24,B=!0),M.logError(st(new Error('Incorrect or empty "items" prop for div "pager"'))))),16777219&t.$$.dirty[0]&&n(4,r=(!B&&N.items||[]).map((t=>{let e=t,n=I;return({templateContext:n,json:e}=M.processTemplate(e,n)),{json:e,templateContext:n,origJson:t}}))),1&t.$$.dirty[0]&&(n(14,i=M.getDerivedFromVars(N.layout_mode)),b(),b=It(i,(t=>n(32,g=t)))),2&t.$$.dirty[1]&&(g?"percentage"!==g.type&&"fixed"!==g.type?(n(26,L=!0),M.logError(st(new Error('Incorrect value of "layout_mode.type" for div "pager"')))):n(26,L=!1):(n(26,L=!0),M.logError(st(new Error('Empty "layout_mode" prop for div "pager"'))))),1&t.$$.dirty[0]&&(n(13,o=M.getDerivedFromVars(N.orientation)),k(),k=It(o,(t=>n(35,y=t)))),134217728&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(27,W=mi(y,W)),1&t.$$.dirty[0]&&(n(12,a=M.getDerivedFromVars(N.item_spacing)),x(),x=It(a,(t=>n(34,v=t)))),8&t.$$.dirty[1]){const t=null==v?void 0:v.value;t&&Rn(t)&&n(28,H=En(t||0))}if(1&t.$$.dirty[0]&&(n(11,l=M.getDerivedFromVars(N.paddings)),w(),w=It(l,(t=>n(33,m=t)))),536870912&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(29,q=Un(m,q)),1&t.$$.dirty[0]&&(n(10,s=M.getDerivedFromVars(N.restrict_parent_scroll)),E(),E=It(s,(t=>n(15,$=t)))),134217728&t.$$.dirty[0]&&n(31,c="horizontal"===W?"grid-auto-columns":"grid-auto-rows"),419168257&t.$$.dirty[0]|2&t.$$.dirty[1])if("fixed"===(null==g?void 0:g.type)){const t=Cn("horizontal"===W?((null===n(18,A=N.paddings)||void 0===A?void 0:A.left)||0)+((null===n(19,V=N.paddings)||void 0===V?void 0:V.right)||0):((null===n(20,D=N.paddings)||void 0===D?void 0:D.top)||0)+((null===n(21,j=N.paddings)||void 0===j?void 0:j.bottom)||0)),e=null===n(22,P=g.neighbour_page_width)||void 0===P?void 0:P.value;n(30,G=e?"calc(100% + ".concat(t," - 2 * ").concat(Cn(e)," - 2 * ").concat(H,")"):"100%")}else if("percentage"===(null==g?void 0:g.type)){const t=null===n(23,S=g.page_width)||void 0===S?void 0:S.value;n(30,G="".concat(Number(t),"%"))}1879048192&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(9,u={"grid-gap":H,padding:q,[c]:G}),134217728&t.$$.dirty[0]&&n(8,d={orientation:W}),83886080&t.$$.dirty[0]&&n(7,h=B||L),33554448&t.$$.dirty[0]&&function(t,e){const n=N.id;if(n){const r=new Map(f);Bt(p,f=r.set(n,{instId:T,size:t,currentItem:e,scrollToPagerItem:X}),f)}}(r.length,R),33554432&t.$$.dirty[0]&&function(t){var e;if(t===U)return;U=t;const n=M.getJsonWithVars(null===(e=r[t].json)||void 0===e?void 0:e.selected_actions);(null==n?void 0:n.length)&&M.execAnyActions(n)}(R)},n(6,p=M.getStore("pagers")),_(),_=It(p,(t=>n(39,f=t))),[N,I,F,z,r,O,p,h,d,u,s,l,a,o,i,$,K,C,A,V,D,j,P,S,B,R,L,W,H,q,G,c,g,m,v,y,function(t){Se[t?"unshift":"push"]((()=>{O=t,n(5,O)}))}]}const Xo={indicator:"divkit-d8e3f",indicator__scroller:"divkit-b5db0",indicator__items:"divkit-d5d94",indicator__item:"divkit-f6629",indicator_placement_default:"divkit-c1670",indicator__item_active:"divkit-b39cd",indicator_placement_stretch:"divkit-b6bd3"};function Yo(t,e,n){const r=t.slice();r[43]=e[n],r[46]=n;const i=r[46]===r[12].currentItem;return r[44]=i,r}function Zo(t){let e,n=Array(t[12].size),r=[];for(let e=0;e<n.length;e+=1)r[e]=Qo(Yo(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=ae()},l(t){for(let e=0;e<r.length;e+=1)r[e].l(t);e=ae()},m(t,n){for(let e=0;e<r.length;e+=1)r[e].m(t,n);Qt(t,e,n)},p(t,i){if(25169920&i[0]){let o;for(n=Array(t[12].size),o=0;o<n.length;o+=1){const a=Yo(t,n,o);r[o]?r[o].p(a,i):(r[o]=Qo(a),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){ee(r,t),t&&te(e)}}}function Qo(t){let e,n,r,i,o,a,l,s;function c(){return t[36](t[46])}return{c(){e=ne("div"),this.h()},l(t){e=pe(t,"DIV",{class:!0,role:!0,id:!0,"aria-controls":!0,"aria-selected":!0,tabindex:!0}),ue(e).forEach(te),this.h()},h(){se(e,"class",n=Mn("indicator__item",Xo,{active:t[44]})+" divkit-bd259"),se(e,"role","tab"),se(e,"id",r=t[12].instId+"-tab-"+t[46]),se(e,"aria-controls",i=t[12].instId+"-panel-"+t[46]),se(e,"aria-selected",o=t[44]?"true":"false"),se(e,"tabindex",a=t[44]?0:-1)},m(n,r){Qt(n,e,r),l||(s=[le(e,"click",c),le(e,"keydown",t[24])],l=!0)},p(l,s){t=l,4096&s[0]&&n!==(n=Mn("indicator__item",Xo,{active:t[44]})+" divkit-bd259")&&se(e,"class",n),4096&s[0]&&r!==(r=t[12].instId+"-tab-"+t[46])&&se(e,"id",r),4096&s[0]&&i!==(i=t[12].instId+"-panel-"+t[46])&&se(e,"aria-controls",i),4096&s[0]&&o!==(o=t[44]?"true":"false")&&se(e,"aria-selected",o),4096&s[0]&&a!==(a=t[44]?0:-1)&&se(e,"tabindex",a)},d(t){t&&te(e),l=!1,Vt(s)}}}function ta(t){let e,n,r,i,o=t[12]&&Zo(t);return{c(){e=ne("div"),n=ne("div"),o&&o.c(),this.h()},l(t){e=pe(t,"DIV",{class:!0});var r=ue(e);n=pe(r,"DIV",{class:!0,role:!0});var i=ue(n);o&&o.l(i),i.forEach(te),r.forEach(te),this.h()},h(){se(n,"class",r=Xo.indicator__items),se(n,"role","tablist"),ye(n,"margin","default"===t[6]?"0 ".concat(En(Math.max(0,t[4].width-t[5].width)/2)):"",!1),ye(n,"--divkit-indicator-inactive-width",En(t[5].width),!1),ye(n,"--divkit-indicator-inactive-height",En(t[5].height),!1),ye(n,"--divkit-indicator-inactive-border-radius",En(t[5].borderRadius),!1),ye(n,"--divkit-indicator-inactive-background",t[5].background||"",!1),ye(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||"",!1),ye(n,"--divkit-indicator-active-width",En(t[4].width),!1),ye(n,"--divkit-indicator-active-height",En(t[4].height),!1),ye(n,"--divkit-indicator-active-border-radius",En(t[4].borderRadius),!1),ye(n,"--divkit-indicator-active-background",t[4].background||"",!1),ye(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||"",!1),ye(n,"--divkit-indicator-active-scale",t[4].width/t[5].width,!1),ye(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(En((t[7]-t[5].width)/2)):"",!1),ye(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?En(t[9]):"",!1),ye(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:"",!1),ye(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?En((t[8]-1)*t[9]):"",!1),se(e,"class",i=Xo.indicator__scroller)},m(r,i){Qt(r,e,i),Zt(e,n),o&&o.m(n,null),t[37](n),t[38](e)},p(t,e){t[12]?o?o.p(t,e):(o=Zo(t),o.c(),o.m(n,null)):o&&(o.d(1),o=null),112&e[0]&&ye(n,"margin","default"===t[6]?"0 ".concat(En(Math.max(0,t[4].width-t[5].width)/2)):"",!1),32&e[0]&&ye(n,"--divkit-indicator-inactive-width",En(t[5].width),!1),32&e[0]&&ye(n,"--divkit-indicator-inactive-height",En(t[5].height),!1),32&e[0]&&ye(n,"--divkit-indicator-inactive-border-radius",En(t[5].borderRadius),!1),32&e[0]&&ye(n,"--divkit-indicator-inactive-background",t[5].background||"",!1),32&e[0]&&ye(n,"--divkit-indicator-inactive-box-shadow",t[5].boxShadow||"",!1),16&e[0]&&ye(n,"--divkit-indicator-active-width",En(t[4].width),!1),16&e[0]&&ye(n,"--divkit-indicator-active-height",En(t[4].height),!1),16&e[0]&&ye(n,"--divkit-indicator-active-border-radius",En(t[4].borderRadius),!1),16&e[0]&&ye(n,"--divkit-indicator-active-background",t[4].background||"",!1),16&e[0]&&ye(n,"--divkit-indicator-active-box-shadow",t[4].boxShadow||"",!1),48&e[0]&&ye(n,"--divkit-indicator-active-scale",t[4].width/t[5].width,!1),224&e[0]&&ye(n,"--divkit-indicator-default-margin","default"===t[6]?"0 ".concat(En((t[7]-t[5].width)/2)):"",!1),576&e[0]&&ye(n,"--divkit-indicator-stretch-margin","stretch"===t[6]?En(t[9]):"",!1),320&e[0]&&ye(n,"--divkit-indicator-stretch-max-count","stretch"===t[6]?t[8]:"",!1),832&e[0]&&ye(n,"--divkit-indicator-stretch-max-spacer","stretch"===t[6]?En((t[8]-1)*t[9]):"",!1)},d(n){n&&te(e),o&&o.d(),t[37](null),t[38](null)}}}function ea(t){let e,n;return e=new xr({props:{cls:Mn("indicator",Xo,t[13]),json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[ta]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};8192&n[0]&&(r.cls=Mn("indicator",Xo,t[13])),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),8176&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function na(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w=xt,x=xt,E=xt,C=xt,A=xt,V=xt,D=xt,j=xt,P=xt;var S,N;t.$$.on_destroy.push((()=>w())),t.$$.on_destroy.push((()=>x())),t.$$.on_destroy.push((()=>E())),t.$$.on_destroy.push((()=>C())),t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V())),t.$$.on_destroy.push((()=>D())),t.$$.on_destroy.push((()=>j())),t.$$.on_destroy.push((()=>P()));let{json:I={}}=e,{templateContext:F}=e,{origJson:z}=e,{layoutParams:M}=e;const T=["rounded_rectangle","circle"],O=De(bn);let J,B,R,U={width:13,height:13,borderRadius:6.5,background:"#ffdc60"},L={width:10,height:10,borderRadius:5,background:"#33919cb5"},W="default",H=15,q=10,G=5;function K(t){t!==R.currentItem&&R.scrollToPagerItem(t)}async function X(t){R.scrollToPagerItem(t),await Te();const e=B.querySelector(".".concat(Xo.indicator__item_active));e&&e.focus()}return t.$$set=t=>{"json"in t&&n(0,I=t.json),"templateContext"in t&&n(1,F=t.templateContext),"origJson"in t&&n(2,z=t.origJson),"layoutParams"in t&&n(3,M=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(22,r=O.getDerivedFromVars(I.shape)),V(),V=It(r,(t=>n(32,y=t)))),1&t.$$.dirty[0]&&(n(21,i=O.getDerivedFromVars(I.active_item_color)),C(),C=It(i,(t=>n(30,m=t)))),1&t.$$.dirty[0]&&(n(20,o=O.getDerivedFromVars(I.inactive_item_color)),A(),A=It(o,(t=>n(31,v=t)))),1&t.$$.dirty[0]&&(n(19,a=O.getDerivedFromVars(I.active_item_size)),D(),D=It(a,(t=>n(33,$=t)))),1&t.$$.dirty[0]&&(n(18,l=O.getDerivedFromVars(I.active_shape)),P(),P=It(l,(t=>n(35,b=t)))),1&t.$$.dirty[0]&&(n(17,s=O.getDerivedFromVars(I.inactive_shape)),j(),j=It(s,(t=>n(34,_=t)))),1073741872&t.$$.dirty[0]|31&t.$$.dirty[1]&&(b&&n(4,U=Kr({type:"shape_drawable",shape:b},T,U)),_&&n(5,L=Kr({type:"shape_drawable",shape:_},T,L)),!b&&!_&&y)){const t=Er($,1.3);n(5,L=Kr({type:"shape_drawable",shape:y,color:L.background},T,L)),n(5,L.background=k(v,1,L.background),L),n(4,U=Object.assign(Object.assign({},L),{width:L.width*t,height:L.height*t,borderRadius:L.borderRadius*t,background:U.background})),n(4,U.background=k(m,1,U.background),U)}if(1&t.$$.dirty[0]&&(n(16,c=O.getDerivedFromVars(I.space_between_centers)),x(),x=It(c,(t=>n(28,f=t)))),1&t.$$.dirty[0]&&(n(15,u=O.getDerivedFromVars(I.items_placement)),E(),E=It(u,(t=>n(29,g=t)))),905970624&t.$$.dirty[0])if(!g||"default"!==g.type&&"stretch"!==g.type)n(6,W="default"),f&&n(7,H=Ln(f.value,H));else if(n(6,W=g.type),"default"===W)n(7,H=Ln(null===n(25,S=g.space_between_centers)||void 0===S?void 0:S.value,H));else if("stretch"===W){const t=g;n(8,q=Er(t.max_visible_items,q)),n(9,G=Ln(null===n(26,N=t.item_spacing)||void 0===N?void 0:N.value,G))}134217728&t.$$.dirty[0]&&async function(t){if(I.pager_id&&t.has(I.pager_id)&&(n(12,R=t.get(I.pager_id)),await Te(),B)){const t=B.children[R.currentItem].offsetLeft;J.scroll({left:t-J.clientWidth/2,behavior:"smooth"})}}(p),64&t.$$.dirty[0]&&n(13,h={placement:W})},n(14,d=O.getStore("pagers")),w(),w=It(d,(t=>n(27,p=t))),[I,F,z,M,U,L,W,H,q,G,J,B,R,h,d,u,c,s,l,a,o,i,r,K,function(t){if(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)return;const{size:e,currentItem:n}=R;if(37===t.which)X(n-1<0?n:n-1);else if(39===t.which)X(n+1>=e?n:n+1);else if(36===t.which)X(0);else{if(35!==t.which)return;X(e-1)}t.preventDefault()},S,N,p,f,g,m,v,y,$,_,b,t=>K(t),function(t){Se[t?"unshift":"push"]((()=>{B=t,n(11,B)}))},function(t){Se[t?"unshift":"push"]((()=>{J=t,n(10,J)}))}]}const ra={slider:"divkit-ef4f7",slider__input:"divkit-d1d65",slider__input_secondary:"divkit-c7980",slider__thumb:"divkit-f3453",slider__thumb_secondary:"divkit-e1984","slider__tracks-wrapper":"divkit-f7338","slider__tracks-inner":"divkit-ac903",slider__track:"divkit-e956c","slider__active-track":"divkit-ec5bf","slider__thumb-text":"divkit-c4af5","slider__thumb-text_secondary":"divkit-d8821",slider__tick:"divkit-bd9bf",slider__tick_active:"divkit-d8ce2",slider__tick_inactive:"divkit-e71e7"};function ia(t,e){if(!t||!t.font_size)return e;const n=t.offset,r=t.text_color&&k(t.text_color)||"#000",i=Cr(t.font_weight);if(lr(t.font_size)&&"transparent"!==r){var o,a;const e={fontSize:En(t.font_size),fontWeight:i,textColor:r};return"number"==typeof(null==n||null===(o=n.x)||void 0===o?void 0:o.value)&&"number"==typeof(null==n||null===(a=n.y)||void 0===a?void 0:a.value)&&(e.offset={x:n.x.value,y:n.y.value}),e}}function oa(t,e,n){return Math.max(e,Math.min(n,Number(t)))}function aa(t,e,n){const r=t.slice();return r[78]=e[n],r}function la(t,e,n){const r=t.slice();return r[78]=e[n],r}function sa(t){let e,n;return e=new xr({props:{cls:Mn("slider",ra,t[21]),style:t[22],customDescription:!0,customActions:"slider",json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[pa]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};2097152&n[0]&&(r.cls=Mn("slider",ra,t[21])),4194304&n[0]&&(r.style=t[22]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),27246576&n[0]|2097152&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function ca(t){let e,n;return{c(){e=ne("div"),this.h()},l(t){e=pe(t,"DIV",{class:!0}),ue(e).forEach(te),this.h()},h(){se(e,"class",n=ra.slider__tick+" "+ra.slider__tick_active),ye(e,"--divkit-slider-tick",t[78],!1)},m(t,n){Qt(t,e,n)},p(t,n){131072&n[0]&&ye(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&te(e)}}}function ua(t){let e,n;return{c(){e=ne("div"),this.h()},l(t){e=pe(t,"DIV",{class:!0}),ue(e).forEach(te),this.h()},h(){se(e,"class",n=ra.slider__tick+" "+ra.slider__tick_inactive),ye(e,"--divkit-slider-tick",t[78],!1)},m(t,n){Qt(t,e,n)},p(t,n){262144&n[0]&&ye(e,"--divkit-slider-tick",t[78],!1)},d(t){t&&te(e)}}}function da(t){let e,n,r,i,o;return{c(){e=ne("div"),n=ne("div"),r=ie(t[6]),this.h()},l(i){e=pe(i,"DIV",{class:!0});var o=ue(e);n=pe(o,"DIV",{class:!0});var a=ue(n);r=ge(a,t[6]),a.forEach(te),o.forEach(te),this.h()},h(){var r,a,l;se(n,"class",i=ra["slider__thumb-text-inner"]),ye(n,"font-size",(null===(r=t[12])||void 0===r?void 0:r.fontSize)||"1em",!1),ye(n,"font-weight",(null===(a=t[12])||void 0===a?void 0:a.fontWeight)||"",!1),ye(n,"color",(null===(l=t[12])||void 0===l?void 0:l.textColor)||"#000",!1),se(e,"class",o=ra["slider__thumb-text"])},m(t,i){Qt(t,e,i),Zt(e,n),Zt(n,r)},p(t,e){var i,o,a;64&e[0]&&ve(r,t[6]),4096&e[0]&&ye(n,"font-size",(null===(i=t[12])||void 0===i?void 0:i.fontSize)||"1em",!1),4096&e[0]&&ye(n,"font-weight",(null===(o=t[12])||void 0===o?void 0:o.fontWeight)||"",!1),4096&e[0]&&ye(n,"color",(null===(a=t[12])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&te(e)}}}function ha(t){let e,n,r,i,o;return{c(){e=ne("div"),n=ne("div"),r=ie(t[7]),this.h()},l(i){e=pe(i,"DIV",{class:!0});var o=ue(e);n=pe(o,"DIV",{class:!0});var a=ue(n);r=ge(a,t[7]),a.forEach(te),o.forEach(te),this.h()},h(){var r,a,l;se(n,"class",i=ra["slider__thumb-text-inner"]),ye(n,"font-size",(null===(r=t[13])||void 0===r?void 0:r.fontSize)||"1em",!1),ye(n,"font-weight",(null===(a=t[13])||void 0===a?void 0:a.fontWeight)||"",!1),ye(n,"color",(null===(l=t[13])||void 0===l?void 0:l.textColor)||"#000",!1),se(e,"class",o=ra["slider__thumb-text"]+" "+ra["slider__thumb-text_secondary"])},m(t,i){Qt(t,e,i),Zt(e,n),Zt(n,r)},p(t,e){var i,o,a;128&e[0]&&ve(r,t[7]),8192&e[0]&&ye(n,"font-size",(null===(i=t[13])||void 0===i?void 0:i.fontSize)||"1em",!1),8192&e[0]&&ye(n,"font-weight",(null===(o=t[13])||void 0===o?void 0:o.fontWeight)||"",!1),8192&e[0]&&ye(n,"color",(null===(a=t[13])||void 0===a?void 0:a.textColor)||"#000",!1)},d(t){t&&te(e)}}}function pa(t){let e,n,r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x=t[17],k=[];for(let e=0;e<x.length;e+=1)k[e]=ca(la(t,x,e));let E=t[18],C=[];for(let e=0;e<E.length;e+=1)C[e]=ua(aa(t,E,e));let A=t[12]&&da(t),V=t[37]&&function(t){let e,n,r=t[13]&&ha(t);return{c(){e=ne("div"),r&&r.c(),this.h()},l(t){e=pe(t,"DIV",{class:!0});var n=ue(e);r&&r.l(n),n.forEach(te),this.h()},h(){se(e,"class",n=ra.slider__thumb+" "+ra.slider__thumb_secondary),ye(e,"border-radius",En(t[9].borderRadius),!1),ye(e,"background",t[9].background,!1),ye(e,"box-shadow",t[9].boxShadow||"",!1)},m(t,n){Qt(t,e,n),r&&r.m(e,null)},p(t,n){t[13]?r?r.p(t,n):(r=ha(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),512&n[0]&&ye(e,"border-radius",En(t[9].borderRadius),!1),512&n[0]&&ye(e,"background",t[9].background,!1),512&n[0]&&ye(e,"box-shadow",t[9].boxShadow||"",!1)},d(t){t&&te(e),r&&r.d()}}}(t),D=t[37]&&function(t){let e,n,r,i,o;return{c(){e=ne("input"),this.h()},l(t){e=pe(t,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),this.h()},h(){se(e,"type","range"),se(e,"class",n=t[16]?ra.slider__input:"".concat(ra.slider__input," ").concat(ra.slider__input_secondary)),se(e,"min",t[4]),se(e,"max",t[5]),se(e,"step","1"),e.value=r=t[16]?t[6]:t[7],se(e,"aria-label",t[20])},m(n,r){Qt(n,e,r),i||(o=[le(e,"input",t[68]),le(e,"mousedown",t[37]?t[40]:null),le(e,"touchstart",t[37]?t[40]:null)],i=!0)},p(t,i){65536&i[0]&&n!==(n=t[16]?ra.slider__input:"".concat(ra.slider__input," ").concat(ra.slider__input_secondary))&&se(e,"class",n),16&i[0]&&se(e,"min",t[4]),32&i[0]&&se(e,"max",t[5]),65728&i[0]&&r!==(r=t[16]?t[6]:t[7])&&(e.value=r),1048576&i[0]&&se(e,"aria-label",t[20])},d(t){t&&te(e),i=!1,Vt(o)}}}(t);return{c(){e=ne("div"),n=ne("div"),r=ne("div"),o=oe(),a=ne("div"),s=oe();for(let t=0;t<k.length;t+=1)k[t].c();c=oe();for(let t=0;t<C.length;t+=1)C[t].c();u=oe(),d=ne("div"),A&&A.c(),p=oe(),V&&V.c(),f=oe(),g=ne("input"),y=oe(),D&&D.c(),this.h()},l(t){e=pe(t,"DIV",{class:!0});var i=ue(e);n=pe(i,"DIV",{class:!0});var l=ue(n);r=pe(l,"DIV",{class:!0}),ue(r).forEach(te),o=me(l),a=pe(l,"DIV",{class:!0}),ue(a).forEach(te),s=me(l);for(let t=0;t<k.length;t+=1)k[t].l(l);c=me(l);for(let t=0;t<C.length;t+=1)C[t].l(l);u=me(l),d=pe(l,"DIV",{class:!0});var h=ue(d);A&&A.l(h),h.forEach(te),p=me(l),V&&V.l(l),f=me(l),g=pe(l,"INPUT",{type:!0,class:!0,min:!0,max:!0,step:!0,"aria-label":!0}),y=me(l),D&&D.l(l),l.forEach(te),i.forEach(te),this.h()},h(){se(r,"class",i=ra.slider__track),ye(r,"height",En(t[10].height),!1),ye(r,"border-radius",En(t[10].borderRadius),!1),ye(r,"background",t[10].background,!1),ye(r,"box-shadow",t[10].boxShadow||"",!1),se(a,"class",l=ra["slider__active-track"]),ye(a,"left",(100*t[23]).toFixed(2)+"%",!1),ye(a,"width",(100*t[24]).toFixed(2)+"%",!1),ye(a,"height",En(t[11].height),!1),ye(a,"border-radius",En(t[11].borderRadius),!1),ye(a,"background",t[11].background,!1),ye(a,"box-shadow",t[11].boxShadow||"",!1),se(d,"class",h=ra.slider__thumb),ye(d,"border-radius",En(t[8].borderRadius),!1),ye(d,"background",t[8].background,!1),ye(d,"box-shadow",t[8].boxShadow||"",!1),se(g,"type","range"),se(g,"class",m=t[16]?"".concat(ra.slider__input," ").concat(ra.slider__input_secondary):ra.slider__input),se(g,"min",t[4]),se(g,"max",t[5]),se(g,"step","1"),g.value=v=t[16]?t[7]:t[6],se(g,"aria-label",t[19]),se(n,"class",$=ra["slider__tracks-inner"]),se(e,"class",_=ra["slider__tracks-wrapper"])},m(i,l){Qt(i,e,l),Zt(e,n),Zt(n,r),Zt(n,o),Zt(n,a),Zt(n,s);for(let t=0;t<k.length;t+=1)k[t].m(n,null);Zt(n,c);for(let t=0;t<C.length;t+=1)C[t].m(n,null);Zt(n,u),Zt(n,d),A&&A.m(d,null),Zt(n,p),V&&V.m(n,null),Zt(n,f),Zt(n,g),Zt(n,y),D&&D.m(n,null),t[69](n),b||(w=le(g,"input",t[67]),b=!0)},p(t,e){if(1024&e[0]&&ye(r,"height",En(t[10].height),!1),1024&e[0]&&ye(r,"border-radius",En(t[10].borderRadius),!1),1024&e[0]&&ye(r,"background",t[10].background,!1),1024&e[0]&&ye(r,"box-shadow",t[10].boxShadow||"",!1),8388608&e[0]&&ye(a,"left",(100*t[23]).toFixed(2)+"%",!1),16777216&e[0]&&ye(a,"width",(100*t[24]).toFixed(2)+"%",!1),2048&e[0]&&ye(a,"height",En(t[11].height),!1),2048&e[0]&&ye(a,"border-radius",En(t[11].borderRadius),!1),2048&e[0]&&ye(a,"background",t[11].background,!1),2048&e[0]&&ye(a,"box-shadow",t[11].boxShadow||"",!1),131072&e[0]){let r;for(x=t[17],r=0;r<x.length;r+=1){const i=la(t,x,r);k[r]?k[r].p(i,e):(k[r]=ca(i),k[r].c(),k[r].m(n,c))}for(;r<k.length;r+=1)k[r].d(1);k.length=x.length}if(262144&e[0]){let r;for(E=t[18],r=0;r<E.length;r+=1){const i=aa(t,E,r);C[r]?C[r].p(i,e):(C[r]=ua(i),C[r].c(),C[r].m(n,u))}for(;r<C.length;r+=1)C[r].d(1);C.length=E.length}t[12]?A?A.p(t,e):(A=da(t),A.c(),A.m(d,null)):A&&(A.d(1),A=null),256&e[0]&&ye(d,"border-radius",En(t[8].borderRadius),!1),256&e[0]&&ye(d,"background",t[8].background,!1),256&e[0]&&ye(d,"box-shadow",t[8].boxShadow||"",!1),t[37]&&V.p(t,e),65536&e[0]&&m!==(m=t[16]?"".concat(ra.slider__input," ").concat(ra.slider__input_secondary):ra.slider__input)&&se(g,"class",m),16&e[0]&&se(g,"min",t[4]),32&e[0]&&se(g,"max",t[5]),65728&e[0]&&v!==(v=t[16]?t[7]:t[6])&&(g.value=v),524288&e[0]&&se(g,"aria-label",t[19]),t[37]&&D.p(t,e)},d(n){n&&te(e),ee(k,n),ee(C,n),A&&A.d(),V&&V.d(),D&&D.d(),t[69](null),b=!1,w()}}}function fa(t){let e,n,r,i,o=!t[14]&&sa(t);return{c(){o&&o.c(),e=ae()},l(t){o&&o.l(t),e=ae()},m(a,l){o&&o.m(a,l),Qt(a,e,l),n=!0,r||(i=le(window,"resize",t[42]),r=!0)},p(t,n){t[14]?o&&(Ge(),Ye(o,1,1,(()=>{o=null})),Ke()):o?(o.p(t,n),16384&n[0]&&Xe(o,1)):(o=sa(t),o.c(),Xe(o,1),o.m(e.parentNode,e))},i(t){n||(Xe(o),n=!0)},o(t){Ye(o),n=!1},d(t){o&&o.d(t),t&&te(e),r=!1,i()}}}function ga(t,e,n,r,i){let o=[];if(i)for(let i=t;i<e;++i)o.push((i-n)/(r-n));else{for(let e=n;e<t;++e)o.push((e-n)/(r-n));for(let t=e;t<r+1;++t)o.push((t-n)/(r-n))}return o}function ma(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,k,E,C,A,V,D,j,P,S,N,I,F,z,M=xt,T=xt,O=xt,J=xt,B=xt,R=xt,U=xt,L=xt,W=xt,H=xt,q=xt,G=xt;var K,X,Y,Z;t.$$.on_destroy.push((()=>M())),t.$$.on_destroy.push((()=>T())),t.$$.on_destroy.push((()=>O())),t.$$.on_destroy.push((()=>J())),t.$$.on_destroy.push((()=>B())),t.$$.on_destroy.push((()=>R())),t.$$.on_destroy.push((()=>U())),t.$$.on_destroy.push((()=>L())),t.$$.on_destroy.push((()=>W())),t.$$.on_destroy.push((()=>H())),t.$$.on_destroy.push((()=>q())),t.$$.on_destroy.push((()=>G()));let{json:Q={}}=e,{templateContext:tt}=e,{origJson:et}=e,{layoutParams:nt}=e;const rt={width:10,height:10,borderRadius:5,background:"#000"},it=["rounded_rectangle","circle"],ot=["rounded_rectangle"],at=De(bn),lt=De(tr);let ct,ut=!1,dt=0,ht=100;const pt=at.getJsonWithVars(Q.thumb_value_variable),ft=at.getJsonWithVars(Q.thumb_secondary_value_variable);let gt=pt&&at.getVariable(pt,"integer")||mn("temp","integer",0);Ft(t,gt,(t=>n(64,I=t)));let mt=ft&&at.getVariable(ft,"integer")||mn("temp","integer",0);Ft(t,mt,(t=>n(63,N=t)));let vt,yt,$t,_t=oa(I||0,dt,ht),bt=oa(N||0,dt,ht),wt=rt,kt=wt,Et=rt,Ct=rt,At=null,Vt=null,Dt=$t,jt="",Pt="",St=!1;function Nt(t,e){const r=Number(t.target.value);ut===("first"===e)?(n(7,bt=r),mt.setValue(r)):(n(6,_t=r),gt.setValue(r))}let zt=!1;function Mt(){if(!ct)return;const t=ht-dt,e=(null==At?void 0:At.width)||0,n=(null==Vt?void 0:Vt.width)||0;Math.max(e,n)*t>=(null==ct?void 0:ct.clientWidth)?zt||(at.logError(st(new Error("Slider ticks overlap each other"),{level:"warn"})),zt=!0):zt=!1}const Tt=Li(Mt,50);return Ce((()=>{Mt()})),t.$$set=t=>{"json"in t&&n(0,Q=t.json),"templateContext"in t&&n(1,tt=t.templateContext),"origJson"in t&&n(2,et=t.origJson),"layoutParams"in t&&n(3,nt=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[0]&&(n(36,r=at.getDerivedFromVars(Q.min_value)),G(),G=It(r,(t=>n(66,z=t)))),1&t.$$.dirty[0]&&(n(35,i=at.getDerivedFromVars(Q.max_value)),q(),q=It(i,(t=>n(65,F=t)))),48&t.$$.dirty[0]|24&t.$$.dirty[2]&&(n(4,dt=Kn(z,dt)),n(5,ht=Kn(F,ht)),Mt()),112&t.$$.dirty[0]|4&t.$$.dirty[2]){const t=oa(I||0,dt,ht);t!==_t&&n(6,_t=t)}if(176&t.$$.dirty[0]|2&t.$$.dirty[2]){const t=oa(N||0,dt,ht);t!==bt&&n(7,bt=t)}if(1&t.$$.dirty[0]&&(n(34,o=at.getDerivedFromVars(Q.thumb_style)),H(),H=It(o,(t=>n(62,S=t)))),256&t.$$.dirty[0]|1&t.$$.dirty[2]&&n(8,wt=Kr(S,it,wt)),1&t.$$.dirty[0]&&(n(33,a=at.getDerivedFromVars(Q.thumb_secondary_style)),W(),W=It(a,(t=>n(61,P=t)))),256&t.$$.dirty[0]|1073741824&t.$$.dirty[1]&&n(9,kt=Kr(P,it,wt)),1&t.$$.dirty[0]&&(n(32,l=at.getDerivedFromVars(Q.track_inactive_style)),L(),L=It(l,(t=>n(60,j=t)))),1024&t.$$.dirty[0]|536870912&t.$$.dirty[1]&&n(10,Et=Kr(j,ot,Et)),1&t.$$.dirty[0]&&(n(31,s=at.getDerivedFromVars(Q.track_active_style)),U(),U=It(s,(t=>n(59,D=t)))),2048&t.$$.dirty[0]|268435456&t.$$.dirty[1]&&n(11,Ct=Kr(D,ot,Ct)),1&t.$$.dirty[0]&&(n(30,c=at.getDerivedFromVars(Q.tick_mark_active_style)),R(),R=It(c,(t=>n(58,V=t)))),134217728&t.$$.dirty[1]){let t=Kr(V,it,rt);t!==rt&&n(47,At=t)}if(240&t.$$.dirty[0]|65536&t.$$.dirty[1]&&(At?(n(17,vt=ft?ga(Math.min(_t,bt),Math.max(_t,bt)+1,dt,ht,!0):ga(dt,_t,dt,ht,!0)),Mt()):n(17,vt=[])),1&t.$$.dirty[0]&&(n(29,u=at.getDerivedFromVars(Q.tick_mark_inactive_style)),B(),B=It(u,(t=>n(57,A=t)))),67108864&t.$$.dirty[1]){let t=Kr(A,it,rt);t!==rt&&n(48,Vt=t)}if(240&t.$$.dirty[0]|131072&t.$$.dirty[1]&&(Vt?(n(18,yt=ft?ga(Math.min(_t,bt),Math.max(_t,bt)+1,dt,ht,!1):ga(_t+1,ht+1,dt,ht,!0)),Mt()):n(18,yt=[])),1&t.$$.dirty[0]&&(n(28,d=at.getDerivedFromVars(Q.thumb_text_style)),J(),J=It(d,(t=>n(56,C=t)))),4096&t.$$.dirty[0]|33554432&t.$$.dirty[1]&&n(12,$t=ia(C,$t)),1&t.$$.dirty[0]&&(n(27,h=at.getDerivedFromVars(Q.thumb_secondary_text_style)),O(),O=It(h,(t=>n(55,E=t)))),4096&t.$$.dirty[0]|16777216&t.$$.dirty[1]&&n(13,Dt=ia(E,$t)),1&t.$$.dirty[0]&&(n(26,p=at.getDerivedFromVars(Q.accessibility)),T(),T=It(p,(t=>n(54,k=t)))),8388608&t.$$.dirty[1]&&((null==k?void 0:k.description)?n(19,jt=k.description):at.logError(st(new Error('Missing accessibility "description" for slider'),{level:"warn"}))),1&t.$$.dirty[0]&&(n(25,f=at.getDerivedFromVars(Q.secondary_value_accessibility)),M(),M=It(f,(t=>n(53,x=t)))),4194304&t.$$.dirty[1]&&((null==x?void 0:x.description)?n(20,Pt=x.description):ft&&at.logError(st(new Error('Missing second accessibility "description" for slider'),{level:"warn"}))),19712&t.$$.dirty[0]){let t=!1;lt.hasAction()?(at.logError(st(new Error('Cannot show "slider" inside component with action'))),t=!0):wt===rt?(at.logError(st(new Error('Missing "thumb_style" in slider'))),t=!0):Ct===rt?(at.logError(st(new Error('Missing "track_active_style" in slider'))),t=!0):Et===rt&&(at.logError(st(new Error('Missing "track_inactive_style" in slider'))),t=!0),t!==St&&n(14,St=t)}768&t.$$.dirty[0]&&n(52,g=En(Math.max(...[wt.width,kt.width,0].filter(Rn)))),768&t.$$.dirty[0]&&n(51,m=En(Math.max(...[wt.height,kt.height,0].filter(Rn)))),112&t.$$.dirty[0]&&n(50,v=(_t-dt)/(ht-dt)),176&t.$$.dirty[0]&&n(49,y=ft?(bt-dt)/(ht-dt):void 0),786432&t.$$.dirty[1]&&n(24,$=void 0!==y?Math.abs(y-v):v),786432&t.$$.dirty[1]&&n(23,_=void 0!==y?Math.min(y,v):0),13056&t.$$.dirty[0]|4190208&t.$$.dirty[1]&&n(22,b={"--divkit-slider-thumb-width":En(wt.width),"--divkit-slider-thumb-height":En(wt.height),"--divkit-slider-thumb-secondary-width":En(kt.width),"--divkit-slider-thumb-secondary-height":En(kt.height),"--divkit-slider-text-offset-x":(null===n(43,K=null==$t?void 0:$t.offset)||void 0===K?void 0:K.x)?Cn($t.offset.x):void 0,"--divkit-slider-text-offset-y":(null===n(44,X=null==$t?void 0:$t.offset)||void 0===X?void 0:X.y)?Cn($t.offset.y):void 0,"--divkit-slider-text-secondary-offset-x":(null===n(45,Y=null==Dt?void 0:Dt.offset)||void 0===Y?void 0:Y.x)?Cn(Dt.offset.x):void 0,"--divkit-slider-text-secondary-offset-y":(null===n(46,Z=null==Dt?void 0:Dt.offset)||void 0===Z?void 0:Z.y)?Cn(Dt.offset.y):void 0,"--divkit-slider-tick-active-width":At?En(At.width):void 0,"--divkit-slider-tick-active-height":At?En(At.height):void 0,"--divkit-slider-tick-active-border-radius":At?En(At.borderRadius):void 0,"--divkit-slider-tick-active-background":(null==At?void 0:At.background)||void 0,"--divkit-slider-tick-active-box-shadow":(null==At?void 0:At.boxShadow)||void 0,"--divkit-slider-tick-inactive-width":Vt?En(Vt.width):void 0,"--divkit-slider-tick-inactive-height":Vt?En(Vt.height):void 0,"--divkit-slider-tick-inactive-border-radius":Vt?En(Vt.borderRadius):void 0,"--divkit-slider-tick-inactive-background":(null==Vt?void 0:Vt.background)||void 0,"--divkit-slider-tick-inactive-box-shadow":(null==Vt?void 0:Vt.boxShadow)||void 0,"--divkit-slider-max-thumb-width":g,"--divkit-slider-max-thumb-height":m,"--divkit-slider-track-part":v,"--divkit-slider-track-secondary-part":y})},n(21,w={}),[Q,tt,et,nt,dt,ht,_t,bt,wt,kt,Et,Ct,$t,Dt,St,ct,ut,vt,yt,jt,Pt,w,b,_,$,f,p,h,d,u,c,s,l,a,o,i,r,ft,gt,mt,function(t){var e,r;const i="pageX"in t?t.pageX:null===(r=null===(e=t.changedTouches)||void 0===e?void 0:e[0])||void 0===r?void 0:r.pageX;if(void 0===i)return;const o=ct.getBoundingClientRect(),a=(i-o.left)/o.width,l=(ht-dt)*a,s=Math.round(oa(l,dt,ht));n(16,ut=s<(_t+bt)/2==_t<bt)},Nt,Tt,K,X,Y,Z,At,Vt,y,v,m,g,x,k,E,C,A,V,D,j,P,S,N,I,F,z,t=>Nt(t,"first"),t=>Nt(t,"second"),function(t){Se[t?"unshift":"push"]((()=>{ct=t,n(15,ct)}))}]}const va={input:"divkit-c3a4c",input__wrapper:"divkit-ef7eb",input__holder:"divkit-bb3da",input_multiline:"divkit-e48a3",input__input:"divkit-f11e0","input_highlight-color":"divkit-cc00f","input_vertical-overflow":"divkit-b7075"};function ya(t,e){if(t===e)return{start:t.length,added:0,removed:0};if(t.length>e.length){const n=ya(e,t);return{start:n.start,added:n.removed,removed:n.added}}let n=0,r=e.length-1;const i=e.length-t.length;for(;n<r&&n<t.length&&t[n]===e[n];)++n;for(;r-i>=n&&t[r-i]===e[r];)--r;return++r,{start:n,added:r-n,removed:r-n-i}}function $a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class _a{constructor(t){this.char=t}}class ba{constructor(t,e,n){this.char=t,this.filter=e,this.placeholder=n}}class wa{constructor(t){$a(this,"filters",new Map),$a(this,"destructedValue",[]),$a(this,"cursorPos",0),this.maskData=t,this.updateMaskData(t)}get cursorPosition(){return this.cursorPos}get rawValue(){return this.collectValueRange(0,this.destructedValue.length-1)}get value(){let t="";for(let e=0;e<this.destructedValue.length;++e){const n=this.destructedValue[e];if(n instanceof _a)t+=n.char;else if(n instanceof ba)if(n.char)t+=n.char;else{if(!this.maskData.alwaysVisible)break;t+=n.placeholder}}return t}firstEmptyHolderIndex(){const t=this.destructedValue.findIndex((t=>t instanceof ba&&!t.char));return-1!==t?t:this.destructedValue.length}updateMaskData(t){const e=this.rawValue;this.filters=new Map,this.maskData=t,this.maskData.decoding.forEach((t=>{if(t.filter)try{const e=new RegExp(t.filter);this.filters.set(t.key,e)}catch(e){this.onException(st(e,{level:"error",additional:{key:t.key}}))}})),this.destructedValue=this.maskData.pattern.split("").map((t=>{const e=this.maskData.decoding.find((e=>e.key===t));return e?new ba(null,this.filters.get(e.key),e.placeholder):new _a(t)})),this.overrideRawValue(e)}overrideRawValue(t){this.clearRange(0,this.destructedValue.length),this.replaceChars(t,0),this.cursorPos=Math.min(this.cursorPos,this.value.length)}applyChangeFrom(t,e){const n=ya(this.value,t);void 0!==e&&(n.start=Math.max(0,e-n.added));const r=this.buildBodySubstring(n,t),i=this.buildTailSubstring(n);this.cleanup(n);const o=this.firstEmptyHolderIndex(),a=this.calculateMaxShift(i,o);this.replaceChars(r,o,a);const l=this.firstEmptyHolderIndex();this.replaceChars(i,l),this.calculateCursorPosition(n,l)}buildBodySubstring(t,e){return e.substring(t.start,t.start+t.added)}buildTailSubstring(t){return this.collectValueRange(t.start+t.removed,this.destructedValue.length-1)}calculateMaxShift(t,e){if(this.filters.size<=1){let n=0,r=e;for(;r<this.destructedValue.length;)this.destructedValue[r]instanceof ba&&++n,++r;return Math.max(0,n-t.length)}const n=this.calculateInsertableSubstring(t,e);let r=0;for(;r<this.destructedValue.length&&n===this.calculateInsertableSubstring(t,e+r);)++r;return Math.max(0,r-1)}cleanup(t){if(0===t.added&&1===t.removed){let e=t.start;for(;e>=0;){const t=this.destructedValue[e];if(t instanceof ba&&null!==t.char){t.char=null;break}--e}}this.clearRange(t.start,this.destructedValue.length)}clearRange(t,e){let n=t;for(;n<e&&n<this.destructedValue.length;){const t=this.destructedValue[n];t instanceof ba&&(t.char=null),++n}}calculateCursorPosition(t,e){const n=this.firstEmptyHolderIndex();let r;r=t.start<n?Math.min(this.firstHolderAfter(e),this.value.length):n,this.cursorPos=r}calculateInsertableSubstring(t,e){let n="",r=e;const i=()=>{for(var t;r<this.destructedValue.length&&!(this.destructedValue[r]instanceof ba);)++r;return null===(t=this.destructedValue[r])||void 0===t?void 0:t.filter};return t.split("").forEach((t=>{const e=i();null!=e&&e.test(t)&&(n+=t,++r)})),n}collectValueRange(t,e){let n="",r=t;for(;r<=e;){const t=this.destructedValue[r];t instanceof ba&&null!==t.char&&(n+=t.char),++r}return n}replaceChars(t,e,n){let r=this.calculateInsertableSubstring(t,e);void 0!==n&&(r=r.substring(0,n));let i=e,o=0;for(;i<this.destructedValue.length&&o<r.length;){const t=this.destructedValue[i],e=r[o];t instanceof ba&&(t.char=e,++o),++i}}firstHolderAfter(t){let e=t;for(;e<this.destructedValue.length&&!(this.destructedValue[e]instanceof ba);)++e;return e}}class xa extends wa{constructor(t,e){super(t),this.logError=e}onException(t){this.logError(t)}}function ka(t){let e,n;return e=new xr({props:{cls:Mn("input",va,t[14]),style:t[13],customDescription:!0,customActions:"input",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Va]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};16384&n[0]&&(r.cls=Mn("input",va,t[14])),8192&n[0]&&(r.style=t[13]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),400880&n[0]|16384&n[2]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function Ea(t){let e;return{c(){e=ie("")},l(t){e=ge(t,"")},m(t,n){Qt(t,e,n)},d(t){t&&te(e)}}}function Ca(t){let e,n,r,i,o;return{c(){e=ne("input"),this.h()},l(t){e=pe(t,"INPUT",{type:!0,class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),this.h()},h(){se(e,"type",t[10]),se(e,"class",n=va.input__input),se(e,"autocomplete","off"),se(e,"autocapitalize","off"),se(e,"aria-label",t[11]),se(e,"style",r=kn({padding:t[5]})),se(e,"placeholder",t[17]),e.value=t[4]},m(n,r){Qt(n,e,r),t[65](e),i||(o=[le(e,"input",t[33]),le(e,"mousedown",(function(){Dt(t[18]?t[34]:void 0)&&(t[18]?t[34]:void 0).apply(this,arguments)})),le(e,"click",(function(){Dt(t[18]?t[35]:void 0)&&(t[18]?t[35]:void 0).apply(this,arguments)}))],i=!0)},p(n,i){t=n,1024&i[0]&&se(e,"type",t[10]),2048&i[0]&&se(e,"aria-label",t[11]),32&i[0]&&r!==(r=kn({padding:t[5]}))&&se(e,"style",r),131072&i[0]&&se(e,"placeholder",t[17]),16&i[0]&&e.value!==t[4]&&(e.value=t[4])},d(n){n&&te(e),t[65](null),i=!1,Vt(o)}}}function Aa(t){let e,n,r,i,o;return{c(){e=ne("textarea"),this.h()},l(t){e=pe(t,"TEXTAREA",{class:!0,autocomplete:!0,autocapitalize:!0,"aria-label":!0,style:!0,placeholder:!0}),ue(e).forEach(te),this.h()},h(){se(e,"class",n=va.input__input),se(e,"autocomplete","off"),se(e,"autocapitalize","off"),se(e,"aria-label",t[11]),se(e,"style",r=kn({padding:t[5]})),se(e,"placeholder",t[17]),e.value=t[4]},m(n,r){Qt(n,e,r),t[64](e),i||(o=[le(e,"input",t[33]),le(e,"mousedown",(function(){Dt(t[18]?t[34]:void 0)&&(t[18]?t[34]:void 0).apply(this,arguments)})),le(e,"click",(function(){Dt(t[18]?t[35]:void 0)&&(t[18]?t[35]:void 0).apply(this,arguments)}))],i=!0)},p(n,i){t=n,2048&i[0]&&se(e,"aria-label",t[11]),32&i[0]&&r!==(r=kn({padding:t[5]}))&&se(e,"style",r),131072&i[0]&&se(e,"placeholder",t[17]),16&i[0]&&(e.value=t[4])},d(n){n&&te(e),t[64](null),i=!1,Vt(o)}}}function Va(t){let e,n,r,i,o,a,l,s=t[4].endsWith("\n")||!t[4],c=s&&Ea();function u(t,e){return t[6]?Aa:Ca}let d=u(t),h=d(t);return{c(){e=ne("span"),n=ne("span"),r=ie(t[4]),c&&c.c(),o=oe(),h.c(),this.h()},l(i){e=pe(i,"SPAN",{class:!0,style:!0});var a=ue(e);n=pe(a,"SPAN",{class:!0,"aria-hidden":!0});var l=ue(n);r=ge(l,t[4]),c&&c.l(l),l.forEach(te),o=me(a),h.l(a),a.forEach(te),this.h()},h(){se(n,"class",i=va.input__holder),se(n,"aria-hidden","true"),se(e,"class",a=va.input__wrapper),se(e,"style",l=kn(t[12]))},m(i,a){Qt(i,e,a),Zt(e,n),Zt(n,r),c&&c.m(n,null),t[63](n),Zt(e,o),h.m(e,null)},p(t,i){16&i[0]&&ve(r,t[4]),16&i[0]&&(s=t[4].endsWith("\n")||!t[4]),s?c||(c=Ea(),c.c(),c.m(n,null)):c&&(c.d(1),c=null),d===(d=u(t))&&h?h.p(t,i):(h.d(1),h=d(t),h&&(h.c(),h.m(e,null))),4096&i[0]&&l!==(l=kn(t[12]))&&se(e,"style",l)},d(n){n&&te(e),c&&c.d(),t[63](null),h.d()}}}function Da(t){let e,n,r=!t[9]&&ka(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,i){r&&r.m(t,i),Qt(t,e,i),n=!0},p(t,n){t[9]?r&&(Ge(),Ye(r,1,1,(()=>{r=null})),Ke()):r?(r.p(t,n),512&n[0]&&Xe(r,1)):(r=ka(t),r.c(),Xe(r,1),r.m(e.parentNode,e))},i(t){n||(Xe(r),n=!0)},o(t){Ye(r),n=!1},d(t){r&&r.d(t),t&&te(e)}}}function ja(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,C,A=xt,V=xt;var D;t.$$.on_destroy.push((()=>A())),t.$$.on_destroy.push((()=>V()));let{json:j={}}=e,{templateContext:P}=e,{origJson:S}=e,{layoutParams:N}=e;const I=De(bn);let F,z,M=!1,T=!1,O=null;const J=j.text_variable,B=null===(D=j.mask)||void 0===D?void 0:D.raw_text_variable;let R=!1;J||(R=!0,I.logError(st(new Error('Missing "text_variable" in "input"'))));let U=J&&I.getVariable(J,"string")||mn("temp","string","");Ft(t,U,(t=>n(48,u=t)));let L=B&&I.getVariable(B,"string")||mn("temp","string","");Ft(t,L,(t=>n(49,d=t)));let W="";const H=I.getDerivedFromVars(j.mask);Ft(t,H,(t=>n(62,E=t)));const q=I.getDerivedFromVars(j.hint_text);Ft(t,q,(t=>n(61,x=t)));const G=I.getDerivedFromVars(j.hint_color);Ft(t,G,(t=>n(60,w=t)));let K="";const X=I.getDerivedFromVars(j.font_size);Ft(t,X,(t=>n(59,b=t)));let Y=12;const Z=I.getDerivedFromVars(j.font_weight);let Q;Ft(t,Z,(t=>n(58,_=t)));const tt=I.getDerivedFromVars(j.line_height);let et;Ft(t,tt,(t=>n(57,$=t)));const nt=I.getDerivedFromVars(j.letter_spacing);Ft(t,nt,(t=>n(56,y=t)));let rt="";const it=I.getDerivedFromVars(j.text_color);Ft(t,it,(t=>n(55,v=t)));let ot="#000";const at=I.getDerivedFromVars(j.highlight_color);Ft(t,at,(t=>n(54,m=t)));let lt="";const ct=I.getDerivedFromVars(j.keyboard_type);Ft(t,ct,(t=>n(53,g=t)));const ut={email:"email",number:"number",phone:"tel",single_line_text:"text",multi_line_text:"text",uri:"url"};let dt="multi_line_text",ht="text";const pt=I.getDerivedFromVars(j.max_visible_lines);Ft(t,pt,(t=>n(52,f=t)));let ft="",gt=null,mt="",vt="";const yt=I.getDerivedFromVars(j.select_all_on_focus);function $t(){n(36,T=z.scrollHeight>z.offsetHeight)}async function _t(){if(!F||!O)return;O.overrideRawValue(d),L.set(O.rawValue),Bt(U,u=n(4,W=O.value),u);const t=O.cursorPosition;await Te(),n(7,F.selectionStart=n(7,F.selectionEnd=t,F),F)}return Ft(t,yt,(t=>n(18,C=t))),Ce((()=>{$t(),F&&O&&d&&(O.overrideRawValue(d),Bt(U,u=n(4,W=O.value),u))})),t.$$set=t=>{"json"in t&&n(0,j=t.json),"templateContext"in t&&n(1,P=t.templateContext),"origJson"in t&&n(2,S=t.origJson),"layoutParams"in t&&n(3,N=t.layoutParams)},t.$$.update=()=>{if(1&t.$$.dirty[2]&&(n(37,O=function(t,e,n){if("fixed_length"===(null==t?void 0:t.type)&&"string"==typeof t.pattern&&Array.isArray(t.pattern_elements)&&t.pattern_elements.every((t=>t.key&&"string"==typeof t.key))){const r={pattern:t.pattern,alwaysVisible:Boolean(t.always_visible),decoding:t.pattern_elements.map((t=>({key:t.key,filter:t.regex&&"string"==typeof t.regex?t.regex:void 0,placeholder:t.placeholder&&"string"==typeof t.placeholder?t.placeholder:"_"})))};return n?(n.updateMaskData(r),n):new xa(r,e)}return n||null}(E,I.logError,O)),O&&_t()),16&t.$$.dirty[0]|131136&t.$$.dirty[1]&&(O||W===u||n(4,W=u)),262208&t.$$.dirty[1]&&O&&O.rawValue!==d&&_t(),1073741824&t.$$.dirty[1]&&n(17,r=x),536871040&t.$$.dirty[1]&&n(38,K=k(w,1,K)),268435712&t.$$.dirty[1]&&n(39,Y=Er(b,Y)),134218240&t.$$.dirty[1]&&n(40,Q=Ar(_,Q)),67109120&t.$$.dirty[1]){const t=$;lr(t)&&n(41,et=t/Y)}33554432&t.$$.dirty[1]&&Bn(y)&&n(42,rt=En(y)),16781312&t.$$.dirty[1]&&n(43,ot=k(v,1,ot)),8396800&t.$$.dirty[1]&&n(44,lt=k(m,1,lt)),4194304&t.$$.dirty[1]&&g&&g in ut&&(n(10,ht=ut[g]),n(45,dt=g)),16384&t.$$.dirty[1]&&n(6,i="multi_line_text"===dt),1&t.$$.dirty[0]&&(n(16,o=I.getDerivedFromVars(j.paddings)),V(),V=It(o,(t=>n(51,p=t)))),3212544&t.$$.dirty[1]&&(lr(f)&&n(46,ft="calc(".concat(f*(et||1.25)*(Y/10)+"em"," + ").concat(Cn(Ln(null==p?void 0:p.top,0)+Ln(null==p?void 0:p.bottom,0)),")")),n(47,gt=Yn(p||void 0,gt)),n(5,mt=gt?Jn({top:(Number(gt.top)||0)/Y*10,right:(Number(gt.right)||0)/Y*10,bottom:(Number(gt.bottom)||0)/Y*10,left:(Number(gt.left)||0)/Y*10}):"")),1&t.$$.dirty[0]&&(n(15,a=I.getDerivedFromVars(j.accessibility)),A(),A=It(a,(t=>n(50,h=t)))),524288&t.$$.dirty[1]&&((null==h?void 0:h.description)?n(11,vt=h.description):I.logError(st(new Error('Missing accessibility "description" for input'),{level:"warn"}))),64&t.$$.dirty[0]|8224&t.$$.dirty[1]&&n(14,l={"highlight-color":Boolean(lt),"vertical-overflow":T,multiline:i}),48768&t.$$.dirty[1]&&n(13,s={"--divkit-input-hint-color":K,"--divkit-input-highlight-color":lt,"font-weight":Q,"line-height":et,"letter-spacing":rt,color:ot,"max-height":ft}),32&t.$$.dirty[0]|256&t.$$.dirty[1]&&n(12,c={"font-size":En(Y),padding:mt})},[j,P,S,N,W,mt,i,F,z,R,ht,vt,c,s,l,a,o,r,C,U,L,H,q,G,X,Z,tt,nt,it,at,ct,pt,yt,function(t){const e=t.target.value||"";W!==e&&(n(4,W=e),U.setValue(e),O&&async function(){if(!F||!O)return;O.applyChangeFrom(W,null!==F.selectionEnd?F.selectionEnd:void 0),L.set(O.rawValue),Bt(U,u=n(4,W=O.value),u);const t=O.cursorPosition;await Te(),n(7,F.selectionStart=n(7,F.selectionEnd=t,F),F)}()),$t()},function(){M=!1,setTimeout((()=>{M=!0}),250)},function(){M||F.select()},T,O,K,Y,Q,et,rt,ot,lt,dt,ft,gt,u,d,h,p,f,g,m,v,y,$,_,b,w,x,E,function(t){Se[t?"unshift":"push"]((()=>{z=t,n(8,z)}))},function(t){Se[t?"unshift":"push"]((()=>{F=t,n(7,F)}))},function(t){Se[t?"unshift":"push"]((()=>{F=t,n(7,F)}))}]}const Pa={select:"divkit-feef3","select__select-text":"divkit-cd862",select_hint:"divkit-a3cf6",select__select:"divkit-bdb72",select__option:"divkit-e774b"};function Sa(t,e,n){const r=t.slice();return r[44]=e[n],r}function Na(t){let e,n;return e=new xr({props:{cls:Mn("select",Pa,t[10]),style:t[9],customDescription:!0,customActions:"select",customPaddings:!0,json:t[0],origJson:t[2],templateContext:t[1],layoutParams:t[3],$$slots:{default:[Fa]},$$scope:{ctx:t}}}),{c(){on(e.$$.fragment)},l(t){an(e.$$.fragment,t)},m(t,r){ln(e,t,r),n=!0},p(t,n){const r={};1024&n[0]&&(r.cls=Mn("select",Pa,t[10])),512&n[0]&&(r.style=t[9]),1&n[0]&&(r.json=t[0]),4&n[0]&&(r.origJson=t[2]),2&n[0]&&(r.templateContext=t[1]),8&n[0]&&(r.layoutParams=t[3]),4560&n[0]|65536&n[1]&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){n||(Xe(e.$$.fragment,t),n=!0)},o(t){Ye(e.$$.fragment,t),n=!1},d(t){sn(e,t)}}}function Ia(t){let e,n,r,i,o=(t[44].text||t[44].value)+"";return{c(){e=ne("option"),n=ie(o),this.h()},l(t){e=pe(t,"OPTION",{class:!0});var r=ue(e);n=ge(r,o),r.forEach(te),this.h()},h(){se(e,"class",r=Pa.select__option),e.__value=i=t[44].value,e.value=e.__value},m(t,r){Qt(t,e,r),Zt(e,n)},p:xt,d(t){t&&te(e)}}}function Fa(t){let e,n,r,i,o,a,l,s,c,u=((t[4]?t[6]:t[12])||"")+"",d=t[15],h=[];for(let e=0;e<d.length;e+=1)h[e]=Ia(Sa(t,d,e));return{c(){e=ne("span"),n=ie(u),o=oe(),a=ne("select");for(let t=0;t<h.length;t+=1)h[t].c();this.h()},l(t){e=pe(t,"SPAN",{class:!0,style:!0,"aria-hidden":!0});var r=ue(e);n=ge(r,u),r.forEach(te),o=me(t),a=pe(t,"SELECT",{class:!0,"aria-label":!0});var i=ue(a);for(let t=0;t<h.length;t+=1)h[t].l(i);i.forEach(te),this.h()},h(){se(e,"class",r=Pa["select__select-text"]),se(e,"style",i=kn({padding:t[7]})),se(e,"aria-hidden","true"),se(a,"class",l=Pa.select__select),se(a,"aria-label",t[8]),void 0===t[4]&&Oe((()=>t[39].call(a)))},m(r,i){Qt(r,e,i),Zt(e,n),Qt(r,o,i),Qt(r,a,i);for(let t=0;t<h.length;t+=1)h[t].m(a,null);$e(a,t[4]),s||(c=le(a,"change",t[39]),s=!0)},p(t,r){if(4176&r[0]&&u!==(u=((t[4]?t[6]:t[12])||"")+"")&&ve(n,u),128&r[0]&&i!==(i=kn({padding:t[7]}))&&se(e,"style",i),32768&r[0]){let e;for(d=t[15],e=0;e<d.length;e+=1){const n=Sa(t,d,e);h[e]?h[e].p(n,r):(h[e]=Ia(n),h[e].c(),h[e].m(a,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=d.length}256&r[0]&&se(a,"aria-label",t[8]),32784&r[0]&&$e(a,t[4])},d(t){t&&te(e),t&&te(o),t&&te(a),ee(h,t),s=!1,c()}}}function za(t){let e,n,r=!t[5]&&Na(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,i){r&&r.m(t,i),Qt(t,e,i),n=!0},p(t,n){t[5]?r&&(Ge(),Ye(r,1,1,(()=>{r=null})),Ke()):r?(r.p(t,n),32&n[0]&&Xe(r,1)):(r=Na(t),r.c(),Xe(r,1),r.m(e.parentNode,e))},i(t){n||(Xe(r),n=!0)},o(t){Ye(r),n=!1},d(t){r&&r.d(t),t&&te(e)}}}function Ma(t,e,n){let r,i,o,a,l,s,c,u,d,h,p,f,g,m,v,y=xt,$=xt;t.$$.on_destroy.push((()=>y())),t.$$.on_destroy.push((()=>$()));let{json:_={}}=e,{templateContext:b}=e,{origJson:w}=e,{layoutParams:x}=e;const E=De(bn),C=E.getJsonWithVars(_.value_variable);let A=!1;C||(A=!0,E.logError(st(new Error('Missing "value_variable" in "select"'))));let V=C&&E.getVariable(C,"string")||mn("temp","string","");Ft(t,V,(t=>n(4,s=t)));let D="";const j=_.options,P=Array.isArray(j)&&j.filter((t=>"string"==typeof t.value))||[];Array.isArray(P)&&P.length||E.logError(st(new Error('Empty selection "items" in "select"')));let S="",N=null,I="";const F=E.getDerivedFromVars(_.hint_text);Ft(t,F,(t=>n(37,m=t)));const z=E.getDerivedFromVars(_.hint_color);Ft(t,z,(t=>n(36,g=t)));let M="rgba(0,0,0,.45)";const T=E.getDerivedFromVars(_.font_size);Ft(t,T,(t=>n(35,f=t)));let O=12;const J=E.getDerivedFromVars(_.font_weight);let B;Ft(t,J,(t=>n(34,p=t)));const R=E.getDerivedFromVars(_.line_height);let U;Ft(t,R,(t=>n(33,h=t)));const L=E.getDerivedFromVars(_.letter_spacing);Ft(t,L,(t=>n(32,d=t)));let W="";const H=E.getDerivedFromVars(_.text_color);Ft(t,H,(t=>n(31,u=t)));let q="#000",G="";return t.$$set=t=>{"json"in t&&n(0,_=t.json),"templateContext"in t&&n(1,b=t.templateContext),"origJson"in t&&n(2,w=t.origJson),"layoutParams"in t&&n(3,x=t.layoutParams)},t.$$.update=()=>{if(16&t.$$.dirty[0]&&(D=s),16&t.$$.dirty[0]){const t=P.find((t=>t.value===s));t?n(6,S=t.text||t.value):(n(6,S=""),s&&E.logError(st(new Error('Value from the variable was not found in the selection items for "select"'))))}if(1&t.$$.dirty[0]&&(n(13,r=E.getDerivedFromVars(_.paddings)),$(),$=It(r,(t=>n(38,v=t)))),8388608&t.$$.dirty[0]|128&t.$$.dirty[1]&&(n(23,N=Yn(v||void 0,N)),n(7,I=N?Jn(N):"")),64&t.$$.dirty[1]&&n(12,i=m),16777216&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(24,M=k(g,1,M)),33554432&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(25,O=Er(f,O)),67108864&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(26,B=Ar(p,B)),33554432&t.$$.dirty[0]|4&t.$$.dirty[1]){const t=h;lr(t)&&n(27,U=t/O)}33554432&t.$$.dirty[0]|2&t.$$.dirty[1]&&Bn(d)&&n(28,W=En(d/O*10)),536870912&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(29,q=k(u,1,q)),1&t.$$.dirty[0]&&(n(11,o=E.getDerivedFromVars(_.accessibility)),y(),y=It(o,(t=>n(30,c=t)))),1073741824&t.$$.dirty[0]&&((null==c?void 0:c.description)?n(8,G=c.description):E.logError(st(new Error('Missing accessibility "description" for select'),{level:"warn"}))),16&t.$$.dirty[0]&&n(10,a={hint:!s}),1056964608&t.$$.dirty[0]&&n(9,l={"--divkit-input-hint-color":M,"font-size":En(O),"font-weight":B,"line-height":U,"letter-spacing":W,color:q})},[_,b,w,x,s,A,S,I,G,l,a,o,i,r,V,P,F,z,T,J,R,L,H,N,M,O,B,U,W,q,c,u,d,h,p,f,g,m,v,function(){s=function(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}(this),V.set(s),n(15,P)}]}const Ta={};function Oa(t){let e,n,r;var i=t[5];function o(t){return{props:{json:t[3],templateContext:t[4],layoutParams:t[2],origJson:t[1]||t[0]}}}return i&&(e=new i(o(t))),{c(){e&&on(e.$$.fragment),n=ae()},l(t){e&&an(e.$$.fragment,t),n=ae()},m(t,i){e&&ln(e,t,i),Qt(t,n,i),r=!0},p(t,r){const a={};if(8&r&&(a.json=t[3]),16&r&&(a.templateContext=t[4]),4&r&&(a.layoutParams=t[2]),3&r&&(a.origJson=t[1]||t[0]),i!==(i=t[5])){if(e){Ge();const t=e;Ye(t.$$.fragment,1,0,(()=>{sn(t,1)})),Ke()}i?(e=new i(o(t)),on(e.$$.fragment),Xe(e.$$.fragment,1),ln(e,n.parentNode,n)):e=null}else i&&e.$set(a)},i(t){r||(e&&Xe(e.$$.fragment,t),r=!0)},o(t){e&&Ye(e.$$.fragment,t),r=!1},d(t){t&&te(n),e&&sn(e,t)}}}function Ja(t){let e,n,r=t[5]&&Oa(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,i){r&&r.m(t,i),Qt(t,e,i),n=!0},p(t,n){let[i]=n;t[5]?r?(r.p(t,i),32&i&&Xe(r,1)):(r=Oa(t),r.c(),Xe(r,1),r.m(e.parentNode,e)):r&&(Ge(),Ye(r,1,1,(()=>{r=null})),Ke())},i(t){n||(Xe(r),n=!0)},o(t){Ye(r),n=!1},d(t){r&&r.d(t),t&&te(e)}}}function Ba(t,e,n){let{div:r}=e,{templateContext:i}=e,{origJson:o}=e,{layoutParams:a}=e;const l=De(bn);let s,c,u;return t.$$set=t=>{"div"in t&&n(0,r=t.div),"templateContext"in t&&n(6,i=t.templateContext),"origJson"in t&&n(1,o=t.origJson),"layoutParams"in t&&n(2,a=t.layoutParams)},t.$$.update=()=>{if(121&t.$$.dirty&&(n(3,s=r),n(4,c=i),n(5,u=s&&Ta[s.type]||void 0),!u&&(n(4,({templateContext:c,json:s}=l.processTemplate(s,c)),c,(n(3,s),n(0,r),n(6,i),n(5,u),n(4,c))),n(5,u=s&&Ta[s.type]||void 0),!u))){let t;t=(null==s?void 0:s.type)&&l.hasTemplate(s.type)?"Recursive template":"Unknown component",l.logError(st(new Error(t),{additional:{component:(null==s?void 0:s.type)||"<missing>"}}))}},[r,o,a,s,c,u,i]}Ta.text=class extends un{constructor(t){super(),cn(this,t,qr,Hr,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ta.container=class extends un{constructor(t){super(),cn(this,t,fi,pi,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ta.separator=class extends un{constructor(t){super(),cn(this,t,_i,$i,St,{json:0,templateContext:1,origJson:2,layoutParams:3})}},Ta.image=Pi,Ta.gif=Pi,Ta.grid=class extends un{constructor(t){super(),cn(this,t,Bi,Ji,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ta.gallery=class extends un{constructor(t){super(),cn(this,t,no,eo,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Ta.tabs=class extends un{constructor(t){super(),cn(this,t,mo,go,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Ta.state=class extends un{constructor(t){super(),cn(this,t,Bo,Oo,St,{json:0,templateContext:1,origJson:2,layoutParams:3})}},Ta.pager=class extends un{constructor(t){super(),cn(this,t,Ko,Go,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ta.indicator=class extends un{constructor(t){super(),cn(this,t,na,ea,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}},Ta.slider=class extends un{constructor(t){super(),cn(this,t,ma,fa,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Ta.input=class extends un{constructor(t){super(),cn(this,t,ja,Da,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1,-1])}},Ta.select=class extends un{constructor(t){super(),cn(this,t,Ma,za,St,{json:0,templateContext:1,origJson:2,layoutParams:3},null,[-1,-1])}};const Ra=class extends un{constructor(t){super(),cn(this,t,Ba,Ja,St,{div:0,templateContext:6,origJson:1,layoutParams:2})}};function Ua(t,e,n){const r=t.slice();r[1]=e[n];const i=r[1].split(":");return r[2]=i[0],r[3]=i[1],r}function La(t){let e,n,r,i=[...Object.keys(t[0])],o=[];for(let e=0;e<i.length;e+=1)o[e]=Ga(Ua(t,i,e));return{c(){e=re("svg"),n=re("defs");for(let t=0;t<o.length;t+=1)o[t].c();this.h()},l(t){e=fe(t,"svg",{class:!0,"aria-hidden":!0});var r=ue(e);n=fe(r,"defs",{});var i=ue(n);for(let t=0;t<o.length;t+=1)o[t].l(i);i.forEach(te),r.forEach(te),this.h()},h(){se(e,"class",r="divkit-dc22b"),se(e,"aria-hidden","true")},m(t,r){Qt(t,e,r),Zt(e,n);for(let t=0;t<o.length;t+=1)o[t].m(n,null)},p(t,e){if(1&e){let r;for(i=[...Object.keys(t[0])],r=0;r<i.length;r+=1){const a=Ua(t,i,r);o[r]?o[r].p(a,e):(o[r]=Ga(a),o[r].c(),o[r].m(n,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(t){t&&te(e),ee(o,t)}}}function Wa(t){let e,n;return{c(){e=re("feBlend"),this.h()},l(t){e=fe(t,"feBlend",{in2:!0,mode:!0}),ue(e).forEach(te),this.h()},h(){se(e,"in2","SourceGraphic"),se(e,"mode",n=t[3])},m(t,n){Qt(t,e,n)},p(t,r){1&r&&n!==(n=t[3])&&se(e,"mode",n)},d(t){t&&te(e)}}}function Ha(t){let e;return{c(){e=re("feComposite"),this.h()},l(t){e=fe(t,"feComposite",{in2:!0,operator:!0,k1:!0,k2:!0,k3:!0,k4:!0}),ue(e).forEach(te),this.h()},h(){se(e,"in2","SourceGraphic"),se(e,"operator","arithmetic"),se(e,"k1","1"),se(e,"k2","0"),se(e,"k3","0"),se(e,"k4","0")},m(t,n){Qt(t,e,n)},p:xt,d(t){t&&te(e)}}}function qa(t){let e,n;return{c(){e=re("feComposite"),this.h()},l(t){e=fe(t,"feComposite",{in2:!0,operator:!0}),ue(e).forEach(te),this.h()},h(){se(e,"in2","SourceGraphic"),se(e,"operator",n=t[3].split("_")[1])},m(t,n){Qt(t,e,n)},p(t,r){1&r&&n!==(n=t[3].split("_")[1])&&se(e,"operator",n)},d(t){t&&te(e)}}}function Ga(t){let e,n,r,i;function o(t,e){return"source_in"===t[3]||"source_atop"===t[3]?qa:"multiply"===t[3]?Ha:Wa}let a=o(t),l=a(t);return{c(){e=re("filter"),n=re("feFlood"),l.c(),this.h()},l(t){e=fe(t,"filter",{id:!0});var r=ue(e);n=fe(r,"feFlood",{"flood-color":!0}),ue(n).forEach(te),l.l(r),r.forEach(te),this.h()},h(){se(n,"flood-color",r=t[2]),se(e,"id",i=t[0][t[1]])},m(t,r){Qt(t,e,r),Zt(e,n),l.m(e,null)},p(t,s){1&s&&r!==(r=t[2])&&se(n,"flood-color",r),a===(a=o(t))&&l?l.p(t,s):(l.d(1),l=a(t),l&&(l.c(),l.m(e,null))),1&s&&i!==(i=t[0][t[1]])&&se(e,"id",i)},d(t){t&&te(e),l.d()}}}function Ka(t){let e,n=Object.keys(t[0]).length,r=n&&La(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,n){r&&r.m(t,n),Qt(t,e,n)},p(t,i){let[o]=i;1&o&&(n=Object.keys(t[0]).length),n?r?r.p(t,o):(r=La(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:xt,o:xt,d(t){r&&r.d(t),t&&te(e)}}}function Xa(t,e,n){let{svgFiltersMap:r}=e;return t.$$set=t=>{"svgFiltersMap"in t&&n(0,r=t.svgFiltersMap)},[r]}const Ya=class extends un{constructor(t){super(),cn(this,t,Xa,Ka,St,{svgFiltersMap:0})}};function Za(t,e,n,r){const i=n[t.type];if(!i)return r(st(new Error("No such template"),{additional:{template:t.type}})),{json:t,templateContext:e};let o;const a={};for(o in e)e.hasOwnProperty(o)&&(a[o]=e[o]);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(a[o]=t[o]);const l=function t(e,n){const r=Object.keys(n).filter((t=>"__proto__"!==t)),i=r.filter((t=>"$"!==t.charAt(0))),o=r.filter((t=>"$"===t.charAt(0)));return i.forEach((r=>{const i=n[r];"object"==typeof i&&null!==i?(e[r]=Array.isArray(i)?[]:{},t(e[r],i)):e[r]=i})),o.forEach((t=>{const r=n[t],i=a[r];if(void 0!==i){const n=t.substring(1);e[n]=i}})),e}({},i);for(o in t)"type"!==o&&"__proto__"!==o&&t.hasOwnProperty(o)&&(l[o]=t[o]);return{json:l,templateContext:a}}function Qa(){}function tl(t){return{subscribe:e=>(e(t),Qa)}}class el{constructor(t){this.ast=t}apply(t,e){if(!function(t,e){let n=!1;return w(t,{Variable(t){e.has(t.id.name)||(n=!0)}}),n}(this.ast,t))try{const n=_n(t,this.ast);n.warnings.forEach(e);const r=n.result;if("error"===r.type)return void e(st(new Error("Expression execution error"),{additional:{message:r.value}}));const i=r.value;if(i instanceof Date)return V(i);if("boolean"===r.type)return Boolean(i);if("color"===r.type){const t=C(String(i));if(t)return M(t);e(st(new Error("Expression execution error")))}return"integer"===r.type?i>2147483647||i<-2147483648?void e(st(new Error("Expression result is out of 32-bit int range"))):Number(i):i}catch(t){return void e(st(new Error("Expression execution error")))}}}function nl(t,e,n){if(t)if("string"==typeof t){if((r=t).indexOf("@{")>-1||r.indexOf("\\")>-1){e.hasExpression=!0;try{const n=v(t,{startRule:"JsonStringContents"}),r=I(n);return e.vars.push(...r),new el(n)}catch(e){return void n(st(new Error("Unable to parse expression"),{additional:{expression:t}}))}}}else{if(Array.isArray(t))return t.map((t=>nl(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=nl(t[i],e,n);return r}}var r;return t}function rl(t,e,n){if(t){if(t instanceof el)return t.apply(e,n);if(Array.isArray(t))return t.map((t=>rl(t,e,n)));if("object"==typeof t){const r={};for(const i in t)r[i]=rl(t[i],e,n);return r}}return t}function il(t,e){const n={vars:[],hasExpression:!1},r=nl(t,n,e);return{vars:[...new Set(n.vars)],hasExpression:n.hasExpression,applyVars:t=>rl(r,t,e)}}const ol={pagers:function(){return hn(new Map)}},al=new Map,ll=new Map;function sl(t){const e=al.get(t)||hn("");return al.has(t)||al.set(t,e),e}function cl(t){const e=ll.get(t)||new Map;return ll.has(t)||ll.set(t,e),e}class ul{setVariable(t){const e=t.getName(),n=cl(this);if(n.has(e))throw new Error("Variable with the same name already exist");n.set(e,t),sl(this).set(e)}getVariable(t){return cl(this).get(t)}}function dl(){return new ul}function hl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const pl=new Set(["start","stop","pause","resume","cancel","reset"]);class fl{constructor(t){hl(this,"timers",new Map),hl(this,"awaitActions",[]),this.logError=t.logError,this.applyVars=t.applyVars,this.hasVariableWithType=t.hasVariableWithType,this.setVariableValue=t.setVariableValue,this.execAnyActions=t.execAnyActions,this.visibilityHandler=()=>{"visible"===document.visibilityState?(this.awaitActions.forEach((t=>{let{id:e,action:n}=t;this.execTimerAction(e,n)})),this.awaitActions=[],this.unholdAll()):this.holdAll()},document.addEventListener("visibilitychange",this.visibilityHandler)}destroy(){document.removeEventListener("visibilitychange",this.visibilityHandler);for(const[t,e]of this.timers)this.stopTimerTimeouts(e)}createTimer(t){null!=t&&t.id?t.duration||t.tick_interval&&(t.value_variable||t.tick_actions)?this.timers.set(t.id,{state:"stopped",definition:t}):this.logError(st(new Error("Misconfigured timer"),{additional:{id:t.id}})):this.logError(st(new Error("Missing timer id")))}execTimerAction(t,e){if(!(t&&e&&this.timers.has(t)&&pl.has(e)))return void this.logError(st(new Error("Incorrect timer action"),{additional:{id:t,action:e}}));const n=e;if("visible"!==document.visibilityState)return void this.awaitActions.push({id:t,action:n});const r=this.timers.get(t);this[n](r)}stopTimerTimeouts(t){t.durationTimeout&&(clearTimeout(t.durationTimeout),t.durationTimeout=void 0),t.tickTimeout&&(clearTimeout(t.tickTimeout),t.tickTimeout=void 0)}tickOrUnholdAction(t){const e=performance.now(),n=(t.durationPassed||0)+e-(t.durationStarted||0);t.duration&&n>t.duration||(this.updateVariable(t,n),this.callActions(t,"tick"),void 0!==t.tickCount&&++t.tickCount)}startOrResume(t){t.state="running",t.hold=!1,t.durationStarted=performance.now();const e=t.duration;e&&(t.durationTimeout=window.setTimeout((()=>{this.updateVariable(t,e),t.tickCountPredict&&void 0!==t.tickCount&&t.tickCount<t.tickCountPredict&&this.callActions(t,"tick"),this.stop(t)}),Math.max(0,e-(t.durationPassed||0))));const n=t.tick;if(n){const e=()=>{const r=t.tickStarted=performance.now(),i=Math.max(0,n-(t.tickPassed||0));t.tickTimeout=window.setTimeout((()=>{this.tickOrUnholdAction(t),t.tickPassed=(performance.now()-r-i)%n,e()}),i)};e()}}start(t){if("running"===t.state)return void this.logError(st(new Error("The timer is already running")));if("paused"===t.state)return void this.logError(st(new Error("The timer is paused")));const e=t.definition.value_variable;!e||this.hasVariableWithType(e,"integer")?(e&&this.setVariableValue(e,0),t.definition.duration&&(t.duration=this.applyVars(t.definition.duration)),t.definition.tick_interval&&(t.tick=this.applyVars(t.definition.tick_interval)),void 0!==t.duration&&t.duration<0||void 0!==t.tick&&t.tick<=0?this.logError(st(new Error("Incorrect timer properties"),{additional:{id:t.definition.id}})):(void 0!==t.duration&&void 0!==t.tick&&(t.tickCount=0,t.tickCountPredict=Math.floor(t.duration/t.tick)),this.startOrResume(t))):this.logError(st(new Error("Cannot find variable"),{additional:{name:e}}))}stop(t){"stopped"!==t.state?(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t),this.callActions(t,"end")):this.logError(st(new Error("The timer has already been stopped")))}pause(t){if("stopped"===t.state)return void this.logError(st(new Error("The timer has already been stopped")));if("paused"===t.state)return void this.logError(st(new Error("The timer has already been paused")));t.state="paused",this.stopTimerTimeouts(t);const e=performance.now();t.durationStarted&&(t.durationPassed=(t.durationPassed||0)+e-t.durationStarted),t.tickStarted&&(t.tickPassed=(t.tickPassed||0)+e-t.tickStarted);const n=t.definition.value_variable;n&&t.durationPassed&&this.setVariableValue(n,Math.round(t.durationPassed))}resume(t){"stopped"!==t.state?"running"!==t.state?this.startOrResume(t):this.logError(st(new Error("The timer is already running"))):this.logError(st(new Error("The timer has already been stopped")))}cancel(t){"stopped"!==t.state&&(t.state="stopped",t.durationPassed=0,t.tickPassed=0,this.stopTimerTimeouts(t))}reset(t){this.cancel(t),this.start(t)}updateVariable(t,e){const n=t.definition.value_variable;n&&this.setVariableValue(n,Math.round(e))}callActions(t,e){const n=t.definition["end"===e?"end_actions":"tick_actions"];if(n){const t=this.applyVars(n);this.execAnyActions(t,!1)}}holdAll(){for(const[t,e]of this.timers)"running"===e.state&&(e.hold=!0,this.stopTimerTimeouts(e))}unholdAll(){for(const[t,e]of this.timers)if("running"===e.state&&e.hold){const t=performance.now();e.durationStarted&&(e.durationPassed=(e.durationPassed||0)+t-e.durationStarted),e.tickStarted&&(e.tickPassed=(e.tickPassed||0)+t-e.tickStarted),e.tick&&this.tickOrUnholdAction(e),this.startOrResume(e)}}}function gl(t){let e,n,r,i,o,a,l,s;return n=new Ya({props:{svgFiltersMap:t[2]}}),i=new Ra({props:{div:t[3],templateContext:t[6]}}),{c(){e=ne("div"),on(n.$$.fragment),r=oe(),on(i.$$.fragment),this.h()},l(t){e=pe(t,"DIV",{class:!0});var o=ue(e);an(n.$$.fragment,o),r=me(o),an(i.$$.fragment,o),o.forEach(te),this.h()},h(){se(e,"class",o="divkit-b023c"+(t[4]?" ".concat("divkit-ee112"):"")+(t[0]?" ".concat(t[0]):""))},m(t,o){Qt(t,e,o),ln(n,e,null),Zt(e,r),ln(i,e,null),a=!0,l||(s=le(e,"touchstart",vl,{passive:!0}),l=!0)},p(t,r){const l={};4&r[0]&&(l.svgFiltersMap=t[2]),n.$set(l);const s={};8&r[0]&&(s.div=t[3]),i.$set(s),(!a||17&r[0]&&o!==(o="divkit-b023c"+(t[4]?" ".concat("divkit-ee112"):"")+(t[0]?" ".concat(t[0]):"")))&&se(e,"class",o)},i(t){a||(Xe(n.$$.fragment,t),Xe(i.$$.fragment,t),a=!0)},o(t){Ye(n.$$.fragment,t),Ye(i.$$.fragment,t),a=!1},d(t){t&&te(e),sn(n),sn(i),l=!1,s()}}}function ml(t){let e,n,r=!t[1]&&t[3]&&gl(t);return{c(){r&&r.c(),e=ae()},l(t){r&&r.l(t),e=ae()},m(t,i){r&&r.m(t,i),Qt(t,e,i),n=!0},p(t,n){!t[1]&&t[3]?r?(r.p(t,n),10&n[0]&&Xe(r,1)):(r=gl(t),r.c(),Xe(r,1),r.m(e.parentNode,e)):r&&(Ge(),Ye(r,1,1,(()=>{r=null})),Ke())},i(t){n||(Xe(r),n=!0)},o(t){Ye(r),n=!1},d(t){r&&r.d(t),t&&te(e)}}}function vl(){}function yl(t,e,n){let r;var i,o,a,l;let{id:s}=e,{json:c={}}=e,{platform:u="auto"}=e,{theme:d="system"}=e,{globalVariablesController:h=new ul}=e,{mix:p=""}=e,{customization:f={}}=e,{builtinProtocols:g=["http","https","tel","mailto","intent"]}=e,{extensions:m=new Map}=e,{onError:y}=e,{onStat:$}=e,{onCustomAction:_}=e,{onComponent:b}=e,w=hn("desktop"===u);if(Ft(t,w,(t=>n(4,r=t))),"auto"===u&&"undefined"!=typeof matchMedia){const t=matchMedia("(any-pointer: coarse)");w.set(!t.matches),t.addListener((()=>{w.set(!t.matches)}))}let x="light",k=null;function E(){"system"===d&&k&&n(22,x=k.matches?"dark":"light")}const C=new Set(g);let A=!1;c||(A=!0,O(st(new Error('"json" prop is required')))),s||(A=!0,O(st(new Error('"id" prop is required'))));let V=function(t){if(!t)return st(new Error("Missing object"));const e=t.card,n=t.templates||{};if(!e)return st(new Error("Missing card"));if(!e.states||!e.states.length)return st(new Error("Missing states"));for(const t in n)if(n.hasOwnProperty(t)&&t in Ta)return st(new Error("Template name collision"),{additional:{templateName:t}});for(let t=0;t<e.states.length;++t){if(!e.states[t].div)return st(new Error("Missing state div"),{additional:{stateId:e.states[t].state_id}});if("number"!=typeof e.states[t].state_id)return st(new Error("Missing state_id"),{additional:{index:t}})}return null}(c);const D=c.templates||{};V&&(A=!0,O(V));const j={stateChange:!1},P=sl(h),S=cl(h),N=new Map,F=new Map,z=new Map;let M=null;function T(t){const e=il(t,O);return e.vars.length?e.applyVars(F):t}function O(t){y?y({error:t}):"warn"===(null==t?void 0:t.level)?console.warn(t):console.error(t)}function J(t,e){$&&$({type:t,action:e})}let B=0;function R(t){return"".concat(s,"-").concat(B++)}let U={},L={};function W(t){const e=t.url?String(t.url):"";if(e)try{const t=e.replace(/div-action:\/\//,""),n=/([^?]+)\?(.+)/.exec(t);if(!n)return;const r=new URLSearchParams(n[2]);switch(n[1]){case"set_state":!function(t){if(!t)throw new Error("Missing state id");let e=Z,n=t.split("/");if(n=["root",...n],n.length<2||n.length%2!=0)throw new Error("Incorrect state id format");for(let t=0;t<n.length;t+=2){const r=n[t],i=n[t+1];let o=e.getChild(r);if(!o)return;o.setState(i),e=o}}(r.get("state_id"));break;case"set_current_item":!function(t,e){if(!t||!e)throw new Error('Missing data for "set-current-item" action');if(isNaN(Number(e)))throw new Error('Incorrect item for "set-current-item" action');const n=K(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=K(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=K(t);n&&n.setNextItem(e)}(r.get("id"),r.get("overflow"));break;case"set_variable":const n=r.get("name"),i=r.get("value");if(n&&null!==i){const t=F.get(n);t?t.set(i):O(st(new Error("Cannot find variable"),{additional:{name:n}}))}else O(st(new Error("Incorrect set_variable_action"),{additional:{url:t}}));break;case"timer":const o=r.get("action"),a=r.get("id");M?M.execTimerAction(a,o):O(st(new Error("Incorrect timer action"),{additional:{id:a,action:o}}));break;default:O(st(new Error("Unknown type of action"),{additional:{url:e}}))}}catch(t){O(st(t,{additional:{url:e}}))}}async function H(t,e){if(t){for(let n=0;n<t.length;++n){let r=t[n];const i=r.url;if(i){const t=In(i);if(t)if(Fn(t,C)){if(e)if("_blank"===r.target){const t=window.open("","_blank");t&&(t.opener=null,t.location=i)}else location.href=i}else"div-action"===t?(W(r),await Te()):r.log_id&&(q(r),await Te())}}t.forEach((t=>{t.log_id&&J("click",t)}))}}function q(t){null==_||_(t)}const G=new Map;function K(t){if(G.has(t))return G.get(t);O(st(new Error("Missing instance with id"),{additional:{id:t}}))}const X=new Map;function Y(t){for(const e of t)F.has(e)&&t.delete(e);return t}Ve(bn,{logError:O,logStat:J,hasTemplate:function(t){return t in D},processTemplate:function(t,e){if(!t)return{json:t,templateContext:e};const n=new Set([t.type]);for(;t.type in D;){if(({json:t,templateContext:e}=Za(t,e,D,O)),n.has(t.type))return{json:t,templateContext:e};n.add(t.type)}return{json:t,templateContext:e}},genId:R,genClass:function(t){return"divkit-".concat(R())},execAction:W,execAnyActions:H,execCustomAction:q,isRunning:function(t){return j[t]},setRunning:function(t,e){j[t]=e},registerInstance:function(t,e){G.has(t)?O(st(new Error("Duplicate instance id"),{additional:{id:t}})):G.set(t,e)},unregisterInstance:function(t){G.delete(t)},addSvgFilter:function(t,e){const r="".concat(t,":").concat(e);if(L[r]=L[r]||0,++L[r],U[r])return U[r];const i="".concat(R(),"-svg-filter");return n(2,U=Object.assign(Object.assign({},U),{[r]:i})),i},removeSvgFilter:function(t,e){if(!t)return;const r="".concat(t,":").concat(e);L[r]&&0==--L[r]&&n(2,U=Object.keys(U).reduce(((t,e)=>(L[e]&&(t[e]=U[e]),t)),{}))},getDerivedFromVars:function(t){if(!t)return tl(t);const e=il(t,O);return e.vars.length?pn(e.vars.map((t=>F.get(t)||function(t){const e=z.get(t)||hn(void 0);return z.has(t)||z.set(t,e),e}(t))).filter(Vn),(()=>e.applyVars(F))):e.hasExpression?tl(e.applyVars(F)):tl(t)},getJsonWithVars:T,getStore:function(t){return X.has(t)||function(t){X.has(t)||X.set(t,ol[t]())}(t),X.get(t)},getVariable:function(t,e){const n=F.get(t);if(n){const r=n.getType();if(r!==e)return void O(st(new Error('Variable should have type "'.concat(e,'"')),{additional:{name:t,foundType:r}}))}return n},getCustomization:function(t){return null==f?void 0:f[t]},getBuiltinProtocols:function(){return C},getExtension:function(t,e){const n=m.get(t);if(n)return new n(e||{})},getExtensionContext:function(){return{variables:F,logError:O}},isDesktop:w,registerComponent:function(t){let{node:e,json:n,origJson:r,templateContext:i}=t;b&&b({type:"mount",node:e,json:n,origJson:r,templateContext:i})},unregisterComponent:function(t){let{node:e}=t;b&&b({type:"destroy",node:e})}}),Ve(tr,{hasAction:()=>!1});const Z={setState(t){throw new Error("Not implemented")},getChild(t){if(Q&&Q.has(t))return Q.get(t);O(st(new Error("Missing state block with id"),{additional:{id:t}}))}};let Q=null;Ve(On,{registerInstance(t,e){Q||(Q=new Map),Q.has(t)?O(st(new Error("Duplicate state with id"),{additional:{id:t}})):Q.set(t,e)},unregisterInstance(t){null==Q||Q.delete(t)},runVisibilityTransition:(t,e,n,r,i)=>Promise.resolve(),registerChildWithTransitionIn:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionOut:(t,e,n,r)=>Promise.resolve(),registerChildWithTransitionChange:(t,e,n,r)=>Promise.resolve(),hasTransitionChange:t=>!1,registerChild(t){},unregisterChild(t){}});const tt=null===(i=null==c?void 0:c.card)||void 0===i?void 0:i.variables;Array.isArray(tt)&&tt.forEach((t=>{if(t&&t.type in gn&&t.name){if(N.has(t.name))return void O(st(new Error("Duplicate variable"),{additional:{name:t.name}}));"integer"===t.type&&"number"==typeof t.value&&(t.value>Number.MAX_SAFE_INTEGER||t.value<Number.MIN_SAFE_INTEGER)&&O(st(new Error("The value of the integer variable could lose accuracy"),{level:"warn",additional:{name:t.name,value:t.value}}));try{const e=mn(t.name,t.type,t.value);N.set(t.name,e),F.set(t.name,e)}catch(e){O(st(e,{additional:{name:t.name}}))}}}));const et=c.palette;et&&et[x].forEach((t=>{if(N.has(t.name))O(st(new Error("Duplicate variable"),{additional:{name:t.name}}));else try{const e=mn(t.name,"color",t.color);N.set(t.name,e),F.set(t.name,e)}catch(e){O(st(e,{additional:{name:t.name}}))}}));for(const[t,e]of S)F.has(t)||F.set(t,e);P.subscribe((t=>{if(t&&!F.has(t)){const e=S.get(t);F.set(t,e);const n=z.get(t);if(n){let t=0;e.subscribe((()=>{n.set(++t)}))}}}));const nt=null===(o=null==c?void 0:c.card)||void 0===o?void 0:o.variable_triggers;Array.isArray(nt)&&nt.forEach((t=>{let e=!1;if("string"!=typeof t.condition)return void O(st(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=v(t.condition,{startRule:"JsonStringContents"}),i=I(r);if(!i.length)return void O(st(new Error("variable_trigger must have variables in the condition"),{additional:{condition:t.condition}}));(function(t){const e=new Set(t);return Y(e),e.size?new Promise((t=>{const n=P.subscribe((()=>{Y(e),e.size||(n(),t())}))})):Promise.resolve()})(i).then((()=>{pn(i.map((t=>F.get(t))).filter(Vn),(()=>{const t=_n(F,r);return t.warnings.forEach(O),t.result})).subscribe((r=>{"error"!==r.type?(r.value&&("on_variable"===n||"on_condition"===n&&!1===e)&&t.actions.forEach((t=>{const e=T(t);e.log_id&&W(e)})),e=Boolean(r.value)):O(st(new Error("variable_trigger condition execution error"),{additional:{message:r.value}}))}))}))}catch(e){O(st(new Error("Unable to parse variable_trigger"),{additional:{condition:t.condition}}))}else O(st(new Error("variable_trigger has an unsupported mode"),{additional:{mode:n}}))}));const rt=null===(a=null==c?void 0:c.card)||void 0===a?void 0:a.timers;if(rt){const t=M=new fl({logError:O,applyVars:T,hasVariableWithType:function(t,e){const n=F.get(t);return(null==n?void 0:n.getType())===e},setVariableValue:function(t,e){const n=F.get(t);n?n.setValue(e):O(st(new Error("Cannot find variable"),{additional:{name:t}}))},execAnyActions:H});rt.forEach((e=>t.createTimer(e)))}const it=null===(l=null==c?void 0:c.card)||void 0===l?void 0:l.states;let ot;return it&&!A&&(ot={type:"state",id:"root",width:{type:"match_parent"},height:{type:"match_parent"},states:it.map((t=>({state_id:t.state_id.toString(),div:t.div})))}),Ae((()=>{M&&M.destroy()})),t.$$set=t=>{"id"in t&&n(8,s=t.id),"json"in t&&n(9,c=t.json),"platform"in t&&n(10,u=t.platform),"theme"in t&&n(7,d=t.theme),"globalVariablesController"in t&&n(11,h=t.globalVariablesController),"mix"in t&&n(0,p=t.mix),"customization"in t&&n(12,f=t.customization),"builtinProtocols"in t&&n(13,g=t.builtinProtocols),"extensions"in t&&n(14,m=t.extensions),"onError"in t&&n(15,y=t.onError),"onStat"in t&&n(16,$=t.onStat),"onCustomAction"in t&&n(17,_=t.onCustomAction),"onComponent"in t&&n(18,b=t.onComponent)},t.$$.update=()=>{8388736&t.$$.dirty[0]&&("light"===d||"dark"===d?n(22,x=d):"system"===d?"undefined"!=typeof matchMedia?(k||(n(23,k=matchMedia("(prefers-color-scheme: dark)")),k.addListener(E)),n(22,x=k.matches?"dark":"light")):n(22,x="light"):O(st(new Error("Unsupported theme")))),4194304&t.$$.dirty[0]&&x&&et&&et[x].forEach((t=>{const e=F.get(t.name);e&&e.setValue(t.color)}))},[p,A,U,ot,r,w,{},d,s,c,u,h,f,g,m,y,$,_,b,function(t){n(7,d=t)},function(){return F},W,x,k]}const $l=class extends un{constructor(t){super(),cn(this,t,yl,ml,St,{id:8,json:9,platform:10,theme:7,globalVariablesController:11,mix:0,customization:12,builtinProtocols:13,extensions:14,onError:15,onStat:16,onCustomAction:17,onComponent:18,setTheme:19,getDebugVariables:20,execAction:21},null,[-1,-1,-1])}get setTheme(){return this.$$.ctx[19]}get getDebugVariables(){return this.$$.ctx[20]}get execAction(){return this.$$.ctx[21]}};class _l{constructor(t){var e,n;n={},(e="sizeHistory")in this?Object.defineProperty(this,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[e]=n,this.widthVariableName=t.width_variable_name,this.heightVariableName=t.height_variable_name}setVariable(t,e){if(!this.context)return!1;if(t){const n=this.context.variables.get(t);if(n&&"integer"===n.getType()){if(e=Math.round(e),this.sizeHistory[t]||(this.sizeHistory[t]=new Set),!this.sizeHistory[t].has(e))return n.setValue(e),this.sizeHistory[t].add(e),!0}else{const e=new Error("Missing variable");e.level="error",e.additional={variableName:t},this.context.logError(e)}}return!1}recalcProps(){if(!this.node||!this.context)return!1;const t=this.node.getBoundingClientRect(),e=this.setVariable(this.widthVariableName,t.width),n=this.setVariable(this.heightVariableName,t.height);return e||n}mountView(t,e){var n;this.node=t,this.context=e,this.resizeObserver||"undefined"==typeof ResizeObserver||(this.resizeObserver=new ResizeObserver((async()=>{let t=0;for(;this.recalcProps();){if(++t>8){const t=new Error("Recursive layout in size_provider");t.level="warn",t.additional={widthVariableName:this.widthVariableName,heightVariableName:this.heightVariableName},e.logError(t);break}await Te()}this.sizeHistory={}}))),null===(n=this.resizeObserver)||void 0===n||n.observe(t),this.recalcProps()}unmountView(t,e){var n;null===(n=this.resizeObserver)||void 0===n||n.disconnect(),this.resizeObserver=void 0}}function bl(t){return t instanceof HTMLElement}function wl(t){return class{constructor(t){this.params=t}mountView(e,n){if(!this.params.lottie_url&&!this.params.lottie_json)return;const r=Array.from(e.children).filter(bl);r.forEach((t=>{t.style.display="none"})),this.wrapper=document.createElement("div"),this.wrapper.style.width="100%",this.wrapper.style.height="100%",e.appendChild(this.wrapper);const i=Number(this.params.repeat_count||-1),o=this.animItem=t({container:this.wrapper,path:this.params.lottie_url,animationData:this.params.lottie_json,renderer:"svg",loop:!0});if(this.animItem.addEventListener("data_failed",(()=>{var t;null===(t=this.animItem)||void 0===t||t.destroy(),r.forEach((t=>{t.style.display=""}));const e=new Error("Failed to load lottie animation");e.level="error",e.additional={url:this.params.lottie_url},n.logError(e)})),"reverse"===this.params.repeat_mode||-1!==i){let t=1,e=0;o.addEventListener("loopComplete",(()=>{++e,-1!==i&&e===i?(o.stop(),o.goToAndStop(o.totalFrames,!0)):("reverse"===this.params.repeat_mode&&(t*=-1,o.setDirection(t)),o.goToAndPlay(1===t?0:o.totalFrames,!0))}))}}unmountView(t,e){var n,r;null===(n=this.animItem)||void 0===n||n.destroy(),this.wrapper&&(null===(r=this.wrapper.parentNode)||void 0===r||r.removeChild(this.wrapper),this.wrapper=void 0)}}}function xl(t){return new $l({target:t.target,props:{id:t.id,json:t.json,globalVariablesController:t.globalVariablesController,mix:t.mix,customization:t.customization,builtinProtocols:t.builtinProtocols,extensions:t.extensions,onStat:t.onStat,onCustomAction:t.onCustomAction,onError:t.onError,onComponent:t.onComponent,platform:t.platform,theme:t.theme},hydrate:t.hydrate})}function kl(t,e){return El(t,e).result}function El(t,e){let n;try{n=v(t,{startRule:"json"===(null==e?void 0:e.type)?"JsonStringContents":"start"})}catch(t){return{result:{type:"error",value:"Unable to parse expression"},warnings:[]}}return _n((null==e?void 0:e.variables)||new Map,n)}function Cl(){return Array.from(y.keys())}var Al=e.Hy,Vl=e.M,Dl=e.Os,jl=e.fz,Pl=e.iL,Sl=e.e4,Nl=e._0,Il=e.sY,Fl=e.Z3;export{Al as SizeProvider,Vl as createGlobalVariablesController,Dl as createVariable,jl as evalExpression,Pl as evalExpressionWithFullResult,Sl as functionNames,Nl as lottieExtensionBuilder,Il as render,Fl as valToString};
|
|
2
2
|
//# sourceMappingURL=client-devtool.mjs.map
|