(function(rt){typeof define=="function"&&define.amd?define(rt):rt()})(function(){"use strict";const rt=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e})();function ft(e,t,i,n=!1,s=!0,a=!1){if(!e||!("addEventListener"in e)||!i instanceof Function)return;this&&!this.eventListeners&&(this.eventListeners=[]);const o=t.split(" ");let l=a;rt&&(l={passive:s,capture:a}),o.forEach(r=>{this&&this.eventListeners&&n&&this.eventListeners.push({element:e,type:r,callback:i,options:l}),e[n?"addEventListener":"removeEventListener"](r,i,l)})}function _(e,t="",i,n=!0,s=!1){ft.call(this,e,t,i,!0,n,s)}function Se(e,t="",i,n=!0,s=!1){ft.call(this,e,t,i,!1,n,s)}function lt(e,t="",i,n=!0,s=!1){const a=(...o)=>{Se(e,t,a,n,s),i.apply(this,o)};ft.call(this,e,t,a,!0,n,s)}function bt(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:t,type:i,callback:n,options:s}=e;t.removeEventListener(i,n,s)}),this.eventListeners=[])}const Ce=()=>screen.msOrientation||screen.mozOrientation||screen.orientation||{},Te=()=>{let e=Ce().angle;return e===void 0?null:e},Ie=()=>window.screen.orientation?window.screen.orientation.type.includes("landscape")?"landscape":"portrait":Math.abs(+window.orientation)===90?"landscape":"portrait",_e=()=>(window.screen.height>window.screen.width?[window.screen.height,window.screen.width]:[window.screen.width,window.screen.height]).join("x"),Ae=()=>window.devicePixelRatio!==void 0?window.devicePixelRatio:1,Et=e=>{if(e=document.getElementsByTagName("meta")[e],e!==void 0){let t=e.getAttribute("content");if(t!==void 0)return t}return null},Be=()=>window.navigator.hardwareConcurrency||0,Ot=e=>{const t=s=>Math.floor(Math.random()*s),i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";let n="";for(let s=0;s/g,">")}let Ee=e=>{const t=e.querySelectorAll("script,object,iframe");for(let i=t.length;i--;){const n=t[i];n.parentNode.removeChild(n)}return e},Oe=e=>{const t=e.attributes;for(let i=t.length;i--;){const n=t[i].name;/^on/.test(n)&&e.removeAttribute(n)}return e},$t,Pt=(e,t=!1)=>Pe(e,t).firstChild,Pe=(e,t=!1)=>{$t||($t=new DOMParser);let i=$t.parseFromString(e,"text/html").body;if(t){Ee(i);let n=i.querySelectorAll("img,svg");for(let s=n.length;s--;){let a=n[s];Oe(a)}}return i};const Le=e=>/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e),De=(e,t)=>e.match(new RegExp(`.{${t}}`,"g")),Me=e=>parseInt(e.repeat(2/e.length),16),vt=(e,t,i=50)=>{e=e.replace(/#/g,""),t=t.replace(/#/g,"");function n(o){return o.toString(16)}function s(o){return parseInt(o,16)}i=typeof i<"u"?i:50;let a="#";for(let o=0;o<=5;o+=2){let l=s(e.substr(o,2)),r=s(t.substr(o,2)),c=n(Math.floor(r+(l-r)*(i/100)));for(;c.length<2;)c="0"+c;a+=c}return a},Ne=(e,t)=>{if(typeof e<"u")return e/256;if(typeof t<"u"){if(1{const[i,n,s,a]=e;return`rgba(${i},${n},${s},${Ne(a,t)})`},z=(e,t,i)=>{Le(e)||(e="#000000");let n=ze(e);return i&&n[3]!==void 0&&(n[3]=void 0),Re(n,t)},ze=e=>{const t=Math.floor((e.length-1)/3);return De(e.slice(1),t).map(Me)},S=e=>(typeof e=="string"&&(e=parseInt(e)),!!e),u="sticker_container",Lt="sticker_wrapper",He="sticker_viewport",Dt="sticker_close",Z="sticker_arrow",L="sticker_block__header",H="sticker_block__player",j="block-header__left",tt="block-header__right",D="sticker_block",y="sticker_block__body",C="block-body__left",T="block-body__right",et="stage-in-container",je='',Fe='';function We({prefix:e,data:t}={}){let{bgColorAnimate:i}=t;return` .${e}-block{position: relative;} .${e}-block:before,.${e}-block:after{z-index:10;content:'';position:absolute;display:block;width:100%;height:100%;transform:scale(1);} .${e}-block:before{top:0;left:-100px;transform:translateX(-100%);border-right:50px solid transparent;border-bottom:400px solid ${i};animation:${e}-double-swipe-line-after .9s;animation-fill-mode: both;} .${e}-block:after{top:0;right:-100px;transform:translateX(100%);border-left:50px solid transparent;border-bottom:400px solid ${i}; animation:${e}-double-swipe-line-after .9s;animation-fill-mode: both;z-index:5;} @keyframes ${e}-double-swipe-line-before{100% {transform: translateX(20%); }} @keyframes ${e}-double-swipe-line-after{100% {transform: translateX(-20%); border-right:0;}} } `}function Ve({prefix:e,data:t}={}){return` .${e}-block{position: relative;} .${e}-background-block,.${e}-button{z-index:10;} .${e}-block:after {background:#fff;content:"";height:200%;left:0;opacity:.2;position:absolute;top:-50px;transform:rotate(35deg);animation:${e}-light 4s cubic-bezier(0.19, 1, 0.22, 1) infinite;width:28px;} @keyframes ${e}-light{10%, 100%%{left:-75px} 0% {left:-75px} 100%{left:200%} }`}function Ue({prefix:e,data:t}={}){let{bgColorAnimate:i,bgColor:n}=t,s=`${e}-bg-sliding`,a=`
`;return{styles:`.${s} {animation: ${e}-slide-lines 3s ease-in-out infinite alternate;background: linear-gradient(-60deg, ${n} 50%, ${i} 50%);bottom:0;left:-50%;opacity:.5;position:absolute;right:-50%;top:0;z-index:1;} .${s}2 {animation-direction:alternate-reverse;animation-duration:4s;} .${s}3 {animation-duration:5s;} @keyframes ${e}-slide-lines {0%{transform:translateX(-25%);}100%{transform:translateX(25%);}} `,template:a}}const it=(e,t)=>(e=e*-1,`${t?"right":"left"}:${e}px;bottom:${e}px;`);function qe(e,t,i){let{bgColorAnimate:n}=t,s=`
`;return{styles:` .${e}-wave-ripples{position:absolute;border-radius:50%;background:${n};animation:${e}-wave-ripples 15s infinite;} .${e}-small{width:100px;height:100px;${it(50,i)}} .${e}-medium{width:150px;height:150px;${it(75,i)}} .${e}-large{width:250px;height:250px;${it(125,i)}} .${e}-xlarge{width:300px;height:300px;${it(150,i)}} .${e}-xxlarge{width:400px;height:400px;${it(200,i)}} .${e}-shade1{opacity: 0.2;} .${e}-shade2{opacity: 0.5;} .${e}-shade3{opacity: 0.7;} .${e}-shade4{opacity: 0.8;} .${e}-shade5{opacity: 0.9;} @keyframes ${e}-wave-ripples{0%{transform: scale(0.8);}50%{transform: scale(1.2);}100%{transform: scale(0.8);}} `,template:s}}function Ke({prefix:e,data:t}={}){let{bgColorAnimate:i}=t;return` .${e}-block{position: relative;} .${e}-block:before,.${e}-block:after{content:'';position:absolute;display:block;width:20px;height:20px;background:${i};border-radius:50px;z-index:10;transform:scale(1);transition:.5s ease-out;} .${e}-block:before{top:50%;left:0;transform:translateX(-100%);animation:${e}-double-swipe-cycle-before .9s;animation-fill-mode: both;} .${e}-block:after{top:50%;right:0;transform:translateX(100%);animation:${e}-double-swipe-cycle-after .9s;animation-fill-mode: both;z-index:5;} @keyframes ${e}-double-swipe-cycle-before{100% {transform: translateX(530%) scale(10);}} @keyframes ${e}-double-swipe-cycle-after{100% {transform: translateX(-530%) scale(10);}} `}function Ge(e,t,i,n){let s=(i+n)*t,a=i/n*100,o=1/t*100,l=100-n/s*100,r=[];for(let c=0;c`${r} ${c}px ${z(p,b)}`;let l=[];return l.push(o("0 1px 0",i,a,.25)),l.push(o("0 -1px 0",i,s,.25)),l.push(o("1px 0 0",i,a,.25)),l.push(o("-1px 0 0",i,s,.25)),l.push(o("1px -1px 0",i,n,.5)),l.push(o("-1px 1px 0",i,n,.5)),l.push(o("1px 1px 0",i,t,.75)),l.push(o("1px 1px 0",i,e,.75)),`box-shadow: ${l.join(`, `)};`}function Xe(e,t,i){let n=Mt(z(t,1)),s=Mt(z(i,1)),a=oi(n,s,10),o=1e3;return`background:linear-gradient(27deg,${a.join(",")}); background-size:${o}% ${o}%;animation:${e}-animate1 5s ease infinite;`}function Je(e,t){return`background:linear-gradient(-45deg,${t.join(",")});background-size:400% 400%;animation:${e}-gradient 15s ease infinite;`}function Qe(e){return`animation:${e}-colors 6s ease infinite;`}const Ze=["#ee7752","#e73c7e","#23a6d5","#23d5ab"];function Nt(e,t,i,n){let s=null;switch(n){case"animate":s=Xe(e,t,i);break;case"gradient1":s=Je(e,Ze);break;case"colors":s=Qe(e);break}return s}function ti(e,t){let n=`background:${S(t.bgEnable)?t.bgColor:"#fff"};`,s=S(t.bgEnable)?Nt(e,t.bgColor,t.bgColorAnimate,t.bgType):null;return s||n}function ei(e,t){let i=`background:${t.buttonBgColor};`,n=Nt(e,t.buttonBgColor,t.buttonBgColorAnimate,t.buttonBgColorType);return n||i}function Rt(e,t,i){const n="ease-in",s="ease-out";let a=[],o=(l,r,c,p)=>`${l}% { transform:translateY(${i?"":"-"}${r}px); animation-timing-function:${c}; ${p!==void 0?"opacity:1;":""} }`;return a.push(o(0,0,n)),a.push("3% {opacity:1}"),a.push(o(5,24,n)),a.push(o(8.125,12,n)),a.push(o(10.25,6,n)),a.push(o(11.625,4,n)),a.push(o(3.125,0,s)),a.push(o(6.875,0,s)),a.push(o(9.375,0,s)),a.push(o(10.875,0,s)),a.push(o(12.5,0,s,1)),a.push(o(100,0,s,1)),`@keyframes ${e}-bounce-${t}{ ${a.join("")} } `}function ii(e){return`@keyframes ${e}-pulse{ 0% {transform:scaleX(1)} 10% {transform:scale3d(1.03,1.03,1.03)} 48% {transform:scaleX(1)} 68% {transform:scale3d(1.03,1.03,1.03)} to {transform:scaleX(1)} } `}function ni(e){const t="ease-in",i="ease-out";let n=[],s=(a,o,l)=>`${a}% {animation-timing-function:${l};${o!==void 0?`opacity: ${o};`:""}}`;return n.push(s(0,1,t)),n.push(s(5,0,t)),n.push(s(8.125,0,t)),n.push(s(10.25,0,t)),n.push(s(11.625,0,t)),n.push(s(6.875,0,i)),n.push(s(9.375,0,i)),n.push(s(20.875,1,i)),n.push(s(100,1,t)),`@keyframes ${e}-flash{ ${n.join("")} } `}function si(e,t){if(!S(t.imageBorderEnable))return"";let i=parseInt(t.imageBorder,10),n="";return i===1&&(n=`.${u} .${e}-image-radius50:before{border:2px dashed ${z(t.imageBorderColor,1)};animation: ${e}-border-rotate 20s linear infinite;} @keyframes ${e}-border-rotate {0%{ transform:rotate(0deg)}100%{ transform:rotate(360deg)}} `),i===2&&(n=`.${u} .${e}-image-radius50:before{border:2px solid transparent;background-image:linear-gradient(white,white),radial-gradient(circle at 30% 107%,#fdf497 0%,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285AEB 90%);background-origin:border-box;background-clip:content-box,border-box;}`),i===3&&(n=`.${u} .${e}-image-radius50{box-shadow:0 0 0 ${z(t.imageBorderColor,1)};animation:${e}-radius50-pulse 2s infinite;} @keyframes ${e}-radius50-pulse{0%{box-shadow:0 0 0 0 ${z(t.imageBorderColor,.4,!0)};}70%{box-shadow:0 0 0 10px ${z(t.imageBorderColor,0,!0)};}100%{box-shadow:0 0 0 0 ${z(t.imageBorderColor,0,!0)};}}`),i===4&&(n=`.${e}-border-circle{animation:${e}-rotate-circle 1s linear infinite;} @keyframes ${e}-rotate-circle{from{transform:rotate(0deg) scale(1);}to{transform:rotate(360deg) scale(1);}}`),i===5&&(n=`.${e}-border-circle:nth-of-type(1){animation:${e}-rotate-circle 2s linear infinite;} .${e}-border-circle:nth-of-type(2){animation:${e}-rotate-circle 2s linear .1s infinite;} .${e}-border-circle:nth-of-type(3){animation:${e}-rotate-circle 2s linear .25s infinite;} @keyframes ${e}-rotate-circle{0%{transform:rotate(0deg) scale(1) translate(0,0);}33%{transform:rotate(360deg) scale(1) translate(5px,5px);}66%{transform:rotate(720deg) scale(1) translate(-5px,-5px);}100%{transform:rotate(1080deg) scale(1) translate(0,0);}}`),`.${u} .${e}-image-radius50 .${e}-image-block{transform:scale(0.88) perspective(1px);backface-visibility:hidden;} .${u} .${e}-image-radius50:before {content:" ";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:100%;} ${n}`}function ai({prefix:e,data:t}={}){let i=Ye(t),n=ti(e,t),s=ei(e,t),a="";t.startAnimate&&t.startAnimate!=="x"&&(a="opacity:0;");let o="300";t.buttonTitleStyle!==void 0&&t.buttonTitleStyle!==null&&t.buttonTitleStyle.indexOf("bold")!==-1&&(o="bold");let l="";return t.image&&t.image.length>1&&t.imageSlide===void 0&&(l=Ge(e,t.image.length,3,t.image.length*3)),` @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap'); @import url('https://fonts.googleapis.com/icon?family=Material+Icons:wght@300;400;600;700&display=swap'); @keyframes combined-pin { 16%, 48%, 78% {top:0;animation-timing-function:ease-out;} 32% {top:-8px;animation-timing-function:ease-in;} 62% {top:-6px;animation-timing-function:ease-in;} 90% {top:-2px;animation-timing-function:ease-out;} 100% {top:0px;animation-timing-function:ease-in;} } .${et} .${u} .${Dt}{display:none;!important;} .${et} .${e}-bounce-down, .${et} .${e}-bounce-up, .${et} .${e}-pulse, .${et} .${e}-flash{animation-play-state:paused;} .${u} .${Dt}{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;background:rgba(204,204,204,0.70);border-radius:50%;cursor:pointer;transition: all 1s ease-in} .${u} .${e}-block, .${u} .${e}-block-spec, .${e}-block-spec2 {box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;margin-top:5px;min-width:300px;max-width:300px;overflow:hidden;font-family:'Open Sans', sans-serif;} .${u} .${L}{display:flex;align-items:center;justify-content:space-between;z-index:11;} .${u} .${L} .${j}{display:flex;align-items:center;} .${u} .${L} .${j} svg{margin-right:5px;} .${u} .${e}-timer{text-transform:uppercase;display:flex;align-items:center;padding:0;} .${u} .${e}-timer.${e}-block-right{display:block;text-align:right;} .${u} .${e}-timer svg{margin-right:5px;width:auto !important;height: auto !important;} .${u} svg{width:auto !important;height:auto !important;} .${u} .${y}{display:flex;margin-top:5px;z-index:11;} .${u} .${y} .${e}-items-center{align-items:center;} .${u} .${y} .${C}{margin-right:10px;} .${u} .${y}.${e}-flex-50 .${C}{margin:0;flex:0 1 100%;word-break:break-word;} .${u} .${y} .${T}{flex:0 1 100%;display:flex;flex-direction:column;justify-content:space-around;word-break:break-word;min-height:100%;} .${u} .${e}-background-block{width:70px;height:70px;border-radius:5px;;position:relative;overflow:hidden;} .${u} .${e}-background-block .${e}-absolute-icon{position:absolute;left:5px;top:5px;} .${u} .${e}-background-block .${e}-absolute-date{position:absolute;right:10px;top:5px;} .${u} .${e}-image-radius50 {width:50px;height:50px;border-radius:50%} .${u} .${e}-text-body{line-height:18px;display:inline-block;} .${u} .${e}-button-block{margin-top:15px;} .${u} .${e}-button{font-size:15px;text-rendering:auto;letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0px;display:inline-block;text-align:center;box-sizing:border-box;margin:0em;padding: 1px 6px;border:none;border-radius:5px;padding:5px;display:flex;align-items:center;justify-content:center;width:100%;cursor:pointer;} .${u} .${e}-button.${e}-big-button{min-height:90px;height:100%;} .${u} .${e}-button svg{margin:0 4px;} .${u} .${e}-button svg.margin-right-0{margin-right:0px;} .${e}-text-body{color:${t.titleColor};font-size:13px} .${e}-title{color:${t.titleColor};font-size:16px} .${e}-timer{color:${t.titleColor};font-size:11px} .${e}-button{padding:0;border:none;font:inherit;color:inherit; ${s} font-weight:${o};color:${t.buttonColorTitle}; text-transform:none } .${e}-block{${n} ${i} border-radius:15px;padding:8px;position:relative;} .${e}-no-radius{border-radius:0;} .${e}-button svg {fill:${t.buttonColorTitle};vertical-align:text-bottom;} .${Lt}{display:inline-block;z-index:2147483647;${a}} .${He} .${D} {max-width:100%;width:100%;} .${e}-image-block {width:100%;height:100%;background-size:cover;position:absolute;top:0;left:0;} ${l} .${e}-close-red .sticker_close{background:rgba(255,0,0,.7);} .${e}-close-red .sticker_close svg{fill: #fff;} .${e}-close-red {min-height: 28px; display:block;} .${e}-close-right .sticker_close{right:15px;position:absolute;} .sticker_close-right {float:right;} @media screen and (max-width:428px) { .${Lt}, .${u}{width:100%;} .${u} .${D}, .${e}-block-spec2 {max-width:100%;width:100%;} } .${e}-text-swap1,.${e}-text-swap2{ transform:translateY(-100%); animation: ${e}-text-swap-animate 6s infinite linear; position:absolute;font-size:15px; } .sticker_afooter{position:relative;float:right} .sticker_afooter a{padding:2px 0;opacity:.5;background:#fff;height:24px;width:55px;position:absolute;right:2px;top:2px; border-radius:6px;display:block;} .sticker_afooter a:hover{opacity:1} .${e}-close-right .sticker_afooter{float:left} .${e}-close-right .sticker_afooter a{right:unset} .${e}-text-swap1{animation-delay: 0s;} .${e}-text-swap2{animation-delay: 3.3s;font-weight:bold;} .${e}-block-spec{background:unset;border:none;position:relative;padding:0 2px;} .${e}-block-tooltip{${n};position:relative;margin-right:10px;padding:10px;border-radius:10px;box-shadow:2px 2px 5px 0px rgba(0,0,0,0.75);} .${e}-block-tooltip .${e}-text-body {min-height: unset;z-index:2} .${e}-badge{position:absolute;top:0;left:0;background:red;color:#fff;width:15px;height:15px;border-radius:50%;z-index:1;text-align:center;font-size:10px;font-width:500} .${e}-block-tooltip::after{right:-5px;margin-top:-5px;top:50%;} .${e}-stop-animation .${e}-image-block:nth-of-type(1){animation:unset!important;} .${e}-background-block-radius .${e}-image-block {border-radius:50%} @keyframes ${e}-gradient{0%{background-position: 0% 50%;}50%{background-position: 100% 50%;}100%{background-position: 0% 50%;}} @keyframes ${e}-colors{0%{background:#35c926}20%{background:#26c9b8}40%{background:#2682c9}60%{background:#b826c9}80%{background:#c92658}100%{background:#35c926}} @keyframes ${e}-text-swap-animate{0%{opacity:0;transform:translateY(-100%);}7%{opacity:1;transform:translateY(0%);}43%{opacity:1;transform:translateY(0%);}50%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(-100%);}} @keyframes ${e}-animate1{0%{background-position:100% 0%} 50%{background-position:0% 100%} 100%{background-position:100% 0%}} .${e}-bounce-down{animation:${e}-bounce-down 8s infinite both;animation-delay:7s;} .${e}-bounce-up{animation:${e}-bounce-up 8s infinite;animation-delay:7s;} .${e}-flash{animation:${e}-flash 8s infinite both;animation-delay:7s;} .${e}-pulse{animation:${e}-pulse 8s infinite both;animation-delay:7s;} .${e}-back-in-left{animation:1s ${e}-backInLeft;animation-fill-mode:both;} .${e}-back-in-up{animation:1s ${e}-backInUp;animation-fill-mode:both;} .${e}-back-in-down{animation:1s ${e}-backInDown;animation-fill-mode:both;} .${e}-back-in-right{animation:1s ${e}-backInRight;animation-fill-mode:both;} .${e}-background-wrap {position:relative;width:50px;height:50px;position:relative;} .${e}-border-circle{height:100%;width:100%;position:absolute;border-radius:100%;} .${e}-border-circle:nth-of-type(1){ ${yt("#ffff00","#ff0000",0)} } .${e}-border-circle:nth-of-type(2){ ${yt("#87ceeb","#ff69b4",0)} } .${e}-border-circle:nth-of-type(3){ ${yt("#e14847","#b53bb4",0)} } .${e}-title-dark14{color:#000000;font-size:14px;line-height:14px;} ${si(e,t)} ${Rt(e,"down",!1)} ${Rt(e,"up",!0)} ${ni(e)} ${ii(e)} @keyframes ${e}-backInLeft{ 0%{opacity:0;transform:translateY(-1200px)} 5% {opacity:.7;transform:translateX(-1200px) scale(.7)} 80% {opacity:.7;transform:translateX(0) scale(.7)} to {opacity:1;transform:scale(1)} } @keyframes ${e}-backInUp{ 0%{opacity:0;transform:translateY(1200px)} 5% {opacity:.7;transform:translateY(1200px) scale(.7)} 80% {opacity:.7;transform:translateY(0) scale(.7)} to {opacity:1;transform:scale(1)} } @keyframes ${e}-backInDown{ 0%{opacity:0;transform:translateY(-1200px)} 5% {opacity:.7;transform:translateY(-1200px) scale(.7)} 80% {opacity:.7;transform:translateY(0) scale(.7)} to {opacity:1;transform:scale(1)} } @keyframes ${e}-backInRight{ 0%{opacity:0;transform:translateX(1200px)} 5% {opacity:.7;transform:translateX(1200px) scale(.7)} 80% {opacity:.7;transform:translateX(0) scale(.7)} to {opacity:1;transform:scale(1)} } .${u} .${Z} {display: inline-flex; width:50px;margin-top:2px;height:26px; align-items:center;justify-content:center; ${n}${i}border-radius:6px;cursor:pointer;transition: all 1s ease-in;} .${u} .${Z} svg { transition:all .2s ease-in; width:1em;height:1em;fill:${t.titleColor}; transform:rotate(0);margin-left:15px; } .${u} .${Z} .${e}-pip { width:8px;height:8px;border-radius:50%;background-color:#7cfc00; margin-left:8px;position:relative;opacity:0;animation:none; transition:all .1s ease-out; } .sticker_wrapper.stage-hide .${D}{ height:0;transition:all .1s ease-out;padding:0;border:none;margin:0; } .sticker_wrapper.stage-hide-force .${u}{ animation:none!important; } .sticker_wrapper.stage-hide .${u} .${Z} svg { transform:rotate(-180deg);margin-left:0; } .sticker_wrapper.stage-hide .${u} .${Z} .${e}-pip { opacity:1;animation:combined-pin 2s linear infinite; animation-delay:5s;transition:all 2.5s ease-in; } `}function oi(e,t,i){let n=[];i--;for(let s=0;s<=i;s++){let a=[],o=e.length;for(let l=0;l=2}canImage(){let t=this.data.image;return Array.isArray(t)&&!!t.length}get imageBorder(){if(!S(this.data.imageBorderEnable))return"";let t=this.prefix,i=parseInt(this.data.imageBorder,10),n=`
`;return i===4?n.repeat(2):i===5?n.repeat(3):""}get image(){if(!this.canImage())return"";let t=this.data.image;t=t.reverse();let i=[];for(let n=0,s=t.length;n`}canIconSocial(){return S(this.data.iconEnable)}canAudio(){return S(this.data.textAudioEnable)}get iconSocial(){return this.canIconSocial()&&this.data.iconBlob||""}canIconButton(){return S(this.data.buttonIconEnable)}get iconButton(){if(this.canIconButton()){let t=this.data.buttonIconBlob;if(t){let i=Pt(t);return i.style.fill=this.data.buttonColorTitle,i.outerHTML}}return""}canTitle(){return!!this.title}get title(){return V(this.data.title)}canTitle2(){return S(this.data.title2Enable)&&!!this.title2}get title2(){return V(this.data.title2)}canButton(){return S(this.data.buttonEnable)}get button(){return V(this.data.buttonTitle)}canAddon(){return S(this.data.addonEnable)}get addon(){if(!this.canAddon())return"";let t=this.data,i=t.country||"RU",n=new Date().toTimeString(),s=/([\d]+:[\d]+):/.exec(n)[1];switch(parseInt(t.addonType)){case 1:return s;case 2:return i;case 3:return`${i} ${s}`}return""}canCloseTop(){let{position:t}=this.data;return!!(t&&t.indexOf("bottom")!==-1)}implementError(){throw Error(`implement make method "${method}" create`)}validate(){this.implementError("validate")}templateHtml(){this.implementError("templateHtml")}closeHtml(){return`
${this.getCloseControl()} ${this.getArrowControl()} ${this.getAdIcon()}
`}getCloseType(){return this.data.closeControl||""}getClosePosition(){return this.data.closePosition||"left"}getCloseControl(){const t=`sticker_close-${this.getClosePosition()}`;return this.getCloseType()===""?`
${je}
`:""}getArrowControl(){let t=this.prefix;return this.getCloseType()==="arrow"?`
${Fe}
`:""}getBounceClass(){let t=this.prefix,i=this.data;if(i.blockAnimate){let n=i.idleAnimate||"bounce";if(n==="flash")return t+"-flash";if(n==="pulse")return t+"-pulse";let s=t+"-bounce-";if(i.position.indexOf("bottom")!==-1)return s+"down";if(i.position.indexOf("top")!==-1)return s+"up"}return""}getBlockClass(){let t=this.prefix;return this.templateId===9?t+"-block-spec":t+"-block"}getBlockInlineStyle(){return""}compileHtml(){let t=this.canCloseTop(),i=this.templateHtml(),n=this.closeHtml();if(this.validation&&!this.validate())return null;let s=this.getBounceClass(),a=this.getBlockClass();return`
${t?n:""}
${this.templateBefore.join("")} ${i} ${this.templateAfter.join("")}
${t?"":n}
`}compileStyle(){return this.styles.join("")}canLogo(){let t=this.data;return!!(t.logo===void 0||t.logo)}getAdIcon(){return this.canLogo(),""}}class ri extends k{validate(){return!!(this.canImage()&&this.canTitle()&&this.canTitle2()&&this.canButton())}templateHtml(){let t=this.prefix;return`
${this.iconSocial} ${this.title2}
${this.addon}
${this.image}
${this.title}
${this.iconButton} ${this.button}
`}}let li=class extends k{validate(){return!!(this.canImage()&&this.canTitle()&&this.canTitle2()&&this.canIconSocial())}templateHtml(){let t=this.prefix;return`
${this.iconSocial} ${this.title2}
${this.image}
${this.title}
`}};class ci extends k{validate(){return!!(this.canImage()&&this.canTitle())}templateHtml(){let t=this.prefix;return`
${this.image}
${this.addon} ${this.title}
`}}class di extends k{validate(){return!!(this.canImage()&&this.canTitle()&&this.canButton())}templateHtml(){let t=this.prefix;return`
${this.title}
${this.button}
${this.image}
${this.addon}
`}}class hi extends k{validate(){return!!(this.canImage()&&this.canIconSocial()&&this.canTitle()&&this.canButton())}templateHtml(){let t=this.prefix;return`
${this.image}
${this.iconSocial} ${this.addon}
${this.title}
${this.button} ${this.iconButton}
`}}class ui extends k{validate(){return!!(this.canImage()&&this.canIconSocial()&&this.canTitle()&&this.canTitle2()&&this.canButton())}templateHtml(){let t=this.prefix,{titleColor:i}=this.data;return`
${this.iconSocial} ${this.title2}
${this.addon}
${this.title}
${this.button}
`}}class pi extends k{validate(){return!!(this.canImage()&&this.canButton())}templateHtml(){let t=this.prefix;return`
${this.image}
${this.iconSocial}
${this.button}${this.iconButton}
`}}class mi extends k{validate(){return!!(this.canImage()&&this.canIconSocial()&&this.canTitle2()&&this.canTitle()&&this.canButton())}templateHtml(){let t=this.prefix;return`
${this.image}
${this.iconSocial} ${this.addon}
${this.title} ${this.title2}
${this.button} ${this.iconButton}
`}}class gi extends k{validate(){return!!(this.canImage()&&this.canTitle2()&&this.canTitle())}templateHtml(){let t=this.prefix,i=this.getBounceClass();return`
${this.templateBefore.join("")}
${this.title2}
${this.title}
${this.templateAfter.join("")}
1
${this.image}
`}compileHtml(){let t=this.prefix,i=this.data,n=this.canCloseTop(),s=this.templateHtml(),a=this.closeHtml();if(this.validation&&!this.validate())return null;a=`
${a}
`;let o=i.blockAnimate?`${t}-close-right`:`${t}-close-left`,l=this.getBlockClass();return`
${n?a:""}
${s}
${n?"":a}
`}}class fi extends k{init(){super.init();let t=this.prefix;this.styles.push(` .${t}-button.${t}-button-dark {border:transparent;background:transparent;text-transform:uppercase;color:#000} .${t}-button-dark svg{fill:#000!important;} `)}validate(){return!!(this.canImage()&&this.canTitle2()&&this.canTitle()&&this.canButton()&&this.canAddon())}templateHtml(){let t=this.prefix;return`
${this.imageBorder}
${this.image}
${this.title2} ${this.title}
${this.addon}
${this.iconButton} ${this.button}
`}compileHtml(){let t=this.prefix;this.data;let i=this.canCloseTop(),n=this.templateHtml(),s=this.closeHtml();if(this.validation&&!this.validate())return null;let a=this.getBounceClass(),o=this.getBlockClass();return`
${i?s:""}
${n}
${i?"":s}
`}}const bi=(e,t,i,n,s,a)=>{e.beginPath(),i=s?i:-i,e.moveTo(t,0),e.lineTo(t,i),a&&e.arc(t+n/2,i,n/2,Math.PI,0,s),e.lineTo(t+n,0),e.stroke()},$i=(e,t,i,n,s)=>{e.beginPath(),i=s?i:-i,e.moveTo(t,0),e.lineTo(t,i),e.moveTo(t+n,i),e.lineTo(t+n,0),e.stroke()};function zt(e,t,i,n,s){let a=5;e.translate(0,t/2-a),e.lineWidth=1,e.strokeStyle=n;for(let o=0,l=i.length;o=t/2)&&(p=0),bi(e,c,p,3,(o+1)%2,s)}}function vi(e,t,i,n,s){for(let a=0,o=i.length;a=t/2)&&(c=0),$i(e,r,c,3,(a+1)%2)}}function Ht(e,t,i,n,s){let a=document.createElement("canvas");a.width=e,a.height=t;let o=a.getContext("2d");if(i===1){let l=o.createLinearGradient(0,120,0,0);l.addColorStop(.5,"#ccc"),l.addColorStop(1,s),vi(o,t,n,s)}return i===2&&zt(o,t,n,s,!0),i===3&&zt(o,t,n,s,!1),i===4&&yi(o,t,n,s),a.toDataURL()}function jt(e,t,i){return Math.max(Math.min(e,i),t)}const wi=e=>Math.trunc(e/60/60%60,10),ki=e=>Math.trunc(e/60%60,10),xi=e=>Math.trunc(e%60,10),Ft=e=>`0${e}`.slice(-2);function Wt(e=0,t=!1,i=!1){if(typeof e!="number")return Wt(null,t,i);let n=wi(e);const s=ki(e),a=xi(e);return t||n>0?n=`${n}:`:n="",`${i&&e>0?"-":""}${n}${Ft(s)}:${Ft(a)}`}const X=navigator.userAgent,Si=!!document.documentMode,Ci=X.includes("Edge"),Ti="WebkitAppearance"in document.documentElement.style&&!/Edge/.test(X),Vt=/iP(hone|od)/gi,Ut=/iP(hone|od|ad)/gi,Ii=Vt.test(X)||!!navigator.platform&&Vt.test(navigator.platform),qt=Ut.test(X)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1&&!window.MSStream||!!navigator.platform&&Ut.test(navigator.platform),Kt=/android/i.test(X),_i=/safari/i.test(X),A={isIE:Si,isEdge:Ci,isWebkit:Ti,isIPhone:Ii,isIos:qt,isAndroid:Kt,isMobile:qt||Kt,isSafari:_i};let F=Object.getPrototypeOf,nt,st,B,U,Gt={isConnected:1},Ai=1e3,ct,Yt={},Bi=F(Gt),Xt=F(F),q,Jt=(e,t,i,n)=>(e??(setTimeout(i,n),new Set)).add(t),Qt=(e,t,i)=>{let n=B;B=t;try{return e(i)}catch(s){return console.error(s),i}finally{B=n}},dt=e=>e.filter(t=>{var i;return(i=t._dom)==null?void 0:i.isConnected}),Zt=e=>ct=Jt(ct,e,()=>{for(let t of ct)t._bindings=dt(t._bindings),t._listeners=dt(t._listeners);ct=q},Ai),ht={get val(){var e;return(e=B==null?void 0:B._getters)==null||e.add(this),this.rawVal},get oldVal(){var e;return(e=B==null?void 0:B._getters)==null||e.add(this),this._oldVal},set val(e){var t;(t=B==null?void 0:B._setters)==null||t.add(this),e!==this.rawVal&&(this.rawVal=e,this._bindings.length+this._listeners.length?(st==null||st.add(this),nt=Jt(nt,this,Pi)):this._oldVal=e)}},Ei=e=>({__proto__:ht,rawVal:e,_oldVal:e,_bindings:[],_listeners:[]}),ut=(e,t)=>{let i={_getters:new Set,_setters:new Set},n={f:e},s=U;U=[];let a=Qt(e,i,t);a=(a??document).nodeType?a:new Text(a);for(let o of i._getters)i._setters.has(o)||(Zt(o),o._bindings.push(n));for(let o of U)o._dom=a;return U=s,n._dom=a},te=(e,t=Ei(),i)=>{let n={_getters:new Set,_setters:new Set},s={f:e,s:t};s._dom=i??(U==null?void 0:U.push(s))??Gt,t.val=Qt(e,n,t.rawVal);for(let a of n._getters)n._setters.has(a)||(Zt(a),a._listeners.push(s));return t},M=(e,...t)=>{for(let i of t.flat(1/0)){let n=F(i??0),s=n===ht?ut(()=>i.val):n===Xt?ut(i):i;s!=q&&e.append(s)}return e},ee=(e,t,...i)=>{var o;let[n,...s]=F(i[0]??0)===Bi?i:[{},...i],a=e?document.createElementNS(e,t):document.createElement(t);for(let[l,r]of Object.entries(n)){let c=$=>$?Object.getOwnPropertyDescriptor($,l)??c(F($)):q,p=t+","+l,b=Yt[p]??(Yt[p]=((o=c(F(a)))==null?void 0:o.set)??0),g=l.startsWith("on")?($,v)=>{let N=l.slice(2);a.removeEventListener(N,v),a.addEventListener(N,$)}:b?b.bind(a):a.setAttribute.bind(a,l),x=F(r??0);l.startsWith("on")||x===Xt&&(r=te(r),x=ht),x===ht?ut(()=>(g(r.val,r._oldVal),a)):g(r)}return M(a,...s)},ie=e=>({get:(t,i)=>ee.bind(q,e,i)}),wt=new Proxy(e=>new Proxy(ee,ie(e)),ie()),Oi=(e,t)=>t?t!==e&&e.replaceWith(t):e.remove(),Pi=()=>{let e=0,t=[...nt].filter(n=>n.rawVal!==n._oldVal);do{st=new Set;for(let n of new Set(t.flatMap(s=>s._listeners=dt(s._listeners))))te(n.f,n.s,n._dom),n._dom=q}while(++e<100&&(t=[...st]).length);let i=[...nt].filter(n=>n.rawVal!==n._oldVal);nt=q;for(let n of new Set(i.flatMap(s=>s._bindings=dt(s._bindings))))Oi(n._dom,ut(n.f,n._dom)),n._dom=q;for(let n of i)n._oldVal=n.rawVal},Li=["left","right","top","bottom","borderRadius","width","height","fontSize","maxHeight"],Di=(e,t=null)=>{if(t===null)return e.attributes;t&&Object.entries(t).filter(([,i])=>!(i===null||typeof i>"u")).forEach(([i,n])=>e.setAttribute(i,n))},R=(e,t=null)=>{if(t===null)return e.style;Object.entries(t).filter(([,i])=>i!==void 0).forEach(([i,n])=>{if(n!==null&&Li.indexOf(i)!==-1&&isFinite(n)){e.style[i]=n+"px";return}e.style[i]=n})};function Mi(e,t){var i=e.length;if(t>=i||t===0)return e;var n=[],s=0,a=(i-2)/(t-2),o=0,l,r,c,p;n[s++]=e[o];for(var b=0;br&&(r=c,l=e[P],p=P);n[s++]=l,o=p}return n[s++]=e[i-1],n}class Ni extends k{init(){super.init();let t=this.data.textAudioWaveProgressColor,i=this.prefix,n=` .${H} .${i}-wavefrom{position:relative;float:left;min-width:180px;margin-left:5px;} .${H} .${i}-wavefrom-progress{transition:width .34s;} .${H} .${i}-wavefrom-time{font-size:13px;position:absolute;bottom:40px;left:10px;color:${t};} .${H} .${i}-btn-play{position:relative;border-radius:50%;border:1px solid ${t};margin-top:6px;float:left;display:block;width:38px;height:38px;} .${H} .${i}-btn-play svg{display:none;position: absolute;top:11px;left:11px;fill:${t};width:16px;height:16px;} .${H} .${i}-btn-play[data-role="play"] svg[data-icon="play"]{display:inline-block;transform:translate(-.5px,-.5px);} .${H} .${i}-btn-play[data-role="pause"] svg[data-icon="pause"]{display:inline-block;transform:translate(-1px,-.5px);} .${i}-block-url{position:absolute;width:100%;height:100%;background:rgba(255,255,255,.1);display:none;left:0;top:0;z-index:12;} .${i}-block-body{z-index:13!important;} `;this.styles.push(n)}validate(){return!!(this.canAudio()&&this.canImage()&&this.canTitle()&&this.canButton())}__getTitle(){let t=this.prefix;return`
${this.iconSocial} ${this.title2} ${this.addon}
`}__getBlockUrl(){return`
`}__getLine(){return'
'}updateProgress(t=0){let i=this.getWaveProgress();R(i,{width:t+"%"})}getTimer(){return this.container.querySelector(`.${this.prefix}-wavefrom-time`)}getAudio(){return this.container.querySelector("audio")}getPlayControl(){return this.container.querySelector(`.${this.prefix}-btn-play`)}getWaveWrapProgress(){return this.container.querySelector(`.${this.prefix}-wavefrom`)}getWaveProgress(){return this.container.querySelector(`.${this.prefix}-wavefrom-progress`)}updateWavefrom(){let t=this.data,i=t.textAudioWaveFrom;i=i.split(",");let n=parseInt(t.textAudioWaveType,10),s=t.textAudioWaveBgColor,a=t.textAudioWaveProgressColor,o=this.container.clientWidth-128,l=60;i=Mi(i,o);let r=Ht(i.length,l,n,i,s),c=Ht(i.length,l,n,i,a),p=this.getWaveWrapProgress(),b=this.getWaveProgress();p&&R(p,{width:o,height:l,backgroundImage:`url('${r}')`}),b&&R(b,{height:l,width:"0%",backgroundImage:`url('${c}')`})}__getPlayer(){let t=this.prefix;return`
0:00
`}templateHtml(){let t=this.prefix;return` ${this.__getTitle()} ${this.__getLine()} ${this.__getBlockUrl()}
${this.__getPlayer()}
${this.imageBorder}
${this.image}
${this.button} ${this.iconButton}
`}onTogglePlay(t){t.stopPropagation();let i=this.getAudio();i.paused?i.play():i.pause()}onTimeupdate(t){let i=this.getAudio(),n=this.getWaveProgress(),s=i.currentTime,a=i.duration,o=jt(s/a*100,0,100);R(n,{width:o+"%"}),this.getTimer().innerHTML=Wt(s)}setAudioDataRole(t){Di(this.getPlayControl(),{"data-role":t})}onPlay(t){this.setAudioDataRole("pause")}onPause(t){this.setAudioDataRole("play")}bindEvents(){bt.call(this);let t=this.getAudio();_.call(this,t,"timeupdate",this.onTimeupdate.bind(this)),_.call(this,t,"playing play",this.onPlay.bind(this)),_.call(this,t,"pause",this.onPause.bind(this)),_.call(this,this.getPlayControl(),"click tab",this.onTogglePlay.bind(this))}initAudio(){let t=this.data,i=t.textAudioBlob?t.textAudioBlob:t.textAudioUrl;i&&(this.getAudio().src=i)}update(t){t==="init"&&(this.initAudio(),this.bindEvents()),(t==="resize"||t==="init")&&this.updateWavefrom()}showBlockUrl(t){if(!A.isIos)return!0;let i=this.container.querySelector(`.${this.prefix}-block-url`);i.style.display="block"}compileHtml(){let t=this.prefix,i=this.canCloseTop(),n=this.templateHtml(),s=this.closeHtml();if(this.validation&&!this.validate())return null;let a=this.getBounceClass(),o=this.getBlockClass();return`
${i?s:""}
${n}
${i?"":s}
`}}class Ri extends k{init(){super.init();let t=this.prefix,i="";S(this.data.bgEnable)||(i=` .${t}-block{border:none!important;background:none!important;padding:0!important;} .${t}-block.sticker_block{border:none!important;background:none!important;padding:0!important;}`);let n=` .${t}-block .sticker_block__body{flex-direction:row;justify-content:center;} .${t}-block{border-radius:0!important;} .${t}-block.sticker_block{border-radius:0!important;} ${i} .sticker_container .${t}-background-block{border-radius:0;} .${t}-image-block{background-repeat:no-repeat;background-size:contain;background-position:top} .sticker_container .${t}-background-block{width:100%;height:auto;} `;this.styles.push(n)}getDeviceOrientation(){return window.screen.orientation?window.screen.orientation.type.includes("landscape")?"landscape":"portrait":Math.abs(+window.orientation)===90?"landscape":"portrait"}update(t){super.update(t);let i=this.getImageSize(),n=33.2;if(Array.isArray(i)&&i[0]&&i[0].indexOf("x")!==-1){let l=i[0].split("x");n=parseFloat(l[1])/parseFloat(l[0])*100,n>=56&&(n=43.2),l[1]}let s=this.container.querySelector(`.${this.prefix}-background-block`),a=this.container.querySelector(`.${this.prefix}-block.sticker_block`);if(R(s,{paddingBottom:n+"%"}),A.isMobile){let o=this.getDeviceOrientation(),l=window.innerHeight;o==="landscape"&&(l=window.innerWidth);let r=l/100*30;R(a,{maxHeight:r})}}validate(){return!!this.canImage()}templateHtml(){let t=this.prefix;return`
${this.image}
`}}class zi extends k{init(){super.init();let i=` .${this.prefix}-block-tmpl13 { border-radius: 60px 10px 10px 60px; box-shadow: rgba(0,0,0,.25) 0 7px 15px } `;this.styles.push(i)}validate(){return!!(this.canImage()&&this.canButton()&&this.canTitle2()&&this.canTitle())}templateHtml(){let t=this.prefix,i="",n="",s="padding:15px;";return this.title.length>=55&&(n="line-height:12px;",i="font-size:12px;",s="padding:12px;"),`
${this.templateBefore.join("")}
${this.imageBorder}
${this.image}
${this.title2}
${this.title}
${this.button} ×
${this.templateAfter.join("")}
`}compileHtml(){let t=this.prefix,i=this.templateHtml();if(this.validation&&!this.validate())return null;let n=this.getBounceClass(),s=this.getBlockClass();return`
${i}
`}}const K=e=>e?"isTrusted"in e&&e.isTrusted&&!A.isSafari&&A.isIE?!0:e.screenX!=0&&e.screenY!=0:!1;class Hi extends k{init(){super.init();let t=this.prefix,i=` .${t}-sound { position:absolute;right:0;top:5px;width:30px;height:30px;z-index:5; background:transparent; } .${t}-sound svg { width:25px; height:25px; position:absolute; fill:#fff; } .${t}-background-media { position:relative; max-height:138px; height:200px; width:100%; } .${t}-background-media video { width:100%; height:100%; object-fit:cover; } `;this.styles.push(i)}validate(){return!!this.canMedia()}canMedia(){return this.data.mediaUrl}templateHtml(){let t=this.prefix;return`
${this.mute} ${this.media}
`}getBlockInlineStyle(){return"padding:0;background:none;border:none;border-radius:0"}update(t){if(t!=="init")return;let i=this.prefix,n=this.container.querySelector(`.${i}-sound`);n&&_.call(this,n,"click tab",this.onClickSound.bind(this))}onClickSound(t){if(t.stopPropagation(),!K(t))return!1;let i=this.container,n=this.prefix,s=i.querySelector("video"),a=i.querySelector(`.${n}-muted`),o=i.querySelector(`.${n}-unmuted`);if(s.volume=.7,s.muted=!s.muted,s.muted){a.style.display="none",o.style.display="block";return}a.style.display="block",o.style.display="none"}get media(){return`