PageSourceSearch

https://cu.ru/chunk-S46CXRAL.js

js cu.ru collected 2026-09-28 07:19:46 UTC 161,083 bytes, 4 lines download raw bytes

1import{a as Fn,b as Co}from"./chunk-BOGF7ZEC.js";import{$ as pn,A as Ee,B as U,C as xo,D as No,E as qn,F as Xn,G as Jn,H as Vr,I as Hr,J as Lo,K as Uo,L as jo,M as Zn,N as Qn,O as er,P as tr,Q as nr,R as rr,S as ir,T as or,X as fn,Y as ar,Z as sr,_ as cr,a as Ur,b as Yn,c as jr,d as Fr,e as zr,f as $r,g as ko,h as Oo,i as Ao,j as Ro,k as Io,l as Wn,m as Gn,o as cn,p as Mo,q as ln,r as un,s as Do,t as ze,u as mt,v as ht,w as Br,y as Kn,z as dn}from"./chunk-4SIN3FA4.js";import{a as _o}from"./chunk-OWZXQCLI.js";import{b as Po}from"./chunk-YVLQBA3A.js";import{a as bo,b as Eo,d as wo,f as So,g as Vn}from"./chunk-AHVHXV5M.js";import{a as Bn}from"./chunk-IYIXZA2E.js";import"./chunk-T477LZZP.js";import"./chunk-DRWPPLEW.js";import{i as To,j as Hn}from"./chunk-XU64XJMN.js";import"./chunk-AI4FSCDC.js";import{a as po}from"./chunk-ADFFF2ZA.js";import"./chunk-STAFUBEC.js";import{b as go}from"./chunk-DMY3H4IB.js";import"./chunk-76W42G5L.js";import"./chunk-G6A6YPFG.js";import{a as yo}from"./chunk-SWXH6PE4.js";import"./chunk-FDJDGCBD.js";import"./chunk-PW3BSOMC.js";import{c as co}from"./chunk-F5OCHRC5.js";import"./chunk-EDO74B7O.js";import"./chunk-BMMKHR2B.js";import"./chunk-SUKSKTBG.js";import"./chunk-GI2MEETV.js";import"./chunk-YJACMEVJ.js";import"./chunk-EZAWR2KN.js";import{a as uo,b as fo,c as mo}from"./chunk-OAEDTLGA.js";import{h as ao}from"./chunk-XBINRJTF.js";import"./chunk-F2I26AL6.js";import"./chunk-CG7OMNUZ.js";import{a as $n}from"./chunk-QM2QG644.js";import"./chunk-MVSTJOUV.js";import"./chunk-VN3FQGF2.js";import"./chunk-GREP6RXZ.js";import{N as lo}from"./chunk-FDXXEPOG.js";import{a as ho}from"./chunk-OURVSIMG.js";import"./chunk-SMR6U7SE.js";import{a as vo}from"./chunk-HGQXL2MS.js";import{a as zn}from"./chunk-M73RLUUB.js";import{a as so,d as sn}from"./chunk-UVSZBC4Q.js";import"./chunk-GLYOPDGR.js";import{i as jn}from"./chunk-6XDZRRGZ.js";import"./chunk-2V7R246S.js";import{$c as Vt,Ab as xn,Bc as ee,Fa as Ft,Fd as oo,Ga as Ji,Gb as Ce,Ib as eo,Kc as io,Ma as Dn,Mc as Nn,Oa as Tt,P as Gi,Pc as be,Qc as qe,Rc as $t,Va as zt,Vb as to,Wc as Ln,Xc as Un,Yc as Bt,cc as Te,dc as Pe,ed as ft,f as Wi,fa as Ki,fc as Ke,gc as Ie,gd as pt,hc as Me,ic as me,jc as B,kc as F,lc as G,mb as an,nb as Zi,oa as jt,ob as Qi,od as De,r as Mn,ra as on,sb as L,ta as x,td as te,ua as qi,vc as no,za as Xi,zc as ro}from"./chunk-RUH5ZQFX.js";import{a as In,b as Yi,f as Lr}from"./chunk-ZGVHDELW.js";function Os(e,t){if(e&1&&(B(0,"span",5),be(1),F()),e&2){let n=t.$implicit;L(),qe(n)}}function As(e,t){if(e&1&&(B(0,"a",1)(1,"div",0)(2,"div",2)(3,"span",3),be(4),ft(5,"date"),F(),B(6,"div",4),Ie(7,Os,2,1,"span",5,Ke),F()(),B(9,"div",6)(10,"div",7),G(11,"cu-site-kit-deffered-image-ui",8),F()(),B(12,"div",9)(13,"h3",10),be(14),F(),B(15,"p",11),be(16),F()()()()),e&2){let n=ee(2);me("href",n.newsLink(),Qi),L(4),qe(pt(5,6,n.startDate(),"dd.MM.yyyy")),L(3),Me(n.tags()),L(4),me("src",n.previewImageUrl()||"https://static.centraluniversity.ru/app/site/assets/features/news/empty-preview-image.png")("alt",n.title()),L(3),qe(n.title()),L(2),$t(" ",n.summary()," ")}}function Rs(e,t){if(e&1&&(B(0,"span",5),be(1),F()),e&2){let n=t.$implicit;L(),qe(n)}}function Is(e,t){if(e&1&&(B(0,"div",0)(1,"div",2)(2,"span",3),be(3),ft(4,"date"),F(),B(5,"div",4),Ie(6,Rs,2,1,"span",5,Ke),F()(),B(8,"div",6)(9,"div",7),G(10,"cu-site-kit-deffered-image-ui",8),F()(),B(11,"div",9)(12,"h3",10),be(13),F(),B(14,"p",11),be(15),F()()()),e&2){let n=ee(2);L(3),qe(pt(4,5,n.startDate(),"dd.MM.yyyy")),L(3),Me(n.tags()),L(4),me("src",n.previewImageUrl()||"https://static.centraluniversity.ru/app/site/assets/features/news/empty-preview-image.png")("alt",n.title()),L(3),qe(n.title()),L(2),$t(" ",n.summary()," ")}}function Ms(e,t){if(e&1&&Te(0,As,17,9,"a",1)(1,Is,16,8,"div",0),e&2){let n=ee();Pe(n.hasValidLink()?0:1)}}function Ds(e,t){e&1&&(B(0,"div",0)(1,"div",2),G(2,"cu-site-kit-skeleton-ui",12)(3,"cu-site-kit-skeleton-ui",13),F(),B(4,"div",14),G(5,"cu-site-kit-skeleton-ui",15),F(),B(6,"div",9),G(7,"cu-site-kit-skeleton-ui",16)(8,"cu-site-kit-skeleton-ui",17)(9,"cu-site-kit-skeleton-ui",18),F()())}var Fo=(()=>{class e{constructor(){this.title=te(""),this.summary=te(""),this.startDate=te(""),this.tags=te(null),this.previewImageUrl=te(null),this.newsLink=te(null),this.hasValidLink=De(()=>{let n=this.newsLink();return n&&n.trim().length>0}),this.isReady=De(()=>!!this.title()&&!!this.summary()&&!!this.startDate())}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["cu-site-news-preview-item-feature"]],inputs:{title:[1,"title"],summary:[1,"summary"],startDate:[1,"startDate"],tags:[1,"tags"],previewImageUrl:[1,"previewImageUrl"],newsLink:[1,"newsLink"]}
1,decls:2,vars:1,consts:[[1,"item-news"],["rel","noopener noreferrer",3,"href"],[1,"item-news__status"],[1,"font-body-m-400"],[1,"item-news__tags"],[1,"item-news__tag","font-body-m-400"],[1,"item-news__image-wrapper"],[1,"image-mask"],["innerImgClass","object-cover overflow-hidden size-full rounded-md",1,"preview",3,"src","alt"],[1,"item-news__content"],[1,"font-h-s","item-news__title","d:font-h-s"],[1,"d:font-body-m-400","font-body-m-400","item-news__short-title","cu-site-color-grey-300"],[1,"w-80","h-[1.125rem]"],[1,"w-160","h-[1.125rem]"],[1,"item-news__image_skeleton"],[1,"h-[13.188rem]"],[1,"w-320","h-[3.75rem]"],[1,"w-320","h-[1.125rem]"],[1,"w-240","h-[1.125rem]"]],template:function(r,i){r&1&&Te(0,Ms,2,1)(1,Ds,10,0,"div",0),r&2&&Pe(i.isReady()?0:1)},dependencies:[go,$n,jn],styles:['.item-news[_ngcontent-%COMP%]{display:flex;box-sizing:border-box;flex-direction:column;align-items:flex-start;padding:1.5rem 0 0;gap:1.5rem;border-top:1px solid var(--cu-site-border-normal);color:#fff;height:100%}.item-news__status[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;gap:.5rem;height:2.75rem}.item-news__tags[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-news__tag[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;align-items:center;flex-shrink:0}.item-news__tag[_ngcontent-%COMP%]:not(:first-child):before{content:"\\2022";display:inline-block;margin:.375rem;color:#fff;font-size:1rem;line-height:1}.item-news__date[_ngcontent-%COMP%]{font-weight:400;line-height:1.125rem;font-style:normal}.item-news__image-wrapper[_ngcontent-%COMP%]{position:relative;max-height:13.188rem;overflow:hidden;border-radius:.375rem}a[_ngcontent-%COMP%]:hover   .preview[_ngcontent-%COMP%]{transform:scale(1.1)}.preview[_ngcontent-%COMP%]{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.6,0,.4,1)}@media screen and (min-width:64em){.preview[_ngcontent-%COMP%]{width:22.125rem;height:13.188rem}}.item-news__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.item-news__short-title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.125rem}.item-news__image_skeleton[_ngcontent-%COMP%]{width:100%}'],changeDetection:0})}}return e})();var zo=(e,t)=>t.id;function xs(e,t){if(e&1&&(G(0,"cu-site-news-preview-item-feature",5),ft(1,"mapTags")),e&2){let n=t.$implicit,r=ee(3);me("title",n.title)("summary",n.summary)("startDate",n.startDate)("tags",pt(1,6,n,r.tags()))("previewImageUrl",(n.previewImageDetails==null?null:n.previewImageDetails.url)||null)("newsLink",n.link.label||null)}}function Ns(e,t){if(e&1&&(B(0,"cu-site-kit-swiper-wrapper-ui",3),Ie(1,xs,2,9,"cu-site-news-preview-item-feature",5,zo),F()),e&2){let n=ee(2),r=Bt(0);me("swiperOptions",n.swiperOptions),L(),Me(r)}}function Ls(e,t){if(e&1&&(G(0,"cu-site-news-preview-item-feature",6),ft(1,"mapTags")),e&2){let n=t.$implicit,r=ee(3);me("title",n.title)("summary",n.summary)("startDate",n.startDate)("tags",pt(1,6,n,r.tags()))("previewImageUrl",(n.previewImageDetails==null?null:n.previewImageDetails.url)||null)("newsLink",n.link.label||null)}}function Us(e,t){if(e&1&&(B(0,"div",4),Ie(1,Ls,2,9,"cu-site-news-preview-item-feature",6,zo),F()),e&2){ee(2);let n=Bt(0);L(),Me(n)}}function js(e,t){if(e&1&&Te(0,Ns,3,1,"cu-site-kit-swiper-wrapper-ui",3)(1,Us,3,0,"div",4),e&2){let n=ee();Pe(n.isMobile()?0:1)}}function Fs(e,t){e&1&&G(0,"cu-site-news-preview-item-feature",8)}function zs(e,t){if(e&1&&(B(0,"div",7),Ie(1,Fs,1,0,"cu-site-news-preview-item-feature",8,Ke),F()),e&2){let n=ee(2);L(),Me(n.skeletonModeItems())}}function $s(e,t){e&1&&G(0,"cu-site-news-preview-item-feature",9)}function Bs(e,t){if(e&1&&(B(0,"div",4),Ie(1,$s,1,0,"cu-site-news-preview-item-feature",9,Ke),F()),e&2){let n=ee(2);L(),Me(n.skeletonModeItems())}}function Vs(e,t){if(e&1&&Te(0,zs,3,0,"div",7)(1,Bs,3,0,"div",4),e&2){let n=ee();Pe(n.isMobile()?0:1)}}var $o=(()=>{class e{constructor(){this.#e=x(Bn),this.skeletonModeItems=De(()=>this.isMobile()?bo:Eo),this.isMobile=te(),this.news=te(),this.tags=De(()=>this.#e.newsTags().map(r=>({key:r.key,value:Vn[r.value].toUpperCase()??r.value.toUpperCase()}))),this.swiperOptions={spaceBetween:16,slidesPerView:1.115,centeredSlides:!1,slidesOffsetBefore:10,slidesOffsetAfter:10,breakpoints:{[fo.desktop]:{enabled:!1}}}}#e;static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["cu-site-news-recommended-feature"]],inputs:{isMobile:[1,"isMobile"],news:[1,"news"]},decls:6,vars:4,consts:[["headingEnter","cuSiteWithEnter"],["cuSiteWithEnter","","cuSiteUiPianoText","\u0421\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u0442\u0430\u043A\u0436\u0435","aria-label","\u0421\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u0442\u0430\u043A\u0436\u0435",1,"d:font-h-xl","font-display","mb-56","d:mr-20","d:ml-20","mr-10","ml-10"],[1,"recommended-items__animation"],[3,"swiperOptions"],[1,"recommended-news-items__desktop-content"],[1,"swiper-slide",3,"title","summary","startDate","tags","previewImageUrl","newsLink"],[1,"d:mr-20","d:ml-20","mr-10","ml-10",3,"title","summary","startDate","tags","previewImageUrl","newsLink"],[1,"recommended-news-items__mobile_items"],[1,"ml-24"],[1,"d:mr-20","d:ml-20","mr-10","ml-10"]],template:function(r,i){if(r&1&&(Ln(0),G(1,"h1",1,0),B(3,"div",2),Te(4,js,2,1)(5,Vs,2,1),F()),r&2){let o=io(2),a=Un(i.news());L(),Nn("piano-active",o.entered()),L(3),Pe(a?4:5)}},dependencies:[Fo,yo,ho,vo,So],styles:["@keyframes _ngcontent-%COMP%_slideUpAndFadeIn{0%{transform:translateY(1rem);opacity:0}
1to{transform:translateY(0);opacity:1}}@keyframes _ngcontent-%COMP%_scaleIn{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _ngcontent-%COMP%_growHorizontal{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes _ngcontent-%COMP%_slideUpAndFadeInPercent{0%{transform:translateY(150%);opacity:0}to{transform:translateY(0);opacity:1}}.recommended-news-items__desktop-content[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:32.75rem;padding-bottom:2.5rem}.recommended-news-items__mobile_items[_ngcontent-%COMP%]{margin-bottom:2.5rem;margin-left:1.5rem}.recommended-items__animation[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slideUpAndFadeIn .5s cubic-bezier(.6,0,.4,1) forwards;opacity:0;animation-delay:.6s}"],changeDetection:0})}}return e})();function Bo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hs(e){if(Array.isArray(e))return e}function Ys(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(c){f=!0,i=c}finally{try{if(!u&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return l}}function Ws(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gs(e,t){return Hs(e)||Ys(e,t)||Ks(e,t)||Ws()}function Ks(e,t){if(e){if(typeof e=="string")return Bo(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bo(e,t):void 0}}var na=Object.entries,Vo=Object.setPrototypeOf,qs=Object.isFrozen,Xs=Object.getPrototypeOf,Js=Object.getOwnPropertyDescriptor,ce=Object.freeze,le=Object.seal,Yt=Object.create,ra=typeof Reflect<"u"&&Reflect,Xr=ra.apply,Jr=ra.construct;ce||(ce=function(t){return t});le||(le=function(t){return t});Xr||(Xr=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return t.apply(n,i)});Jr||(Jr=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new t(...r)});var mn=ie(Array.prototype.forEach),Zs=ie(Array.prototype.lastIndexOf),Ho=ie(Array.prototype.pop),Ht=ie(Array.prototype.push),Qs=ie(Array.prototype.splice),gt=Array.isArray,gn=ie(String.prototype.toLowerCase),Yr=ie(String.prototype.toString),Yo=ie(String.prototype.match),hn=ie(String.prototype.replace),Wo=ie(String.prototype.indexOf),ec=ie(String.prototype.trim),tc=ie(Number.prototype.toString),nc=ie(Boolean.prototype.toString),Go=typeof BigInt>"u"?null:ie(BigInt.prototype.toString),Ko=typeof Symbol>"u"?null:ie(Symbol.prototype.toString),ae=ie(Object.prototype.hasOwnProperty),vn=ie(Object.prototype.toString),se=ie(RegExp.prototype.test),Pt=rc(TypeError);function ie(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Xr(e,t,r)}}function rc(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Jr(e,n)}}function z(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:gn;if(Vo&&Vo(e,null),!gt(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){let o=n(i);o!==i&&(qs(t)||(t[r]=o),i=o)}e[i]=!0}return e}function ic(e){for(let t=0;t<e.length;t++)ae(e,t)||(e[t]=null);return e}function we(e){let t=Yt(null);for(let r of na(e)){var n=Gs(r,2);let i=n[0],o=n[1];ae(e,i)&&(gt(o)?t[i]=ic(o):o&&typeof o=="object"&&o.constructor===Object?t[i]=we(o):t[i]=o)}return t}function oc(e){switch(typeof e){case"string":return e;case"number":return tc(e);case"boolean":return nc(e);case"bigint":return Go?Go(e):"0";case"symbol":return Ko?Ko(e):"Symbol()";case"undefined":return vn(e);case"function":case"object":{if(e===null)return vn(e);let t=e,n=Ze(t,"toString");if(typeof n=="function"){let r=n(t);return typeof r=="string"?r:vn(r)}return vn(e)}default:return vn(e)}}function Ze(e,t){for(;e!==null;){let r=Js(e,t);if(r){if(r.get)return ie(r.get);if(typeof r.value=="function")return ie(r.value)}e=Xs(e)}function n(){return null}return n}function ac(e){try{return se(e,""),!0}catch{return!1}}var qo=ce(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Wr=ce(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Gr=ce(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sc=ce(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Kr=ce(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),cc=ce(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Xo=ce(["#text"]),Jo=ce(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),qr=ce(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zo=ce(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),lr=ce(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),lc=le(/{{[\w\W]*|^[\w\W]*}}/g),uc=le(/<%[\w\W]*|^[\w\W]*%>/g),dc=le(/\${[\w\W]*/g),fc=le(/^data-[\-\w.\u00B7-\uFFFF]+$/),pc=le(
vendor: 17,864 bytes, lines 2-3
2/^aria-[\-\w]+$/),Qo=le(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mc=le(/^(?:\w+script|data):/i),hc=le(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vc=le(/^html$/i),gc=le(/^[a-z][.\w]*(-[.\w]+)+$/i),ea=le(/<[/\w!]/g),yc=le(/<[/\w]/g),_c=le(/<\/no(script|embed|frames)/i),bc=le(/\/>/i),Je={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ec=function(){return typeof window>"u"?null:window},wc=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null,i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));let o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},ta=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},vt=function(t,n,r,i){return ae(t,n)&&gt(t[n])?z(i.base?we(i.base):{},t[n],i.transform):r};function ia(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ec(),t=_=>ia(_);if(t.version="3.4.11",t.removed=[],!e||!e.document||e.document.nodeType!==Je.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let o=e.HTMLTemplateElement,a=e.Node,l=e.Element,u=e.NodeFilter,f=e.NamedNodeMap;f===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let c=e.DOMParser,h=e.trustedTypes,p=l.prototype,g=Ze(p,"cloneNode"),w=Ze(p,"remove"),O=Ze(p,"nextSibling"),S=Ze(p,"childNodes"),A=Ze(p,"parentNode"),j=Ze(p,"shadowRoot"),k=Ze(p,"attributes"),Y=a&&a.prototype?Ze(a.prototype,"nodeType"):null,v=a&&a.prototype?Ze(a.prototype,"nodeName"):null;if(typeof o=="function"){let _=n.createElement("template");_.content&&_.content.ownerDocument&&(n=_.content.ownerDocument)}let K,Qe="",et,Xt=!1,tt=0,Jt=function(){if(tt>0)throw Pt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Ve=function(s){Jt(),tt++;try{return K.createHTML(s)}finally{tt--}},Zt=function(s){Jt(),tt++;try{return K.createScriptURL(s)}finally{tt--}},Et=function(){return Xt||(et=wc(h,i),Xt=!0),et},At=n,Qt=At.implementation,Tn=At.createNodeIterator,Er=At.createDocumentFragment,wr=At.getElementsByTagName,Sr=r.importNode,m=ta();t.isSupported=typeof na=="function"&&typeof A=="function"&&Qt&&Qt.createHTMLDocument!==void 0;let b=lc,T=uc,R=dc,C=fc,M=pc,W=mc,ne=hc,N=gc,Z=Qo,I=null,nt=z({},[...qo,...Wr,...Gr,...Kr,...Xo]),V=null,rt=z({},[...Jo,...qr,...Zo,...lr]),q=Object.seal(Yt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),wt=null,en=null,He=Object.seal(Yt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Rt=!0,It=!0,tn=!1,Mt=!0,Oe=!1,ut=!0,X=!1,Ue=!1,Se=null,it=null,je=!1,Ae=!1,Dt=!1,Ye=!1,St=!0,ot=!1,Ai="user-content-",Cr=!0,Tr=!1,xt={},We=null,Pr=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),Ri=null,Ii=z({},["audio","video","img","source","image","track"]),kr=null,Mi=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pn="http://www.w3.org/1998/Math/MathML",kn="http://www.w3.org/2000/svg",Ge="http://www.w3.org/1999/xhtml",Nt=Ge,Or=!1,Ar=null,fs=z({},[Pn,kn,Ge],Yr),Di=ce(["mi","mo","mn","ms","mtext"]),Rr=z({},Di),xi=ce(["annotation-xml"]),Ir=z({},xi),ps=z({},["title","style","font","a","script"]),nn=null,ms=["application/xhtml+xml","text/html"],hs="text/html",Q=null,Lt=null,vs=n.createElement("form"),Ni=function(s){return s instanceof RegExp||s instanceof Function},Mr=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Lt&&Lt===s)return;(!s||typeof s!="object")&&(s={}),s=we(s),nn=ms.indexOf(s.PARSER_MEDIA_TYPE)===-1?hs:s.PARSER_MEDIA_TYPE,Q=nn==="application/xhtml+xml"?Yr:gn,I=vt(s,"ALLOWED_TAGS",nt,{transform:Q}),V=vt(s,"ALLOWED_ATTR",rt,{transform:Q}),Ar=vt(s,"ALLOWED_NAMESPACES",fs,{transform:Yr}),kr=vt(s,"ADD_URI_SAFE_ATTR",Mi,{transform:Q,base:Mi}),Ri=vt(s,"ADD_DATA_URI_TAGS",Ii,{transform:Q,base:Ii}),We=vt(s,"FORBID_CONTENTS",Pr,{transform:Q}),wt=vt(s,"FORBID_TAGS",we({}),{transform:Q}),en=vt(s,"FORBID_ATTR",we({}),{transform:Q}),xt=ae(s,"USE_PROFILES")?s.USE_PROFILES&&typeof s.USE_PROFILES=="object"?we(s.USE_PROFILES):s.USE_PROFILES:!1,Rt=s.ALLOW_ARIA_ATTR!==!1,It=s.ALLOW_DATA_ATTR!==!1,tn=s.ALLOW_UNKNOWN_PROTOCOLS||!1,Mt=s.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Oe=s.SAFE_FOR_TEMPLATES||!1,ut=s.SAFE_FOR_XML!==!1,X=s.WHOLE_DOCUMENT||!1,Ae=s.RETURN_DOM||!1,Dt=s.RETURN_DOM_FRAGMENT||!1,Ye=s.RETURN_TRUSTED_TYPE||!1,je=s.FORCE_BODY||!1,St=s.SANITIZE_DOM!==!1,ot=s.SANITIZE_NAMED_PROPS||!1,Cr=s.KEEP_CONTENT!==!1,Tr=s.IN_PLACE||!1,Z=ac(s.ALLOWED_URI_REGEXP)?s.ALLOWED_URI_REGEXP:Qo,Nt=typeof s.NAMESPACE=="string"?s.NAMESPACE:Ge,Rr=ae(s,"MATHML_TEXT_INTEGRATION_POINTS")&&s.MATHML_TEXT_INTEGRATION_POINTS&&typeof s.MATHML_TEXT_INTEGRATION_POINTS=="object"?we(s.MATHML_TEXT_INTEGRATION_POINTS):z({},Di),Ir=ae(s,"HTML_INTEGRATION_POINTS")&&s.HTML_INTEGRATION_POINTS&&typeof s.HTML_INTEGRATION_POINTS=="object"?we(s.HTML_INTEGRATION_POINTS):z({},xi);let d=ae(s,"CUSTOM_ELEMENT_HANDLING")&&s.CUSTOM_ELEMENT_HANDLING&&typeof s.CUSTOM_ELEMENT_HANDLING=="object"?we(s.CUSTOM_ELEMENT_HANDLING):Yt(null);if(q=Yt(null),ae(d,"tagNameCheck")&&Ni(d.tagNameCheck)&&(q.tagNameCheck=d.tagNameCheck),ae(d,"attributeNameCheck")&&Ni(d.attributeNameCheck)&&(q.attributeNameCheck=d.attributeNameCheck),ae(d,"allowCustomizedBuiltInElements")&&typeof d.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=d.allowCustomizedBuiltInElements),le(q),Oe&&(It=!1),Dt&&(Ae=!0),xt&&(I=z({},Xo),V=Yt(null),xt.html===!0&&(z(I,qo),z(V,Jo)),xt.svg===!0&&(z(I,Wr),z(V,qr),z(V,lr)),xt.svgFilters===!0&&(z(I,Gr),z(V,qr),z(V,lr)),xt.mathMl===!0&&(z(I,Kr),z(V,Zo),z(V,lr))),He.tagCheck=null,He.attributeCheck=null,ae(s,"ADD_TAGS")&&(typeof s.ADD_TAGS=="function"?He.tagCheck=s.ADD_TAGS:gt(s.ADD_TAGS)&&(I===nt&&(I=we(I)),z(I,s.ADD_TAGS,Q))),ae(s,"ADD_ATTR")&&(typeof s.ADD_ATTR=="function"?He.attributeCheck=s.ADD_ATTR:gt(s.ADD_ATTR)&&(V===rt&&(V=we(V)),z(V,s.ADD_ATTR,Q))),ae(s,"ADD_URI_SAFE_ATTR")&&gt(s.ADD_URI_SAFE_ATTR)&&z(kr,s.ADD_URI_SAFE_ATTR,Q),ae(s,"FORBID_CONTENTS")&&gt(s.FORBID_CONTENTS)&&(We===Pr&&(We=we(We)),z(We,s.FORBID_CONTENTS,Q)),ae(s,"ADD_FORBID_CONTENTS")&&gt(s.ADD_FORBID_CONTENTS)&&(We===Pr&&(We=we(We)),z(We,s.ADD_FORBID_CONTENTS,Q)),Cr&&(I["#text"]=!0),X&&z(I,["html","head","body"]),I.table&&(z(I,["tbody"]),delete wt.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw Pt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Pt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let y=K;K=s.TRUSTED_TYPES_POLICY;try{Qe=Ve("")}catch(P){throw K=y,P}}else s.TRUSTED_TYPES_POLICY===null?(K=void 0,Qe=""):(K===void 0&&(K=Et()),K&&typeof Qe=="string"&&(Qe=Ve("")));ce&&ce(s),Lt=s},Li=z({},[...Wr,...Gr,...sc]),Ui=z({},[...Kr,...cc]),gs=function(s,d,y){return d.namespaceURI===Ge?s==="svg":d.namespaceURI===Pn?s==="svg"&&(y==="annotation-xml"||Rr[y]):!!Li[s]},ys=function(s,d,y){return d.namespaceURI===Ge?s==="math":d.namespaceURI===kn?s==="math"&&Ir[y]:!!Ui[s]},_s=function(s,d,y){return d.namespaceURI===kn&&!Ir[y]||d.namespaceURI===Pn&&!Rr[y]?!1:!Ui[s]&&(ps[s]||!Li[s])},bs=function(s){let d=A(s);(!d||!d.tagName)&&(d={namespaceURI:Nt,tagName:"template"});let y=gn(s.tagName),P=gn(d.tagName);return Ar[s.namespaceURI]?s.namespaceURI===kn?gs(y,d,P):s.namespaceURI===Pn?ys(y,d,P):s.namespaceURI===Ge?_s(y,d,P):!!(nn==="application/xhtml+xml"&&Ar[s.namespaceURI]):!1},dt=function(s){Ht(t.removed,{element:s});try{A(s).removeChild(s)}catch{if(w(s),!A(s))throw Pt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ji=function(s){let d=S(s);if(d){let P=[];mn(d,D=>{Ht(P,D)}),mn(P,D=>{try{w(D)}catch{}})}let y=k(s);if(y)for(let P=y.length-1;P>=0;--P){let D=y[P],$=D&&D.name;if(typeof $=="string")try{s.removeAttribute($)}catch{}}},Ct=function(s,d){try{Ht(t.removed,{attribute:d.getAttributeNode(s),from:d})}catch{Ht(t.removed,{attribute:null,from:d})}if(d.removeAttribute(s),s==="is")if(Ae||Dt)try{dt(d)}catch{}else try{d.setAttribute(s,"")}catch{}},Es=function(s){let d=k(s);if(d)for(let y=d.length-1;y>=0;--y){let P=d[y],D=P&&P.name;if(!(typeof D!="string"||V[Q(D)]))try{s.removeAttribute(D)}catch{}}},ws=function(s){let d=[s];for(;d.length>0;){let y=d.pop();(Y?Y(y):y.nodeType)===Je.element&&Es(y);let D=S(y);if(D)for(let $=D.length-1;$>=0;--$)d.push(D[$])}},Fi=function(s){let d=null,y=null;if(je)s="<remove></remove>"+s;else{let $=Yo(s,/^[\r\n\t ]+/);y=$&&$[0]}nn==="application/xhtml+xml"&&Nt===Ge&&(s='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+s+"</body></html>");let P=K?Ve(s):s;if(Nt===Ge)try{d=new c().parseFromString(P,nn)}catch{}if(!d||!d.documentElement){d=Qt.createDocument(Nt,"template",null);try{d.documentElement.innerHTML=Or?Qe:P}catch{}}let D=d.body||d.documentElement;return s&&y&&D.insertBefore(n.createTextNode(y),D.childNodes[0]||null),Nt===Ge?wr.call(d,X?"html":"body")[0]:X?d.documentElement:D},zi=function(s){return Tn.call(s.ownerDocument||s,s,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},On=function(s){return s=hn(s,b," "),s=hn(s,T," "),s=hn(s,R," "),s},Dr=function(s){var d;s.normalize();let y=Tn.call(s.ownerDocument||s,s,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null),P=y.nextNode();for(;P;)P.data=On(P.data),P=y.nextNode();let D=(d=s.querySelectorAll)===null||d===void 0?void 0:d.call(s,"template");D&&mn(D,$=>{Ut($.content)&&Dr($.content)})},An=function(s){let d=v?v(s):null;return typeof d!="string"||Q(d)!=="form"?!1:typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||s.attributes!==k(s)||typeof s.removeAttribute!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function"||s.nodeType!==Y(s)||s.childNodes!==S(s)},Ut=function(s){if(!Y||typeof s!="object"||s===null)return!1;try{return Y(s)===Je.documentFragment}catch{return!1}},rn=function(s){if(!Y||typeof s!="object"||s===null)return!1;try{return typeof Y(s)=="number"}catch{return!1}};function at(_,s,d){_.length!==0&&mn(_,y=>{y.call(t,s,d,Lt)})}let Ss=function(s,d){return!!(ut&&s.hasChildNodes()&&!rn(s.firstElementChild)&&se(ea,s.textContent)&&se(ea,s.innerHTML)||ut&&s.namespaceURI===Ge&&d==="style"&&rn(s.firstElementChild)||s.nodeType===Je.processingInstruction||ut&&s.nodeType===Je.comment&&se(yc,s.data))},Cs=function(s,d){if(!wt[d]&&Vi(d)&&(q.tagNameCheck instanceof RegExp&&se(q.tagNameCheck,d)||q.tagNameCheck instanceof Function&&q.tagNameCheck(d)))return!1;if(Cr&&!We[d]){let y=A(s),P=S(s);if(P&&y){let D=P.length;for(let $=D-1;$>=0;--$){let oe=Tr?P[$]:g(P[$],!0);y.insertBefore(oe,O(s))}}}return dt(s),!0},$i=function(s){if(at(m.beforeSanitizeElements,s,null),An(s))return dt(s),!0;let d=Q(v?v(s):s.nodeName);if(at(m.uponSanitizeElement,s,{tagName:d,allowedTags:I}),Ss(s,d))return dt(s),!0;if(wt[d]||!(He.tagCheck instanceof Function&&He.tagCheck(d))&&!I[d])return Cs(s,d);if((Y?Y(s):s.nodeType)===Je.element&&!bs(s)||(d==="noscript"||d==="noembed"||d==="noframes")&&se(_c,s.innerHTML))return dt(s),!0;if(Oe&&s.nodeType===Je.text){let P=On(s.textContent);s.textContent!==P&&(Ht(t.removed,{element:s.cloneNode()}),s.textContent=P)}return at(m.afterSanitizeElements,s,null),!1},Bi=function(s,d,y){if(en[d]||St&&(d==="id"||d==="name")&&(y in n||y in vs))return!1;let P=V[d]||He.attributeCheck instanceof Function&&He.attributeCheck(d,s);if(!(It&&se(C,d))){if(!(Rt&&se(M,d))){if(P){if(!kr[d]){if(!se(Z,hn(y,ne,""))){if(!((d==="src"||d==="xlink:href"||d==="href")&&s!=="script"&&Wo(y,"data:")===0&&Ri[s])){if(!(tn&&!se(W,hn(y,ne,"")))){if(y)return!1}}}}}else if(!(Vi(s)&&(q.tagNameCheck instanceof RegExp&&se(q.tagNameCheck,s)||q.tagNameCheck instanceof Function&&q.tagNameCheck(s))&&(q.attributeNameCheck instanceof RegExp&&se(q.attributeNameCheck,d)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(d,s))||d==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&se(q.tagNameCheck,y)||q.tagNameCheck instanceof Function&&q.tagNameCheck(y))))return!1}}return!0},Ts=z({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Vi=function(s){return!Ts[gn(s)]&&se(N,s)},Ps=function(s,d,y,P){if(K&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!y)switch(h.getAttributeType(s,d)){case"TrustedHTML":return Ve(P);case"TrustedScriptURL":return Zt(P)}return P},ks=function(s,d,y,P){try{y?s.setAttributeNS(y,d,P):s.setAttribute(d,P),An(s)?dt(s):Ho(t.removed)}catch{Ct(d,s)}},Hi=function(s){at(m.beforeSanitizeAttributes,s,null);let d=s.attributes;if(!d||An(s))return;let y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0},P=d.length,D=Q(s.nodeName);for(;P--;){let $=d[P],oe=$.name,re=$.namespaceURI,Re=$.value,Fe=Q(oe),Nr=Re,_e=oe==="value"?Nr:ec(Nr);if(y.attrName=Fe,y.attrValue=_e,y.keepAttr=!0,y.forceKeepAttr=void 0,at(m.uponSanitizeAttribute,s,y),_e=y.attrValue,ot&&(Fe==="id"||Fe==="name")&&Wo(_e,Ai)!==0&&(Ct(oe,s),_e=Ai+_e),ut&&se(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,_e)){Ct(oe,s);continue}if(Fe==="attributename"&&Yo(_e,"href")){Ct(oe,s);continue}if(!y.forceKeepAttr){if(!y.keepAttr){Ct(oe,s);continue}if(!Mt&&se(bc,_e)){Ct(oe,s);continue}if(Oe&&(_e=On(_e)),!Bi(D,Fe,_e)){Ct(oe,s);continue}_e=Ps(D,Fe,re,_e),_e!==Nr&&ks(s,oe,re,_e)}}at(m.afterSanitizeAttributes,s,null)},Rn=function(s){let d=null,y=zi(s);for(at(m.beforeSanitizeShadowDOM,s,null);d=y.nextNode();)if(at(m.uponSanitizeShadowNode,d,null),$i(d),Hi(d),Ut(d.content)&&Rn(d.content),(Y?Y(d):d.nodeType)===Je.element){let D=j(d);Ut(D)&&(xr(D),Rn(D))}at(m.afterSanitizeShadowDOM,s,null)},xr=function(s){let d=[{node:s,shadow:null}];for(;d.length>0;){let y=d.pop();if(y.shadow){Rn(y.shadow);continue}let P=y.node,$=(Y?Y(P):P.nodeType)===Je.element,oe=S(P);if(oe)for(let re=oe.length-1;re>=0;--re)d.push({node:oe[re],shadow:null});if($){let re=v?v(P):null;if(typeof re=="string"&&Q(re)==="template"){let Re=P.content;Ut(Re)&&d.push({node:Re,shadow:null})}}if($){let re=j(P);Ut(re)&&d.push({node:null,shadow:re},{node:re,shadow:null})}}};return t.sanitize=function(_){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=null,y=null,P=null,D=null;if(Or=!_,Or&&(_="<!-->"),typeof _!="string"&&!rn(_)&&(_=oc(_),typeof _!="string"))throw Pt("dirty is not a string, aborting");if(!t.isSupported)return _;Ue?(I=Se,V=it):Mr(s),(m.uponSanitizeElement.length>0||m.uponSanitizeAttribute.length>0)&&(I=we(I)),m.uponSanitizeAttribute.length>0&&(V=we(V)),t.removed=[];let $=Tr&&typeof _!="string"&&rn(_);if($){let Re=v?v(_):_.nodeName;if(typeof Re=="string"){let Fe=Q(Re);if(!I[Fe]||wt[Fe])throw Pt("root node is forbidden and cannot be sanitized in-place")}if(An(_))throw Pt("root node is clobbered and cannot be sanitized in-place");try{xr(_)}catch(Fe){throw ji(_),Fe}}else if(rn(_))d=Fi("<!---->"),y=d.ownerDocument.importNode(_,!0),y.nodeType===Je.element&&y.nodeName==="BODY"||y.nodeName==="HTML"?d=y:d.appendChild(y),xr(y);else{if(!Ae&&!Oe&&!X&&_.indexOf("<")===-1)return K&&Ye?Ve(_):_;if(d=Fi(_),!d)return Ae?null:Ye?Qe:""}d&&je&&dt(d.firstChild);let oe=zi($?_:d);try{for(;P=oe.nextNode();)$i(P),Hi(P),Ut(P.content)&&Rn(P.content)}catch(Re){throw $&&ji(_),Re}if($)return mn(t.removed,Re=>{Re.element&&ws(Re.element)}),Oe&&Dr(_),_;if(Ae){if(Oe&&Dr(d),Dt)for(D=Er.call(d.ownerDocument);d.firstChild;)D.appendChild(d.firstChild);else D=d;return(V.shadowroot||V.shadowrootmode)&&(D=Sr.call(r,D,!0)),D}let re=X?d.outerHTML:d.innerHTML;return X&&I["!doctype"]&&d.ownerDocument&&d.ownerDocument.doctype&&d.ownerDocument.doctype.name&&se(vc,d.ownerDocument.doctype.name)&&(re="<!DOCTYPE "+d.ownerDocument.doctype.name+`>
3`+re),Oe&&(re=On(re)),K&&Ye?Ve(re):re},t.setConfig=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mr(_),Ue=!0,Se=I,it=V},t.clearConfig=function(){Lt=null,Ue=!1,Se=null,it=null,K=et,Qe=""},t.isValidAttribute=function(_,s,d){Lt||Mr({});let y=Q(_),P=Q(s);return Bi(y,P,d)},t.addHook=function(_,s){typeof s=="function"&&ae(m,_)&&Ht(m[_],s)},t.removeHook=function(_,s){if(ae(m,_)){if(s!==void 0){let d=Zs(m[_],s);return d===-1?void 0:Qs(m[_],d,1)[0]}return Ho(m[_])}},t.removeHooks=function(_){ae(m,_)&&(m[_]=[])},t.removeAllHooks=function(){m=ta()},t}var oa=ia();var Sc=new on("[DOMPURIFY_HOOKS]: Hooks for DOMPurify",{factory:()=>[],providedIn:"root"}),Cc=new on("[DOMPURIFY]: Configured DOMPurify instance",{providedIn:"root",factory:()=>{let e=oa(x(Ft).defaultView),t=e.addHook.bind(e);
3return x(Sc).forEach(({name:n,hook:r})=>{t(n,r)}),e}}),Tc=new on("[DOMPURIFY_CONFIG]: Config for DOMPurify",{factory:()=>({}),providedIn:"root"}),Pc=new on("[SANITIZE_STYLE]: A function that sanitizes value for a CSS rule",{factory:()=>e=>e,providedIn:"root"}),aa=(()=>{class e{constructor(){this.config=x(Tc),this.sanitizeStyle=x(Pc),this.domPurify=x(Cc)}sanitize(n,r,i=this.config){if(n===an.SCRIPT)throw new Error("DOMPurify does not support SCRIPT context");return n===an.STYLE?this.sanitizeStyle(String(r)):this.domPurify.sanitize(String(r||""),i)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=jt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var sa=(()=>{class e{constructor(){this.editor=x(Po,{optional:!0}),this.sanitizer=x(Hn,{optional:!0}),this.elementRef=x(zt),this.renderer=x(xn),this.doc=x(Ft),this.options=x(To),this.html=Dn(null),this.content=te(null),this.contentEffect=Tt(()=>{let n=this.content()??"",r=this.sanitizer?.sanitize(an.HTML,n)??n;this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",r)})}click(n){if(this.editor||!lo(n.target))return;let r=n.target.closest("a")?.getAttribute("href")??"";r.startsWith("#")&&(this.doc.location.hash="",this.doc.location.hash=r.replace("#",""),n.preventDefault())}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["tui-editor-socket"]],hostVars:2,hostBindings:function(r,i){r&1&&ro("click",function(a){return i.click(a)}),r&2&&Nn("tui-editor-socket",i.options.enableDefaultStyles)},inputs:{content:[1,"content"]},decls:0,vars:0,template:function(r,i){},styles:[`.tui-editor-socket{display:block;margin:0;color:var(--tui-text-primary);font:var(--tui-typography-body-m)}.tui-editor-socket:after{content:"";display:table;clear:both}.tui-editor-socket[tuiTiptapEditor]{overflow:hidden}.tui-editor-socket .ProseMirror{display:flow-root;min-block-size:100%;margin:.2rem 1rem;padding-block-end:2rem;outline:1px solid transparent;white-space:pre-wrap}.tui-editor-socket .resize-cursor{cursor:ew-resize;cursor:col-resize}.tui-editor-socket .ProseMirror-gapcursor{position:relative;margin-block-start:.83rem;block-size:1px}.tui-editor-socket .ProseMirror .ProseMirror-gapcursor:first-child{margin-block-start:0}.tui-editor-socket img.ProseMirror-separator+.ProseMirror-trailingBreak,.tui-editor-socket img.ProseMirror-separator{display:none!important}.tui-editor-socket h1,.tui-editor-socket h2,.tui-editor-socket h3,.tui-editor-socket h4,.tui-editor-socket h5,.tui-editor-socket h6{word-break:break-word;line-height:normal}.tui-editor-socket h1:first-child,.tui-editor-socket h2:first-child,.tui-editor-socket p:last-child{margin-block-end:0}.tui-editor-socket p:last-child,.tui-editor-socket pre:last-child{margin-block-end:0}.tui-editor-socket p:empty:after{content:" ";white-space:pre}.tui-editor-socket p:first-child{margin-block-start:0;min-inline-size:.0625rem}.tui-editor-socket p{margin:1rem 0}.tui-editor-socket p>span{line-height:initial}.tui-editor-socket blockquote{margin:1.25rem 0 1.25rem 1.5rem;padding-inline-start:1.0625rem;border-inline-start:.0625rem solid var(--tui-border-normal)}.tui-editor-socket hr{border:none;border-block-start:.0625rem solid var(--tui-background-neutral-1-hover);margin:1rem 0}.tui-editor-socket mark{background:unset;color:inherit}.tui-editor-socket font[face="Courier New"]{display:inline-block;padding:.25rem .5rem;border-radius:.25rem;background-color:#ecf1f7;word-break:break-word}.tui-editor-socket a:not([data-type=jump-anchor]){color:var(--tui-text-action);text-decoration:none;outline:none}.tui-editor-socket a:not([data-type=jump-anchor]):hover{color:var(--tui-text-action-hover);text-decoration:underline}.tui-editor-socket a:not([data-type=jump-anchor]):active{color:var(--tui-background-accent-1-pressed)}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]{text-decoration:underline;text-decoration-color:var(--tui-text-action)}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]:before{content:"#"}.tui-editor-socket .ProseMirror a[data-type=jump-anchor]:hover{color:var(--tui-text-action)}.tui-editor-socket .ProseMirror a:hover img[contenteditable=false]{cursor:pointer;outline:.25rem solid var(--tui-text-action)}.tui-editor-socket p>a+br.ProseMirror-trailingBreak{display:none}.tui-editor-socket ul:not([data-type]),.tui-editor-socket ol:not([data-type]){list-style-type:none;margin:1rem 1rem 1rem 1.5rem;padding:0}.tui-editor-socket ul:not([data-type]) li,.tui-editor-socket ol:not([data-type]) li{margin:.75rem 0}.tui-editor-socket ul:not([data-type]) li>p,.tui-editor-socket ol:not([data-type]) li>p{display:inline;margin:0 auto;word-break:break-word}.tui-editor-socket ul:not([data-type]) li:before,.tui-editor-socket ol:not([data-type]) li:before{unicode-bidi:isolate;font-variant-numeric:tabular-nums;text-transform:none;text-indent:0;text-align:start}@supports (text-align-last: start){.tui-editor-socket ul:not([data-type]) li:before,.tui-editor-socket ol:not([data-type]) li:before{text-align-last:start}}.tui-editor-socket ul:not([data-type]) li>p{display:block}.tui-editor-socket ul:not([data-type])>li:before{content:"";display:inline-block;inline-size:.5rem;block-size:.5rem;border-radius:100%;margin:.5rem .875rem .0625rem -1.375rem;background-color:var(--tui-background-accent-1);vertical-align:top;box-sizing:border-box;float:left}@supports (float: inline-start){.tui-editor-socket ul:not([data-type])>li:before{float:inline-start}}.tui-editor-socket li ul:not([data-type])>li:before{background:none;border:.125rem solid var(--tui-background-accent-1)}.tui-editor-socket li ul:not([data-type])>li>ul:not([data-type])>li:before{background:var(--tui-background-accent-1);border-radius:0;inline-size:.375rem;block-size:.375rem}.tui-editor-socket ol:not([data-type]){counter-reset:item}.tui-editor-socket ol:not([data-type])>li:before{content:counters(item,".") ".";display:block;counter-increment:item;margin:0 .75rem 0 -1.5rem;color:var(--tui-border-hover);vertical-align:top;white-space:nowrap;float:left}@supports (float: inline-start){.tui-editor-socket ol:not([data-type])>li:before{float:inline-start}}.tui-editor-socket [data-type=details-content] ol{counter-reset:details-item}.tui-editor-socket [data-type=details-content] ol:not([data-type])>
3li:before{content:counters(details-item,".") ".";counter-increment:details-item}.tui-editor-socket [data-type=details-content] ol [data-type=details-content] ol{counter-reset:details-item2}.tui-editor-socket [data-type=details-content] ol:not([data-type])>li [data-type=details-content] ol:not([data-type])>li:before{content:counters(details-item2,".") ".";counter-increment:details-item2}.tui-editor-socket ul[data-type] li[data-checked]{display:flex;gap:.5rem}.tui-editor-socket ul[data-type] li[data-checked]>div{inline-size:100%}.tui-editor-socket ul[data-type] li[data-checked]>label>input[type=checkbox]{position:relative;inline-size:var(--t-size, 1rem);block-size:var(--t-size, 1rem);border-radius:var(--tui-radius-xs, .25rem);transition-property:color,background,opacity,box-shadow,border;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;outline:.125rem solid transparent;outline-offset:-.125rem;margin-block-start:.25rem;cursor:pointer}.tui-editor-socket ul[data-type] li[data-checked]>label>input[type=checkbox]:before{content:"";position:absolute;inset-block-start:0;inset-inline-start:0;inline-size:100%;block-size:100%;background:currentColor;-webkit-mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"></svg>');mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"></svg>');-webkit-mask-position:center;mask-position:center;-webkit-mask-size:100%;mask-size:100%;transform:scale(0);transition:transform var(--tui-duration) ease-in-out,mask 0s var(--tui-duration) ease-in-out,-webkit-mask 0s var(--tui-duration) ease-in-out}.tui-editor-socket ul[data-type] li>label>input[type=checkbox]:checked{background:var(--tui-background-accent-1, #526ed3);color:var(--tui-text-primary-on-accent-1, #fff)}.tui-editor-socket ul[data-type] li>label>input[type=checkbox]:checked:before{-webkit-mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline vector-effect="non-scaling-stroke" points="20 6 9 17 4 12" /></svg>');mask-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline vector-effect="non-scaling-stroke" points="20 6 9 17 4 12" /></svg>');transform:scale(1)}.tui-editor-socket ul[data-type] li>label>input[type=checkbox]{box-shadow:inset 0 0 0 .0625rem var(--tui-border-normal);color:var(--tui-text-primary)}.tui-editor-socket._preview-image img{cursor:pointer}.tui-editor-socket .ProseMirror video,.tui-editor-socket .ProseMirror audio{pointer-events:none}.tui-editor-socket .t-editor-placeholder:not(tr):not(th):not(td):not(ul):not(ol):not(li):first-child:before{content:attr(data-placeholder);position:absolute;color:var(--tui-border-hover);pointer-events:none;float:left}@supports (float: inline-start){.tui-editor-socket .t-editor-placeholder:not(tr):not(th):not(td):not(ul):not(ol):not(li):first-child:before{float:inline-start}}.tui-editor-socket table{border-collapse:collapse;table-layout:fixed;inline-size:100%;margin:0;overflow:hidden}.tui-editor-socket table .tableWrapper,.tui-editor-socket .tableWrapper,.tui-editor-socket .tui-table-wrapper{overflow-x:auto}.tui-editor-socket table td{position:relative;min-inline-size:1em;block-size:2rem;padding:.1875rem .3125rem;vertical-align:top;box-sizing:border-box;word-break:break-word}.tui-editor-socket table th{position:relative;min-inline-size:1em;block-size:2rem;padding:.1875rem .3125rem;vertical-align:top;box-sizing:border-box;word-break:break-word;font-weight:700;text-align:start;background-color:var(--tui-background-base-alt);min-block-size:2rem}.tui-editor-socket table td,.tui-editor-socket table th{border:.125rem solid #e9e9e7}[tuiTheme=dark] .tui-editor-socket table td,[tuiTheme=dark] .tui-editor-socket table th{border:.125rem solid #2f2f2f}.tui-editor-socket table .column-resize-handle{position:absolute;inset-inline-end:-.125rem;inset-block-start:0;inset-block-end:-.125rem;inline-size:.25rem;background-color:#adf;pointer-events:none}.tui-editor-socket table td>*{margin-block-start:0;margin-block-end:0}.tui-editor-socket table th>*{margin-block-start:0;margin-block-end:0}.tui-editor-socket .selectedCell{outline:.0625rem solid #83b4d7}.tui-editor-socket .selectedCell:after{content:"";position:absolute;inset-block-start:0;inset-inline-start:0;inset-inline-end:0;inset-block-end:0;background:var(--tui-service-selected-text);pointer-events:none}.tui-editor-socket summary{position:relative;display:flex;align-items:center;min-block-size:3.5rem;inline-size:100%;box-sizing:border-box;border-radius:var(--tui-radius-l);outline:none;word-break:break-word;padding:0 4.6875rem 0 1.25rem;transition:transform var(--tui-duration, .3s);cursor:pointer}.tui-editor-socket summary:focus-visible{outline:.125rem solid var(--tui-text-action)}.tui-editor-socket summary p{min-inline-size:.0625rem;margin:0}.tui-editor-socket summary::-webkit-details-marker{display:none}.tui-editor-socket details[open] summary{border-radius:var(--tui-radius-l) var(--tui-radius-l) 0 0}.tui-editor-socket summary:after,tui-editor .tui-editor-socket .t-details-arrow{content:"";position:absolute;inset-block-start:1.5rem;inset-inline-end:1.25rem;block-size:.575rem;inline-size:.575rem;border:solid var(--tui-text-tertiary);border-width:0 .125rem .125rem 0;transform:rotate(45deg);-webkit-appearance:none;appearance:none;box-sizing:border-box;padding:0;background:none;cursor:pointer;outline:none}.tui-editor-socket .t-details-arrow{display:none}.tui-editor-socket details:hover summary:after,.tui-editor-socket .t-details-arrow:hover{border-color:var(--tui-text-secondary)}.tui-editor-socket .t-details-delete{position:absolute;inset-block-start:1.4rem;inset-inline-end:2.7rem;block-size:1.125rem;inline-size:1.25rem;-webkit-appearance:none;appearance:none;box-sizing:border-box;padding:0;background:none;cursor:pointer;outline:none;border:none}.tui-editor-socket .t-details-delete:hover:after{color:var(--tui-text-secondary)}.tui-editor-socket .t-details-delete:after{content:"\\d7";display:inline-block;font-size:1.5rem;color:var(--tui-text-tertiary);line-height:1.125rem}.tui-editor-socket details{inline-size:100%;border:.0625rem solid var(--tui-border-normal);border-radius:var(--tui-radius-l);box-sizing:border-box}.tui-editor-socket div[data-type=details-content]{padding:1.25rem;min-block-size:3rem;border:solid var(--tui-border-normal);border-width:.0625rem 0 0}.tui-editor-socket div[data-type=details-content] h1:first-child,.tui-editor-socket div[data-type=details-content] h2:first-child,.tui-editor-socket div[data-type=details-content] pre:first-child,.tui-editor-socket div[data-type=details-content] ul:first-child,.tui-editor-socket div[data-type=details-content] ol:first-child,.tui-editor-socket div[data-type=details-content] ol li:first-child,.tui-editor-socket div[data-type=details-content] ul li:first-child{margin-block-start:0}.tui-editor-socket .t-details-wrapper{position:relative;display:flex}
3.tui-editor-socket details+details,.tui-editor-socket .t-details-wrapper+.t-details-wrapper,.tui-editor-socket .t-details-wrapper+.ProseMirror-gapcursor+.t-details-wrapper{margin-block-start:1rem}.tui-editor-socket details[open]>summary:after,.tui-editor-socket details[open]+.t-details-arrow{inset-block-start:1.75rem;transform:rotate(225deg)}.tui-editor-socket[tuiTiptapEditor][data-contenteditable=false] .t-details-delete,.tui-editor-socket[tuiTiptapEditor][data-contenteditable=false] .t-details-arrow{display:none}tui-editor .tui-editor-socket summary,.tui-editor-socket .t-details-arrow{pointer-events:none}.tui-editor-socket details+.t-details-arrow{opacity:0}tui-editor .tui-editor-socket .t-details-arrow{display:block;pointer-events:auto}.tui-editor-socket pre{white-space:pre-wrap;word-break:break-word;border-radius:.25rem;margin:1rem 0;padding:.75rem 1rem;font-family:Courier,monospace;color:var(--tui-text-secondary);background:var(--tui-background-base-alt)}.tui-editor-socket .tui-group-node{display:flex;flex-direction:row}.tui-editor-socket .tui-group-node:hover>.tui-group-pointer{pointer-events:auto;opacity:1}.tui-editor-socket .tui-group-pointer{opacity:0;min-block-size:.8125rem;max-block-size:.8125rem;min-inline-size:.8125rem;max-inline-size:.8125rem;margin:.3125rem .3125rem 0 0;cursor:grab;background-image:url('data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 10 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 14c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zM2 6C.9 6 0 6.9 0 8s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6C.9 0 0 .9 0 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" fill-opacity="0.2" fill="black" /></svg>');background-repeat:no-repeat;background-size:contain;background-position:center}.tui-editor-socket [data-mode=onDark] .tui-group-pointer{background-image:url('data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 10 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 14c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zM2 6C.9 6 0 6.9 0 8s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6C.9 0 0 .9 0 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" fill-opacity="0.2" fill="white" /></svg>')}
4`],encapsulation:2,changeDetection:0})}}return e})();var ca=(()=>{class e{constructor(){this.content=te.required()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["cu-editor-socket"]],inputs:{content:[1,"content"]},features:[Vt([{provide:Hn,useClass:aa}])],decls:1,vars:1,consts:[[1,"editor-socket",3,"content"]],template:function(r,i){r&1&&G(0,"tui-editor-socket",0),r&2&&me("content",i.content())},dependencies:[sa],styles:["[_nghost-%COMP%]{display:block}.editor-socket[_ngcontent-%COMP%]     pre{overflow:auto}"],changeDetection:0})}}return e})();var Be=(function(e){return e.Dash="dash",e.Hls="hls",e})(Be||{});function la(){var e,t;return typeof window>"u"?"unknown":((t=(e=window.navigator)===null||e===void 0?void 0:e.connection)===null||t===void 0?void 0:t.effectiveType)||"unknown"}var Ma={},Da={},_t={},xa={},di={};Object.defineProperty(di,"__esModule",{value:!0});di.default="ffffffff-ffff-ffff-ffff-ffffffffffff";var fi={};Object.defineProperty(fi,"__esModule",{value:!0});fi.default="00000000-0000-0000-0000-000000000000";var Gt={},Kt={},pi={};Object.defineProperty(pi,"__esModule",{value:!0});pi.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;Object.defineProperty(Kt,"__esModule",{value:!0});var kc=pi;function Oc(e){return typeof e=="string"&&kc.default.test(e)}Kt.default=Oc;Object.defineProperty(Gt,"__esModule",{value:!0});var Ac=Kt;function Rc(e){if(!(0,Ac.default)(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,t&255,(t=parseInt(e.slice(9,13),16))>>>8,t&255,(t=parseInt(e.slice(14,18),16))>>>8,t&255,(t=parseInt(e.slice(19,23),16))>>>8,t&255,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255)}Gt.default=Rc;var Le={};
4Object.defineProperty(Le,"__esModule",{value:!0});Le.unsafeStringify=void 0;var Ic=Kt,ue=[];for(let e=0;e<256;++e)ue.push((e+256).toString(16).slice(1));function Na(e,t=0){return(ue[e[t+0]]+ue[e[t+1]]+ue[e[t+2]]+ue[e[t+3]]+"-"+ue[e[t+4]]+ue[e[t+5]]+"-"+ue[e[t+6]]+ue[e[t+7]]+"-"+ue[e[t+8]]+ue[e[t+9]]+"-"+ue[e[t+10]]+ue[e[t+11]]+ue[e[t+12]]+ue[e[t+13]]+ue[e[t+14]]+ue[e[t+15]]).toLowerCase()}Le.unsafeStringify=Na;function Mc(e,t=0){let n=Na(e,t);if(!(0,Ic.default)(n))throw TypeError("Stringified UUID is invalid");return n}Le.default=Mc;var qt={},Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});var Zr,Dc=new Uint8Array(16);function xc(){if(!Zr){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Zr=crypto.getRandomValues.bind(crypto)}return Zr(Dc)}Sn.default=xc;Object.defineProperty(qt,"__esModule",{value:!0});qt.updateV1State=void 0;var ua=Sn,Nc=Le,yn={};function Lc(e,t,n){let r,i=e?._v6??!1;if(e){let o=Object.keys(e);o.length===1&&o[0]==="_v6"&&(e=void 0)}if(e)r=da(e.random??e.rng?.()??(0,ua.default)(),e.msecs,e.nsecs,e.clockseq,e.node,t,n);else{let o=Date.now(),a=(0,ua.default)();La(yn,o,a),r=da(a,yn.msecs,yn.nsecs,i?void 0:yn.clockseq,i?void 0:yn.node,t,n)}return t??(0,Nc.unsafeStringify)(r)}function La(e,t,n){return e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0),e.node||(e.node=n.slice(10,16),e.node[0]|=1,e.clockseq=(n[8]<<8|n[9])&16383),e.msecs=t,e}qt.updateV1State=La;function da(e,t,n,r,i,o,a=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(!o)o=new Uint8Array(16),a=0;else if(a<0||a+16>o.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);t??=Date.now(),n??=0,r??=(e[8]<<8|e[9])&16383,i??=e.slice(10,16),t+=122192928e5;let l=((t&268435455)*1e4+n)%4294967296;o[a++]=l>>>24&255,o[a++]=l>>>16&255,o[a++]=l>>>8&255,o[a++]=l&255;let u=t/4294967296*1e4&268435455;o[a++]=u>>>8&255,o[a++]=u&255,o[a++]=u>>>24&15|16,o[a++]=u>>>16&255,o[a++]=r>>>8|128,o[a++]=r&255;for(let f=0;f<6;++f)o[a++]=i[f];return o}qt.default=Lc;var vr={};Object.defineProperty(vr,"__esModule",{value:!0});var Uc=Gt,jc=Le;function Fc(e){let t=typeof e=="string"?(0,Uc.default)(e):e,n=zc(t);return typeof e=="string"?(0,jc.unsafeStringify)(n):n}vr.default=Fc;function zc(e){return Uint8Array.of((e[6]&15)<<4|e[7]>>4&15,(e[7]&15)<<4|(e[4]&240)>>4,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,(e[1]&15)<<4|(e[2]&240)>>4,96|e[2]&15,e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}var Ua={},mi={};Object.defineProperty(mi,"__esModule",{value:!0});function $c(e){let t=Hc(e),n=Vc(t,e.length*8);return Bc(n)}function Bc(e){let t=new Uint8Array(e.length*4);for(let n=0;n<e.length*4;n++)t[n]=e[n>>2]>>>n%4*8&255;return t}function ja(e){return(e+64>>>9<<4)+14+1}function Vc(e,t){let n=new Uint32Array(ja(t)).fill(0);n.set(e),n[t>>5]|=128<<t%32,n[n.length-1]=t,e=n;let r=1732584193,i=-271733879,o=-1732584194,a=271733878;for(let l=0;l<e.length;l+=16){let u=r,f=i,c=o,h=a;r=he(r,i,o,a,e[l],7,-680876936),a=he(a,r,i,o,e[l+1],12,-389564586),o=he(o,a,r,i,e[l+2],17,606105819),i=he(i,o,a,r,e[l+3],22,-1044525330),r=he(r,i,o,a,e[l+4],7,-176418897),a=he(a,r,i,o,e[l+5],12,1200080426),o=he(o,a,r,i,e[l+6],17,-1473231341),i=he(i,o,a,r,e[l+7],22,-45705983),r=he(r,i,o,a,e[l+8],7,1770035416),a=he(a,r,i,o,e[l+9],12,-1958414417),o=he(o,a,r,i,e[l+10],17,-42063),i=he(i,o,a,r,e[l+11],22,-1990404162),r=he(r,i,o,a,e[l+12],7,1804603682),a=he(a,r,i,o,e[l+13],12,-40341101),o=he(o,a,r,i,e[l+14],17,-1502002290),i=he(i,o,a,r,e[l+15],22,1236535329),r=ve(r,i,o,a,e[l+1],5,-165796510),a=ve(a,r,i,o,e[l+6],9,-1069501632),o=ve(o,a,r,i,e[l+11],14,643717713),i=ve(i,o,a,r,e[l],20,-373897302),r=ve(r,i,o,a,e[l+5],5,-701558691),a=ve(a,r,i,o,e[l+10],9,38016083),o=ve(o,a,r,i,e[l+15],14,-660478335),i=ve(i,o,a,r,e[l+4],20,-405537848),r=ve(r,i,o,a,e[l+9],5,568446438),a=ve(a,r,i,o,e[l+14],9,-1019803690),o=ve(o,a,r,i,e[l+3],14,-187363961),i=ve(i,o,a,r,e[l+8],20,1163531501),r=ve(r,i,o,a,e[l+13],5,-1444681467),a=ve(a,r,i,o,e[l+2],9,-51403784),o=ve(o,a,r,i,e[l+7],14,1735328473),i=ve(i,o,a,r,e[l+12],20,-1926607734),r=ge(r,i,o,a,e[l+5],4,-378558),a=ge(a,r,i,o,e[l+8],11,-2022574463),o=ge(o,a,r,i,e[l+11],16,1839030562),i=ge(i,o,a,r,e[l+14],23,-35309556),r=ge(r,i,o,a,e[l+1],4,-1530992060),a=ge(a,r,i,o,e[l+4],11,1272893353),o=ge(o,a,r,i,e[l+7],16,-155497632),i=ge(i,o,a,r,e[l+10],23,-1094730640),r=ge(r,i,o,a,e[l+13],4,681279174),a=ge(a,r,i,o,e[l],11,-358537222),o=ge(o,a,r,i,e[l+3],16,-722521979),i=ge(i,o,a,r,e[l+6],23,76029189),r=ge(r,i,o,a,e[l+9],4,-640364487),a=ge(a,r,i,o,e[l+12],11,-421815835),o=ge(
4o,a,r,i,e[l+15],16,530742520),i=ge(i,o,a,r,e[l+2],23,-995338651),r=ye(r,i,o,a,e[l],6,-198630844),a=ye(a,r,i,o,e[l+7],10,1126891415),o=ye(o,a,r,i,e[l+14],15,-1416354905),i=ye(i,o,a,r,e[l+5],21,-57434055),r=ye(r,i,o,a,e[l+12],6,1700485571),a=ye(a,r,i,o,e[l+3],10,-1894986606),o=ye(o,a,r,i,e[l+10],15,-1051523),i=ye(i,o,a,r,e[l+1],21,-2054922799),r=ye(r,i,o,a,e[l+8],6,1873313359),a=ye(a,r,i,o,e[l+15],10,-30611744),o=ye(o,a,r,i,e[l+6],15,-1560198380),i=ye(i,o,a,r,e[l+13],21,1309151649),r=ye(r,i,o,a,e[l+4],6,-145523070),a=ye(a,r,i,o,e[l+11],10,-1120210379),o=ye(o,a,r,i,e[l+2],15,718787259),i=ye(i,o,a,r,e[l+9],21,-343485551),r=bt(r,u),i=bt(i,f),o=bt(o,c),a=bt(a,h)}return Uint32Array.of(r,i,o,a)}function Hc(e){if(e.length===0)return new Uint32Array;let t=new Uint32Array(ja(e.length*8)).fill(0);for(let n=0;n<e.length;n++)t[n>>2]|=(e[n]&255)<<n%4*8;return t}function bt(e,t){let n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535}function Yc(e,t){return e<<t|e>>>32-t}function gr(e,t,n,r,i,o){return bt(Yc(bt(bt(t,e),bt(r,o)),i),n)}function he(e,t,n,r,i,o,a){return gr(t&n|~t&r,e,t,i,o,a)}function ve(e,t,n,r,i,o,a){return gr(t&r|n&~r,e,t,i,o,a)}function ge(e,t,n,r,i,o,a){return gr(t^n^r,e,t,i,o,a)}function ye(e,t,n,r,i,o,a){return gr(n^(t|~r),e,t,i,o,a)}mi.default=$c;var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.URL=Ne.DNS=Ne.stringToBytes=void 0;var fa=Gt,Wc=Le;function Fa(e){e=unescape(encodeURIComponent(e));let t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}Ne.stringToBytes=Fa;Ne.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Ne.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Gc(e,t,n,r,i,o){let a=typeof n=="string"?Fa(n):n,l=typeof r=="string"?(0,fa.default)(r):r;if(typeof r=="string"&&(r=(0,fa.default)(r)),r?.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+a.length);if(u.set(l),u.set(a,l.length),u=t(u),u[6]=u[6]&15|e,u[8]=u[8]&63|128,i){o=o||0;for(let f=0;f<16;++f)i[o+f]=u[f];return i}return(0,Wc.unsafeStringify)(u)}Ne.default=Gc;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0;let t=mi,n=Ne;var r=Ne;Object.defineProperty(e,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(e,"URL",{enumerable:!0,get:function(){return r.URL}});function i(o,a,l,u){return(0,n.default)(48,t.default,o,a,l,u)}i.DNS=n.DNS,i.URL=n.URL,e.default=i})(Ua);var hi={},vi={};Object.defineProperty(vi,"__esModule",{value:!0});var Kc=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);vi.default={randomUUID:Kc};Object.defineProperty(hi,"__esModule",{value:!0});var pa=vi,qc=Sn,Xc=Le;function Jc(e,t,n){if(pa.default.randomUUID&&!t&&!e)return pa.default.randomUUID();e=e||{};let r=e.random??e.rng?.()??(0,qc.default)();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let i=0;i<16;++i)t[n+i]=r[i];return t}return(0,Xc.unsafeStringify)(r)}hi.default=Jc;var za={},gi={};Object.defineProperty(gi,"__esModule",{value:!0});function Zc(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function Qr(e,t){return e<<t|e>>>32-t}function Qc(e){let t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128,e=r;let i=e.length/4+2,o=Math.ceil(i/16),a=new Array(o);for(let l=0;l<o;++l){let u=new Uint32Array(16);for(let f=0;f<16;++f)u[f]=e[l*64+f*4]<<24|e[l*64+f*4+1]<<16|e[l*64+f*4+2]<<8|e[l*64+f*4+3];a[l]=u}a[o-1][14]=(e.length-1)*8/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=(e.length-1)*8&4294967295;for(let l=0;l<o;++l){let u=new Uint32Array(80);for(let w=0;w<16;++w)u[w]=a[l][w];for(let w=16;w<80;++w)u[w]=Qr(u[w-3]^u[w-8]^u[w-14]^u[w-16],1);let f=n[0],c=n[1],h=n[2],p=n[3],g=n[4];for(let w=0;w<80;++w){let O=Math.floor(w/20),S=Qr(f,5)+Zc(O,c,h,p)+g+t[O]+u[w]>>>0;g=p,p=h,h=Qr(c,30)>>>0,c=f,f=S}n[0]=n[0]+f>>>0,n[1]=n[1]+c>>>0,n[2]=n[2]+h>>>0,n[3]=n[3]+p>>>0,n[4]=n[4]+g>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>
4>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])}gi.default=Qc;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0;let t=gi,n=Ne;var r=Ne;Object.defineProperty(e,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(e,"URL",{enumerable:!0,get:function(){return r.URL}});function i(o,a,l,u){return(0,n.default)(80,t.default,o,a,l,u)}i.DNS=n.DNS,i.URL=n.URL,e.default=i})(za);var yi={};Object.defineProperty(yi,"__esModule",{value:!0});var el=Le,tl=qt,nl=vr;function rl(e,t,n){e??={},n??=0;let r=(0,tl.default)(Yi(In({},e),{_v6:!0}),new Uint8Array(16));if(r=(0,nl.default)(r),t){for(let i=0;i<16;i++)t[n+i]=r[i];return t}return(0,el.unsafeStringify)(r)}yi.default=rl;var _i={};Object.defineProperty(_i,"__esModule",{value:!0});var il=Gt,ol=Le;function al(e){let t=typeof e=="string"?(0,il.default)(e):e,n=sl(t);return typeof e=="string"?(0,ol.unsafeStringify)(n):n}_i.default=al;function sl(e){return Uint8Array.of((e[3]&15)<<4|e[4]>>4&15,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|e[6]&15,e[7],(e[1]&15)<<4|(e[2]&240)>>4,(e[2]&15)<<4|(e[3]&240)>>4,16|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}var Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.updateV7State=void 0;var ma=Sn,cl=Le,ei={};function ll(e,t,n){let r;if(e)r=ha(e.random??e.rng?.()??(0,ma.default)(),e.msecs,e.seq,t,n);else{let i=Date.now(),o=(0,ma.default)();$a(ei,i,o),r=ha(o,ei.msecs,ei.seq,t,n)}return t??(0,cl.unsafeStringify)(r)}function $a(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}Cn.updateV7State=$a;function ha(e,t,n,r,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}Cn.default=ll;var bi={};Object.defineProperty(bi,"__esModule",{value:!0});var ul=Kt;function dl(e){if(!(0,ul.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}bi.default=dl;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.validate=e.v7=e.v6ToV1=e.v6=e.v5=e.v4=e.v3=e.v1ToV6=e.v1=e.stringify=e.parse=e.NIL=e.MAX=void 0;var t=di;Object.defineProperty(e,"MAX",{enumerable:!0,get:function(){return t.default}});var n=fi;Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return n.default}});var r=Gt;Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return r.default}});var i=Le;Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.default}});var o=qt;Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return o.default}});var a=vr;Object.defineProperty(e,"v1ToV6",{enumerable:!0,get:function(){return a.default}});var l=Ua;Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return l.default}});var u=hi;Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return u.default}});var f=za;Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return f.default}});var c=yi;Object.defineProperty(e,"v6",{enumerable:!0,get:function(){return c.default}});var h=_i;Object.defineProperty(e,"v6ToV1",{enumerable:!0,get:function(){return h.default}});var p=Cn;Object.defineProperty(e,"v7",{enumerable:!0,get:function(){return p.default}});var g=Kt;Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return g.default}});var w=bi;Object.defineProperty(e,"version",{enumerable:!0,get:function(){return w.default}})})(xa);var Ba={};(function(e){var t,n,r=function(){return r=Object.assign||function(m){for(var b,T=1,R=arguments.length;T<R;T++)for(var C in b=arguments[T])Object.prototype.hasOwnProperty.call(b,C)&&(m[C]=b[C]);return m},r.apply(this,arguments)},i=function(m){return m!==null&&typeof m=="object"},o=function(m){switch(!0){case(function(b){return b==null})(m):return!0;case(function(b){return typeof b=="string"||b instanceof String})(m):return m==="";case(function(b){return!!b&&Array.isArray(b)})(m):return m.length===0;case i(m):return Object.keys(m).length===0}return!1};e.CookieCategoryBit=void 0,(t=e.CookieCategoryBit||(e.CookieCategoryBit={}))[t.Essential=1]="Essential",t[t.Functionality=2]="Functionality",t[t.Statistics=4]="Statistics",t[t.Marketing=8]="Marketing",e.DataConsentBit=void 0,(n=e.DataConsentBit||(e.DataConsentBit={}))[n.PersonalDataProcessing=16]="PersonalDataProcessing";var a=/^\d+(0|s|t)\d+$/,l=["internal_source"],u=0xfffffffffffff,f={Essential:e.CookieCategoryBit.Essential,Functionality:e.CookieCategoryBit.Functionality,Statistics:e.CookieCategoryBit.Statistics,Marketing:e.CookieCategoryBit.Marketing,PersonalDataProcessing:e.DataConsentBit.PersonalDataProcessing};function c(m,b,T){return T===void 0&&(T=[]),m!==b&&[m,b].some(function(R){return T.every(function(C){return R!==C&&!R.endsWith(".".concat(C))})})}function h(m,b){for(var T={},R=0,C=m;R<C.length;R++){var M=C[R];M in b&&(T[M]=b[M])}return T}var p=(function(){function m(b){this.clear=this.getSafeVersionOfMethod("clear",void 0),this.key=this.getSafeVersionOfMethod("key",null),this.setItem=this.getSafeVersionOfMethod("setItem",void 0),this.getItem=this.getSafeVersionOfMethod("getItem",null),this.removeItem=this.getSafeVersionOfMethod("removeItem",void 0),this.storageType=b}return Object.defineProperty(m.prototype,"length",{get:function(){try{return this.storage.length}catch{}return 0}
4,enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"storage",{get:function(){if(!this.storageImpl){var b={local:localStorage,session:sessionStorage};this.storageImpl=b[this.storageType]}return this.storageImpl},enumerable:!1,configurable:!0}),m.prototype.getSafeVersionOfMethod=function(b,T){var R=this;return function(){for(var C,M=[],W=0;W<arguments.length;W++)M[W]=arguments[W];try{return(C=R.storage)[b].apply(C,M)}catch{}return T}},m})();new p("local");var g=new p("session");function w(m,b,T){b===void 0&&(b="&"),T===void 0&&(T="=");for(var R={},C=0,M=m.split(b);C<M.length;C++){var W=M[C],ne=String(W).split(T),N=ne[0],Z=ne.slice(1);if(N){var I=Z.join(T);try{I=decodeURIComponent(I)}catch{}R[decodeURIComponent(N)]=I}}return R}var O,S=5184e3,A=e.CookieCategoryBit.Marketing|e.CookieCategoryBit.Statistics,j={utmSource:{name:"utm_source",category:A,expires:S,subdomains:!0},utmContent:{name:"utm_content",category:A,expires:S,subdomains:!0},utmCampaign:{name:"utm_campaign",category:A,expires:S,subdomains:!0},utmMedium:{name:"utm_medium",category:A,expires:S,subdomains:!0},utmTerm:{name:"utm_term",category:A,expires:S,subdomains:!0},utmDateSet:{name:"utm_date_set",category:A,expires:S,subdomains:!0},sid:{name:"sid",category:A,expires:S,subdomains:!0},wm:{name:"wm",category:A,expires:S,subdomains:!0},visitorNewOrReturn:{name:"s_nr",category:A,expires:31536e3,subdomains:!0}},k={ctxSource:{name:"ctx_source",category:A,expires:S,subdomains:!0},ctxPosition:{name:"ctx_position",category:A,expires:S,subdomains:!0},ctxBlock:{name:"ctx_block",category:A,expires:S,subdomains:!0}},Y=function(m){m===void 0&&(m={});for(var b=(function(M){return i(M)?Object.keys(M):[]})(m),T=b.length,R=new Array(T),C=0;C<T;C++)R[C]=[b[C],m[b[C]]];return R},v=function(m){m===void 0&&(m=[]);for(var b={},T=0;T<m.length;T++)b[m[T][0]]=m[T][1];return b};function K(m,b){var T=Y(b).map(function(R){var C=R[0],M=R[1];return typeof M!="string"?[C,M]:[C,Qe(M,C in m?m[C]:m.default)]});return v(T)}function Qe(m,b){var T=m,R=".cut";return T.length>255&&(T=(function(C,M){return C.slice(0,M)})(T,251)),encodeURIComponent(T).length>b&&(T=(function(C,M){for(var W=0,ne=C.length+1;W+1<ne;){var N=Math.floor((W+ne)/2);encodeURIComponent(C.slice(0,N)).length>M?ne=N:W=N}return C.slice(0,W)})(T,b-4)),T===m?m:"".concat(T).concat(R)}var et,Xt=((O={})[j.utmSource.name]=255,O.session_utm_source=255,O[j.utmTerm.name]=600,O[j.utmContent.name]=600,O[j.utmCampaign.name]=255,O[j.utmMedium.name]=255,O[j.sid.name]=140,O[j.wm.name]=100,O),tt=r(r({},Xt),{default:72});(function(m){m.source="source",m.position="position",m.block="block"})(et||(et={}));var Jt="session_utm_source",Ve=[j.utmSource,j.utmContent,j.utmCampaign,j.utmMedium,j.utmTerm,j.sid,j.wm],Zt=[k.ctxPosition,k.ctxBlock,k.ctxSource],Et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ee<"u"?Ee:void 0,At=Et.document,Qt=Et.window,Tn=Et.navigator,Er=Et.XMLHttpRequest,wr=/^(?:::(?:ffff:(0:)?)?)?(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/,Sr=/^([0-9a-fA-F]{1,4}:){1,4}:(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/;e.Xhr=Er,e.checkCookieLimit=function(m,b,T){var R=encodeURIComponent(T),C=m[b]||m.default;if(R.length>C)throw new Error("ECookieTooLarge: cookie ".concat(b," exceeds maximum length of ").concat(C," bytes"))},e.consentCategories=f,e.contextCookies=k,e.contextMarkersCookies=Zt,e.cookiesLimits=tt,e.d=At,e.extractDomain=function(m){return b=m,wr.test(b)||Sr.test(b)?m:m.indexOf("localhost")>=0?"localhost":".".concat(m.split(".").slice(-2).join("."));var b},e.g=Et,e.internalMarkers=l,e.isExternalNavigation=c,e.makeCookiesPubl=function(m,b){var T={},R=function(C,M){m.set(C.name,M,C.expires,C.subdomains)};return b.on("update",function(){for(var C=0,M=Object.keys(T);C<M.length;C++){var W=M[C],ne=T[W],N=ne.cookie,Z=ne.value;b.isAllowed(N.category)&&(R(N,Z),delete T[W])}}),{get:function(C){return m.get(C)},getAll:function(){return m.getAll()},set:function(C,M){var W=b.isAllowed(C.category);return W?R(C,M):T[C.name]={cookie:C,value:M},W},remove:function(C,M){delete T[C],m.remove(C,M)}}},e.makeUserConsentVault=function(m){m===void 0&&(m={});var b,T=m.defaults,R=T===void 0?u:T,C=m.alwaysEnabled,M=C===void 0?e.CookieCategoryBit.Essential:C,W=R,ne=(b=b||Object.create(null),{on:function(N,Z){(b[N]||(b[N]=[])).push(Z)},off:function(N,Z){b[N]&&b[N].splice(b[N].indexOf(Z)>>>0,1)}
4,emit:function(N){var Z=[].slice.call(arguments,1);(b[N]||[]).map(function(I){I.apply(void 0,Z)}),(b["*"]||[]).map(function(I){I.apply(void 0,[N].concat(Z))})}});return Object.assign(ne,{once:function(N,Z){var I=function(){ne.off(N,I),Z()};ne.on(N,I)},isAllowed:function(N){return(this.getAllowedMask()&N)===N},resetAllTo:function(N){W=N,ne.emit("update")},update:function(N,Z){Z===void 0&&(Z="keep"),Z==="enable"?W|=u:Z==="disable"&&(W=0);for(var I=0,nt=Object.keys(N);I<nt.length;I++){var V=nt[I],rt=Number(V);N[rt]?W|=rt:W&=~rt}ne.emit("update")},getAllowedMask:function(){return(W??R)|M},categories:f})},e.n=Tn,e.parseQuery=w,e.removeQueryParams=function(m){return m.split("?")[0]},e.resolvePageUrl=function(m){return m.hostname+m.pathname},e.resolveReferrer=function(m){var b=m.referrer,T=m.locationHostname,R="";return b&&b.hostname!==T&&(R=b.hostname),R},e.resolveUtmMarkers=function(m){var b,T,R=m.cookies,C=m.location,M=m.referrer,W=m.parseUrl,ne=m.internalDomains,N=Ve.map(function(X){return X.name}),Z=Zt.map(function(X){return X.name}),I=C.query.parent_url,nt=I?W(I):void 0,V=C.query.utm_source||!nt?C.query:nt.query,rt=C.hash.replace("#",""),q=rt?w(rt):{},wt=h(l,V),en=h(N,V),He=h(N,q),Rt=o(en)?He:en;function It(X,Ue){for(var Se=0,it=X;Se<it.length;Se++){var je=it[Se],Ae=Ue[je.name];Ae?R.set(je,Ae):R.remove(je.name,!0)}}function tn(X){return h(X,R.getAll())}function Mt(){return r({internal_source:""},wt)}var Oe=!1,ut=!1;return(function(){var X,Ue,Se,it,je;if(Rt.utm_source)return b=r(r({collectionMethod:"get",cookieDate:Date.now(),utm_source:"",session_utm_source:Rt.utm_source||""},Mt()),Rt),T=(function(){var Ye=V[et.position];if(typeof Ye!="string")return{};var St,ot={};return a.test(Ye)?(St=Ye.split(/\D/),ot.ctx_position=St.length>1?St[1]:"",ot.ctx_block=St[0]+Ye.replace(/\d/g,"")):(ot.ctx_position=Ye,ot.ctx_block=V[et.block]),ot.ctx_source=V[et.source]||"",ot})(),void(Oe=!0);if(Ue=tn(N),Se=Number(R.get("utm_date_set"))||null,it=g.getItem(Jt)||"",je=null,Ue.utm_source&&(je="cookie"),b=r(r({collectionMethod:je,cookieDate:Se,utm_source:"",session_utm_source:it},Mt()),Ue),M&&c(C.hostname,M,ne)){var Ae,Dt=(X=b.utm_source)===null||X===void 0?void 0:X.includes(".");if(!b.utm_source||Dt)return b=r({utm_source:Ae=M,session_utm_source:Ae,collectionMethod:"referrer",cookieDate:Date.now()},Mt()),T={},void(Oe=!0);b.session_utm_source||(b.session_utm_source=M,Oe=!0,ut=!0)}})(),b=K(tt,b),T=K(tt,T??{}),Oe&&(function(X,Ue,Se){Se===void 0&&(Se=!1),Se||(R.set(j.utmDateSet,X.cookieDate||Date.now()),It(Ve,X),It(Zt,Ue||{})),X.session_utm_source&&g.setItem(Jt,X.session_utm_source)})(b,T,ut),T&&(T=tn(Z)),r(r({},T),{utmMarkers:b})},e.utmCookies=j,e.utmCookiesLimits=Xt,e.utmMarkersCookies=Ve,e.w=Qt})(Ba);var yt={},va,ga,fl=(va=2,ga=function(e,t){e===void 0&&(e=[]),t===void 0&&(t={});for(var n=t,r=0;r<e.length;r++){if(n==null)return;n=n[e[r]]}return n},function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.length>=va?ga.apply(this,n):function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e.apply(this,n.concat(o))}}),Va=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ee<"u"?Ee:void 0,$e=Va.document,si=Va.window,pl=function(e){e===void 0&&(e={});for(var t=(function(o){return(a=o)!==null&&typeof a=="object"?Object.keys(o):[];var a})(e),n=t.length,r=new Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},ci=function(e,t){return ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},ci(e,t)},ya,_a,fr=function(){return fr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},fr.apply(this,arguments)};(function(e){e[e.Essential=1]="Essential",e[e.Functionality=2]="Functionality",e[e.Statistics=4]="Statistics",e[e.Marketing=8]="Marketing"})(ya||(ya={})),(function(e){e[e.PersonalDataProcessing=16]="PersonalDataProcessing"})(_a||(_a={}));var st,ml={name:"utm_content"},hl={name:"utm_campaign"},vl={name:"utm_medium"},gl={name:"utm_term"},yl={name:"sid"},_l={name:"wm"},bl=((st={}).utm_source=255,st.session_utm_source=255,st[gl.name]=600,st[ml.name]=600,st[hl.name]=255,st[vl.name]=255,st[yl.name]=140,st[_l.name]=100,st),Ha=fr(fr({},bl),{default:72}),El=/^(?:::(?:ffff:(0:)?)?)?(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/,wl=/^([0-9a-fA-F]{1,4}:){1,4}:(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/;function Sl(e){return t=e,El.test(t)||wl.test(t)?e:e.indexOf("localhost")>=0?"localhost":".".concat(e.split(".").slice(-2).join("."));var t}var Ei=(function(){function e(t,n){this.limits=t,this.logger=n,this.isCookieAvailable=null,this.hasSamesiteNoneSupport=null,this.localState=Object.create(null)}return e.prototype.get=function(t){return this.checkCookieAvailability()?this.getCookie(t):this.getLocalState(t)},e.prototype.getAll=function(){return this.checkCookieAvailability()?this.getAllCookies():this.getAllLocalState()},e.prototype.set=function(t,n,r,i){this.checkCookieAvailability()&&this.setCookie(t,n,r,i),this.setLocalState(t,n)},e.prototype.remove=function(t,n){this.checkCookieAvailability()?this.removeCookie(t,n):this.removeLocalState(t)},e.prototype.checkCookieAvailability=function(){if(this.isCookieAvailable!=null)return this.isCookieAvailable;if($e.cookie==null)return this.isCookieAvailable=!1,this.isCookieAvailable;var t="test_cookie_sqJPwCiceI";$e.cookie="".concat(t,"=true");var n=this.getCookie(t);return this.isCookieAvailable=n==="true",$e.cookie="".concat(t,"=; expires=").concat(new Date(0).toUTCString()),this.isCookieAvailable},e.prototype.checkSamesiteNoneSupport=function(){if(this.hasSamesiteNoneSupport!=null)return this.hasSamesiteNoneSupport;if(!this.checkCookieAvailability())return this.hasSamesiteNoneSupport=!1,this.hasSamesiteNoneSupport;var t="test_cookie_yIKsyPp4Fh";$e.cookie="".concat(t,"=true; samesite=none; secure");var n=this.getCookie(t);return this.hasSamesiteNoneSupport=n==="true",$e.cookie="".concat(t,"=; expires=").concat(new Date(0).toUTCString()),this.hasSamesiteNoneSupport},e.prototype.getCookie=function(t){var n=this.getRawCookie(t);return n?decodeURIComponent(n):null},e.prototype.getAllCookies=function(){var t=this.getAllRawCookies();return pl(t).reduce(function(n,r){var i=r[0],o=r[1];return n[i]=decodeURIComponent(o),n},{})},e.prototype.setCookie=function(t,n,r,i){var o;r===void 0&&(r="session"),i===void 0&&(i=!1);try{(function(u,f,c){var h=encodeURIComponent(c),p=u[f]||u.default;if(h.length>p)throw new Error("ECookieTooLarge: cookie ".concat(f," exceeds maximum length of ").concat(p," bytes"))})(this.limits,t,String(n))}catch(u){return void((o=this.logger)===null||o===void 0||o.error(u))}var a=[];if(a.push("".concat(t,"=").concat(encodeURIComponent(n)),"path=/","domain=".concat(i?Sl(si.location.hostname):si.location.hostname)),r!=="session"){var l=r===0?new Date(0):new Date(Date.now()+1e3*r);a.push("expires=".concat(l.toUTCString()))}this.checkSamesiteNoneSupport()&&a.push("samesite=none","secure"),$e.cookie=a.join("; ")},e.prototype.removeCookie=function(t,n){this.getCookie(t)!==null&&this.setCookie(t,"",0,n)},e.prototype.getLocalState=function(t){return this.localState[t]||null},e.prototype.getAllLocalState=function(){return this.localState},e.prototype.setLocalState=function(t,n){return this.localState[t]=n.toString(),n},e.prototype.removeLocalState=function(t){t in this.localState&&delete this.localState[t]},e.prototype.getRawCookie=function(t){return $e.cookie.split("; ").reduce(function(n,r){var i=r.split("="),o=i[0],a=i[1];return o===t?a:n},"")||null},e.prototype.getAllRawCookies=function(){return $e.cookie.split("; ").reduce(function(t,n){var r=n.split("="),i=r[0],o=r[1];return i&&(t[i]=o),t},{})},e})(),Cl=new Ei(Ha),ba=(function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return(function(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=n}
4ci(n,r),n.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)})(t,e),t.prototype.get=function(n){try{return e.prototype.get.call(this,n)}catch{return e.prototype.getRawCookie.call(this,n)}},t.prototype.getAll=function(){try{return e.prototype.getAll.call(this)}catch{return e.prototype.getAllRawCookies.call(this)}},t})(Ei);function Ya(e){e===void 0&&(e=$e.location);var t={get query(){return(function(n,r,i){r===void 0&&(r="&"),i===void 0&&(i="=");for(var o={},a=0,l=n.split(r);a<l.length;a++){var u=l[a],f=String(u).split(i),c=f[0],h=f.slice(1);if(c){var p=h.join(i);try{p=decodeURIComponent(p)}catch{}o[decodeURIComponent(c)]=p}}return o})(e.search.slice(1))},get pathname(){return e.pathname.charAt(0)!=="/"?"/".concat(e.pathname):e.pathname}};return["hash","host","hostname","href","port","protocol","search","origin"].forEach(function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(r){n!=="origin"&&(e[n]=r)},enumerable:!0})}),t}function Ea(e){var t=$e.createElement("a");return t.href=e,Ya(t)}new ba(Ha),yt.CookieStorage=Ei,yt.SafeCookieStorage=ba,yt.cookieStorage=Cl,yt.locationWithQuery=Ya,yt.parseUrl=Ea,yt.referrer=function(e){var t=e.query.utm_referrer||$e.referrer;return t?Ea(t):void 0},yt.resolvePreviousPage=function(e){var t=e.referrer,n=e.location,r=e.internalDomains,i=fl(["performance","navigation","type"],si)===1?n:t;if(i){var o=i.hostname;if(!(function(a,l,u){return u===void 0&&(u=[]),a!==l&&[a,l].some(function(f){return u.every(function(c){return f!==c&&!f.endsWith(".".concat(c))})})})(n.hostname,o,r))return i.href.split("?")[0]}};var Wa={};Wa.tBankInternalDomains=["tinkoff.ru","tinkoffinsurance.ru","dolyame.ru","tbank.ru"];var Tl=/([a-z])([A-Z])/g,Pl=/[^a-zA-Z]+/g,kl=Ol;function Ol(e){return e.replace(Tl,function(t,n,r){return n+" "+r}).split(Pl)}function Al(e){return""+e.charAt(0).toUpperCase()+e.slice(1)}var Rl=Al,Il=kl,Ml=Rl,Dl=xl;function xl(e){return Il(e).map(function(t,n){return n===0?t.toLowerCase():Ml(t.toLowerCase())}).join("")}var Nl=Vr,Ll=function(t,n){t===void 0&&(t=[]),n===void 0&&(n={});for(var r=n,i=0;i<t.length;i++){if(r==null)return;r=r[t[i]]}return r},Ul=Nl(2,Ll),ti={exports:{}},H={};var wa;function jl(){if(wa)return H;wa=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,O=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function k(v){if(typeof v=="object"&&v!==null){var K=v.$$typeof;switch(K){case t:switch(v=v.type,v){case u:case f:case r:case o:case i:case h:return v;default:switch(v=v&&v.$$typeof,v){case l:case c:case w:case g:case a:return v;default:return K}}case n:return K}}}function Y(v){return k(v)===f}return H.AsyncMode=u,H.ConcurrentMode=f,H.ContextConsumer=l,H.ContextProvider=a,H.Element=t,H.ForwardRef=c,H.Fragment=r,H.Lazy=w,H.Memo=g,H.Portal=n,H.Profiler=o,H.StrictMode=i,H.Suspense=h,H.isAsyncMode=function(v){return Y(v)||k(v)===u},H.isConcurrentMode=Y,H.isContextConsumer=function(v){return k(v)===l},H.isContextProvider=function(v){return k(v)===a},H.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},H.isForwardRef=function(v){return k(v)===c},H.isFragment=function(v){return k(v)===r},H.isLazy=function(v){return k(v)===w},H.isMemo=function(v){return k(v)===g},H.isPortal=function(v){return k(v)===n},H.isProfiler=function(v){return k(v)===o},H.isStrictMode=function(v){return k(v)===i},H.isSuspense=function(v){return k(v)===h},H.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===f||v===o||v===i||v===h||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===w||v.$$typeof===g||v.$$typeof===a||v.$$typeof===l||v.$$typeof===c||v.$$typeof===S||v.$$typeof===A||v.$$typeof===j||v.$$typeof===O)},H.typeOf=k,H}var Sa;function Ga(){return Sa||(Sa=1,ti.exports=jl()),ti.exports}var Fl=Hr,pr;try{pr=Ga().isElement}catch{}pr||(pr=function(t){return!!t&&Fl("$$typeof",t)});var zl=pr,$l=Hr,mr;try{mr=Ga().isValidElementType}catch{}mr||(mr=function(t){return typeof t=="string"||typeof t=="function"||!!t&&$l("$$typeof",t)});var Bl=mr,Ka=function(e){return e!==null&&typeof e=="object"},Vl=zl,Hl=Bl,Yl=Ka,Wl=Gl;function Gl(e){if(!Yl(e))return!1;var t=Object.getPrototypeOf(e);return t===null?!0:!(t!==Object.prototype||Vl(e)||Hl(e))}var Kl=Ka,ql=function(e){return Kl(e)?Object.keys(e):[]},Xl=Lo,Jl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xl(t[0])?Object.assign.apply(Object,[[]].concat(t)):Object.assign.apply(Object,[{}].concat(t))},Zl=Vr,Ca=Wl,Ql=ql,eu=Jl,tu=function e(){for(var t=eu((arguments.length<=0?void 0:arguments[0])||{}),n=1;n<arguments.length;n++){var r=n<0||arguments.length<=n?void 0:arguments[n];if(r)for(var i=Ql(r),o=0;o<i.length;o++){var a=i[o],l=r[a],u=t[a];Ca(u)&&Ca(l)?t[a]=e(u,l):t[a]=l}}return t},nu=Zl(2,tu),qa=xa,E=Ba,xe=yt,ru=Wa,iu=Dl,ou=Ul,au=nu;function su(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}
4var cu=su(qa),li=function(e,t){return li=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},li(e,t)};function Xa(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}li(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ke=function(){return ke=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ke.apply(this,arguments)};function ct(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(f){try{u(r.next(f))}catch(c){o(c)}}function l(f){try{u(r.throw(f))}catch(c){o(c)}}function u(f){var c;f.done?i(f.value):(c=f.value,c instanceof n?c:new n(function(h){h(c)})).then(a,l)}u((r=r.apply(e,t||[])).next())})}function lt(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(u){return function(f){return(function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(h){c=[6,h],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([u,f])}}}function Wt(e,t,n){if(n||arguments.length===2)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||t)}var Ja=function(){var e=0;return function(){return{clientEventTimestamp:Date.now(),clientUploadTimestamp:Date.now(),sequence:++e,uuid:qa.v4()}}},_n=15768e4,fe={sessionId:{name:"vIdUid",category:E.CookieCategoryBit.Essential,expires:_n,subdomains:!0},wuid:{name:"__P__wuid",category:E.CookieCategoryBit.Essential,expires:_n,subdomains:!0},webviewWuid:{name:"deviceId"},deviceId:{name:"stDeIdU",category:E.CookieCategoryBit.Essential,expires:_n,subdomains:!0},lastEventTime:{name:"stLaEvTi",category:E.CookieCategoryBit.Essential,expires:_n,subdomains:!0},sessionStartTime:{name:"stSeStTi",category:E.CookieCategoryBit.Essential,expires:_n,subdomains:!0}},bn=function(){return E.w.statistQueue=E.w.statistQueue||[],E.w.statistQueue};function lu(){var e=xe.parseUrl(E.w.location.href),t=E.resolveReferrer({referrer:xe.referrer(e),locationHostname:e.hostname});return(function(n){return["utm_source","utm_medium","utm_campaign","utm_term","utm_content"].reduce(function(r,i){var o,a=n[i];return a&&(r[o=i,iu(o)]=a),r},{})})(E.resolveUtmMarkers({cookies:E.makeCookiesPubl(new xe.SafeCookieStorage(E.cookiesLimits),E.makeUserConsentVault()),location:e,referrer:t,parseUrl:xe.parseUrl,internalDomains:ru.tBankInternalDomains}).utmMarkers)}function uu(){var e,t;if((function(){try{return window.self!==window.top}catch{return!0}})()){var n=E.w.location.href;t=(e=xe.parseUrl(n).query.parent_url)!==null&&e!==void 0?e:n}else t=E.w.location.href;var r=xe.parseUrl(t);return E.resolvePageUrl(r)}var du=(function(){function e(){var t=this;this.currentUrl=null,this.previousUrl=null,this.isPageReloaded=null,this.updateLocation=function(){var n=xe.parseUrl(t.currentUrl);E.w.location.hostname===n.hostname&&E.w.location.pathname===n.pathname||(t.isPageReloaded=!1,t.previousUrl=t.currentUrl,t.currentUrl=E.w.location.href)},this.runListeners=function(){var n;(n=E.w._statistLocationChangeListeners)===null||n===void 0||n.forEac
4h(function(r){return r()})},this.init()}return e.prototype.init=function(){var t=this;this.initLocation(),window.addEventListener("_statist-location-change",function(){t.updateLocation()}),this.subscribeHistory()},e.prototype.resolve=function(){var t=xe.parseUrl(E.w.location.href),n=this.previousUrl?xe.parseUrl(this.previousUrl):void 0,r=this.isPageReloaded?t:n;if(r)return E.removeQueryParams(r.href)},e.prototype.initLocation=function(){var t,n;this.previousUrl=(n=(t=xe.referrer(xe.parseUrl(E.w.location.href)))===null||t===void 0?void 0:t.href)!==null&&n!==void 0?n:null,this.currentUrl=E.w.location.href,this.isPageReloaded=ou(["performance","navigation","type"],E.w)===1},e.prototype.subscribeHistory=function(){var t,n=this;if(typeof window<"u"&&(!((t=window.history)===null||t===void 0)&&t.pushState))if(Array.isArray(E.w._statistLocationChangeListeners))E.w._statistLocationChangeListeners.push(this.updateLocation);else{E.w._statistLocationChangeListeners=[this.updateLocation];var r=window.history.pushState;window.history.pushState=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];setTimeout(n.runListeners),r.apply(window.history,i)},window.addEventListener("popstate",function(){setTimeout(n.runListeners)})}},e})(),Za=(function(){function e(){this.listeners=Object.create(null)}return e.prototype.on=function(t,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(n)},e.prototype.off=function(t,n){this.listeners[t]&&(this.listeners[t]=this.listeners[t].filter(function(r){return r!==n}))},e.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.listeners[t];if(i)for(var o=0,a=i;o<a.length;o++)a[o].apply(void 0,n)},e})(),pe=E.makeCookiesPubl(new xe.CookieStorage(E.cookiesLimits),E.makeUserConsentVault()),fu=/^[0-9a-f]{16}$/,pu=/^[0-9a-f]{32}$/,mu=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/,ni=function(e){var t,n,r;if(e.from==="cookies"?r=e.isWebview?(n=(t=pe.get(fe.webviewWuid.name))===null||t===void 0?void 0:t.toLowerCase())!==null&&n!==void 0?n:null:pe.get(fe.wuid.name):r=new URLSearchParams(E.w.location.search).get("wuid"),r&&(function(i){return fu.test(i)||pu.test(i)||mu.test(i)})(r))return r},hu=function(){var e,t=new URLSearchParams(E.w.location.search).get("iswebview")==="true",n=ni({from:"query"}),r=ni({from:"cookies"}),i=ni({from:"cookies",isWebview:t});return t&&i?(e=i,pe.set(fe.wuid,e)):n?(e=n,r&&!t||pe.set(fe.wuid,e)):e=r,e||(e=(function(o){var a="";if(typeof crypto<"u"){var l=Math.ceil(o/2),u=new Uint8Array(l);crypto.getRandomValues(u),u.forEach(function(h){a+=h.toString(16).padStart(2,"0")})}else for(var f="0123456789abcdef",c=0;c<o;c++)a+=f.charAt(Math.floor(16*Math.random()));return a.substring(0,o)})(32),pe.set(fe.wuid,e)),(function(o){pe.get(fe.deviceId.name)!==o&&pe.set(fe.deviceId,o)})(e),e},Ta=function(e){return typeof e=="function"?e():e},kt={test:atob("aHR0cHM6Ly9hcGktc3RhdGlzdC5kZXYtdGNzZ3JvdXAuaW8="),prod:"https://api-statist.tinkoff.ru"},Qa="0.4.179",wi="__statist_saved_messages",es=function(e){try{return E.w.localStorage.getItem(e)}catch{return null}},ri=function(){var e=es(wi);if(e===null)return[];try{return JSON.parse(e)}catch{return[]}},vu=function(e){try{return(function(t,n){try{return E.w.localStorage.setItem(t,n),!0}catch{return!1}})(wi,JSON.stringify(e))}catch{return!1}},Pa=function(){return(function(e){try{return E.w.localStorage.removeItem(e),!0}catch{return!1}})(wi)},gu=(function(){function e(t,n){var r,i,o=this;this.timer=null,this.eventEmitter=new Za,this.destroy=function(){E.d.removeEventListener("visibilitychange",o.handleVisibilityChange),E.w.removeEventListener("pagehide",o.handlePageHide)},this.handleVisibilityChange=function(){E.d.visibilityState==="hidden"?o.sendByBeacon():o.processSavedMessages()},this.handlePageHide=function(){o.sendByBeacon()},this.pushEventsUrl="".concat(t,"/gateway/v1/events"),this.batchSize=n.batchSize,this.pushInterval=n.pushInterval,this.pushTimeout=(r=n.pushTimeout)!==null&&r!==void 0?r:n.pushInterval,this.savedMessagesSize=n.savedMessagesSize,this.eventsJsonSizeLimit=n.eventsJsonSizeLimit,this.gzipDisabled=es("_statist_enable_gzip")!=="true",this.apiKey=(i=n.apiKey)!==null&&i!==void 0?i:"","visibilityState"in E.d&&E.d.addEventListener("visibilitychange",this.handleVisibilityChange,!1),E.w.addEventListener("pagehide",this.handlePageHide,!1),this.events=this.excludeOutdatedMessages(ri()),this.sequence=this.getMaxSequence(this.events),this.events.length>0&&(Pa(),this.startPush())}return e.prototype.handleApiError=function(t){var n,r,i=this;if(t.status<200||t.status>=500)return this.saveMessages(t.events),void this.startPush();if(t.response)try{var o=JSON.parse(t.response);if(o.message&&(!((n=o.details)===null||n===void 0)&&n.errors))return void o.details.errors.forEac
4h(function(a){a&&i.eventEmitter.emit("error",Object.assign(new Error(o.message),{status:t.status,response:a}))})}catch{}this.eventEmitter.emit("error",Object.assign(new Error((r=t.response)!==null&&r!==void 0?r:t.message),{status:t.status}))},e.prototype.saveMessages=function(t){if(t.length===0)return!0;var n=Wt(Wt([],ri(),!0),t,!0);if(n.length>this.savedMessagesSize){var r=n.length-this.savedMessagesSize;n.splice(0,r)}return vu(n)},e.prototype.excludeOutdatedMessages=function(t){var n=Date.now();return t.filter(function(r){var i=r.eventParameters.clientEventTimestamp;return n-i<5184e6})},e.prototype.processSavedMessages=function(){this.events=Wt(Wt([],ri(),!0),this.events,!0),this.events.length>0&&(Pa(),this.sequence=this.getMaxSequence(this.events),this.startPush())},e.prototype.getEventsJsonSize=function(){var t=JSON.stringify(this.events);return new Blob([t]).size},e.prototype.on=function(t,n){this.eventEmitter.on(t,n)},e.prototype.off=function(t,n){this.eventEmitter.off(t,n)},e.prototype.startPush=function(){var t=this;if(this.events.length!==0){var n=function(r){return(t.isReady()?t.pushEvents(r):Promise.resolve()).then(function(){t.timer=null,t.startPush()},function(i){t.timer=null,t.handleApiError(i)})};this.getEventsJsonSize()>=this.eventsJsonSizeLimit?n(this.events.length):this.timer||(this.timer=setTimeout(function(){return n(t.batchSize)},this.pushInterval))}},e.prototype.pushEvents=function(t){return ct(this,void 0,void 0,function(){var n;return lt(this,function(r){return n=this.events.splice(0,t),[2,this.sendByXhr(n)]})})},e.prototype.updateTimestamp=function(t){for(var n=Date.now(),r=0,i=t;r<i.length;r++)i[r].eventParameters.clientUploadTimestamp=n},e.prototype.updateSequence=function(t){t.eventParameters.sequence=++this.sequence},e.prototype.getMaxSequence=function(t){var n=0;return t.forEach(function(r){var i=r.eventParameters.sequence;i>n&&(n=i)}),n},e.prototype.sendByXhr=function(t){var n=this;return E.Xhr?t.length?(this.updateTimestamp(t),new Promise(function(r,i){var o=new E.Xhr,a=function(){if(o.status>=200&&o.status<=204)r();else{var u=Object.assign(new Error(o.responseText),{status:o.status,response:o.responseText,events:t});i(u)}};o.onerror=a,o.onload=a,o.ontimeout=a,o.timeout=n.pushTimeout;var l=JSON.stringify(t);n.gzipDisabled?n.sendEventsJSON(l,o):n.sendEventsGZip(l,o)})):Promise.resolve():Promise.reject()},e.prototype.sendEventsJSON=function(t,n){n.open("POST",this.pushEventsUrl,!0),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),this.apiKey&&n.setRequestHeader("Statist-Api-Key",this.apiKey),n.send(t)},e.prototype.sendEventsGZip=function(t,n){var r=this;(function(i){return ct(void 0,void 0,void 0,function(){return lt(this,function(o){return[2,Promise.resolve().then(function(){return new Blob([i],{type:"application/json"}).stream().pipeThrough(new E.w.CompressionStream("gzip"))}
4).then(function(a){return new Response(a)}).then(function(a){return a.blob()})]})})})(t).then(function(i){try{n.open("POST",r.pushEventsUrl,!0),n.setRequestHeader("Content-Type","application/gzip"),n.setRequestHeader("Content-Encoding","gzip"),r.apiKey&&n.setRequestHeader("Statist-Api-Key",r.apiKey),n.send(i)}catch{}}).catch(function(){r.sendEventsJSON(t,n)})},e.prototype.sendByBeacon=function(){var t=this.events;this.events=[],t.length&&(E.n.onLine?(this.updateTimestamp(t),E.n.sendBeacon(this.pushEventsUrl,JSON.stringify(t))||this.saveMessages(t)):this.saveMessages(t))},e.prototype.forceSend=function(){this.sendByBeacon()},e.prototype.send=function(t){this.updateSequence(t),this.events.push(t),this.startPush()},e.prototype.isReady=function(){return!0},e})(),ii=function(e){console.error(e)},hr=(function(){function e(t,n,r,i,o,a){i===void 0&&(i=18e5),a===void 0&&(a=!0),this.clientParameters=t,this.transport=n,this.eventParameters=r,this.sessionTimeout=i,this.getClientParametersOverride=o,this.utmCollectionEnabled=a,this.deviceId=hu(),this.screenWidth=E.w.screen.width,this.screenHeight=E.w.screen.height,this.codegenVersion="",this.eventEmitter=new Za,this.referrerResolver=new du,this.eventEmitter.on("message",function(c){var h;(function(p){var g=bn();g.history||(g.history=[]),g.history.length>=1e3||g.history.push(p)})(c),(h=bn(),h.listeners||(h.listeners=[]),h.listeners).forEach(function(p){try{p(c)}catch(g){ii(g)}})});var l,u,f=this.processStatistQueue.bind(this);l=f,(u=bn()).handlerApplied||(u.handlerApplied=!0,u.forEach(function(c){return l(c)}),u.length=0,u.push=function(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];return c.forEach(function(p){return l(p)}),0})}return e.prototype.processStatistQueue=function(t){try{if(!t||!Array.isArray(t))return;var n=t;switch(n[0]){case"getMessagesHistory":return void(0,n[1])((r=bn(),r.history||(r.history=[]),r.history));case"onMessage":(function(i){var o=bn();o.listeners||(o.listeners=[]),o.listeners.push(i)})(n[1])}}catch(i){ii(i)}var r},e.createTransport=function(t){var n=t.apiKey,r=t.transportOptions,i=t.environment,o=r||{},a=o.batchSize,l=a===void 0?100:a,u=o.pushInterval,f=u===void 0?5e3:u,c=o.pushTimeout,h=c===void 0?3e4:c,p=o.savedMessagesSize,g=p===void 0?1e3:p,w=o.eventsJsonSizeLimit,O=w===void 0?32e3:w,S=o.endpointUrl,A=S===void 0?kt[i||"prod"]:S,j=o.gzip,k=j===void 0||j,Y=E.g._statistTransports||(E.g._statistTransports={});E.g._statistTransport&&!Y[kt.prod]&&(Y[kt.prod]=E.g._statistTransport),E.g._statistDevTransport&&!Y[kt.test]&&(Y[kt.test]=E.g._statistDevTransport);var v=Y[A];if(v)return v;var K=new gu(A,{apiKey:n,batchSize:l,pushInterval:f,pushTimeout:h,preconnect:!1,savedMessagesSize:g,eventsJsonSizeLimit:O,gzip:k});return Y[A]=K,A===kt.prod?E.g._statistTransport=K:A===kt.test&&(E.g._statistDevTransport=K),K},e.prototype.getSessionId=function(){var t=pe.get(fe.sessionId.name),n=Number(pe.get(fe.lastEventTime.name))||null;if(t!==null&&n!==null&&Date.now()-n<this.sessionTimeout)return t;var r=cu.v4();return pe.set(fe.sessionId,r),pe.remove(fe.lastEventTime.name,!0),pe.remove(fe.sessionStartTime.name,!0),r},e.prototype.getSessionStartTime=function(){return pe.get(fe.sessionStartTime.name)===null?Date.now():Number(pe.get(fe.sessionStartTime.name))},e.prototype.resolveClientParameters=function(t){var n;return ke(ke(ke({},t??this.clientParameters),{sessionId:this.getSessionId(),deviceId:this.deviceId,sessionStartTime:this.getSessionStartTime(),screenWidth:this.screenWidth,screenHeight:this.screenHeight,sdkVersion:Qa,codegenVersion:this.codegenVersion}),(n=this.getClientParametersOverride)===null||n===void 0?void 0:n.call(this))},e.prototype.resolveFullClientParameters=function(t){var n=this.referrerResolver.resolve();return ke(ke(ke(ke({},this.resolveClientParameters(t)),this.utmCollectionEnabled?this.getUtmMarkers():{}),n!==void 0&&{referrer:n}),{pageUrl:uu()})},e.prototype.transportSend=function(t){this.transport.send(t),pe.set(fe.lastEventTime,Date.now()),pe.get(fe.sessionStartTime.name)===null&&pe.set(fe.sessionStartTime,t.clientParameters.sessionStartTime)},e.prototype.sendUserProperties=function(t,n,r,i){var o,a,l=((o={kind:"userProperties",project:t,eventParameters:Ta(this.eventParameters),clientParameters:this.resolveClientParameters()})[r]=((a={})["$".concat(n)]=i,a),o);this.transportSend(l),this.eventEmitter.emit("message",{type:"userProperties",message:l})},e.prototype.send=function(t,n,r,i){var o={project:t,name:n,parameters:r,eventParameters:Ta(this.eventParameters),clientParameters:this.resolveFullClientParameters(i)};this.transportSend(o),this.eventEmitter.emit("message",{type:"event",message:o})},e.prototype.updateClientParameters=function(t){for(var n in t)this.clientParameters[n]=t[n]},e.prototype.updateUserProperties=function(t,n,r){this.sendUserProperties(t,n,"userProperties",r??{})},e.prototype.updateFeatureFlags=function(t,n){this.sendUserProperties(t,"set","featureFlags",n??{})},e.prototype.updateABGroups=function(t,n){this.sendUserProperties(t,"set","ABGroups",n??{})},e.prototype.on=function(t,n){t==="message"?this.eventEmitter.on(t,n):this.transport.on(t,n)},e.prototype.off=function(t,n){t==="message"?this.eventEmitter.off(t,n):this.transport.off(t,n)},e.prototype.forceSend=function(){var t,n;(n=(t=this.transport).forceSend)===null||n===void 0||n.call(t)},e.prototype.fork=function(t){var n=(t===void 0?{}:t).enrich,r=Object.create(this);if(n){var i=this.send.bind(this);r.send=function(o,a,l,u){var f=l,c=n?n({project:o,name:a,parameters:l,overrideClientParameters:u}):{};return c&&typeof c=="object"?f=Object.assign(c,l):ii("Statist: enrichment is corrupted - enrichment result must be object"),i(o,a,f,u)}}return r},e.prototype.getUtmMarkers=function(){return this.utmCollectionEnabled?lu():(console.warn("\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u0435 utmCollectionEnabled, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0431\u0438\u0440\u0430\u0442\u044C \u0438 \u043F\u043E\u043B\u0443\u0447\u0430\u0442\u044C UTM-\u043C\u0435\u0442\u043A\u0438."),{})},e.prototype.getDeviceId=function(){return ct(this,void 0,void 0,function(){return lt(this,function(t){return[2,this.deviceId]})})}
4,e.prototype._setCodegenVersion=function(t){this.codegenVersion=t},e})(),ts=function(e){return E.g._statistClientInitOptions?au(e,E.g._statistClientInitOptions):e},ka=(function(e){function t(n){var r=ts(n);return e.call(this,r.clientParameters,hr.createTransport(r),r.eventParameters||Ja(),r.sessionTimeout,r.getClientParametersOverride,n.utmCollectionEnabled)||this}return Xa(t,e),t.prototype.send=function(n,r,i,o){return e.prototype.send.call(this,n,r,i||{},o)},t})(hr),yu=(function(e){function t(n){var r=ts(n);return e.call(this,r.clientParameters,hr.createTransport(n),r.eventParameters||Ja(),r.sessionTimeout,r.getClientParametersOverride,n.utmCollectionEnabled)||this}return Xa(t,e),t.prototype.send=function(n,r,i,o){return e.prototype.send.call(this,n,r,i,o)},t})(hr),ns=function(e){return typeof e=="object"&&["client","clientVersion","clientBundle","deviceId","osName","sessionId"].every(function(t){return typeof e[t]=="string"})&&["sessionStartTime"].every(function(t){return typeof e[t]=="number"})},rs=function(e,t){if(t===void 0&&(t=2),typeof e!="string")return!1;var n=e.split(".");if(n.length!==t)return!1;var r=Number(n[1]),i=Number(n[2]);return n[0]==="1"&&Number.isFinite(r)&&(t===2||Number.isFinite(i))},_u=(function(){function e(){var t,n,r=this;this.version=null,this.apiKey=null,this.sharedParameters=null,this.receivedActions=new Set,this.initialized=!1,this.resolveInitialized=function(){},this.initializedPromise=new Promise(function(i){r.resolveInitialized=i}),this.handleNativeMessage=function(i,o){r.initialized||(r.receivedActions.add(i),r.receivedActions.has("getVersion")&&r.receivedActions.has("getSharedParameters")&&r.receivedActions.has("getApiKey")&&(r.initialized=!0,r.resolveInitialized(!0))),i==="getVersion"?r.version=typeof o=="string"?o:null:i==="getSharedParameters"&&ns(o)?r.sharedParameters=o:i!=="getApiKey"||typeof o!="string"&&o!==null||(r.apiKey=o)},((n=(t=window.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||n===void 0?void 0:n.statistNativeSdk)!==void 0&&(E.w._statistIosSdkRecipient=this.handleNativeMessage,this.refreshVersion(),this.refreshApiKeyParameters(),this.refreshSharedParameters(),setInterval(function(){r.refreshSharedParameters()},1e4))}return e.prototype.setup=function(){return ct(this,void 0,void 0,function(){return lt(this,function(t){switch(t.label){case 0:return[4,this.initializedPromise];case 1:if(t.sent(),!rs(this.version))throw new Error("Unsupported version of bridge");return[2]}})})},e.prototype.isConnected=function(){var t,n;return!!(!((n=(t=window.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||n===void 0)&&n.statistNativeSdk)},e.prototype.getSharedParameters=function(){return this.sharedParameters},e.prototype.getApiKey=function(){return this.apiKey},e.prototype.notifyEventHappened=function(){var t,n,r;(r=(n=(t=E.w.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||n===void 0?void 0:n.statistNativeSdk)===null||r===void 0||r.postMessage("notifyEventHappened")},e.prototype.refreshVersion=function(){var t,n,r;(r=(n=(t=E.w.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||n===void 0?void 0:n.statistNativeSdk)===null||r===void 0||r.postMessage("getVersion")},e.prototype.refreshApiKeyParameters=function(){var t,n,r;(r=(n=(t=E.w.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||n===void 0?void 0:n.statistNativeSdk)===null||r===void 0||r.postMessage("getApiKey")},e.prototype.refreshSharedParameters=function(){var t,n,r;(r=(n=(t=E.w.webkit)===null||t===void 0?void 0:t.messageHandlers)===null||n===void 0?void 0:n.statistNativeSdk)===null||r===void 0||r.postMessage("getSharedParameters")},e})(),bu=(function(){function e(){}return e.prototype.isConnected=function(){return E.w._statistAndroidSdkBridge!==void 0},e.prototype.setup=function(){return ct(this,void 0,void 0,function(){var t;return lt(this,function(n){if(!rs((t=E.w._statistAndroidSdkBridge)===null||t===void 0?void 0:t.getVersion()))throw new Error("Unsupported version of bridge");return[2]})})},e.prototype.parseSharedParameters=function(t){try{var n=JSON.parse(t);return ns(n)?n:null}catch{return null}},e.prototype.getSharedParameters=function(){var t,n=(t=E.w._statistAndroidSdkBridge)===null||t===void 0?void 0:t.getSharedParameters();return n?this.parseSharedParameters(n):null},e.prototype.getApiKey=function(){var t,n=(t=E.w._statistAndroidSdkBridge)===null||t===void 0?void 0:t.getApiKey();return n&&typeof n=="string"?n:null},e.prototype.notifyEventHappened=function(){var t;(t=E.w._statistAndroidSdkBridge)===null||t===void 0||t.notifyEventHappened()},e})(),Eu=(function(){function e(t){var n=this;this.baseBridge=t,this.apiKey=null,this.staticSharedParameters=null,this.dynamicSharedParameters=null,this.resolveInitialized=function(){},this.initializedPromise=new Promise(function(r){n.resolveInitialized=r}),this.isConnected()&&(this.setupStaticParams(),this.refreshDynamicSharedParameters().then(function(){n.resolveInitialized(!0),n.scheduleDynamicSharedParameterRefresh()}).catch(function(){}))}return e.prototype.setup=function(){return ct(this,void 0,void 0,function(){return lt(this,function(t){switch(t.label){case 0:return[4,this.initializedPromise];case 1:return t.sent(),[2]}})})},e.prototype.isConnected=function(){var t,n;return(n=(t=this.baseBridge)===null||t===void 0?void 0:t.isCoreWebview())!==null&&n!==void 0&&n},e.prototype.getSharedParameters=function(){return this.staticSharedParameters&&this.dynamicSharedParameters?ke(ke({},this.staticSharedParameters),this.dynamicSharedParameters):null},e.prototype.getApiKey=function(){return this.apiKey&&typeof this.apiKey=="string"?this.apiKey:null},e.prototype.notifyEventHappened=function(){var t;(t=this.baseBridge)===null||t===void 0||t.send({type:"statistNotifyEventHappened",value:null})},e.prototype.setupStaticParams=function(){var t,n=(t=this.baseBridge)===null||t===void 0?void 0:t.params();if(this.baseBridge&&n){var r;if(r=n,["statistApiKey","statistClient","statistClientBundle","statistClientVersion","statistDeviceId","statistOsName"].every(function(f){return r[f]!==void 0})){var i=n.statistDeviceId,o=n.statistClientBundle,a=n.statistOsName,l=n.statistClient,u=n.statistClientVersion;this.apiKey=n.statistApiKey,this.staticSharedParameters={deviceId:i,clientBundle:o,osName:a,client:l,clientVersion:u}}}},e.prototype.scheduleDynamicSharedParameterRefresh=function(){var t=this;setInterval(function(){t.refreshDynamicSharedParameters().catch(function(){})},1e4)},e.prototype.refreshDynamicSharedParameters=function(){return ct(this,void 0,void 0,function(){var t,n;return lt(this,function(r){switch(r.label){case 0:return[4,(n=this.baseBridge)===null||n===void 0?void 0:n.send({type:"statistGetSharedParameters",value:null})];case 1:if(((t=r.sent())==null?void 0:t.status)!==200)throw new Error("Shared parameters request error");return this.dynamicSharedParameters=t.value,[2]}})})},e})(),wu=(function(){function e(t){var n=(t===void 0?{}:t).coreWebviewBridge;this.bridges=[],this.connectedBridge=null;var r=E.w._statistWebviewBridges||(E.w._statistWebviewBridges={}),i=r[1];if(i)return this.bridges=i.bridges,void(this.connectedBridge=i.connectedBridge);this.bridges=[new bu,new _u,new Eu(n)],r[1]=this}return e.prototype.getConnectedBridge=function(){var t;return this.connectedBridge===null&&(this.connectedBridge=(t=this.bridges.find(function(n){return n.isConnected()}))!==null&&t!==void 0?t:null),this.connectedBridge},e.prototype.setup=function(){var t,n,r;return(r=(n=(t=this.getConnectedBridge())===null||t===void 0?void 0:t.setup)===null||n===void 0?void 0:n.call(t))!==null&&r!==void 0?r:Promise.resolve()},e.prototype.getSharedParameters=function(){var t,n;return(n=(t=this.getConnectedBridge())===null||t===void 0?void 0:t.getSharedParameters())!==null&&n!==void 0?n:null},e.prototype.getApiKey=function(){var t,n;return(n=(t=this.getConnectedBridge())===null||t===void 0?void 0:t.getApiKey())!==null&&n!==void 0?n:null},e.prototype.notifyEventHappened=function(){var t;(t=this.getConnectedBridge())===null||t===void 0||t.notifyEventHappened()},e})(),Su=function(e){return new Promise(function(t,n){var r=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.src=e,i.crossOrigin="anonymous",r.appendChild(i),i.onload=function(){return t(i)},i.onerror=function(){return n(new Error("error when loading ".concat(e," script")))}})},Cu=function(){return ct(void 0,void 0,void 0,function(){var e,t,n;return lt(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=Qa.split(".")[0],t="https://statist-web-sdk.t-static.ru/v".concat(e,"/client.js"),!E.w||(function(i){return!!E.d.querySelector('script[src="'.concat(i,'"'))})(t)?[2]:[4,Su(t)];case 1:return r.sent(),[3,3];case 2:return n=r.sent(),console.error(n instanceof Error?n.message:n),[3,3];case 3:return[2]}})})},oi="_statistClientInitializer",Tu=(function(){function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this;this.resolveClient=function(){}
4,this.clientPromise=new Promise(function(a){r.resolveClient=a}),this.updateUserProperties=this.createEnqueuedClientMethod("updateUserProperties"),this.updateABGroups=this.createEnqueuedClientMethod("updateABGroups"),this.updateFeatureFlags=this.createEnqueuedClientMethod("updateFeatureFlags"),this.on=this.createEnqueuedClientMethod("on"),this.off=this.createEnqueuedClientMethod("off"),this.forceSend=this.createEnqueuedClientMethod("forceSend");var i=function(a){var l=a.apply(void 0,t);r.client=l,r.resolveClient(l)},o=window[oi];o?i(o):(this.interceptClientInitialization(i),Cu())}return e.prototype.interceptClientInitialization=function(t){var n=Object.getOwnPropertyDescriptor(window,oi);Object.defineProperty(window,oi,{configurable:!0,set:function(r){var i;(i=n?.set)===null||i===void 0||i.call(n,r),t(r)}})},e.prototype.enqueueCall=function(t){return this.client?Promise.resolve(t(this.client)):this.clientPromise.then(t)},e.prototype.createEnqueuedClientMethod=function(t){var n=this;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n.enqueueCall(function(o){var a;(a=o[t])===null||a===void 0||a.call.apply(a,Wt([o],r,!1))})}},e.prototype.send=function(t,n,r,i){this.enqueueCall(function(o){return o.send(t,n,r,i)})},e})(),Pu=["send","forceSend","updateUserProperties","updateFeatureFlags","updateABGroups","updateClientParameters","off","on","fork"],is=function(e){var t=null;return e.then(function(n){t=n}).catch(function(){}),new Proxy({get instance(){return t},instancePromise:e},{get:function(n,r){return t&&r in t?t[r]:(function(i){return typeof i=="string"&&Pu.includes(i)})(r)?r==="fork"?function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return is(e.then(function(a){return a.fork.apply(a,i)}))}:function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e.then(function(a){a[r].apply(a,i)}).catch(function(){})}:n[r]}})};_t.StatistClient=ka,_t.StatistEventClient=ka,_t.StatistMetricClient=yu,_t.createProxy=is,_t.unstable_StatistClientProxy=Tu,_t.webviewClient=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return ct(void 0,Wt([e,t],n,!0),void 0,function(i,o,a){var l,u,f,c,h,p,g;return a===void 0&&(a={}),lt(this,function(w){switch(w.label){case 0:l=a.bridgeTimeout,u=l===void 0?3e3:l,f=a.coreWebviewBridge,c=new wu({coreWebviewBridge:f}),h=o,w.label=1;case 1:return w.trys.push([1,3,,4]),[4,Promise.race([c.setup(),new Promise(function(O,S){setTimeout(function(){return S(new Error("timeout reached"))},u)})])];case 2:return w.sent(),p=c.getApiKey(),h=ke(ke(ke({},o),p?{apiKey:p}:{}),{getClientParametersOverride:function(){return c.getSharedParameters()||{}}}),[3,4];case 3:return w.sent(),[3,4];case 4:return(g=new i(h)).on("message",function(O){O.type==="event"&&c.notifyEventHappened()}),[2,g]}})})};(function(e){var t=Ee&&Ee.__extends||(function(){var a=function(l,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,c){f.__proto__=c}||function(f,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(f[h]=c[h])},a(l,u)};return function(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");a(l,u);function f(){this.constructor=l}l.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}})(),n=Ee&&Ee.__createBinding||(Object.create?function(a,l,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(l,u);(!c||("get"in c?!l.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(a,f,c)}:function(a,l,u,f){f===void 0&&(f=u),a[f]=l[u]}),r=Ee&&Ee.__exportStar||function(a,l){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&n(l,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.StatistClient=void 0,r(_t,e);var i=_t,o=(function(a){t(l,a);function l(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];var c=a.apply(this,u)||this;return c._setCodegenVersion("0.4.404"),c}return l})(i.StatistClient);e.StatistClient=o})(Da);(function(e){var t=Ee&&Ee.__createBinding||(Object.create?function(r,i,o,a){a===void 0&&(a=o);var l=Object.getOwnPropertyDescriptor(i,o);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(r,a,l)}:function(r,i,o,a){a===void 0&&(a=o),r[a]=i[o]}),n=Ee&&Ee.__exportStar||function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,r,o)};
4Object.defineProperty(e,"__esModule",{value:!0}),n(Da,e)})(Ma);function ku(){return typeof window<"u"&&window.document}function Ou(){return!ku()}var Au=function(e){return"__vpl_".concat(e,"__")},Ru=Au("settings");function Iu(e){if(!Ou())try{var t=localStorage.getItem(e);return t===null?void 0:JSON.parse(t)}catch{return}}var Mu="videoPlatform.videoPlatform.events";function Oa(e){var t,n,r,i={ssoId:(t=e?.ssoId)!==null&&t!==void 0?t:null,client:(n=e?.appName)!==null&&n!==void 0?n:"unknown",clientVersion:(r=e?.appVersion)!==null&&r!==void 0?r:"1.0.0"};return e?.deviceId&&(i.deviceId=e.deviceId),i}var Du=function(){var e,t;return(t=(e=Iu(Ru))===null||e===void 0?void 0:e.sendTelemetry)!==null&&t!==void 0?t:!0},xu=(function(){function e(t,n,r,i){i===void 0&&(i=!0),this.prefix=t,this.getBaseProperties=n,this.client=new Ma.StatistClient({environment:i?"test":"prod",clientParameters:Oa(r)})}return Object.defineProperty(e.prototype,"deviceId",{get:function(){return this.client.deviceId},enumerable:!1,configurable:!0}),e.prototype.trackEvent=function(t){var n=t.type,r=t.parameters,i=r===void 0?{}:r;if(Du()){var o=this.getBaseProperties(),a="".concat(this.prefix,".").concat(n),l=cn(cn({},o),i);this.client.send(Mu,a,l)}},e.prototype.updateClientParameters=function(t){this.client.updateClientParameters(Oa(t))},e})();function ai(e,t,n){return{"x-app-name":e.appName,"x-app-version":e.appVersion,"x-device-id":e.deviceId||"unknown","x-platform":"web","x-request-id":n,traceparent:n,tracestate:"",Authorization:"Bearer ".concat(t)}}var Nu=(function(){function e(){}return e.prototype.request=function(t){return ln(this,void 0,void 0,function(){var n,r,i,o,a,l,u,f,c,h,p;return un(this,function(g){switch(g.label){case 0:return n=t.path,r=t.baseUrl,i=t.method,o=i===void 0?"GET":i,a=t.headers,l=t.query,u=t.body,f=new URL(n||"",r||""),l&&Object.entries(l).forEach(function(w){var O=ze(w,2),S=O[0],A=O[1];f.searchParams.set(S,A)}),[4,fetch(f.toString(),{method:o||"GET",headers:a,body:u?JSON.stringify(u):void 0})];case 1:return c=g.sent(),p={},[4,c.json()];case 2:return h=(p.payload=g.sent(),p.status=c.status,p),c.ok?[2,h]:[2,Promise.reject(h)]}})})},e})(),Aa=function(e,t){var n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(!n){var o=e.apply(void 0,mt([],ze(r),!1));return n=!0,window.setTimeout(function(){n=!1},t),o}}},ur,Lu=new Uint8Array(16);
4function Uu(){if(!ur&&(ur=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ur))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ur(Lu)}var de=[];for(let e=0;e<256;++e)de.push((e+256).toString(16).slice(1));function ju(e,t=0){return de[e[t+0]]+de[e[t+1]]+de[e[t+2]]+de[e[t+3]]+"-"+de[e[t+4]]+de[e[t+5]]+"-"+de[e[t+6]]+de[e[t+7]]+"-"+de[e[t+8]]+de[e[t+9]]+"-"+de[e[t+10]]+de[e[t+11]]+de[e[t+12]]+de[e[t+13]]+de[e[t+14]]+de[e[t+15]]}var Fu=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ra={randomUUID:Fu};function wn(e,t,n){if(Ra.randomUUID&&!e)return Ra.randomUUID();e=e||{};let r=e.random||(e.rng||Uu)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ju(r)}var zu={dev:"https://vp-content-api-http.vp-stage-public.internal.ya-ruc1-b-cloud-test-wl1.dev.k8s.tcsbank.ru/v1/",prod:"https://vp-content-api.t-pulse.ru/v1/"},$u={dev:"https://vp-feedback-http.vp-stage-public.internal.ya-ruc1-b-cloud-test-wl1.dev.k8s.tcsbank.ru/v1/",prod:"https://vp-feedback-api.tbank.ru/v1/"},Bu=3,Vu=[300,1e3,3e3];function Ia(e,t){return t.endpoint?t.endpoint:t.isDev?e.dev:e.prod}var Hu=(function(){function e(t){var n=t.configProvider,r=t.httpClient;this._errorHandler=function(){},this.httpClient=r,this.contentApiUrl=Ia(zu,n.config.env),this.feedbackApuUrl=Ia($u,n.config.env),this.meta=n.config.meta}return e.prototype._request=function(t,n){var r=this;n===void 0&&(n={count:Bu,timeout:Vu});var i=0,o=t.onError,a=function(l){if(i>n.count){if(o)o(l);else{var u=t.path,f=t.baseUrl;r._errorHandler(Br.UNKNOWN_NETWORK_ERROR,{requestedUrl:u&&f?u+f:void 0})}return Promise.reject(l)}var c=n.timeout[i];return r.httpClient.request(t).then(function(h){return h.payload}).catch(function(h){return i++,new Promise(function(p,g){setTimeout(function(){return a(h).then(p).catch(g)},c)})})};return a()},e.prototype.getThumbnails=function(t){return ln(this,void 0,void 0,function(){var n,r=this;return un(this,function(i){return n=ai(this.meta,t,wn()),[2,this._request({path:"thumbnails",baseUrl:this.contentApiUrl,headers:n,onError:function(){r._errorHandler(ht.FAILED_TO_LOAD_THUMBNAILS,{requestedUrl:r.contentApiUrl+"thumbnails"})}})]})})},e.prototype.refereshLink=function(t){return ln(this,void 0,void 0,function(){var n,r=this;return un(this,function(i){return n=ai(this.meta,t,wn()),[2,this._request({path:"media",baseUrl:this.contentApiUrl,headers:n,onError:function(){r._errorHandler(ht.FAILED_TO_REFRSESH_LINK,{requestedUrl:r.contentApiUrl+"media"})}})]})})},e.prototype.sendFeedback=function(t,n){return ln(this,void 0,void 0,function(){var r,i=this;return un(this,function(o){return r=ai(this.meta,t,wn()),[2,this._request({baseUrl:this.feedbackApuUrl,path:"claim",method:"POST",body:n,headers:r,onError:function(){i._errorHandler(ht.FAILED_TO_SEND_FEEDBACK,{requestedUrl:i.feedbackApuUrl+"claim"})}})]})})},e.prototype.onError=function(t){this._errorHandler=t},e})(),Yu={useClass:Hu,provide:ko,deps:{configProvider:jr,httpClient:Wn}},Wu=(function(){function e(t){var n=t.eventBus,r=this;this._instanceId=wn(),this._callbacks=new Set,this._activate=function(){e._instanceMap.set(r._instanceId,{order:r.instanceOrder,isActive:!0})},this._deactivate=function(){e._instanceMap.set(r._instanceId,{order:r.instanceOrder,isActive:!1}),r._callbacks.clear()},e._instanceMap.set(this._instanceId,{order:e._counter,isActive:!1}),e._counter++,n.on(U.Init,this._activate),n.on(U.Cleared,this._deactivate),n.on(U.Destroy,this._deactivate)}return e.prototype.subscribe=function(t){this._callbacks.add(t)},e.prototype.unsubscribe=function(t){this._callbacks.delete(t)},Object.defineProperty(e.prototype,"instanceId",{get:function(){return this._instanceId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instanceOrder",{get:function(){return e._instanceMap.get(this._instanceId).order},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalCount",{get:function(){return e._instanceMap.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeCount",{get:function(){var t,n,r=0;try{for(var i=Do(e._instanceMap),o=i.next();!o.done;o=i.next()){var a=ze(o.value,2),l=a[1];l.isActive&&r++}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}
4,enumerable:!1,configurable:!0}),e._instanceMap=new Map,e._counter=0,e})(),Gu={useClass:Wu,provide:Fr,deps:{eventBus:zr}},J=(function(e){return e.FirstFrame="firstFrame",e.PlaybackInit="playbackInit",e.PlayerLoaded="playerLoaded",e.Ready="ready",e.Playing="playing",e.Replay="replay",e.StaleStart="staleStart",e.StaleEnd="staleEnd",e.Pause="pause",e.Play="play",e.Seek="seek",e.Complete="complete",e.Fullscreen="fullscreen",e.Pip="pip",e.Mute="mute",e.VolumeChange="volumeChange",e.SpeedChange="speedChange",e.QualityChange="qualityChange",e.Error="playbackError",e.NonFatalError="nonFatalError",e.Destroy="destroy",e.PausePressed="pausePressed",e.PlayPressed="playPressed",e.MutePressed="mutePressed",e.LoaderPressed="loaderPressed",e.ReplayPressed="replayPressed",e.QualityPropertyPressed="qualityPropertyPressed",e.TimelineSeekingStarted="timelineSeekingStarted",e.TimelineSeekingEnded="timelineSeekingEnded",e.FastRewind="fastRewind",e.Rewind="rewind",e.SubtitlesSettingPressed="subtitlesSettingPressed",e.Swipe="swipe",e.EndOfShortsReached="endOfShortsReached",e.DataSourceChanged="dataSourceChanged",e})(J||{}),ui=(function(e){return e.Video="video",e.Shorts="shorts",e})(ui||{}),Ku="playback",qu="1.20.0",Xu=(function(){function e(t){var n=t.logger,r=t.configProvider,i=t.player,o=t.eventBus,a=t.stateProvider,l=t.metaInfoProvider,u=t.sourceController,f=t.protocol,c=this;this.trackEvent=function(p){c._logger.debug(p),c._client.trackEvent(p)},this.trackError=function(p){var g=p.severity===Kn.Fatal,w=p.severity===Kn.Ignorable;if(!w){var O={type:g?J.Error:J.NonFatalError,parameters:{errorCode:p.code.toString(),reason:p.message,position:p.playbackTime,playerCount:c._metaInfoProvider.totalCount,streamingProtocol:c._protocol,url:p.url}};c._client.trackEvent(O)}},this._onHeartbeat=function(){var p=c._player.quality,g=p.width,w=p.height,O=p.bitrate,S=c._player.videoContainer||{},A=S.clientWidth,j=A===void 0?0:A,k=S.clientHeight,Y=k===void 0?0:k,v={videoDuration:Math.floor(c._player.duration),mobileConnection:la(),viewingPercentage:c._player.currentTime*100/c._player.duration,bitrateValue:O||0,widthValue:g,heightValue:w,viewboxHeight:Y,viewboxWidth:j,minDimension:Math.min(g,w),bufferingLevel:Math.round(c._player.currentBufferedTime)};O===0?c.trackError(new dn(ht.NO_BITRATE)):O!==null&&O>0&&(v.bitrateValueOptional=O),g>0&&w>0?(v.widthValueOptional=g,v.heightValueOptional=w,v.minDimensionOptional=Math.min(g,w)):c.trackError(new dn(ht.NO_VIDEO_SIZE)),c.trackEvent({type:J.Playing,parameters:v})},this._addEventListeners=function(){c._eventBus.on(U.ConfigUpdated,c._onConfigUpdated),c._eventBus.on(U.Init,c._onInit),c._eventBus.on(U.PlayerCreated,c._onPlayerCreated),c._eventBus.on(U.Playing,c._onPlaying),c._eventBus.on(U.Waiting,c._onStaleStart),c._eventBus.on(U.Canplay,c._onCanplay),c._eventBus.on(U.QualityChangeRequested,c._onStaleStart),c._eventBus.on(U.QualityChangeRendered,c._onStaleEnd),c._eventBus.on(U.Pause,c._onPause),c._eventBus.on(U.Play,c._onPlay),c._eventBus.on(U.Seeking,Aa(c._onSeeking,350)),c._eventBus.on(U.Ended,c._onEnded),c._eventBus.on(U.FullscreenChanged,c._onFullscreenChanged),c._eventBus.on(U.PictureInPictureChanged,c._onPipChanged),c._eventBus.on(U.VolumeChanged,Aa(c._onVolumeChanged,350)),c._eventBus.on(U.Mute,c._onMute),c._eventBus.on(U.PlaybackRateChanged,c._onSpeedChanged),c._eventBus.on(U.QualityChangeRendered,c._onQualityChanged),c._eventBus.on(U.Error,c._onError),c._eventBus.on(U.Destroy,c._onDestroy),c._eventBus.on(U.Cleared,c._onDestroy),c._eventBus.on(U.Replay,c._onReplay),c._eventBus.on(U.Heartbeat,c._onHeartbeat)},this._onConfigUpdated=function(p){var g=p.meta;c._client.updateClientParameters(g)},this._onInit=function(){c._initTime=Date.now(),c._watchId=wn(),c._playRequestTime=null,c.trackEvent({type:J.PlaybackInit,parameters:{mobileConnection:la()}})},this._onPlayerCreated=function(){c.trackEvent({type:J.PlayerLoaded})},this._onCanplay=function(){c._initTime&&(c.trackEvent({type:J.Ready,parameters:{playerCount:c._metaInfoProvider.totalCount,delay:Date.now()-c._initTime,streamingProtocol:c._protocol}}),c._initTime=null),c._onStaleEnd()},this._onPlaying=function(){if(c._playRequestTime){var p=Date.now()-c._playRequestTime;p<1e3*30?c.trackEvent({type:J.FirstFrame,parameters:{displayDelay:p}}):c.trackError(new dn(ht.TOO_LONG_FIRST_FRAME_DELAY)),c._playRequestTime=null}},this._onStaleStart=function(){c._initTime||c._stateProvider.state.isSeeking||(c._staleStart=Date.now(),c.trackEvent({type:J.StaleStart,parameters:{}}))},this._onStaleEnd=function(){if(c._staleStart){var p=Date.now()-c._staleStart;c._staleStart=null,c.trackEvent({type:J.StaleEnd,parameters:{staleDuration:p}})}},this._onPause=function(){c._playRequestTime=null,c.trackEvent({type:J.Pause,parameters:{videoDuration:Math.floor(c._player.duration)}})},this._onPlay=function(){c._playRequestTime||(c._playRequestTime=
4Date.now()),c.trackEvent({type:J.Play})},this._onSeeking=function(){c.trackEvent({type:J.Seek})},this._onEnded=function(){c.trackEvent({type:J.Complete})},this._onFullscreenChanged=function(p){c.trackEvent({type:J.Fullscreen,parameters:{active:p}})},this._onPipChanged=function(p){c.trackEvent({type:J.Pip,parameters:{active:p}})},this._onVolumeChanged=function(p,g){c.trackEvent({type:J.VolumeChange,parameters:{previousVolumeValue:g,newVolumeValue:p}})},this._onMute=function(p){c.trackEvent({type:J.Mute,parameters:{active:p}})},this._onSpeedChanged=function(p,g){c.trackEvent({type:J.SpeedChange,parameters:{previousSpeedValue:g,newSpeedValue:p}})},this._onQualityChanged=function(p,g){c.trackEvent({type:J.QualityChange,parameters:{newBitrateValue:p.bitrate||0,newHeightValue:p.height,newWidthValue:p.width,previousBitrateValue:g?.bitrate,previousWidthValue:g?.width,previousHeightValue:g?.height}})},this._onError=function(p){c.trackError(p)},this._onReplay=function(){c.trackEvent({type:J.Replay})},this._onDestroy=function(){c.trackEvent({type:J.Destroy,parameters:{playerCount:c._metaInfoProvider.totalCount}})},this._logger=n.child("AnalyticsService"),this._configProvider=r,this._player=i,this._eventBus=o,this._stateProvider=a,this._metaInfoProvider=l,this._sourceController=u,this._protocol=f,this._staleStart=null;var h=function(){var p,g;return{playerId:c._metaInfoProvider.instanceId,mediaId:(p=c._sourceController.source)===null||p===void 0?void 0:p.mediaId,viewLocation:c.config.meta.viewLocation,position:c._player?Math.floor(c._player.currentTime):void 0,watchId:c._watchId,mediaType:((g=c._sourceController.source)===null||g===void 0?void 0:g.type)==="MEDIA_TYPE_SHORTS"?ui.Shorts:ui.Video,sdkVersion:qu,tenantId:c.tenantId}};this._client=new xu(Ku,h,this.config.meta,this.config.env.isDev)}return Object.defineProperty(e.prototype,"config",{get:function(){return this._configProvider.config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deviceId",{get:function(){return this._client.deviceId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ssoId",{get:function(){return this.config.meta.ssoId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tenantId",{get:function(){var t=this._sourceController.refreshToken;if(!t)return null;try{var n=ze(t.split("."),3),r=n[1],i=JSON.parse(atob(r));return i.sub}catch{return null}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this._addEventListeners()},e.prototype.destroy=function(){this._initTime=null,this._playRequestTime=null,this._watchId=null},e})();function Ju(e){return{useFactory:function(t){return new Xu(cn(cn({},t),{sourceController:t.sourceController,protocol:e}))},deps:{logger:$r,configProvider:jr,player:Io,eventBus:zr,stateProvider:Ao,metaInfoProvider:Fr,sourceController:Ro},provide:Oo}}var Zu={useFactory:function(){return new Nu},provide:Wn},En;function Qu(){return/iPad|iPhone|iPod|Mac/.test(navigator.userAgent)||navigator.platform.includes("Mac")}function ed(){return window.safari!==void 0?!0:/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}var dr;function td(){var e;if(dr)return dr;var t=document.createElement("video"),n=function(r){return t.canPlayType(r)==="maybe"};return dr=(e={},e[Be.Dash]=n("application/dash+xml"),e[Be.Hls]=Qu()&&ed()&&n('application/vnd.apple.mpegurl; codecs: "avc1, hvc1, mp4a"'),e),dr}function nd(e){return e[Be.Dash]?Be.Dash:e[Be.Hls]?Be.Hls:Be.Dash}var yr;yr=(En=(function(){function e(){}return e.create=function(t,n){var r=new Yn,i=td(),o=nd(i),a=i[Be.Dash]||i[Be.Hls];r.register(or(t)),r.register(tr),r.register(Zu),r.register(Yu),r.register(nr),r.register(Gu),r.register(rr),r.register(Zn),r.register(qn),r.register(Jn),r.register(sr),r.register(Xn),r.register(Gn),r.register(xo),r.register(Qn),r.register(er),r.register(ir),r.register(Uo(o)),r.register(Ju(o)),r.register(ar(a?fn.HTML:fn.DASH)),cr(r,n);var l=new pn(r);return l.__kind=En.__kind,l},e.isInstanceof=function(t){return t.__kind===En.__kind},e})(),En.__kind=Symbol("StreamPlayer"),En);var Cf=Lr(Ur()),rd=10;function id(e,t){return Array.from(e).find(function(n){return n.contentId===t||!n.state.isBusy})}var od=(function(){function e(){this.extensions=[],this._playerPool=new Set}return e.prototype.getInstance=function(t,n,r){r===void 0&&(r=yr);var i,o=this._playerPool.size>0&&id(this._playerPool,n);
4return o&&r.isInstanceof(o)?(this._playerPool.delete(o),o.updateConfig(t),i=o):i=r.create(t,this.extensions),i},e.prototype.release=function(t){this._playerPool.size<rd?this._playerPool.add(t):t.destroy()},e.prototype.destroy=function(){this._playerPool.forEach(function(t){return t.destroy()}),this._playerPool.clear()},e.prototype.extend=function(t){var n;return this._playerPool.size>0&&console.warn("There is existing players in the pool. Extensions will not be applied to them."),(n=this.extensions).push.apply(n,mt([],ze(t),!1)),this},e.prototype.fork=function(t){var n=new e;return n.extend(t),n},e})(),ad=new od;var Of=Lr(Ur()),_r,br;br=(_r=(function(){function e(){}return e.create=function(t,n){var r=new Yn;r.register(or(t)),r.register(tr),r.register(nr),r.register(rr),r.register(Zn),r.register(qn),r.register(sr),r.register(Jn),r.register(Xn),r.register(Gn),r.register(jo),r.register(No),r.register(Qn),r.register(er),r.register(ir),r.register(ar(fn.HTML)),cr(r,n);var i=new pn(r);return i.__kind=br.__kind,i},e.isInstanceof=function(t){return t.__kind===br.__kind},e})(),Mo(_r,"FilePlayerFactory"),_r.__kind=Symbol("StreamPlayer"),_r);var Bf=Lr(Ur());function os(e){return{play:function(){return e.play()},replay:function(){return e.replay()},pause:function(){return e.pause()},togglePlay:function(){return e.togglePlay()},stepSeekForward:function(){return e.stepSeekForward()},stepSeekBack:function(){return e.stepSeekBack()},mute:function(){return e.mute()},unmute:function(){return e.unmute()},toggleMute:function(){return e.toggleMute()},stepVolumeUp:function(){return e.stepVolumeUp()},stepVolumeDown:function(){return e.stepVolumeDown()},toggleFullscreen:function(){return e.toggleFullscreen()},togglePictureInPicture:function(){return e.togglePictureInPicture()},seek:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.seek.apply(e,mt([],ze(t),!1))},changeQuality:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.changeQuality.apply(e,mt([],ze(t),!1))},setVolume:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.setVolume.apply(e,mt([],ze(t),!1))}}}var Vf=[U.Destroy,U.Cleared],Hf=[U.Waiting,U.Pause,U.Error];var Ot=function(){return Ot=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ot.apply(this,arguments)};function sd(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function cd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var as={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(u,f,c){this.fn=u,this.context=f,this.once=c||!1}function o(u,f,c,h,p){if(typeof c!="function")throw new TypeError("The listener must be a function");var g=new i(c,h||u,p),w=n?n+f:f;return u._events[w]?u._events[w].fn?u._events[w]=[u._events[w],g]:u._events[w].push(g):(u._events[w]=g,u._eventsCount++),u}function a(u,f){--u._eventsCount===0?u._events=new r:delete u._events[f]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var f=[],c,h;if(this._eventsCount===0)return f;for(h in c=this._events)t.call(c,h)&&f.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(c)):f},l.prototype.listeners=function(f){var c=n?n+f:f,h=this._events[c];if(!h)return[];if(h.fn)return[h.fn];for(var p=0,g=h.length,w=new Array(g);p<g;p++)w[p]=h[p].fn;return w},l.prototype.listenerCount=function(f){var c=n?n+f:f,h=this._events[c];return h?h.fn?1:h.length:0},l.prototype.emit=function(f,c,h,p,g,w){var O=n?n+f:f;if(!this._events[O])return!1;var S=this._events[O],A=arguments.length,j,k;if(S.fn){switch(S.once&&this.removeListener(f,S.fn,void 0,!0),A){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,c),!0;case 3:return S.fn.call(S.context,c,h),!0;case 4:return S.fn.call(S.context,c,h,p),!0;case 5:return S.fn.call(S.context,c,h,p,g),!0;case 6:return S.fn.call(S.context,c,h,p,g,w),!0}for(k=1,j=new Array(A-1);k<A;k++)j[k-1]=arguments[k];S.fn.apply(S.context,j)}else{var Y=S.length,v;for(k=0;k<Y;k++)switch(S[k].once&&this.removeListener(f,S[k].fn,void 0,!0),A){case 1:S[k].fn.call(S[k].context);break;case 2:S[k].fn.call(S[k].context,c);break;case 3:S[k].fn.call(S[k].context,c,h);break;
4case 4:S[k].fn.call(S[k].context,c,h,p);break;default:if(!j)for(v=1,j=new Array(A-1);v<A;v++)j[v-1]=arguments[v];S[k].fn.apply(S[k].context,j)}}return!0},l.prototype.on=function(f,c,h){return o(this,f,c,h,!1)},l.prototype.once=function(f,c,h){return o(this,f,c,h,!0)},l.prototype.removeListener=function(f,c,h,p){var g=n?n+f:f;if(!this._events[g])return this;if(!c)return a(this,g),this;var w=this._events[g];if(w.fn)w.fn===c&&(!p||w.once)&&(!h||w.context===h)&&a(this,g);else{for(var O=0,S=[],A=w.length;O<A;O++)(w[O].fn!==c||p&&!w[O].once||h&&w[O].context!==h)&&S.push(w[O]);S.length?this._events[g]=S.length===1?S[0]:S:a(this,g)}return this},l.prototype.removeAllListeners=function(f){var c;return f?(c=n?n+f:f,this._events[c]&&a(this,c)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(as);var ld=as.exports,ud=cd(ld),dd=ud;function Ci(e){var t=e.url,n=e.playbackOptions,r=e.enableApi,i=e.enableEvents,o=e.customization,a=new URL(t);return Object.entries(Ot(Ot({},n??{}),{enableApi:r,enableEvents:i})).forEach(function(l){var u=sd(l,2),f=u[0],c=u[1];a.searchParams.set(f,c?"1":"0")}),o&&(o.appName&&a.searchParams.set("customAppName",o.appName),o.appVersion&&a.searchParams.set("customAppVersion",o.appVersion),a.searchParams.set("customAppUrl",o.appUrl)),a.toString()}function ss(e){var t,n=new URL(e),r=n.searchParams.get("customAppUrl"),i=r?{appUrl:r,appName:n.searchParams.get("customAppName")||void 0,appVersion:n.searchParams.get("customAppVersion")||void 0}:void 0;return{url:n.origin,playbackOptions:{isAutoplay:n.searchParams.get("isAutoplay")==="1",isLooped:n.searchParams.get("isLooped")==="1",isMuted:n.searchParams.get("isMuted")==="1",initialVolume:Number((t=n.searchParams.get("initialVolume"))!==null&&t!==void 0?t:1)},customization:i,enableApi:n.searchParams.get("enableApi")==="1",enableEvents:n.searchParams.get("enableEvents")==="1"}}var fd=Object.keys(os({})),Si="autoplay; encrypted-media; fullscreen; picture-in-picture; screen-wake-lock;",Ti=(function(){function e(t){var n=this;if(this.eventEmitter=new dd,this.state=null,this.onMessage=function(o){o.source===n.iframe.contentWindow&&o.data.type==="PlayerEvent"&&n.eventEmitter.emit(o.data.event.type,o.data.event.data)},t instanceof HTMLIFrameElement){this.iframe=t;var r=t.getAttribute("name");r||(r="embed-player",t.name=r),this.props=Ot(Ot({},ss(t.src)),{name:r}),t.allow=Si,t.allowFullscreen=!0}else{var i=document.createElement("iframe");i.allowFullscreen=!0,i.name=t.name,i.src=Ci(t),i.allow=Si,t.className&&i.classList.add(t.className),t.width!==void 0&&t.height!==void 0&&(i.width="".concat(t.width,"px"),i.height="".concat(t.height,"px"),i.style.aspectRatio="".concat(t.width," / ").concat(t.height)),this.props=Ot({},t),this.iframe=i}window.addEventListener("message",this.onMessage),this.props.enableEvents&&this.eventEmitter.on(U.StateUpdated,this.onStateUpdated,this)}return e.createAttributes=function(t){return{name:t.name,allow:Si,allowFullScreen:!0,src:Ci(t)}},e.API=function(t){var n=t.iframe,r=t.name,i=n?n.contentWindow:window.frames[r];return fd.reduce(function(o,a){return o[a]=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];i?.postMessage({type:"command",command:{type:a,parameters:l}},"*")},o},{})},Object.defineProperty(e.prototype,"api",{get:function(){if(!this.props.enableApi)throw new Error("Api is disabled for this player, pass enableApi: true to enable it");return e.API({iframe:this.iframe})},enumerable:!1,configurable:!0}),e.prototype.onStateUpdated=function(t){this.state=t},e.prototype.addEventListener=function(t,n){if(!this.props.enableEvents)throw new Error("Events is disabled for this player, pass enableEvents: true to enable it");this.eventEmitter.on(t,n,this)},e.prototype.removeEventListener=function(t,n){this.eventEmitter.off(t,n)},e.prototype.destroy=function(){window.removeEventListener("message",this.onMessage),this.eventEmitter.removeAllListeners()},e})();var Pi=(()=>{class e{#e=x(xn);createVideoPlayer(n,r,i){this.player&&this.player.destroy(),this.player=new Ti(i?In({url:n},i):{url:n,name:"cu-video-player",playbackOptions:{initialVolume:1,isAutoplay:!1,isMuted:!1,isLooped:!1},enableApi:!0,enableEvents:!0,className:"cu-video-player"}),this.#e.appendChild(r,this.player.iframe)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=jt({token:e,factory:e.\u0275fac})}}return e})();var cs=(()=>{class e{constructor(){this.#e=x(zt),this.#t=x(Pi),this.videoUrl=te.required(),this.options=te(void 0)}#e;#t;ngAfterViewInit(){this.#t.createVideoPlayer(this.videoUrl(),this.#e.nativeElement,this.options())}ngOnDestroy(){this.#t.player?.destroy()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["cu-video-player"]],inputs:{videoUrl:[1,"videoUrl"],options:[1,"options"]},features:[Vt([Pi])],decls:0,vars:0,template:function(r,i){},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}"],changeDetection:0})}}return e})();var ls=/https:\/\/vp-embed-test\.vp-front\.internal\.ya-ruc1-dev1\.dev\.k8s\.tcsbank\.ru\/\?token=([a-zA-Z0-9\-_.~%]+)/g,ki=/https:\/\/vp-embed\.tbank\.ru\/\?token=([a-zA-Z0-9\-_.~%]+)/g,pd={dev:new RegExp(`${ls.source}|${ki.source}`,"g"),prod:ki,preprod:new RegExp(`${ls.source}|${ki.source}`,"g")},Oi=(()=>{class e{constructor(){this.#e=x(qi),this.#t=x(Xi),this.#n=x(to),this.#r=x(po),this.#i=x(Ft),this.componentRefs={}}#e;#t;#n;#r;#i;get urlRegex(){let n=pd[this.#r];if(!n)throw new Error(`Unknown stand type: ${this.#r}`);return n}processHtml$(n,r){this.#a();let i=[];
4return this.#o(n).forEach(a=>{let l=a.textContent||"",u=Array.from(l.matchAll(this.urlRegex));u.length!==0&&u.forEach((f,c)=>{let h=f[0],p=`video_${Date.now()}_${c}`,g=this.#i.createElement("div");g.className="site-news-description__video",g.setAttribute("data-video-id",p);let w=l.replace(h,"");a.parentNode&&(a.parentNode.insertBefore(g,a),a.textContent=w,this.#s(g,h,p,r),i.push({videoId:p,videoUrl:h,element:g}))})}),Mn(i)}ngOnDestroy(){this.#a()}#o(n){let r=[],i=this.#i.createTreeWalker(n,NodeFilter.SHOW_TEXT,null),o;for(;o=i.nextNode();){let a=o;a.textContent?.trim()&&this.urlRegex.test(a.textContent)&&r.push(a)}return this.urlRegex.lastIndex=0,r}#s(n,r,i,o){let a=oo(cs,{environmentInjector:this.#t,elementInjector:this.#e,hostElement:n});a.setInput("videoUrl",r),o&&a.setInput("options",o),this.#n.attachView(a.hostView),this.componentRefs[i]=a}#a(){Object.values(this.componentRefs).forEach(n=>{this.#n.detachView(n.hostView),n.destroy()}),this.componentRefs={}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=jt({token:e,factory:e.\u0275fac})}}return e})();var us=(()=>{class e{#e;#t;#n;#r;#i;constructor(){this.#e=x(Oi),this.#t=x(ao),this.#n=x(zt),this.#r=x(Ji),this.#i=x(zn,{optional:!0}),this.innerHTML=Dn(""),this.videoPlayerOptions=te(),this.content=te("",{alias:"cuEditorSocketAdapter"}),Tt(()=>{let n=this.content();if(!n){this.innerHTML.set("");return}this.innerHTML.set(this.#t.bypassSecurityTrustHtml(n)),this.#o()})}#o(){if(this.#i)return;Wi().pipe(Gi(1)).pipe(so(this.#r),Ki(()=>this.#e.processHtml$(this.#n.nativeElement,this.videoPlayerOptions()))).subscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=eo({type:e,selectors:[["","cuEditorSocketAdapter",""]],hostVars:1,hostBindings:function(r,i){r&2&&no("innerHTML",i.innerHTML(),Zi)},inputs:{videoPlayerOptions:[1,"videoPlayerOptions"],content:[1,"cuEditorSocketAdapter","content"]},features:[Vt([Oi])]})}}return e})();var md={name:"case-video",playbackOptions:{initialVolume:1,isAutoplay:!1,isMuted:!1,isLooped:!1}},ds=(()=>{class e{constructor(){this.htmlContent=te(""),this.videoPlayerOptions=md}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["cu-site-news-description-renderer"]],inputs:{htmlContent:[1,"htmlContent"]},decls:1,vars:3,consts:[[3,"cuEditorSocketAdapter","videoPlayerOptions","content"]],template:function(r,i){r&1&&G(0,"cu-editor-socket",0),r&2&&me("cuEditorSocketAdapter",i.htmlContent())("videoPlayerOptions",i.videoPlayerOptions)("content",i.htmlContent())},dependencies:[us,ca],styles:["cu-editor-socket[_ngcontent-%COMP%]    {overflow-wrap:break-word;word-break:break-word}cu-editor-socket[_ngcontent-%COMP%]     ul:not([data-type]){list-style:disc;padding-left:1.5rem}@media screen and (min-width:64em){cu-editor-socket[_ngcontent-%COMP%]     ul:not([data-type]){list-style:disc}}cu-editor-socket[_ngcontent-%COMP%]     ul:not([data-type]) li p, cu-editor-socket[_ngcontent-%COMP%]     ol:not([data-type]) li p{margin:.125rem;color:var(--cu-site-color-grey-300)}cu-editor-socket[_ngcontent-%COMP%]     ol:not([data-type]){list-style:decimal;padding-left:1.25rem}cu-editor-socket[_ngcontent-%COMP%]     li::marker{color:var(--cu-site-color-grey-300)}cu-editor-socket[_ngcontent-%COMP%]     li{font:var(--font-ui-m-400-mobile);letter-spacing:var(--font-h-s-mobile-spacing)}@media screen and (min-width:64em){cu-editor-socket[_ngcontent-%COMP%]     li{font:var(--font-ui-m-400-desktop);color:var(--cu-site-color-grey-300)}}cu-editor-socket[_ngcontent-%COMP%]     li[data-type=taskItem]{display:flex;align-items:center}cu-editor-socket[_ngcontent-%COMP%]     li[data-type=taskItem] label{display:inline-flex;margin-right:.5rem;align-items:center}cu-editor-socket[_ngcontent-%COMP%]     li[data-type=taskItem] div p{display:inline;margin:0;width:1rem;height:1rem;min-width:1rem;min-height:1rem}cu-editor-socket[_ngcontent-%COMP%]     h1{font:var(--font-h-m-mobile);letter-spacing:var(--font-h-s-mobile-spacing);margin-top:1.5rem;margin-bottom:1.5rem}@media screen and (min-width:64em){cu-editor-socket[_ngcontent-%COMP%]     h1{font:var(--font-h-m-desktop);letter-spacing:var(--font-h-m-desktop-spacing)}}cu-editor-socket[_ngcontent-%COMP%]     h2{font:var(--font-h-s-mobile);letter-spacing:var(--font-h-s-mobile-spacing);margin-top:1.5rem;margin-bottom:1.5rem}@media screen and (min-width:64em){cu-editor-socket[_ngcontent-%COMP%]     h2{font:var(--font-h-s-desktop);letter-spacing:var(--font-h-s-desktop-spacing)}}cu-editor-socket[_ngcontent-%COMP%]     h3{font-size:1.75rem;font-weight:600;margin-top:1.5rem;margin-bottom:1.5rem}cu-editor-socket[_ngcontent-%COMP%]     strong{font-weight:700}cu-editor-socket[_ngcontent-%COMP%]     em{font-style:italic}cu-editor-socket[_ngcontent-%COMP%]     img{max-width:100%;height:auto;margin:1rem 0}cu-editor-socket[_ngcontent-%COMP%]     p{font:var(--font-ui-m-400-mobile);color:var(--cu-site-color-grey-300);margin-bottom:1.5rem;margin-top:1.5rem}@media screen and (min-width:64em){cu-editor-socket[_ngcontent-%COMP%]     p{color:var(--cu-site-color-grey-300);font:var(--font-ui-m-400-desktop)}}cu-editor-socket[_ngcontent-%COMP%]     hr{margin:1.5rem 0;border-color:var(--cu-site-border-normal);border-top:.0625rem solid var(--cu-site-border-normal)}cu-editor-socket[_ngcontent-%COMP%]     blockquote{padding:0 0 0 1.5rem;margin:0;border-left:.125rem solid #ffffff}cu-editor-socket[_ngcontent-%COMP%]     blockquote p{color:#fff}cu-editor-socket[_ngcontent-%COMP%]     sup{vertical-align:super;font-size:.75rem}cu-editor-socket[_ngcontent-%COMP%]     sub{vertical-align:sub;font-size:.75rem}cu-editor-socket[_ngcontent-%COMP%]     a, cu-editor-socket[_ngcontent-%COMP%]     a:not([data-type=jump-anchor]){--tui-text-action: #ffffff;--tui-text-action-hover: #ffffff;--tui-background-accent-1-pressed: #ffffff;text-decoration-line:underline;text-decoration-color:#fff;text-decoration-thickness:6%;text-underline-offset:21%;text-decoration-skip-ink:all;color:#fff}cu-editor-socket[_ngcontent-%COMP%]     img{border-radius:.5rem}  .site-news-description__video{overflow:hidden;border-radius:1rem;height:18rem}  .site-news-description__video iframe{height:18rem;width:100%;border:none}@media screen and (min-width:64em){  .site-news-description__video{he
4ight:24.7rem}  .site-news-description__video iframe{height:24.7rem;width:100%;border:none}}"],changeDetection:0})}}return e})();function vd(e,t){if(e&1&&(B(0,"div"),G(1,"cu-site-common-error-view-feature",1),F()),e&2){let n=ee();L(),me("error",n.newsErrorData())}}function gd(e,t){e&1&&G(0,"cu-site-kit-skeleton-ui",6)}function yd(e,t){if(e&1&&(G(0,"cu-site-kit-skeleton-ui",3)(1,"cu-site-kit-skeleton-ui",4)(2,"cu-site-kit-skeleton-ui",5)(3,"cu-site-kit-skeleton-ui",6)(4,"cu-site-kit-skeleton-ui",7)(5,"cu-site-kit-skeleton-ui",8)(6,"cu-site-kit-skeleton-ui",9),Ie(7,gd,1,0,"cu-site-kit-skeleton-ui",6,Ke),G(9,"cu-site-kit-skeleton-ui",10)),e&2){let n=ee(3);L(7),Me(n.skeletonItems())}}function _d(e,t){e&1&&G(0,"cu-site-kit-skeleton-ui",13)}function bd(e,t){if(e&1&&(G(0,"cu-site-kit-skeleton-ui",3)(1,"cu-site-kit-skeleton-ui",11)(2,"cu-site-kit-skeleton-ui",12)(3,"cu-site-kit-skeleton-ui",13)(4,"cu-site-kit-skeleton-ui",14)(5,"cu-site-kit-skeleton-ui",8)(6,"cu-site-kit-skeleton-ui",15),Ie(7,_d,1,0,"cu-site-kit-skeleton-ui",13,Ke),G(9,"cu-site-kit-skeleton-ui",16)),e&2){let n=ee(3);L(7),Me(n.skeletonItems())}}function Ed(e,t){if(e&1&&(B(0,"div",2),Te(1,yd,10,0)(2,bd,10,0),F()),e&2){let n=ee(2);L(),Pe(n.isMobile()?1:2)}}function wd(e,t){if(e&1&&(B(0,"span",24),be(1),F()),e&2){let n=t.$implicit;L(),qe(n)}}function Sd(e,t){e&1&&Ie(0,wd,2,1,"span",24,Ke),e&2&&Me(t)}function Cd(e,t){if(e&1&&G(0,"cu-site-news-recommended-feature",23),e&2){let n=ee(4);me("isMobile",n.isMobile())("news",n.limitedRecommendedNews())}}function Td(e,t){if(e&1&&(B(0,"div",2)(1,"div",18)(2,"span"),be(3),ft(4,"date"),F(),Te(5,Sd,2,0),F(),B(6,"h1",17),be(7),F(),B(8,"span",19),be(9),F(),G(10,"hr",20),B(11,"div",21),G(12,"cu-site-news-description-renderer",22),F()(),Te(13,Cd,1,2,"cu-site-news-recommended-feature",23)),e&2){let n,r=ee(3),i=Bt(0);L(3),$t(" ",pt(4,6,i.startDate,"dd.MM.yyyy")," "),L(2),Pe((n=r.nonDefaultTags())?5:-1,n),L(2),$t(" ",i.title," "),L(2),qe(i.summary),L(3),me("htmlContent",i.description??""),L(),Pe(r.limitedRecommendedNews()?13:-1)}}function Pd(e,t){e&1&&(B(0,"h1",17),be(1,"\u0421\u043A\u043E\u0440\u043E \u0437\u0434\u0435\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043D\u043E\u0432\u043E\u0441\u0442\u044C"),F())}function kd(e,t){if(e&1&&(B(0,"div",0),Te(1,Td,14,9)(2,Pd,2,0,"h1",17),F()),e&2){ee(2);let n=Bt(0);L(),Pe(n?1:2)}}function Od(e,t){if(e&1&&(B(0,"div",0),Te(1,Ed,3,1,"div",2)(2,kd,3,1,"div",0),F()),e&2){let n=ee();L(),Pe(n.isLoadingNews()?1:2)}}var Yp=(()=>{class e{#e;#t;#n;#r;constructor(){this.#e=x(_o),this.#t=x(Bn),this.#n=x(co),this.#r=x(zn,{optional:!0}),this.errorStatus=De(()=>this.isError()?.status??null),this.newsErrorData=De(()=>{switch(this.errorStatus()){case 404:return Fn[404];case 503:return Fn[503];default:return Fn.default}}),this.isMobile=sn(x(mo).isEqualToOrNarrowerThan$(uo.mobile)),this.newsBySlugResponse=sn(this.#e.resultNewsBySlug$),this.recommendedNewsResponse=sn(this.#t.newsResponse$),this.skeletonItems=sn(Mn(wo)),this.news=De(()=>this.newsBySlugResponse()?.data??null),this.limitedRecommendedNews=De(()=>{let n=this.news(),r=this.recommendedNewsResponse()?.data.items;return!n?.id||!r?null:r.filter(o=>o.id!==n.id).slice(0,4)}),this.nonDefaultTags=De(()=>{let n=this.news();if(!n?.tags)return null;let r=n.tags.filter(i=>i.value!=="\u0421\u0430\u0439\u0442.\u041D\u043E\u0432\u043E\u0441\u0442\u0438").map(i=>Vn[i.value??""]?.toUpperCase()??"").filter(i=>i);return r.length>0?r:null}),this.isLoadingNews=this.#e.isLoading,this.isError=this.#e.error,!this.#r&&this.#i()}ngOnInit(){let n=this.#n.snapshot.paramMap.get("slug");if(this.#r){this.#e.fetchNewsBySlug(n??"",!0,!1,200),this.#t.fetchNews({immediately:!0,limit:5,timeout:200});return}this.#e.fetchNewsBySlug(n??"",!0,!1),this.#t.fetchNews({immediately:!0,limit:5})}#i(){Tt(()=>{let r=this.newsBySlugResponse()?.isUpToDate,i=this.#n.snapshot.paramMap.get("slug");i&&r===!1&&this.errorStatus()!==404&&this.#e.fetchNewsBySlug(i,!1,!0)}),Tt(()=>{this.recommendedNewsResponse()?.isUpToDate===!1&&this.#t.fetchNews({immediately:!1,limit:5,force:!0})})}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["cu-site-news-feature-single-page"]],decls:3,vars:2,consts:[[1,"single-page-news-animation"],[3,"error"],[1,"single-page-news-content"],[1,"w-160","h-[1.125rem]","mb-16"],[1,"w-[22.188rem]","h-48","mb-8"],[1,"w-240","h-48","mb-24"],[1,"w-[22.188rem]","h-16","mb-8"],[1,"w-240","h-16"],[1,"w-[22.188rem]","h-1","mb-24","mt-24"],[1,"w-[22.188rem]","h-[13.875rem]","mb-40"],[1,"w-240","h-16","mb-8"],[1,"w-[43.625rem]","h-48","mb-8"],[1,"w-[30rem]","h-48","mb-24"],[1,"w-[43.625rem]","h-16","mb-8"],[1,"w-[30rem]","h-16"],[1,"w-[43.625rem]","h-[27.25rem]","mb-40"],[1,"w-[30rem]","h-16","mb-8"],[1,"d:font-h-l","font-display","mb-24"],[1,"font-body-m-500","d:font-body-m-500","cu-site-color-grey-300","flex","row","gap-5","mb-16"],[1,"single-page-news__summary","d:font-ui-m-500","font-ui-m-500"],[1,"mb-24","mt-24","cu-site-color-grey-300"],[1,"mb-144"],[3,"htmlContent"],[3,"isMobile","news"],[1,"n
4on-default-tag"]],template:function(r,i){r&1&&(Ln(0),Te(1,vd,2,1,"div")(2,Od,3,1,"div",0)),r&2&&(Un(i.news()),L(),Pe(i.isError()?1:2))},dependencies:[ds,$n,$o,Co,jn],styles:['@keyframes _ngcontent-%COMP%_slideUpAndFadeIn{0%{transform:translateY(1rem);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _ngcontent-%COMP%_scaleIn{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _ngcontent-%COMP%_growHorizontal{0%{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}@keyframes _ngcontent-%COMP%_slideUpAndFadeInPercent{0%{transform:translateY(150%);opacity:0}to{transform:translateY(0);opacity:1}}[_nghost-%COMP%]{display:block;min-height:100vh;box-sizing:border-box}.single-page-news-content[_ngcontent-%COMP%]{margin-top:calc(var(--cu-site-header-height) + 4rem);margin-left:.625rem;margin-right:.625rem}@media screen and (min-width:64em){.single-page-news-content[_ngcontent-%COMP%]{margin-left:23.1875rem;margin-right:23.1875rem}}hr[_ngcontent-%COMP%]{margin-top:2.5rem;margin-bottom:2.5rem;color:var(--cu-site-border-normal);background-color:var(--cu-site-border-normal);border-top:.0625rem solid var(--cu-site-border-normal)}.non-default-tag[_ngcontent-%COMP%]{position:relative;padding-inline-start:.75rem}.non-default-tag[_ngcontent-%COMP%]:not(:first-child):before{content:"\\2022";position:absolute;left:0;width:1.5rem;height:1.5rem;font-size:1rem;line-height:1}.single-page-news-animation[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slideUpAndFadeIn .5s cubic-bezier(.6,0,.4,1) forwards;opacity:0;animation-delay:0s}.single-page-news__summary[_ngcontent-%COMP%]{display:block;margin-bottom:-.125rem}'],changeDetection:0})}}return e})();export{Yp as SiteNewsFeatureSinglePageComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.