TelegramPWA/dist/3224.5164c97698218cc9a7b4.js
Alexander Zinchuk 06098dd821 [Build]
2023-07-21 17:50:16 +02:00

2 lines
17 KiB
JavaScript

"use strict";(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[3224],{70172:(e,t,n)=>{n.d(t,{Z:()=>g});var o=n(60748),r=n(6137),i=n(83716),a=n(48670),s=n(2155),c=n(46752),l=n(32340),d=n(6202),u=n(70692),m=n(59107),f=n(39415),v=n(25190),h=n(57080);const p=(0,c.y)("Avatar");p.media=p("media"),p.icon=p("icon");const g=(0,o.X$)((e=>{let{className:t,size:n="large",peer:g,photo:Z,text:w,isSavedMessages:I,withVideo:C,loopIndefinitely:E,noPersonalPhoto:P,onClick:y}=e;const b=(0,o.sO)(null),L=(0,o.sO)(0),x=g&&"title"in g,M=g&&!x?g:void 0,k=g&&x?g:void 0,N=M&&(0,a.NB)(M),T=g&&(0,a.pK)(g.id),O=k?.isForum;let S,B;const U=C&&Z?.isVideo,F="jumbo"===n;I||N||(M&&!P||k?S=(0,a.RT)(g,F?"big":void 0):Z&&(S=`photo${Z.id}?size=m`,Z.isVideo&&C&&(B=`videoAvatar${Z.id}?size=u`)));const $=(0,d.Z)(S,!1,r.IU.BlobUrl),j=(0,d.Z)(B,!U,r.IU.BlobUrl),X=Boolean($||j),J=Boolean(j&&U),V=(0,u.Z)(X),D=(0,v.Z)((e=>{const t=e.currentTarget;j&&(E||(L.current+=1,L.current>=3&&(t.style.display="none")))})),A=(0,m.Z)();let R;const q=M?(0,a.Js)(M):k?(0,a.U)(A,k):w;if(I)R=o.ZP.createElement("i",{className:(0,c.Z)(p.icon,"icon","icon-avatar-saved-messages"),role:"img","aria-label":q});else if(N)R=o.ZP.createElement("i",{className:(0,c.Z)(p.icon,"icon","icon-avatar-deleted-account"),role:"img","aria-label":q});else if(T)R=o.ZP.createElement("i",{className:(0,c.Z)(p.icon,"icon","icon-reply-filled"),role:"img","aria-label":q});else if(X)R=o.ZP.createElement(o.ZP.Fragment,null,o.ZP.createElement("img",{src:$,className:(0,c.Z)(p.media,"avatar-media",V,j&&"poster"),alt:q,decoding:"async"}),J&&o.ZP.createElement(h.Z,{canPlay:!0,src:j,className:(0,c.Z)(p.media,"avatar-media","poster"),muted:!0,loop:E,autoPlay:!0,disablePictureInPicture:!0,playsInline:!0,onEnded:D}));else if(M){const e=(0,a.Js)(M);R=e?(0,s.Xv)(e,2):void 0}else if(k){const e=(0,a.U)(A,k);R=e&&(0,s.Xv)(e,(0,a.YC)(k.id)?2:1)}else w&&(R=(0,s.Xv)(w,2));const z=(0,c.Z)(`Avatar size-${n}`,t,`color-bg-${(0,a.Rs)(g)}`,I&&"saved-messages",N&&"deleted-account",T&&"replies-bot-account",O&&"forum",y&&"interactive",!I&&!$&&"no-photo"),_=Boolean(I||$),{handleClick:G,handleMouseDown:H}=(0,f.m)((e=>{y&&y(e,_)}));return o.ZP.createElement("div",{ref:b,className:z,"data-test-sender-id":i.Cgt?g?.id:void 0,"aria-label":"string"==typeof R?q:void 0,onClick:G,onMouseDown:H},"string"==typeof R?(0,l.Z)(R,["jumbo"===n?"hq_emoji":"emoji"]):R)}))},50685:(e,t,n)=>{n.d(t,{Z:()=>i});var o=n(60748),r=n(59107);const i=(0,o.X$)((e=>{let{fakeType:t}=e;const n=(0,r.Z)();return o.ZP.createElement("span",{className:"FakeIcon"},n("fake"===t?"FakeMessage":"ScamMessage"))}))},2153:(e,t,n)=>{n.d(t,{Z:()=>v});var o=n(60748),r=n(83716),i=n(32340),a=n(48670),s=n(46752),c=n(59107);const l=()=>o.ZP.createElement("svg",{className:"VerifiedIcon",viewBox:"0 0 24 24"},o.ZP.createElement("path",{d:"M12.3 2.9c.1.1.2.1.3.2.7.6 1.3 1.1 2 1.7.3.2.6.4.9.4.9.1 1.7.2 2.6.2.5 0 .6.1.7.7.1.9.1 1.8.2 2.6 0 .4.2.7.4 1 .6.7 1.1 1.3 1.7 2 .3.4.3.5 0 .8-.5.6-1.1 1.3-1.6 1.9-.3.3-.5.7-.5 1.2-.1.8-.2 1.7-.2 2.5 0 .4-.2.5-.6.6-.8 0-1.6.1-2.5.2-.5 0-1 .2-1.4.5-.6.5-1.3 1.1-1.9 1.6-.3.3-.5.3-.8 0-.7-.6-1.4-1.2-2-1.8-.3-.2-.6-.4-.9-.4-.9-.1-1.8-.2-2.7-.2-.4 0-.5-.2-.6-.5 0-.9-.1-1.7-.2-2.6 0-.4-.2-.8-.4-1.1-.6-.6-1.1-1.3-1.6-2-.4-.4-.3-.5 0-1 .6-.6 1.1-1.3 1.7-1.9.3-.3.4-.6.4-1 0-.8.1-1.6.2-2.5 0-.5.1-.6.6-.6.9-.1 1.7-.1 2.6-.2.4 0 .7-.2 1-.4.7-.6 1.4-1.2 2.1-1.7.1-.2.3-.3.5-.2z",style:"fill: var(--color-fill)"}),o.ZP.createElement("path",{d:"M16.4 10.1l-.2.2-5.4 5.4c-.1.1-.2.2-.4 0l-2.6-2.6c-.2-.2-.1-.3 0-.4.2-.2.5-.6.7-.6.3 0 .5.4.7.6l1.1 1.1c.2.2.3.2.5 0l4.3-4.3c.2-.2.4-.3.6 0 .1.2.3.3.4.5.2 0 .3.1.3.1z",style:"fill: var(--color-checkmark)"}));var d=n(50685),u=n(96459),m=n(4863);const f="ysHMmXALnn0fgFRc7Bn7",v=(0,o.X$)((e=>{let{className:t,peer:n,noVerified:v,noFake:h,withEmojiStatus:p,emojiStatusSize:g,isSavedMessages:Z,noLoopLimit:w,onEmojiStatusClick:I,observeIntersection:C}=e;const E=(0,c.Z)(),P=(0,a.YC)(n.id),y=P?(0,a.Js)(n):(0,a.U)(E,n),b=P&&n.emojiStatus,L=P&&n.isPremium;return Z?o.ZP.createElement("div",{className:(0,s.Z)("title",f,t)},o.ZP.createElement("h3",null,E("SavedMessages"))):o.ZP.createElement("div",{className:(0,s.Z)("title",f,t)},o.ZP.createElement("h3",{dir:"auto",className:"fullName"},(0,i.Z)(y||"")),!v&&n.isVerified&&o.ZP.createElement(l,null),!h&&n.fakeType&&o.ZP.createElement(d.Z,{fakeType:n.fakeType}),p&&b&&o.ZP.createElement(u.Z,{documentId:b.documentId,size:g,loopLimit:w?void 0:r.y3O,observeIntersectionForLoading:C,onClick:I}),p&&!b&&L&&o.ZP.createElement(m.Z,null))}))},4863:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(60748),r=n(46752),i=n(27704);const a="M6.63869 12.1902L3.50621 14.1092C3.18049 14.3087 2.75468 14.2064 2.55515 13.8807C2.45769 13.7216 2.42864 13.5299 2.47457 13.3491L2.95948 11.4405C3.13452 10.7515 3.60599 10.1756 4.24682 9.86791L7.6642 8.22716C7.82352 8.15067 7.89067 7.95951 7.81418 7.80019C7.75223 7.67116 7.61214 7.59896 7.47111 7.62338L3.66713 8.28194C2.89387 8.41581 2.1009 8.20228 1.49941 7.69823L0.297703 6.69116C0.00493565 6.44581 -0.0335059 6.00958 0.211842 5.71682C0.33117 5.57442 0.502766 5.48602 0.687982 5.47153L4.35956 5.18419C4.61895 5.16389 4.845 4.99974 4.94458 4.75937L6.36101 1.3402C6.5072 0.987302 6.91179 0.819734 7.26469 0.965925C7.43413 1.03612 7.56876 1.17075 7.63896 1.3402L9.05539 4.75937C9.15496 4.99974 9.38101 5.16389 9.6404 5.18419L13.3322 5.47311C13.713 5.50291 13.9975 5.83578 13.9677 6.2166C13.9534 6.39979 13.8667 6.56975 13.7269 6.68896L10.9114 9.08928C10.7131 9.25826 10.6267 9.52425 10.6876 9.77748L11.5532 13.3733C11.6426 13.7447 11.414 14.1182 11.0427 14.2076C10.8642 14.2506 10.676 14.2208 10.5195 14.1249L7.36128 12.1902C7.13956 12.0544 6.8604 12.0544 6.63869 12.1902Z",s=(0,o.X$)((e=>{let{withGradient:t,big:n,className:s,onClick:c}=e;const l=(0,i.Z)();return o.ZP.createElement("i",{onClick:c,className:(0,r.Z)("PremiumIcon",s,t&&"gradient",c&&"clickable",n&&"big"),title:"Premium"},t?o.ZP.createElement("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none"},o.ZP.createElement("defs",null,o.ZP.createElement("linearGradient",{id:l,x1:"3",y1:"63.5001",x2:"84.1475",y2:"-1.32262",gradientUnits:"userSpaceOnUse"},o.ZP.createElement("stop",{"stop-color":"#6B93FF"}),o.ZP.createElement("stop",{offset:"0.439058","stop-color":"#976FFF"}),o.ZP.createElement("stop",{offset:"1","stop-color":"#E46ACE"}))),o.ZP.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:a,fill:`url(#${l})`})):o.ZP.createElement("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none"},o.ZP.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:a,fill:"var(--color-fill)"})))}))},22275:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(60748),r=n(33555),i=n(11192),a=n(48670),s=n(32340),c=n(59107),l=n(17551);const d=(0,o.X$)((0,r.c$)(((e,t)=>{let{userId:n}=t;const o=(0,i.jr)(e),r=n&&(0,i.dy)(e,n);return{chat:o,contactName:r?(0,a.Vl)(r):void 0}}))((e=>{let{isOpen:t,chat:n,userId:i,contactName:a,onClose:d}=e;const{deleteChatMember:u}=(0,r.Sv)(),m=(0,c.Z)(),f=(0,o.I4)((()=>{u({chatId:n.id,userId:i}),d()}),[n,u,d,i]);if(n&&i)return o.ZP.createElement(l.Z,{isOpen:t,onClose:d,title:m("GroupRemoved.Remove"),textParts:(0,s.Z)(m("PeerInfo.Confirm.RemovePeer",a)),confirmLabel:m("lng_box_remove"),confirmHandler:f,confirmIsDestructive:!0})})))},42431:(e,t,n)=>{n.d(t,{$5:()=>s,Bj:()=>a,GU:()=>c,Ht:()=>l,LU:()=>m,fu:()=>u,mU:()=>d});var o=n(14342),r=n(48670),i=n(86087);function a(e,t){const n=(0,o.x6)(e,t);if(n&&n.groupCallId)return s(e,n.groupCallId)}function s(e,t){return e.groupCalls.byId[t]}function c(e,t,n){return s(e,t)?.participants[n]}function l(e){const t=d(e)?.chatId;if(!t)return!1;const n=(0,o.Z1)(e,t);return!!n&&((0,r.G9)(n)&&n.isCreator||Boolean(n.adminRights?.manageCall))}function d(e){const{groupCalls:{activeGroupCallId:t}}=e;if(t)return s(e,t)}function u(e){const{phoneCall:t,currentUserId:n}=e;if(!t||!t.participantId||!t.adminId)return;const o=t.adminId===n?t.participantId:t.adminId;return(0,i.dy)(e,o)}function m(e){const t=d(e);if(!t||!t.chatId)return!1;const n=(0,o.Z1)(e,t.chatId);if(!n)return!1;if(Boolean((0,r.WS)(n)))return!0;const i=(0,o.x6)(e,n.id)?.inviteLink;return Boolean(i)}},9211:(e,t,n)=>{n.d(t,{M:()=>i,P:()=>a});var o=n(86087),r=n(83716);function i(e,t){var n;const{appConfig:i}=e;if(!i)return r.prK[t][0];const a=(0,o.wV)(e),{limits:s}=i,c=null!==(n=s[t]?.[a?1:0])&&void 0!==n?n:r.prK[t][a?1:0];return"dialogFilters"===t?c+1:c}function a(e,t){const{appConfig:n}=e;if(!n)return r.prK[t][1];const{limits:o}=n;return o[t][1]}},17240:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(60748),r=n(31664),i=n(57710),a=n(601),s=n(25190);function c(e){e.stopImmediatePropagation(),e.preventDefault(),e.stopPropagation()}const l=(e,t,n,l)=>{const[d,u]=(0,o.eJ)(!1),[m,f]=(0,o.eJ)(void 0),[v,h]=(0,o.eJ)(void 0),p=(0,s.Z)((e=>{t||2!==e.button||(0,i.WM)((()=>{(0,r.mC)(e.target,"allow-selection")}))})),g=(0,s.Z)((e=>{(0,i.WM)((()=>{(0,r.D_)(e.target,"allow-selection")})),t||n&&e.target.matches("a[href]")||(e.preventDefault(),m||(u(!0),f({x:e.clientX,y:e.clientY}),h(e.target)))})),Z=(0,s.Z)((()=>{u(!1)})),w=(0,s.Z)((()=>{f(void 0)}));return(0,o.d4)((()=>{if(t||!a.$b||l)return;const o=e.current;if(!o)return;let r;const i=()=>{r&&(clearTimeout(r),r=void 0)},s=e=>{t||(i(),r=window.setTimeout((()=>(e=>{i();const{clientX:t,clientY:r,target:s}=e.touches[0];m||n&&s.matches("a[href]")||(o.addEventListener("touchend",(e=>{a.cj&&a.fl&&setTimeout((()=>{o.removeEventListener("mousedown",c,{capture:!0}),o.removeEventListener("click",c,{capture:!0})}),100),c(e)}),{once:!0,capture:!0}),a.fl&&a.cj&&(o.addEventListener("mousedown",c,{once:!0,capture:!0}),o.addEventListener("click",c,{once:!0,capture:!0})),u(!0),f({x:t,y:r}))})(e)),200))};return o.addEventListener("touchstart",s,{passive:!0}),o.addEventListener("touchcancel",i,!0),o.addEventListener("touchend",i,!0),o.addEventListener("touchmove",i,{passive:!0}),()=>{i(),o.removeEventListener("touchstart",s),o.removeEventListener("touchcancel",i,!0),o.removeEventListener("touchend",i,!0),o.removeEventListener("touchmove",i)}}),[m,t,l,e,n]),{isContextMenuOpen:d,contextMenuPosition:m,contextMenuTarget:v,handleBeforeContextMenu:p,handleContextMenu:g,handleContextMenuClose:Z,handleContextMenuHide:w}}},39415:(e,t,n)=>{n.d(t,{m:()=>i});var o=n(601),r=n(25190);function i(e){const t=(0,r.Z)((t=>{"mousedown"===t.type&&t.button!==o.tc.Main||e(t)}));return o.$b?{handleClick:e?t:void 0}:{handleMouseDown:e?t:void 0}}},27407:(e,t,n)=>{n.d(t,{Z:()=>d});var o=n(60748),r=n(91713),i=n(60782),a=n(25190),s=n(65326),c=n(87204);function l(e,t,n,o){const{length:i}=e,a=o?e.indexOf(o):0,s=t===r.Uq.Forwards?a:a+1||i,c=Math.max(0,s-n),l=s+n-1,d=e.slice(Math.max(0,c),l+1);let u,m;switch(t){case r.Uq.Forwards:u=s>=0,m=c>=0;break;case r.Uq.Backwards:u=s<i,m=l<=i-1}return{newViewportIds:d,areSomeLocal:u,areAllLocal:m,newIsOnTop:d[0]===e[0]}}const d=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30;const u=(0,o.sO)(),m=(0,o.sO)();if(!m.current&&t&&!n){const{newViewportIds:e,newIsOnTop:n}=l(t,r.Uq.Forwards,d,t[0]);m.current={viewportIds:e,isOnTop:n}}const f=(0,s.Z)();n&&(u.current={});const v=(0,c.Z)(t),h=(0,c.Z)(n);if(!t||n||t===v&&n===h)t||(m.current=void 0);else{const{viewportIds:e,isOnTop:n}=m.current||{},o=e&&!n?e[Math.round(e.length/2)]:void 0,a=o&&t.includes(o)?o:t[0],{offsetId:s=a,direction:c=r.Uq.Forwards}=u.current||{},{newViewportIds:f,newIsOnTop:v}=l(t,c,d,s);u.current={},e&&(0,i.et)(e,f)||(m.current={viewportIds:f,isOnTop:v})}const p=(0,a.Z)((n=>{let{direction:o,noScroll:a}=n;const{viewportIds:s}=m.current||{},c=s?o===r.Uq.Backwards?s[s.length-1]:s[0]:void 0;if(!t)return void(e&&e({offsetId:c}));const{newViewportIds:v,areSomeLocal:h,areAllLocal:p,newIsOnTop:g}=l(t,o,d,c);!h||s&&(0,i.et)(s,v)||(m.current={viewportIds:v,isOnTop:g},f()),!p&&e&&(a||(u.current={...u.current,direction:o,offsetId:c}),e({offsetId:c}))}));return n?[t]:[m.current?.viewportIds,p]}},62357:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(60748);const r=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=(0,o.sO)(e);(0,o.bt)((()=>{r.current=e}),[e]),(0,o.d4)((()=>{if(void 0===t)return;const e=setInterval((()=>r.current()),t);return n||r.current(),()=>clearInterval(e)}),[t,n])}},72645:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(60748);const r=(e,t,n)=>{const r=(0,o.sO)();return(0,o.bt)((()=>{const n=r.current;return r.current=t,e(n||[])}),t,n)}},12644:(e,t,n)=>{n.d(t,{Z:()=>i});var o=n(60748);const r={width:0,left:0,height:0,top:0};function i(e,t,n,i,a){const[s,c]=(0,o.eJ)("right"),[l,d]=(0,o.eJ)("bottom"),[u,m]=(0,o.eJ)(),[f,v]=(0,o.eJ)(),[h,p]=(0,o.eJ)(!1),[g,Z]=(0,o.eJ)(""),[w,I]=(0,o.eJ)("opacity: 0;");return(0,o.d4)((()=>{const o=t();if(!e||!o)return;let{x:s,y:l}=e;const u=s,f=l,h=i(),g=n(),{extraPaddingX:w=0,extraTopPadding:C=0,marginSides:E=0,extraMarginTop:P=0,menuElMinWidth:y=0,shouldAvoidNegativePosition:b=!1,withPortal:L=!1,isDense:x=!1}=a?.()||{},M=h?parseInt(getComputedStyle(h).marginTop,10)+P:void 0,{offsetWidth:k,offsetHeight:N}=h||{offsetWidth:0,offsetHeight:0},T=h?{width:Math.max(k,y),height:N+M}:r,O=g?g.getBoundingClientRect():r;let S,B;x||s+T.width+w<O.width+O.left?(s+=3,S="left"):s-T.width-O.left>0?(S="right",s-=3):(S="left",s=16),c(S),E&&"right"===S&&s+w+E>=O.width+O.left&&(s-=E),E&&"left"===S&&(s+w+E+T.width>=O.width+O.left?s-=E:s-E<=0&&(s+=E)),x||l+T.height<O.height+O.top?B="top":(B="bottom",l-T.height<O.top+C&&(l=O.top+O.height)),d(B);const U=o.getBoundingClientRect(),F=L?U.top:0,$=L?U.left:0,j=Math.min(s-U.left,O.width-T.width-16);let X=("left"===S?L||b?Math.max(16,j):j:s-U.left)+$,J=l-U.top+F;x&&(X=Math.min(X,O.width-T.width-16),J=Math.min(J,O.height-T.height-16));const V=y?Math.max(0,(y-k)/2):0;X-V<0&&b&&(X=V+16);const D=O.height-12-(M||0);p(D<T.height),I(`max-height: ${D}px;`),Z(`left: ${X}px; top: ${J}px`);const A=u+$-U.left-X,R=f+F-U.top-J-(M||0);m("left"===S?A:T.width+A),v("bottom"===B?T.height+R:R)}),[e,i,n,t,a]),{positionX:s,positionY:l,transformOriginX:u,transformOriginY:f,style:g,menuStyle:w,withScroll:h}}},96264:(e,t,n)=>{n.d(t,{Z:()=>i});const o=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1],r=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18];function i(e,t,n,i,a,s,c){if(Number.isNaN(s)||s<1)return;s|=0,Number.isNaN(c)&&(c=1),(c|=0)>3&&(c=3),c<1&&(c=1);const l=e.getImageData(t,n,i,a),d=l.data;let u,m,f,v,h,p,g,Z,w,I,C,E,P=i-1,y=a-1,b=s+1,L=[],x=[],M=[],k=o[s],N=r[s],T=[],O=[];for(;c-- >0;){for(E=C=0,h=0;h<a;h++){for(u=d[E]*b,m=d[E+1]*b,f=d[E+2]*b,p=1;p<=s;p++)g=E+((p>P?P:p)<<2),u+=d[g++],m+=d[g++],f+=d[g++];for(v=0;v<i;v++)L[C]=u,x[C]=m,M[C]=f,0==h&&(T[v]=((g=v+b)<P?g:P)<<2,O[v]=(g=v-s)>0?g<<2:0),Z=E+T[v],w=E+O[v],u+=d[Z++]-d[w++],m+=d[Z++]-d[w++],f+=d[Z++]-d[w++],C++;E+=i<<2}for(v=0;v<i;v++){for(I=v,u=L[I]*b,m=x[I]*b,f=M[I]*b,p=1;p<=s;p++)I+=p>y?0:i,u+=L[I],m+=x[I],f+=M[I];for(C=v<<2,h=0;h<a;h++)d[C]=u*k>>>N,d[C+1]=m*k>>>N,d[C+2]=f*k>>>N,0==v&&(T[h]=((g=h+b)<y?g:y)*i,O[h]=(g=h-s)>0?g*i:0),Z=v+T[h],w=v+O[h],u+=L[Z]-L[w],m+=x[Z]-x[w],f+=M[Z]-M[w],C+=i<<2}}e.putImageData(l,t,n)}},98069:(e,t,n)=>{n.d(t,{In:()=>i,l_:()=>r,wT:()=>a});let o=0;function r(){o+=1}function i(){o-=1}function a(){return o>0}},87675:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(601);const r=(e,t)=>{o.cj&&(e.style.overflow="hidden"),void 0!==t&&(e.scrollTop=t),o.cj&&(e.style.overflow="")}},1911:(e,t,n)=>{function o(e){function t(t){if("Tab"!==t.key)return;t.preventDefault(),t.stopPropagation();const n=Array.from(e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'));if(!n.length)return;const o=n.findIndex((e=>e.isSameNode(document.activeElement)));let r=0;o>=0&&(r=t.shiftKey?o>0?o-1:n.length-1:o<n.length-1?o+1:0),n[r].focus()}return document.addEventListener("keydown",t,!1),()=>{document.removeEventListener("keydown",t,!1)}}n.d(t,{Z:()=>o})}}]);
//# sourceMappingURL=3224.5164c97698218cc9a7b4.js.map