1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:weightloss-web-app":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5075d49c-cdf4-403c-848c-22d59a49ecca",e._sentryDebugIdIdentifier="sentry-dbid-5075d49c-cdf4-403c-848c-22d59a49ecca")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9631],{667:(e,t,n)=>{var r,a;void 0===(a="function"==typeof(r=function(){var e={0xa45dfa3:{name:"EBML",type:"Container"},646:{name:"EBMLVersion",type:"Uint"},759:{name:"EBMLReadVersion",type:"Uint"},754:{name:"EBMLMaxIDLength",type:"Uint"},755:{name:"EBMLMaxSizeLength",type:"Uint"},642:{name:"DocType",type:"String"},647:{name:"DocTypeVersion",type:"Uint"},645:{name:"DocTypeReadVersion",type:"Uint"},108:{name:"Void",type:"Binary"},63:{name:"CRC-32",type:"Binary"},0xb538667:{name:"SignatureSlot",type:"Container"},16010:{name:"SignatureAlgo",type:"Uint"},16026:{name:"SignatureHash",type:"Uint"},16037:{name:"SignaturePublicKey",type:"Binary"},16053:{name:"Signature",type:"Binary"},15963:{name:"SignatureElements",type:"Container"},15995:{name:"SignatureElementList",type:"Container"},9522:{name:"SignedElement",type:"Binary"},0x8538067:{name:"Segment",type:"Container"},0x14d9b74:{name:"SeekHead",type:"Container"},3515:{name:"Seek",type:"Container"},5035:{name:"SeekID",type:"Binary"},5036:{name:"SeekPosition",type:"Uint"},0x549a966:{name:"Info",type:"Container"},13220:{name:"SegmentUID",type:"Binary"},13188:{name:"SegmentFilename",type:"String"},1882403:{name:"PrevUID",type:"Binary"},1868715:{name:"PrevFilename",type:"String"},2013475:{name:"NextUID",type:"Binary"},1999803:{name:"NextFilename",type:"String"},1092:{name:"SegmentFamily",type:"Binary"},10532:{name:"ChapterTranslate",type:"Container"},10748:{name:"ChapterTranslateEditionUID",type:"Uint"},10687:{name:"ChapterTranslateCodec",type:"Uint"},10661:{name:"ChapterTranslateID",type:"Binary"},710577:{name:"TimecodeScale",type:"Uint"},1161:{name:"Duration",type:"Float"},1121:{name:"DateUTC",type:"Date"},15273:{name:"Title",type:"String"},3456:{name:"MuxingApp",type:"String"},5953:{name:"WritingApp",type:"String"},103:{name:"Timecode",type:"Uint"},6228:{name:"SilentTracks",type:"Container"},6359:{name:"SilentTrackNumber",type:"Uint"},39:{name:"Position",type:"Uint"},43:{name:"PrevSize",type:"Uint"},35:{name:"SimpleBlock",type:"Binary"},32:{name:"BlockGroup",type:"Container"},33:{name:"Block",type:"Binary"},34:{name:"BlockVirtual",type:"Binary"},13729:{name:"BlockAdditions",type:"Container"},38:{name:"BlockMore",type:"Container"},110:{name:"BlockAddID",type:"Uint"},37:{name:"BlockAdditional",type:"Binary"},27:{name:"BlockDuration",type:"Uint"},122:{name:"ReferencePriority",type:"Uint"},123:{name:"ReferenceBlock",type:"Int"},125:{name:"ReferenceVirtual",type:"Int"},36:{name:"CodecState",type:"Binary"},13730:{name:"DiscardPadding",type:"Int"},14:{name:"Slices",type:"Container"},104:{name:"TimeSlice",type:"Container"},76:{name:"LaceNumber",type:"Uint"},77:{name:"FrameNumber",type:"Uint"},75:{name:"BlockAdditionID",type:"Uint"},78:{name:"Delay",type:"Uint"},79:{name:"SliceDuration",type:"Uint"},72:{name:"ReferenceFrame",type:"Container"},73:{name:"ReferenceOffset",type:"Uint"},74:{name:"ReferenceTimeCode",type:"Uint"},47:{name:"EncryptedBlock",type:"Binary"},0x654ae6b:{name:"Tracks",type:"Container"},46:{name:"TrackEntry",type:"Container"},87:{name:"TrackNumber",type:"Uint"},13253:{name:"TrackUID",type:"Uint"},3:{name:"TrackType",type:"Uint"},57:{name:"FlagEnabled",type:"Uint"},8:{name:"FlagDefault",type:"Uint"},5546:{name:"FlagForced",type:"Uint"},28:{name:"FlagLacing",type:"Uint"},11751:{name:"MinCache",type:"Uint"},11768:{name:"MaxCache",type:"Uint"},254851:{name:"DefaultDuration",type:"Uint"},216698:{name:"DefaultDecodedFieldDuration",type:"Uint"}
1,209231:{name:"TrackTimecodeScale",type:"Float"},4991:{name:"TrackOffset",type:"Int"},5614:{name:"MaxBlockAdditionID",type:"Uint"},4974:{name:"Name",type:"String"},177564:{name:"Language",type:"String"},6:{name:"CodecID",type:"String"},9122:{name:"CodecPrivate",type:"Binary"},362120:{name:"CodecName",type:"String"},13382:{name:"AttachmentLink",type:"Uint"},1742487:{name:"CodecSettings",type:"String"},1785920:{name:"CodecInfoURL",type:"String"},438848:{name:"CodecDownloadURL",type:"String"},42:{name:"CodecDecodeAll",type:"Uint"},12203:{name:"TrackOverlay",type:"Uint"},5802:{name:"CodecDelay",type:"Uint"},5819:{name:"SeekPreRoll",type:"Uint"},9764:{name:"TrackTranslate",type:"Container"},9980:{name:"TrackTranslateEditionUID",type:"Uint"},9919:{name:"TrackTranslateCodec",type:"Uint"},9893:{name:"TrackTranslateTrackID",type:"Binary"},96:{name:"Video",type:"Container"},26:{name:"FlagInterlaced",type:"Uint"},5048:{name:"StereoMode",type:"Uint"},5056:{name:"AlphaMode",type:"Uint"},5049:{name:"OldStereoMode",type:"Uint"},48:{name:"PixelWidth",type:"Uint"},58:{name:"PixelHeight",type:"Uint"},5290:{name:"PixelCropBottom",type:"Uint"},5307:{name:"PixelCropTop",type:"Uint"},5324:{name:"PixelCropLeft",type:"Uint"},5341:{name:"PixelCropRight",type:"Uint"},5296:{name:"DisplayWidth",type:"Uint"},5306:{name:"DisplayHeight",type:"Uint"},5298:{name:"DisplayUnit",type:"Uint"},5299:{name:"AspectRatioType",type:"Uint"},963876:{name:"ColourSpace",type:"Binary"},1029411:{name:"GammaValue",type:"Float"},230371:{name:"FrameRate",type:"Float"},97:{name:"Audio",type:"Container"},53:{name:"SamplingFrequency",type:"Float"},14517:{name:"OutputSamplingFrequency",type:"Float"},31:{name:"Channels",type:"Uint"},15739:{name:"ChannelPositions",type:"Binary"},8804:{name:"BitDepth",type:"Uint"},98:{name:"TrackOperation",type:"Container"},99:{name:"TrackCombinePlanes",type:"Container"},100:{name:"TrackPlane",type:"Container"},101:{name:"TrackPlaneUID",type:"Uint"},102:{name:"TrackPlaneType",type:"Uint"},105:{name:"TrackJoinBlocks",type:"Container"},109:{name:"TrackJoinUID",type:"Uint"},64:{name:"TrickTrackUID",type:"Uint"},65:{name:"TrickTrackSegmentUID",type:"Binary"},70:{name:"TrickTrackFlag",type:"Uint"},71:{name:"TrickMasterTrackUID",type:"Uint"},68:{name:"TrickMasterTrackSegmentUID",type:"Binary"},11648:{name:"ContentEncodings",type:"Container"},8768:{name:"ContentEncoding",type:"Container"},4145:{name:"ContentEncodingOrder",type:"Uint"},4146:{name:"ContentEncodingScope",type:"Uint"},4147:{name:"ContentEncodingType",type:"Uint"},4148:{name:"ContentCompression",type:"Container"},596:{name:"ContentCompAlgo",type:"Uint"},597:{name:"ContentCompSettings",type:"Binary"},4149:{name:"ContentEncryption",type:"Container"},2017:{name:"ContentEncAlgo",type:"Uint"},2018:{name:"ContentEncKeyID",type:"Binary"},2019:{name:"ContentSignature",type:"Binary"},2020:{name:"ContentSigKeyID",type:"Binary"},2021:{name:"ContentSigAlgo",type:"Uint"},2022:{name:"ContentSigHashAlgo",type:"Uint"},0xc53bb6b:{name:"Cues",type:"Container"},59:{name:"CuePoint",type:"Container"},51:{name:"CueTime",type:"Uint"},55:{name:"CueTrackPositions",type:"Container"},119:{name:"CueTrack",type:"Uint"},113:{name:"CueClusterPosition",type:"Uint"},112:{name:"CueRelativePosition",type:"Uint"},50:{name:"CueDuration",type:"Uint"},4984:{name:"CueBlockNumber",type:"Uint"},106:{name:"CueCodecState",type:"Uint"},91:{name:"CueReference",type:"Container"},22:{name:"CueRefTime",type:"Uint"},23:{name:"CueRefCluster",type:"Uint"},4959:{name:"CueRefNumber",type:"Uint"},107:{name:"CueRefCodecState",type:"Uint"},0x941a469:{name:"Attachments",type:"Container"},8615:{name:"AttachedFile",type:"Container"},1662:{name:"FileDescription",type:"String"},1646:{name:"FileName",type:"String"},1632:{name:"FileMimeType",type:"String"},1628:{name:"FileData",type:"Binary"},1710:{name:"FileUID",type:"Uint"},1653:{name:"FileReferral",type:"Binary"},1633:{name:"FileUsedStartTime",type:"Uint"},1634:{name:"FileUsedEndTime",type:"Uint"},4433776:{name:"Chapters",type:"Container"},1465:{name:"EditionEntry",type:"Container"},1468:{name:"EditionUID",type:"Uint"},1469:{name:"EditionFlagHidden",type:"Uint"},1499:{name:"EditionFlagDefault",type:"Uint"},1501:{name:"EditionFlagOrdered",type:"Uint"},54:{name:"ChapterAtom",type:"Container"},13252:{name:"ChapterUID",type:"Uint"},5716:{name:"ChapterStringUID",type:"String"},17:{name:"ChapterTimeStart",type:"Uint"},18:{name:"ChapterTimeEnd",type:"Uint"},24:{name:"ChapterFlagHidden",type:"Uint"},1432:{name:"ChapterFlagEnabled",type:"Uint"},11879:{name:"ChapterSegmentUID",type:"Binary"},11964:{name:"ChapterSegmentEditionUID",type:"Uint"}
1,9155:{name:"ChapterPhysicalEquiv",type:"Uint"},15:{name:"ChapterTrack",type:"Container"},9:{name:"ChapterTrackNumber",type:"Uint"},0:{name:"ChapterDisplay",type:"Container"},5:{name:"ChapString",type:"String"},892:{name:"ChapLanguage",type:"String"},894:{name:"ChapCountry",type:"String"},10564:{name:"ChapProcess",type:"Container"},10581:{name:"ChapProcessCodecID",type:"Uint"},1293:{name:"ChapProcessPrivate",type:"Binary"},10513:{name:"ChapProcessCommand",type:"Container"},10530:{name:"ChapProcessTime",type:"Uint"},10547:{name:"ChapProcessData",type:"Binary"},0x254c367:{name:"Tags",type:"Container"},13171:{name:"Tag",type:"Container"},9152:{name:"Targets",type:"Container"},10442:{name:"TargetTypeValue",type:"Uint"},9162:{name:"TargetType",type:"String"},9157:{name:"TagTrackUID",type:"Uint"},9161:{name:"TagEditionUID",type:"Uint"},9156:{name:"TagChapterUID",type:"Uint"},9158:{name:"TagAttachmentUID",type:"Uint"},10184:{name:"SimpleTag",type:"Container"},1443:{name:"TagName",type:"String"},1146:{name:"TagLanguage",type:"String"},1156:{name:"TagDefault",type:"Uint"},1159:{name:"TagString",type:"String"},1157:{name:"TagBinary",type:"Binary"}};function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e}function n(e,t){this.name=e||"Unknown",this.type=t||"Unknown"}function r(e,t){n.call(this,e,t||"Uint")}function a(e){return e.length%2==1?"0"+e:e}function o(e,t){n.call(this,e,t||"Float")}function i(e,t){n.call(this,e,t||"Container")}function s(e){i.call(this,"File","File"),this.setSource(e)}function l(e,t,n,r){if("object"==typeof n&&(r=n,n=void 0),!n)return new Promise(function(n){l(e,t,n,r)});try{var a=new FileReader;a.onloadend=function(){try{var o=new s(new Uint8Array(a.result));o.fixDuration(t,r)&&(e=o.toBlob(e.type))}catch(e){}n(e)},a.readAsArrayBuffer(e)}catch(t){n(e)}}return n.prototype.updateBySource=function(){},n.prototype.setSource=function(e){this.source=e,this.updateBySource()},n.prototype.updateByData=function(){},n.prototype.setData=function(e){this.data=e,this.updateByData()},t(r,n),r.prototype.updateBySource=function(){this.data="";for(var e=0;e<this.source.length;e++){var t=this.source[e].toString(16);this.data+=a(t)}},r.prototype.updateByData=function(){var e=this.data.length/2;this.source=new Uint8Array(e);for(var t=0;t<e;t++){var n=this.data.substr(2*t,2);this.source[t]=parseInt(n,16)}},r.prototype.getValue=function(){return parseInt(this.data,16)},r.prototype.setValue=function(e){this.setData(a(e.toString(16)))},t(o,n),o.prototype.getFloatArrayType=function(){return this.source&&4===this.source.length?Float32Array:Float64Array},o.prototype.updateBySource=function(){var e=this.source.reverse(),t=new(this.getFloatArrayType())(e.buffer);this.data=t[0]},o.prototype.updateByData=function(){var e=new Uint8Array(new(this.getFloatArrayType())([this.data]).buffer);this.source=e.reverse()},o.prototype.getValue=function(){return this.data},o.prototype.setValue=function(e){this.setData(e)},t(i,n),i.prototype.readByte=function(){return this.source[this.offset++]},i.prototype.readUint=function(){for(var e=this.readByte(),t=8-e.toString(2).length,n=e-(1<<7-t),r=0;r<t;r++)n*=256,n+=this.readByte();return n},i.prototype.updateBySource=function(){for(this.data=[],this.offset=0;this.offset<this.source.length;this.offset=s){var t=this.readUint(),a=this.readUint(),s=Math.min(this.offset+a,this.source.length),l=this.source.slice(this.offset,s),u=e[t]||{name:"Unknown",type:"Unknown"},c=n;switch(u.type){case"Container":c=i;break;case"Uint":c=r;break;case"Float":c=o}var d=new c(u.name,u.type);d.setSource(l),this.data.push({id:t,idHex:t.toString(16),data:d})}},i.prototype.writeUint=function(e,t){for(var n=1,r=128;e>=r&&n<8;n++,r*=128);if(!t)for(var a=r+e,o=n-1;o>=0;o--){var i=a%256;this.source[this.offset+o]=i,a=(a-i)/256}this.offset+=n},i.prototype.writeSections=function(e){this.offset=0;for(var t=0;t<this.data.length;t++){var n=this.data[t],r=n.data.source,a=r.length;this.writeUint(n.id,e),this.writeUint(a,e),e||this.source.set(r,this.offset),this.offset+=a}return this.offset},i.prototype.updateByData=function(){var e=this.writeSections("draft");this.source=new Uint8Array(e),this.writeSections()},i.prototype.getSectionById=function(e){for(var t=0;t<this.data.length;t++){var n=this.data[t];if(n.id===e)return n.data}return null},t(s,i),s.prototype.fixDuration=function(e,t){var n=t&&t.logger;void 0===n?n=function(e){console.log(e)}:n||(n=function(){});var r=this.getSectionById(0x8538067);if(!r)return n("[fix-webm-duration] Segment section is missing"),!1;var a=r.getSectionById(0x549a966);if(!a)return n("[fix-webm-duration] Info section is missing"),!1;var i=a.getSectionById(710577);if(!i)return n("[fix-webm-duration] TimecodeScale section is missing"),!1;var s=a.getSectionById(1161);if(s)if(!(0>=s.getValue()))return n(`[fix-webm-duration] Duration section is present, and the value is ${s.getValue()}`),!1;else n(`[fix-webm-duration] Duration section is present, but the value is ${s.getValue()}`),s.setValue(e);else n("[fix-webm-duration] Duration section is missing"),(s=new o("Duration","Float")).setValue(e),a.data.push({id:1161,data:s});return i.setValue(1e6),a.updateByData(),r.updateByData(),this.updateByData(),!0},s.prototype.toBlob=function(e){return new Blob([this.source.buffer],{type:e||"video/webm"})},l.default=l,l})?r.call(t,n,t,e):r)||(e.exports=a)},722:(e,t,n)=>{"use strict";n.d(t,{j:()=>K});var r=n(14232),a=n(69241),o=n(30199),i=n(96815),s=n(65723),l=n(13702),u=n(7970),c=n(76844),d=n(34334),p=n(56428),m=n(47455),f=n(10623),h=n(8142),g=n(18563),y=n(90130),v=n(85421),b=n(10673),D=n(80609),E=n(46984);let _=(0,r.createContext)(void 0),w=({children:e,value:t})=>r.createElement(_.Provider,{value:t},e);var x=n(77018),C=n(98723);let k=e=>{e instanceof WheelEvent&&1===e.deltaY&&e.preventDefault()},S=e=>{let{children:t,element:n="div",hasMore:a,hasMoreNewer:o,hasNextPage:i,hasPreviousPage:s,head:l,initialLoad:u=!0,isLoading:c,listenToScroll:d,loader:p,loadM
1ore:m,loadMoreNewer:f,loadNextPage:h,loadPreviousPage:g,threshold:y=C.Vq,useCapture:v=!1,...b}=e,D=h||f,E=g||m,_=i||o,w=s||a,x=(0,r.useRef)(void 0),S=(0,r.useRef)(void 0),M=(0,r.useRef)(void 0),T=(0,r.useRef)(void 0);T.current=()=>{let e=x.current;if(!e||null===e.offsetParent)return;let t=e.parentElement,n=e.scrollHeight-t.scrollTop-t.clientHeight,r=t.scrollTop;d&&d(n,r,y),c||(S.current!==n||M.current!==r)&&(S.current=n,M.current=r,r<Number(y)&&"function"==typeof E&&w&&E(),n<Number(y)&&"function"==typeof D&&_&&D())},(0,r.useEffect)(()=>{[[{hasMoreNewer:o},{hasNextPage:i}],[{loadMoreNewer:f},{loadNextPage:h}],[{hasMore:a},{hasPreviousPage:s}],[{loadMore:m},{loadPreviousPage:g}]].forEach(e=>{let[[t,n],[r,a]]=[Object.entries(e[0])[0],Object.entries(e[1])[0]];(void 0!==n&&void 0===a||void 0!==n&&void 0!==a)&&console.warn(`[Deprecation notice (InfiniteScroll)]: prefer using prop ${r} instead of ${t}`)})},[]),(0,r.useEffect)(()=>{let e=x.current?.parentNode;if(!e)return;let t=()=>T.current?.();return e.addEventListener("scroll",t,v),e.addEventListener("resize",t,v),t(),()=>{e.removeEventListener("scroll",t,v),e.removeEventListener("resize",t,v)}},[u,v]),(0,r.useEffect)(()=>{let e=x.current?.parentNode;return e&&e.addEventListener("wheel",k,{passive:!1}),()=>{e&&e.removeEventListener("wheel",k,v)}},[v]);let O={...b,ref:e=>{x.current=e}},A=[p,t];return l&&A.unshift(l),r.createElement(n,O,A)};var M=n(2106),T=n(99253),O=n(27475);let A=r.memo(e=>{let{threadList:t}=e,{channelConfig:n,thread:o}=(0,c.BX)("TypingIndicator"),{client:i}=(0,u.vd)("TypingIndicator"),{typing:s={}}=(0,T.w6)("TypingIndicator"),l=t?[]:Object.values(s).filter(({parent_id:e,user:t})=>t?.id!==i.user?.id&&!e),d=t?Object.values(s).filter(({parent_id:e,user:t})=>t?.id!==i.user?.id&&e===o?.id):[],p=(e=>{let{t}=(0,O.WR)();if(!e.length)return null;let[n,...r]=e;return 1===e.length?t("{{ user }} is typing...",{user:n}):e.length>3?t("{{ users }} and more are typing...",{users:e.slice(0,3).join(", ").trim()}):t("{{ users }} and {{ user }} are typing...",{user:n,users:r.join(", ").trim()})})((t?d:l).map(({user:e})=>e?.name||e?.id).filter(Boolean)),m=t&&d.length||!t&&l.length;return n?.typing_events!==!1&&m?r.createElement("div",{className:(0,a.A)("str-chat__typing-indicator",{"str-chat__typing-indicator--typing":m}),"data-testid":"typing-indicator"},r.createElement("div",{className:"str-chat__typing-indicator__dots"},r.createElement("span",{className:"str-chat__typing-indicator__dot"}),r.createElement("span",{className:"str-chat__typing-indicator__dot"}),r.createElement("span",{className:"str-chat__typing-indicator__dot"})),r.createElement("div",{className:"str-chat__typing-indicator__users","data-testid":"typing-users"},p)):null});var P=n(2768),F=n(5255),L=n(86153),R=n(40921),j=n(55067);function N({channelUnreadUiState:e,components:t,customClasses:n,lastReceivedMessageId:a,messageGroupStyles:o,messages:i,readData:s,sharedMessageProps:l}){let u,c,{DateSeparator:d=L.Y,HeaderComponent:f,MessageSystem:h=R.W,UnreadMessagesSeparator:g=p.E}=t,y=[];for(let t=0;t<i.length;t++){let p=i[t];if((0,m.pj)(p))y.push(r.createElement("li",{key:`${p.date.toISOString()}-i`},r.createElement(d,{date:p.date,formatDate:l.formatDate,unread:p.unread})));else if(p.customType===j.F.intro&&f)y.push(r.createElement("li",{key:"intro"},r.createElement(f,null)));else if("system"===p.type)y.push(r.createElement("li",{"data-message-id":p.id,key:p.id||p.created_at},r.createElement(h,{message:p})));else{u||(u=p);let t=o[p.id]||"",i=n?.message||`str-chat__li str-chat__li--${t}`,d=(0,m.lT)({firstUnreadMessageId:e?.first_unread_message_id,isFirstMessage:!!u?.i
1d&&u.id===p.id,lastReadDate:e?.last_read,lastReadMessageId:e?.last_read_message_id,message:p,previousMessage:c,unreadMessageCount:e?.unread_messages});y.push(r.createElement(r.Fragment,{key:p.id||p.created_at},d&&g&&r.createElement("li",{className:"str-chat__li str-chat__unread-messages-separator-wrapper"},r.createElement(g,{unreadCount:e?.unread_messages})),r.createElement("li",{className:i,"data-message-id":p.id,"data-testid":i},r.createElement(F.Q,{groupStyles:[t],lastReceivedId:a,message:p,readBy:s[p.id]||[],...l})))),c=p}}return y}let I=e=>{let{channel:t,channelUnreadUiState:n,disableDateSeparator:i=!1,groupStyles:s,hasMoreNewer:l=!1,headerPosition:D,hideDeletedMessages:_=!1,hideNewMessageSeparator:k=!1,highlightedMessageId:T,internalInfiniteScrollProps:{threshold:O=C.Vq,...F}={},jumpToLatestMessage:L=()=>Promise.resolve(),loadMore:R,loadMoreNewer:j,maxTimeBetweenGroupedMessages:I,messageActions:B=Object.keys(o.wx),messageLimit:z=C.k3,messages:H=[],noGroupByUser:U=!1,notifications:V,pinPermissions:W=o.X8,reactionDetailsSort:$,read:q,renderMessages:Y=N,returnAllReadData:K=!1,reviewProcessedMessage:G,showUnreadNotificationAlways:Z,sortReactionDetails:X,sortReactions:Q,suppressAutoscroll:J,threadList:ee=!1,unsafeHTML:et=!1}=e,[en,er]=r.useState(null),[ea,eo]=r.useState(null),{customClasses:ei}=(0,u.vd)("MessageList"),{EmptyStateIndicator:es=x.s,LoadingIndicator:el=M.I,MessageListMainPanel:eu=d.d,MessageListNotifications:ec=v.s,MessageNotification:ed=y.d,TypingIndicator:ep=A,UnreadMessagesNotification:em=b.r}=(0,f.aD)("MessageList"),{hasNewMessages:ef,isMessageListScrolledToBottom:eh,onScroll:eg,scrollToBottom:ey,wrapperRect:ev}=(e=>{let{hasMoreNewer:t,listElement:n,loadMoreScrollThreshold:a,messages:o=[],scrolledUpThreshold:i=200,suppressAutoscroll:s}=e,[l,c]=(0,r.useState)(!1),[d,p]=(0,r.useState)(),[m,f]=(0,r.useState)(!0),h=(0,r.useRef)(!1),g=(0,r.useRef)(!1),y=(0,r.useCallback)(()=>{!n?.scrollTo||t||s||(n.scrollTo({top:n.scrollHeight}),c(!1))},[n,t,s]);(0,r.useLayoutEffect)(()=>{n&&(p(n.getBoundingClientRect()),y())},[n,t]);let v=function(e){let{loadMoreScrollThreshold:t,onScrollBy:n,scrollContainerMeasures:a,scrolledUpThreshold:o,scrollToBottom:i,showNewMessages:s}=e,{client:l}=(0,u.vd)("useMessageListScrollManager"),c=(0,r.useRef)({offsetHeight:0,scrollHeight:0}),d=(0,r.useRef)(void 0),p=(0,r.useRef)(0);return(0,r.useLayoutEffect)(()=>{let r=c.current,u=d.current,m=e.messages,f=m[m.length-1]||{},h=u?.[u.length-1],g=a(),y=r.scrollHeight-r.offsetHeight-p.current<o;if(void 0!==u)if(u.length<m.length)h?.id===f.id?p.current<t&&n(g.scrollHeight-r.scrollHeight):f.user?.id===l.userID||y?i():s();else{let e=h?.latest_reactions?.length!==f.latest_reactions?.length,t=h?.reply_count!==f.reply_count;(e||t)&&y&&i()}d.current=m,c.current=g},[c,d,e.messages]),e=>{p.current=e}}({loadMoreScrollThreshold:a,messages:o,onScrollBy:e=>{n?.scrollBy({top:e})},scrollContainerMeasures:()=>({offsetHeight:n?.offsetHeight||0,scrollHeight:n?.scrollHeight||0}),scrolledUpThreshold:i,scrollToBottom:y,showNewMessages:()=>c(!0)});return{hasNewMessages:l,isMessageListScrolledToBottom:m,onScroll:(0,r.useCallback)(e=>{let t=e.target,n=t.scrollTop;v(n);let r=t.offsetHeight,a=t.scrollHeight,o=h.current;h.current=a-(n+r)<i,g.current=n<i,h.current&&c(!1),o&&!h.current?f(!1):!o&&h.current&&f(!0)},[v,g,h,i]),scrollToBottom:y,wrapperRect:d}})({hasMoreNewer:l,listElement:en,loadMoreScrollThreshold:O,messages:H,scrolledUpThreshold:e.scrolledUpThreshold,suppressAutoscroll:J}),{show:eb}=(({isMessageListScrolledToBottom:e,showAlways:t,unreadCount:n})=>{let{messages:a}=(0,c.BX)("UnreadMessagesNotification"),[o,i]=(0,r.useState)(!1),s=(0,r.useRef)(!1),l="u">typeof IntersectionObserver;return(0,r.useEffect)(()=>{if(!(n&&l))return void i(!1);let[e]=document.getElementsByClassName(d.D);if(!e)return;let[r]=document.getElementsByClassName(p.l);if(!r)return void i(!0);let a=(e=>{let{bottom:t}=e.getBoundingClientRect();return t<0})(r),o=((e,t)=>{let{top:n}=e.getBoundingClientRect(),{top:r}=t.getBoundingClientRect();return n>r})(r,e);i(t?a||o:a);let u=new IntersectionObserver(e=>{if(!e.length)return;let{boundingClientRect:n,isIntersecting:r}=e[0];if(r)return void i(!1);let a=n.bottom<0;i(t||a),s.current=a},{root:e});return u.observe(r),()=>{u.disconnect()}},[l,e,a,t,n]),(0,r.useEffect)(()=>{n&&e&&s.current&&(i(!0),s.current=!1)},[e,n]),{show:o&&l}})({isMessageListScrolledToBottom:eh,showAlways:!!Z,unreadCount:n?.unread_messages});(0,g.L)({isMessageListScrolledToBottom:eh,messageListIsThread:ee,wasMarkedUnread:!!n?.first_unread_message_id});let{messageGroupStyles:eD,messages:eE}=(e=>{let{channel:t,disableDateSeparator:n,groupStyles:a,headerPosition:o,hideDeletedMessages:i,hideNewMessageSeparator:s,maxTimeBetweenGroupedMessages:l,messages:c,noGroupByUser:d,reviewProcessedMessage:p}=e,{client:h}=(0,u.vd)("useEnrichedMessages"),{HeaderComponent:g}=(0,f.aD)("useEnrichedMessages"),y=(0,r.useMemo)(()=>t.lastRead?.(),[t]),v=!n,b=v||i||!s?(0,m.ow)({enableDateSeparator:v,hideDeletedMessages:i,hideNewMessageSeparator:s,lastRead:y,messages:c,reviewProcessedMessage:p,userId:h.userID||""}):c;g&&(b=(0,m.eV)(b,o));let D=a||m.c1;return{messageGroupStyles:(0,r.useMemo)(()=>
1b.reduce((e,t,n)=>{let r=D(t,b[n-1],b[n+1],d,l);return r&&(e[t.id]=r),e},{}),[l,b,d]),messages:b}})({channel:t,disableDateSeparator:i,groupStyles:s,headerPosition:D,hideDeletedMessages:_,hideNewMessageSeparator:k,maxTimeBetweenGroupedMessages:I,messages:H,noGroupByUser:U,reviewProcessedMessage:G}),e_=(e=>{let{channelUnreadUiState:t,enrichedMessages:n,internalMessageProps:a,messageGroupStyles:o,read:i,renderMessages:s,returnAllReadData:l,threadList:c}=e,{client:d,customClasses:p}=(0,u.vd)("useMessageListElements"),g=(0,f.aD)("useMessageListElements"),y=(0,h.g)({messages:n,read:i,returnAllReadData:l,userID:d.userID}),v=(0,r.useMemo)(()=>(0,m.mk)(n),[n]);return(0,r.useMemo)(()=>s({channelUnreadUiState:t,components:g,customClasses:p,lastReceivedMessageId:v,messageGroupStyles:o,messages:n,readData:y,sharedMessageProps:{...a,threadList:c}}),[n,a,v,o,t,y,s,c])})({channelUnreadUiState:n,enrichedMessages:eE,internalMessageProps:{additionalMessageInputProps:e.additionalMessageInputProps,closeReactionSelectorOnClick:e.closeReactionSelectorOnClick,customMessageActions:e.customMessageActions,disableQuotedMessages:e.disableQuotedMessages,formatDate:e.formatDate,getDeleteMessageErrorNotification:e.getDeleteMessageErrorNotification,getFlagMessageErrorNotification:e.getFlagMessageErrorNotification,getFlagMessageSuccessNotification:e.getFlagMessageSuccessNotification,getMarkMessageUnreadErrorNotification:e.getMarkMessageUnreadErrorNotification,getMarkMessageUnreadSuccessNotification:e.getMarkMessageUnreadSuccessNotification,getMuteUserErrorNotification:e.getMuteUserErrorNotification,getMuteUserSuccessNotification:e.getMuteUserSuccessNotification,getPinMessageErrorNotification:e.getPinMessageErrorNotification,Message:e.Message,messageActions:B,messageListRect:ev,onlySenderCanEdit:e.onlySenderCanEdit,onMentionsClick:e.onMentionsClick,onMentionsHover:e.onMentionsHover,onUserClick:e.onUserClick,onUserHover:e.onUserHover,openThread:e.openThread,pinPermissions:W,reactionDetailsSort:$,renderText:e.renderText,retrySendMessage:e.retrySendMessage,sortReactionDetails:X,sortReactions:Q,unsafeHTML:et},messageGroupStyles:eD,read:q,renderMessages:Y,returnAllReadData:K,threadList:ee}),ew=ei?.messageList||"str-chat__list",ex=r.useCallback(()=>{R&&R(z)},[R,z]),eC=r.useCallback(()=>{j&&j(z)},[j,z]),ek=r.useCallback(async()=>{l?await L():ey()},[ey,l]);r.useLayoutEffect(()=>{if(T){let e=ea?.querySelector(`[data-message-id='${T}']`);e?.scrollIntoView({block:"center"})}},[T]);let eS=(0,P.Y)(),eM=0===e_.length&&!ee,eT=ee?`message-list-dialog-manager-thread-${eS}`:`message-list-dialog-manager-${eS}`;return r.createElement(w,{value:{listElement:en,scrollToBottom:ey}},r.createElement(eu,null,r.createElement(E.X,{id:eT},!ee&&eb&&r.createElement(em,{unreadCount:n?.unread_messages}),r.createElement("div",{className:(0,a.A)(ew,ei?.threadList),onScroll:eg,ref:er,tabIndex:0},eM?r.createElement(es,{listType:ee?"thread":"message"}):r.createElement(S,{className:"str-chat__message-list-scroll","data-testid":"reverse-infinite-scroll",hasNextPage:e.hasMoreNewer,hasPreviousPage:e.hasMore,head:e.head,isLoading:e.loadingMore,loader:r.createElement("div",{className:"str-chat__list__loading",key:"loading-indicator"},e.loadingMore&&r.createElement(el,{size:20})),loadNextPage:eC,loadPreviousPage:ex,threshold:O,...F},r.createElement("ul",{className:"str-chat__ul",ref:eo},e_),r.createElement(ep,{threadList:ee}),r.createElement("div",{key:"bottom"}))))),r.createElement(ec,{hasNewMessages:ef,isMessageListScrolledToBottom:eh,isNotAtLatestMessageSet:l,MessageNotification:ed,notifications:V,scrollToBottom:ek,threadList:ee,unreadCount:ee?void 0:n?.unread_messages}))},B=e=>{let{jumpToLatestMessage:t,loadMore:n,loadMoreNewer:a}=(0,D.KS)("MessageList"),{members:o,mutes:i,watchers:s,...l}=(0,c.BX)("MessageList");return r.createElement(I,{jumpToLatestMessage:t,loadMore:n,loadMoreNewer:a,...l,...e})},z=e=>{let t=Object.values(e.state.members);if(t.length<=2)return;let n=[];for(let e=0;e<t.length;e++){let{user:r}=t[e];if((r?.name||r?.image)&&(n.push({image:r.image,name:r.name}),4===n.length))break}return n},H=(e,t,n)=>{if(t.data?.[e])return t.data[e];let r=Object.values(t.state.members);if(2!==r.length)return;let a=r.find(e=>e.user?.id!==n?.id);return a?.user?.[e]},U=({title:e})=>{let{t}=(0,O.WR)("CloseIcon");return r.createElement("svg",{"data-testid":"close-no-outline",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,e??t("Close")),r.createElement("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"black"}))},V=e=>{let{closeThread:t,overrideImage:n,overrideTitle:a}=e,{t:o}=(0,O.WR)("ThreadHeader"),{channel:i}=(0,c.BX)(""),{displayTitle:s}=(e=>{let{channel:t,overrideImage:n,overrideTitle:a}=e,{client:o}=(0,u.vd)("useChannelPreviewInfo"),[i,s]=(0,r.useState)(()=>a||H("name",t,o.user)),[l,c]=(0,r.useState)(()=>n||H("image",t,o.user)),[d,p]=(0,r.useState)(()=>z(t));return(0,r.useEffect)(()=>
1{if(a&&n)return;let e=()=>{a||s(H("name",t,o.user)),n||(c(H("image",t,o.user)),p(z(t)))};return e(),o.on("user.updated",e),()=>{o.off("user.updated",e)}},[t,t.data,o,n,a]),{displayImage:n||l,displayTitle:a||i,groupChannelDisplayInfo:d}})({channel:i,overrideImage:n,overrideTitle:a});return r.createElement("div",{className:"str-chat__thread-header"},r.createElement("div",{className:"str-chat__thread-header-details"},r.createElement("div",{className:"str-chat__thread-header-title"},o("Thread")),r.createElement("div",{className:"str-chat__thread-header-subtitle"},s)),r.createElement("button",{"aria-label":o("aria/Close thread"),className:"str-chat__close-thread-button","data-testid":"close-button",onClick:t},r.createElement(U,null)))},W=()=>{let{thread:e}=(0,c.BX)("ThreadStart"),{t}=(0,O.WR)("ThreadStart");return e?.reply_count?r.createElement("div",{className:"str-chat__thread-start"},t("replyCount",{count:e.reply_count})):null},$=e=>{let{ThreadStart:t=W}=(0,f.aD)("ThreadHead");return r.createElement("div",{className:"str-chat__parent-message-li"},r.createElement(F.Q,{initialMessage:!0,threadList:!0,...e}),r.createElement(t,null))};var q=n(26707),Y=n(31383);let K=e=>{let{channel:t,channelConfig:n,thread:a}=(0,c.BX)("Thread"),o=(0,q.xH)();return(a||o)&&n?.replies!==!1?r.createElement(Z,{...e,key:`thread-${(a??o)?.id}-${t?.cid}`}):null},G=e=>({isLoadingNext:e.pagination.isLoadingNext,isLoadingPrev:e.pagination.isLoadingPrev,parentMessage:e.parentMessage,replies:e.replies}),Z=e=>{let{additionalMessageInputProps:t,additionalMessageListProps:n,additionalParentMessageProps:d,additionalVirtualizedMessageListProps:p,autoFocus:m=!0,enableDateSeparator:h=!1,Input:g,Message:y,messageActions:v=Object.keys(o.wx),virtualized:b}=e,E=(0,q.xH)(),{isLoadingNext:_,isLoadingPrev:w,parentMessage:x,replies:C}=(0,Y.q)(E?.state,G)??{},{thread:k,threadHasMore:S,threadLoadingMore:M,threadMessages:T=[],threadSuppressAutoscroll:O}=(0,c.BX)("Thread"),{closeThread:A,loadMoreThread:P}=(0,D.KS)("Thread"),{customClasses:F}=(0,u.vd)("Thread"),{Message:L,ThreadHead:R=$,ThreadHeader:j=V,ThreadInput:N,VirtualMessage:I}=(0,f.aD)("Thread"),z=g??t?.Input??N??i.h,H=y||n?.Message||(b&&I?I:L),U=b?l.t:B;(0,r.useEffect)(()=>{k?.id&&k?.reply_count&&P()},[k,P]);let W=E?{loadingMore:w,loadingMoreNewer:_,loadMore:E.loadPrevPage,loadMoreNewer:E.loadNextPage,messages:C}:{hasMore:S,loadingMore:M,loadMore:P,messages:T},K=k??x;if(!K)return null;let Z=F?.thread||(0,a.A)("str-chat__thread-container str-chat__thread",{"str-chat__thread--virtualized":b}),X=r.createElement(R,{key:K.id,message:K,Message:H,...d});return r.createElement("div",{className:Z},r.createElement(j,{closeThread:A,thread:K}),r.createElement(U,{disableDateSeparator:!h,head:X,Message:H,messageActions:v,suppressAutoscroll:O,threadList:!0,...W,...b?p:n}),r.createElement(s.E,{focus:m,Input:z,isThreadInput:!0,parent:k??x,publishTypingEvent:!1,...t}))}},1215:function(e,t,n){e.exports=function(e){"use strict";var t={name:"ko",weekdays:"ì¼ìì¼_ììì¼_íìì¼_ììì¼_목ìì¼_ê¸ìì¼_í ìì¼".split("_"),weekdaysShort:"ì¼_ì_í_ì_목_ê¸_í ".split("_"),weekdaysMin:"ì¼_ì_í_ì_목_ê¸_í ".split("_"),months:"1ì_2ì_3ì_4ì_5ì_6ì_7ì_8ì_9ì_10ì_11ì_12ì".split("_"),monthsShort:"1ì_2ì_3ì_4ì_5ì_6ì_7ì_8ì_9ì_10ì_11ì_12ì".split("_"),ordinal:function(e){return e+"ì¼"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYYë
MMMM Dì¼",LLL:"YYYYë
MMMM Dì¼ A h:mm",LLLL:"YYYYë
MMMM Dì¼ dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYYë
MMMM Dì¼",lll:"YYYYë
MMMM Dì¼ A h:mm",llll:"YYYYë
MMMM Dì¼ dddd A h:mm"},meridiem:function(e){return e<12?"ì¤ì ":"ì¤í"},relativeTime:{future:"%s í",past:"%s ì ",s:"ëª ì´",m:"1ë¶",mm:"%dë¶",h:"í ìê°",hh:"%dìê°",d:"í루",dd:"%dì¼",M:"í ë¬",MM:"%dë¬",y:"ì¼ ë
",yy:"%dë
"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t}(n(56557))},1584:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},1994:function(e,t,n){e.exports=function(e){"use strict";var t={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function n(e,n,r){var a=t[r];return Array.isArray(a)&&(a=a[+!n]),a.replace("%d",e)}var r={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(r,null,!0),r}(n(56557))},2106:(e,t,n)=>{"use strict";n.d(t,{I:()=>a});var r=n(14232);let a=r.memo(e=>{let{color:t="#006CFF",size:n=15}=e;return r.createElement("div",{className:"str-chat__loading-indicator","data-testid":"loading-indicator-wrapper",style:{height:n,width:n}},r.createElement("svg",{height:n,viewBox:"0 0 30 30",width:n,xmlns:"http://www.w3.org/2000/svg"},r.createElement("defs",null,r.createElement("linearGradient",{id:"a",x1:"50%",x2:"50%",y1:"0%",y2:"100%"},r.createElement("stop",{offset:"0%",stopColor:"#FFF",stopOpacity:"0"}),r.createElement("stop",{"data-testid":"loading-indicator-circle",offset:"100%",stopColor:t,stopOpacity:"1",style:{stopColor:t}}))),r.createElement("path",{d:"M2.518 23.321l1.664-1.11A12.988 12.988 0 0 0 15 28c7.18 0 13-5.82 13-13S22.18 2 15 2V0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-5.206 0-9.792-2.652-12.482-6.679z",fill:"url(#a)",fillRule:"evenodd"})))},(e,t)=>e.color===t.color&&e.size===t.size)}
1,2389:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(59696),a=n(96244),o=n(16213);function i(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,a.A)(e)||(0,o.A)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2768:(e,t,n)=>{"use strict";n.d(t,{Y:()=>o});var r=n(46512),a=n(14232);let o=e=>(0,a.useMemo)(()=>(0,r.Ak)(),[e])},2882:(e,t,n)=>{"use strict";n.d(t,{aY:()=>nd});var r,a=n(14232);function o(e,t){return function(n){return e(t(n))}}function i(e,t){return t(e)}function s(e,t){return function(n){return e(t,n)}}function l(e,t){return function(){return e(t)}}function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}function c(e){e()}function d(e){return function(){return e}}function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){t.map(c)}}function m(){}function f(e,t){e(0,t)}function h(e){e(2)}function g(e){return e(4)}function y(e,t){return e(1,s(t,0))}function v(e,t){var n=e(1,function(e){n(),t(e)});return n}function b(){var e=[];return function(t,n){switch(t){case 2:e.splice(0,e.length);return;case 1:return e.push(n),function(){var t=e.indexOf(n);t>-1&&e.splice(t,1)};case 0:e.slice().forEach(function(e){e(n)});return;default:throw Error("unrecognized action "+t)}}}function D(e){var t=e,n=b();return function(e,r){switch(e){case 1:r(t);break;case 0:t=r;break;case 4:return t}return n(e,r)}}function E(e){var t;return y(e,t=b()),t}function _(e,t){var n;return y(e,n=D(t)),n}function w(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(i,e)}}function x(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=w.apply(void 0,n);return function(t,n){switch(t){case 1:return e(1,a(n));case 2:h(e);return;default:throw Error("unrecognized action "+t)}}}function C(e,t){return e===t}function k(e){var t;return void 0===e&&(e=C),function(n){return function(r){e(t,r)||(t=r,n(r))}}}function S(e){return function(t){return function(n){e(n)&&t(n)}}}function M(e){return function(t){return o(t,e)}}function T(e){return function(t){return function(){return t(e)}}}function O(e,t){return function(n){return function(r){return n(t=e(t,r))}}}function A(e){return function(t){return function(n){e>0?e--:t(n)}}}function P(e){var t,n;return function(r){return function(a){t=a,n||(n=setTimeout(function(){n=void 0,r(t)},e))}}}function F(e){var t,n;return function(r){return function(a){t=a,n&&clearTimeout(n),n=setTimeout(function(){r(t)},e)}}}function L(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Array(t.length),a=0,o=null,i=Math.pow(2,t.length)-1;return t.forEach(function(e,t){var n=Math.pow(2,t);e(1,function(e){var s=a;a|=n,r[t]=e,s!==i&&a===i&&o&&(o(),o=null)})}),function(e){return function(t){var n=function(){return e([t].concat(r))};a===i?n():o=n}}}function R(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){switch(e){case 1:return p.apply(void 0,t.map(function(e){return e(1,n)}));case 2:return;default:throw Error("unrecognized action "+e)}}}function j(e,t){return void 0===t&&(t=C),x(e,k(t))}function N(){for(var e=b(),t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=Array(n.length),o=0,i=Math.pow(2,n.length)-1;return n.forEach(function(t,n){var r=Math.pow(2,n);t(1,function(t){a[n]=t,(o|=r)===i&&f(e,a)})}),function(t,n){switch(t){case 1:return o===i&&n(a),e(1,n);case 2:return h(e);default:throw Error("unrecognized action "+t)}}}function I(e,t,n){void 0===t&&(t=[]);var r=(void 0===n?{singleton:!0}:n).singleton;return{id:B(),constructor:e,dependencies:t,singleton:r}}var B=function(){return Symbol()};function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function H(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e){if(e){if("string"==typeof e)return z(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return z(e,void 0)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var U=["children"],V="u">typeof document?a.useLayoutEffect:a.useEffect;function W(e,t,n){var r=Object.keys(t.required||{}),o=Object.keys(t.optional||{}),i=Object.keys(t.methods||{}),u=Object.keys(t.events||{}),c=(0,a.createContext)({});function p(e,n){e.propsReady&&f(e.propsReady,!1);for(var a,i=H(r);!(a=i()).done;){var s=a.value;f(e[t.required[s]],n[s])}for(var l,u=H(o);!(l=u()).done;){var c=l.value;c in n&&f(e[t.optional[c]],n[c])}e.propsReady&&f(e.propsReady,!0)}function y(e){return u.reduce(function(n,r){var a,o,i,s;return n[r]=(a=e[t.events[r]],s=function(){return o&&o()},function(e,t){switch(e){case 1:if(!t)return s(),m;if(i===t)return;return s(),i=t,o=a(1,t);case 2:s(),i=null;return;default:throw Error("unrecognized action "+e)}}),n},{})}return{Component:(0,a.forwardRef)(function(s,m){var g=s.children,v=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(s,U),b=(0,a.useState)(function(){var t,n;return t=new Map,p(n=function e(n){var r=n.id,a=n.constructor,o=n.dependencies,i=n.singleton;if(i&&t.has(r))return t.get(r);var s=a(o.map(function(t){return e(t)}));return i&&t.set(r,s),s}(e),v),n})[0],D=(0,a.useState)(l(y,b))[0];return V(function(){for(var e,t=H(u);!(e=t()).done;){var n=e.value;n in v&&(0,D[n])(1,v[n])}return function(){Object.values(D).map(h)}},[v,D,b]),V(function(){p(b,v)}),(0,a.useImperativeHandle)(m,d(i.reduce(function(e,n){return e[n]=function(e){f(b[t.methods[n]],e)},e},{}))),(0,a.createElement)(c.Provider,{value:b},n?(0,a.createElement)(n,function(e,t){for(var n={},r={},a=0,o=e.length;a<o;)r[e[a]]=1,a+=1;for(var i in t)r.hasOwnProperty(i)||(n[i]=t[i]);return n}([].concat(r,o,u),v),g):g)}),usePublisher:function(e){return(0,a.useCallback)(s(f,(0,a.useContext)(c)[e]),[e])},useEmitterValue:function(e){var t=(0,a.useContext)(c)[e],n=(0,a.useState)(l(g,t)),r=n[0],o=n[1];return V(function(){return t(1,function(e){e!==r&&o(d(e))})},[t,r]),r},useEmitter:function(e,t){var n=(0,a.useContext)(c)[e];V(function(){return n(1,t)},[t,n])}}}var $=n(98477);function q(){return(q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Y(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e){if(e){if("string"==typeof e)return K(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?K(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Z,X,Q="u">typeof document?a.useLayoutEffect:a.useEffect;(r=X||(X={}))[r.DEBUG=0]="DEBUG",r[r.INFO=1]="INFO",r[r.WARN=2]="WARN",r[r.ERROR=3]="ERROR";var J=((Z={})[X.DEBUG]="debug",Z[X.INFO]="log",Z[X.WARN]="warn",Z[X.ERROR]="error",Z),ee=I(function(){var e=D(X.ERROR);return{log:D(function(t,n,r){var a;void 0===r&&(r=X.INFO),r>=(null!=(a=("u"<typeof globalThis?window:globalThis).VIRTUOSO_LOG_LEVEL)?a:g(e))&&console[J[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)}),logLevel:e}},[],{singleton:!0});function et(e,t){void 0===t&&(t=!0);var n=(0,a.useRef)(null),r=function(e){};if("u">typeof ResizeObserver){var o=new ResizeObserver(function(t){var n=t[0].target;null!==n.offsetParent&&e(n)});r=function(e){e&&t?(o.observe(e),n.current=e):(n.current&&o.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function en(e,t){return void 0===t&&(t=!0),et(e,t).callbackRef}function er(e,t,n,r,a,o,i){return et(function(n){for(var s,l=function(e,t,n){var r=e.length;if(0===r)return null;for(var a=[],o=0;o<r;o++){var i=e.item(o);if(i&&void 0!==i.dataset.index){var s=parseInt(i.dataset.index),l=parseFloat(i.dataset.knownSize),u=t(i,"offsetHeight");if(0===u&&n("Zero-sized element, this should not happen",{child:i},X.ERROR),u!==l){var c=a[a.length-1];0===a.length||c.size!==u||c.endIndex!==s-1?a.push({startIndex:s,endIndex:s,size:u}):a[a.length-1].endIndex++}}}return a}(n.children,t,a),u=n.parentElement;!u.dataset.virtuosoScroller;)u=u.parentElement;var c="window"===u.firstElementChild.dataset.viewportType;r({scrollTop:Math.max(i?i.scrollTop:c?window.pageYOffset||document.documentElement.scrollTop:u.scrollTop,0),scrollHeight:i?i.scrollHeight:c?document.documentElement.scrollHeight:u.scrollHeight,viewportHe
1ight:i?i.offsetHeight:c?window.innerHeight:u.offsetHeight}),null==o||o((s=getComputedStyle(n).rowGap,"normal"===s||null!=s&&s.endsWith("px")||a("row-gap was not resolved to pixel value correctly",s,X.WARN),"normal"===s?0:parseInt(null!=s?s:"0",10))),null!==l&&e(l)},n)}function ea(e,t){return Math.round(e.getBoundingClientRect()[t])}function eo(e,t){return 1.01>Math.abs(e-t)}function ei(e,t,n,r,o){void 0===r&&(r=m);var i=(0,a.useRef)(null),s=(0,a.useRef)(null),l=(0,a.useRef)(null),u=(0,a.useRef)(!1),c=(0,a.useCallback)(function(n){var r=n.target,a=r===window||r===document,o=a?window.pageYOffset||document.documentElement.scrollTop:r.scrollTop,i=a?document.documentElement.scrollHeight:r.scrollHeight,c=a?window.innerHeight:r.offsetHeight,d=function(){e({scrollTop:Math.max(o,0),scrollHeight:i,viewportHeight:c})};u.current?(0,$.flushSync)(d):d(),u.current=!1,null!==s.current&&(o===s.current||o<=0||o===i-c)&&(s.current=null,t(!0),l.current&&(clearTimeout(l.current),l.current=null))},[e,t]);return(0,a.useEffect)(function(){var e=o||i.current;return r(o||i.current),c({target:e}),e.addEventListener("scroll",c,{passive:!0}),function(){r(null),e.removeEventListener("scroll",c)}},[i,c,n,r,o]),{scrollerRef:i,scrollByCallback:function(e){u.current=!0,i.current.scrollBy(e)},scrollToCallback:function(n){var r=i.current;if(r&&(!("offsetHeight"in r)||0!==r.offsetHeight)){var a,o,u,c="smooth"===n.behavior;if(r===window?(o=Math.max(ea(document.documentElement,"height"),document.documentElement.scrollHeight),a=window.innerHeight,u=document.documentElement.scrollTop):(o=r.scrollHeight,a=ea(r,"height"),u=r.scrollTop),n.top=Math.ceil(Math.max(Math.min(o-a,n.top),0)),eo(a,o)||n.top===u)return e({scrollTop:u,scrollHeight:o,viewportHeight:a}),void(c&&t(!0));c?(s.current=n.top,l.current&&clearTimeout(l.current),l.current=setTimeout(function(){l.current=null,s.current=null,t(!0)},1e3)):s.current=null,r.scrollTo(n)}}}}var es=I(function(){var e=b(),t=b(),n=D(0),r=b(),a=D(0),o=b(),i=b(),s=D(0),l=D(0),u=D(0),c=D(0),d=b(),p=b(),m=D(!1),f=D(!1);return y(x(e,M(function(e){return e.scrollTop})),t),y(x(e,M(function(e){return e.scrollHeight})),i),y(t,a),{scrollContainerState:e,scrollTop:t,viewportHeight:o,headerHeight:s,fixedHeaderHeight:l,fixedFooterHeight:u,footerHeight:c,scrollHeight:i,smoothScrollTargetReached:r,react18ConcurrentRendering:f,scrollTo:d,scrollBy:p,statefulScrollTop:a,deviation:n,scrollingInProgress:m}},[],{singleton:!0}),el={lvl:0};function eu(e,t,n,r,a){return void 0===r&&(r=el),void 0===a&&(a=el),{k:e,v:t,lvl:n,l:r,r:a}}function ec(e){return e===el}function ed(e,t,n){if(void 0===n&&(n="k"),ec(e))return[-1/0,void 0];if(e[n]===t)return[e.k,e.v];if(e[n]<t){var r=ed(e.r,t,n);return-1/0===r[0]?[e.k,e.v]:r}return ed(e.l,t,n)}function ep(e,t,n){return ec(e)?eu(t,n,1):t===e.k?ef(e,{k:t,v:n}):eb(eD(ef(e,t<e.k?{l:ep(e.l,t,n)}:{r:ep(e.r,t,n)})))}function em(e){return ec(e)?[]:[].concat(em(e.l),[{k:e.k,v:e.v}],em(e.r))}function ef(e,t){return eu(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function eh(e){return ec(e)||e.lvl>e.r.lvl}function eg(e){var t=e.l,n=e.r,r=e.lvl;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(eh(t))return eD(ef(e,{lvl:r-1}));if(ec(t)||ec(t.r))throw Error("Unexpected empty nodes");return ef(t.r,{l:ef(t,{r:t.r.l}),r:ef(e,{l:t.r.r,lvl:r-1}),lvl:r})}if(eh(e))return eb(ef(e,{lvl:r-1}));if(ec(n)||ec(n.l))throw Error("Unexpected empty nodes");var a=n.l,o=eh(a)?n.lvl-1:n.lvl;return ef(a,{l:ef(e,{r:a.l,lvl:r-1}),r:eb(ef(n,{l:a.r,lvl:o})),lvl:a.lvl+1})}function ey(e,t,n){return ec(e)?[]:ev(function e(t,n,r){if(ec(t))return[];var a=t.k,o=t.v,i=t.r,s=[];return a>n&&(s=s.concat(e(t.l,n,r))),a>=n&&a<=r&&s.push({k:a,v:o}),a<=r&&(s=s.concat(e(i,n,r))),s}(e,ed(e,t)[0],n),function(e){return{index:e.k,value:e.v}})}function ev(e,t){var n=e.length;if(0===n)return[];for(var r=t(e[0]),a=r.index,o=r.value,i=[],s=1;s<n;s++){var l=t(e[s]),u=l.index,c=l.value;i.push({start:a,end:u-1,value:o}),a=u,o=c}return i.push({start:a,end:1/0,value:o}),i}function eb(e){var t=e.r,n=e.lvl;return ec(t)||ec(t.r)||t.lvl!==n||t.r.lvl!==n?e:ef(t,{l:ef(e,{r:t.l}),lvl:n+1})}function eD(e){var t=e.l;return ec(t)||t.lvl!==e.lvl?e:ef(t,{r:ef(e,{l:t.r})})}function eE(e,t,n,r){void 0===r&&(r=0);for(var a=e.length-1;r<=a;){var o=Math.floor((r+a)/2),i=n(e[o],t);if(0===i)return o;if(-1===i){if(a-r<2)return o-1;a=o-1}else{if(a===r)return o;r=o+1}}
1throw Error("Failed binary finding record in array - "+e.join(",")+", searched for "+t)}var e_=I(function(){return{recalcInProgress:D(!1)}},[],{singleton:!0});function ew(e,t){var n=e.index;return t===n?0:t<n?-1:1}function ex(e,t){var n=e.offset;return t===n?0:t<n?-1:1}function eC(e){return{index:e.index,value:e}}function ek(e,t,n,r){var a=e,o=0,i=0,s=0,l=0;if(0!==t){s=a[l=eE(a,t-1,ew)].offset;var u=ed(n,t-1);o=u[0],i=u[1],a.length&&a[l].size===ed(n,t)[1]&&(l-=1),a=a.slice(0,l+1)}else a=[];for(var c,d=G(ey(n,t,1/0));!(c=d()).done;){var p=c.value,m=p.start,f=p.value,h=m-o,g=h*i+s+h*r;a.push({offset:g,size:f,index:m}),o=m,s=g,i=f}return{offsetTree:a,lastIndex:o,lastOffset:s,lastSize:i}}function eS(e,t){var n=t[0],r=t[1],a=t[3];n.length>0&&(0,t[2])("received item sizes",n,X.DEBUG);var o=e.sizeTree,i=o,s=0;if(r.length>0&&ec(o)&&2===n.length){var l=n[0].size,u=n[1].size;i=r.reduce(function(e,t){return ep(ep(e,t,l),t+1,u)},i)}else{var c=function(e,t){for(var n,r=ec(e)?0:1/0,a=G(t);!(n=a()).done;){var o=n.value,i=o.size,s=o.startIndex,l=o.endIndex;if(r=Math.min(r,s),ec(e))e=ep(e,0,i);else{var u=ey(e,s-1,l+1);if(!u.some(function(e){var t=e.size,n=e.startIndex,r=e.endIndex;return function(e){return e.start===n&&(e.end===r||1/0===e.end)&&e.value===t}}(o))){for(var c,d=!1,p=!1,m=G(u);!(c=m()).done;){var f=c.value,h=f.start,g=f.end,y=f.value;d?(l>=h||i===y)&&(e=function e(t,n){if(ec(t))return el;var r=t.k,a=t.l,o=t.r;if(n===r){if(ec(a))return o;if(ec(o))return a;var i=function e(t){return ec(t.r)?[t.k,t.v]:e(t.r)}(a);return eg(ef(t,{k:i[0],v:i[1],l:function e(t){return ec(t.r)?t.l:eg(ef(t,{r:e(t.r)}))}(a)}))}return eg(ef(t,n<r?{l:e(a,n)}:{r:e(o,n)}))}(e,h)):(p=y!==i,d=!0),g>l&&l>=h&&y!==i&&(e=ep(e,l+1,y))}p&&(e=ep(e,s,i))}}}return[e,r]}(i,n);i=c[0],s=c[1]}if(i===o)return e;var d=ek(e.offsetTree,s,i,a),p=d.offsetTree;return{sizeTree:i,offsetTree:p,lastIndex:d.lastIndex,lastOffset:d.lastOffset,lastSize:d.lastSize,groupOffsetTree:r.reduce(function(e,t){return ep(e,t,eM(t,p,a))},el),groupIndices:r}}function eM(e,t,n){if(0===t.length)return 0;var r=t[eE(t,e,ew)],a=e-r.index,o=r.size*a+(a-1)*n+r.offset;return o>0?o+n:o}function eT(e,t,n){if(void 0!==e.groupIndex)return t.groupIndices[e.groupIndex]+1;var r=eO("LAST"===e.index?n:e.index,t);return Math.max(0,r,Math.min(n,r))}function eO(e,t){if(!eA(t))return e;for(var n=0;t.groupIndices[n]<=e+n;)n++;return e+n}function eA(e){return!ec(e.groupOffsetTree)}var eP={offsetHeight:"height",offsetWidth:"width"},eF=I(function(e){var t=e[0].log,n=e[1].recalcInProgress,r=b(),a=b(),o=_(a,0),i=b(),s=b(),l=D(0),u=D([]),c=D(void 0),d=D(void 0),p=D(function(e,t){return ea(e,eP[t])}),m=D(void 0),h=D(0),v={offsetTree:[],sizeTree:el,groupOffsetTree:el,lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},w=_(x(r,L(u,t,h),O(eS,v),k()),v);y(x(u,S(function(e){return e.length>0}),L(w,h),M(function(e){var t=e[0],n=e[1],r=e[2],a=t.reduce(function(e,t,a){return ep(e,t,eM(t,n.offsetTree,r)||a)},el);return q({},n,{groupIndices:t,groupOffsetTree:a})})),w),y(x(a,L(w),S(function(e){return e[0]<e[1].lastIndex}),M(function(e){var t=e[1];return[{startIndex:e[0],endIndex:t.lastIndex,size:t.lastSize}]})),r),y(c,d);var C=_(x(c,M(function(e){return void 0===e})),!0);y(x(d,S(function(e){return void 0!==e&&ec(g(w).sizeTree)}),M(function(e){return[{startIndex:0,endIndex:0,size:e}]})),r);var T=E(x(r,L(w),O(function(e,t){var n=t[1];return{changed:n!==e.sizes,sizes:n}},{changed:!1,sizes:v}),M(function(e){return e.changed})));x(l,O(function(e,t){return{diff:e.prev-t,prev:t}},{diff:0,prev:0}),M(function(e){return e.diff}))(1,function(e){e>0?(f(n,!0),f(i,e)):e<0&&f(s,e)}),x(l,L(t))(1,function(e){e[0]<0&&(0,e[1])("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:l},X.ERROR)});var A=E(i);y(x(i,L(w),M(function(e){var t=e[0],n=e[1];if(n.groupIndices.length>0)throw Error("Virtuoso: prepending items does not work with groups");return em(n.sizeTree).reduce(function(e,n){var r=n.k,a=n.v;return{ranges:[].concat(e.ranges,[{startIndex:e.prevIndex,endIndex:r+t-1,size:e.prevSize}]),prevIndex:r+t,prevSize:a}},{ranges:[],prevIndex:0,prevSize:n.lastSize}).ranges})),r);var P=E(x(s,L(w,h),M(function(e){return eM(-e[0],e[1].offsetTree,e[2])})));return y(x(s,L(w,h),M(function(e){var t=e[0],n=e[1],r=e[2];if(n.groupIndices.length>0)throw Error("Virtuoso: shifting items does not work with groups");var a=em(n.sizeTree).reduce(function(e,n){var r=n.v;return ep(e,Math.max(0,n.k+t),r)},el);return q({},n,{sizeTree:a},ek(n.offsetTree,0,a,r))})),w),{data:m,totalCount:a,sizeRanges:r,groupIndices:u,defaultItemSize:d,fixedItemSize:c,unshiftWith:i,shiftWith:s,shiftWithOffset:P,beforeUnshiftWith:A,firstItemIndex:l,gap:h,sizes:w,listRefresh:T,statefulTotalCount:o,trackItemSizes:C,itemSize:p}},u(ee,e_),{singleton:!0}),eL="u">typeof document&&"scrollBehavior"in document.documentElement.style;function eR(e){var t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&eL||(t.behavior="auto"),t.offset||(t.offset=0),t}var ej=I(function(e){var t=e[0],n=t.sizes,r=t.totalCount,a=t.listRefresh,o=t.gap,i=e[1],s=i.scrollingInProgress,l=i.viewportHe
1ight,u=i.scrollTo,c=i.smoothScrollTargetReached,d=i.headerHeight,p=i.footerHeight,m=i.fixedHeaderHeight,h=i.fixedFooterHeight,g=e[2].log,E=b(),_=D(0),w=null,C=null,k=null;function S(){w&&(w(),w=null),k&&(k(),k=null),C&&(clearTimeout(C),C=null),f(s,!1)}return y(x(E,L(n,l,r,_,d,p,g),L(o,m,h),M(function(e){var t=e[0],n=t[0],r=t[1],o=t[2],i=t[3],l=t[4],u=t[5],d=t[6],p=t[7],m=e[1],h=e[2],g=e[3],y=eR(n),b=y.align,D=y.behavior,_=y.offset,M=i-1,T=eT(y,r,M),O=eM(T,r.offsetTree,m)+u;"end"===b?(O+=h+ed(r.sizeTree,T)[1]-o+g,T===M&&(O+=d)):"center"===b?O+=(h+ed(r.sizeTree,T)[1]-o+g)/2:O-=l,_&&(O+=_);var A=function(e){S(),e?(p("retrying to scroll to",{location:n},X.DEBUG),f(E,n)):p("list did not change, scroll successful",{},X.DEBUG)};if(S(),"smooth"===D){var P=!1;k=a(1,function(e){P=P||e}),w=v(c,function(){A(P)})}else w=v(x(a,function(e){var t=setTimeout(function(){e(!1)},150);return function(n){n&&(e(!0),clearTimeout(t))}}),A);return C=setTimeout(function(){S()},1200),f(s,!0),p("scrolling from index to",{index:T,top:O,behavior:D},X.DEBUG),{top:O,behavior:D}})),u),{scrollToIndex:E,topListHeight:_}},u(eF,es,ee),{singleton:!0}),eN={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},eI=I(function(e){var t=e[0],n=t.scrollContainerState,r=t.scrollTop,a=t.viewportHeight,o=t.headerHeight,i=t.footerHeight,s=t.scrollBy,l=D(!1),u=D(!0),c=b(),d=b(),p=D(4),m=D(0),f=_(x(R(x(j(r),A(1),T(!0)),x(j(r),A(1),T(!1),F(100))),k()),!1),h=_(x(R(x(s,T(!0)),x(s,T(!1),F(200))),k()),!1);y(x(N(j(r),j(m)),M(function(e){return e[0]<=e[1]}),k()),u),y(x(u,P(50)),d);var v=E(x(N(n,j(a),j(o),j(i),j(p)),O(function(e,t){var n,r,a=t[0],o=a.scrollTop,i=a.scrollHeight,s=t[1],l={viewportHeight:s,scrollTop:o,scrollHeight:i};return o+s-i>-t[4]?(o>e.state.scrollTop?(n="SCROLLED_DOWN",r=e.state.scrollTop-o):(n="SIZE_DECREASED",r=e.state.scrollTop-o||e.scrollTopDelta),{atBottom:!0,state:l,atBottomBecause:n,scrollTopDelta:r}):{atBottom:!1,notAtBottomBecause:l.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":s<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":o<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:l}},eN),k(function(e,t){return e&&e.atBottom===t.atBottom}))),w=_(x(n,O(function(e,t){var n=t.scrollTop,r=t.scrollHeight,a=t.viewportHeight;return eo(e.scrollHeight,r)?{scrollTop:n,scrollHeight:r,jump:0,changed:!1}:e.scrollTop!==n&&r-(n+a)<1?{scrollHeight:r,scrollTop:n,jump:e.scrollTop-n,changed:!0}:{scrollHeight:r,scrollTop:n,jump:0,changed:!0}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),S(function(e){return e.changed}),M(function(e){return e.jump})),0);y(x(v,M(function(e){return e.atBottom})),l),y(x(l,P(50)),c);var C=D("down");y(x(n,M(function(e){return e.scrollTop}),k(),O(function(e,t){return g(h)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?"up":"down",prevScrollTop:t}},{direction:"down",prevScrollTop:0}),M(function(e){return e.direction})),C),y(x(n,P(50),T("none")),C);var I=D(0);return y(x(f,S(function(e){return!e}),T(0)),I),y(x(r,P(100),L(f),S(function(e){return!!e[1]}),O(function(e,t){return[e[1],t[0]]},[0,0]),M(function(e){return e[1]-e[0]})),I),{isScrolling:f,isAtTop:u,isAtBottom:l,atBottomState:v,atTopStateChange:d,atBottomStateChange:c,scrollDirection:C,atBottomThreshold:p,atTopThreshold:m,scrollVelocity:I,lastJumpDueToItemResize:w}},u(es)),eB=I(function(e){var t=e[0].log,n=D(!1),r=E(x(n,S(function(e){return e}),k()));return n(1,function(e){e&&g(t)("props updated",{},X.DEBUG)}),{propsReady:n,didMount:r}},u(ee),{singleton:!0}),ez=I(function(e){var t=e[0],n=t.sizes,r=t.listRefresh,a=t.defaultItemSize,o=e[1].scrollTop,i=e[2].scrollToIndex,s=e[3].didMount,l=D(!0),u=D(0);return y(x(s,L(u),S(function(e){return!!e[1]}),T(!1)),l),x(N(r,s),L(l,n,a),S(function(e){var t=e[1],n=e[3];return e[0][1]&&(!ec(e[2].sizeTree)||void 0!==n)&&!t}),L(u))(1,function(e){var t=e[1];setTimeout(function(){v(o,function(){f(l,!0)}),f(i,t)})}),{scrolledToInitialItem:l,initialTopMostItemIndex:u}},u(eF,es,ej,eB),{singleton:!0});function eH(e){return!!e&&("smooth"===e?"smooth":"auto")}var eU=I(function(e){var t=e[0],n=t.totalCount,r=t.listRefresh,a=e[1],o=a.isAtBottom,i=a.atBottomState,s=e[2].scrollToIndex,l=e[3].scrolledToInitialItem,u=e[4],c=u.propsReady,d=u.didMount,p=e[5].log,m=e[6].scrollingInProgress,h=D(!1),y=b(
1),E=null;function _(e){f(s,{index:"LAST",align:"end",behavior:e})}function w(e){setTimeout(v(i,function(t){!e||t.atBottom||"SIZE_INCREASED"!==t.notAtBottomBecause||E||(g(p)("scrolling to bottom due to increased size",{},X.DEBUG),_("auto"))}),100)}return x(N(x(j(n),A(1)),d),L(j(h),o,l,m),M(function(e){var t,n,r=e[0],a=r[0],o=r[1]&&e[3],i="auto";return o&&(t=e[1],n=e[2]||e[4],i="function"==typeof t?eH(t(n)):n&&eH(t),o=o&&!!i),{totalCount:a,shouldFollow:o,followOutputBehavior:i}}),S(function(e){return e.shouldFollow}))(1,function(e){var t=e.totalCount,n=e.followOutputBehavior;E&&(E(),E=null),E=v(r,function(){g(p)("following output to ",{totalCount:t},X.DEBUG),_(n),E=null})}),x(N(j(h),n,c),S(function(e){return e[0]&&e[2]}),O(function(e,t){var n=t[1];return{refreshed:e.value===n,value:n}},{refreshed:!1,value:0}),S(function(e){return e.refreshed}),L(h,n))(1,function(e){w(!1!==e[1])}),y(1,function(){w(!1!==g(h))}),N(j(h),i)(1,function(e){var t=e[1];e[0]&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&_("auto")}),{followOutput:h,autoscrollToBottom:y}},u(eF,eI,ej,ez,eB,ee,es));function eV(e){return e.reduce(function(e,t){return e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e},{totalCount:0,groupIndices:[]})}var eW=I(function(e){var t=e[0],n=t.totalCount,r=t.groupIndices,a=t.sizes,o=e[1],i=o.scrollTop,s=o.headerHeight,l=b(),u=b(),c=E(x(l,M(eV)));return y(x(c,M(function(e){return e.totalCount})),n),y(x(c,M(function(e){return e.groupIndices})),r),y(x(N(i,a,s),S(function(e){return eA(e[1])}),M(function(e){return ed(e[1].groupOffsetTree,Math.max(e[0]-e[2],0),"v")[0]}),k(),M(function(e){return[e]})),u),{groupCounts:l,topItemsIndexes:u}},u(eF,es));function e$(e,t){return!(!e||e[0]!==t[0]||e[1]!==t[1])}function eq(e,t){return!(!e||e.startIndex!==t.startIndex||e.endIndex!==t.endIndex)}function eY(e,t,n){return"number"==typeof e?"up"===n&&"top"===t||"down"===n&&"bottom"===t?e:0:"up"===n?"top"===t?e.main:e.reverse:"bottom"===t?e.main:e.reverse}function eK(e,t){return"number"==typeof e?e:e[t]||0}var eG=I(function(e){var t=e[0],n=t.scrollTop,r=t.viewportHeight,a=t.deviation,o=t.headerHeight,i=t.fixedHeaderHeight,s=b(),l=D(0),u=D(0),c=D(0),d=_(x(N(j(n),j(r),j(o),j(s,e$),j(c),j(l),j(i),j(a),j(u)),M(function(e){var t=e[0],n=e[1],r=e[2],a=e[3],o=a[0],i=a[1],s=e[4],l=e[6],u=e[7],c=e[8],d=t-u,p=e[5]+l,m=Math.max(r-d,0),f="none",h=eK(c,"top"),g=eK(c,"bottom");return o-=u,i+=r+l,(o+=r+l)>t+p-h&&(f="up"),(i-=u)<t-m+n+g&&(f="down"),"none"!==f?[Math.max(d-r-eY(s,"top",f)-h,0),d-m-l+n+eY(s,"bottom",f)+g]:null}),S(function(e){return null!=e}),k(e$)),[0,0]);return{listBoundary:s,overscan:c,topListHeight:l,increaseViewportBy:u,visibleRange:d}},u(es),{singleton:!0}),eZ={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function eX(e,t,n){if(0===e.length)return[];if(!eA(t))return e.map(function(e){return q({},e,{index:e.index+n,originalIndex:e.index})});for(var r,a=[],o=ey(t.groupOffsetTree,e[0].index,e[e.length-1].index),i=void 0,s=0,l=G(e);!(r=l()).done;){var u=r.value;(!i||i.end<u.index)&&(i=o.shift(),s=t.groupIndices.indexOf(i.start)),a.push(q({},u.index===i.start?{type:"group",index:s}:{index:u.index-(s+1)+n,groupIndex:s},{size:u.size,offset:u.offset,originalIndex:u.index,data:u.data}))}return a}function eQ(e,t,n,r,a,o){var i=0,s=0;if(e.length>0){i=e[0].offset;var l=e[e.length-1];s=l.offset+l.size}var u=n-a.lastIndex,c=i,d=a.lastOffset+u*a.lastSize+(u-1)*r-s;return{items:eX(e,a,o),topItems:eX(t,a,o),topListHeight:t.reduce(function(e,t){return t.size+e},0),offsetTop:i,offsetBottom:d,top:c,bottom:s,totalCount:n,firstItemIndex:o}}var eJ=I(function(e){var t=e[0],n=t.sizes,r=t.totalCount,a=t.data,o=t.firstItemIndex,i=t.gap,s=e[1],l=e[2],u=l.visibleRange,c=l.listBoundary,d=l.topListHeight,p=e[3],m=p.scrolledToInitialItem,f=p.initialTopMostItemIndex,h=e[4].topListHeight,g=e[5],v=e[6].didMount,w=e[7].recalcInProgress,C=D([]),T=b();y(s.topItemsIndexes,C);var O=_(x(N(v,w,j(u,e$),j(r),j(n),j(f),m,j(C),j(o),j(i),a),S(function(e){return e[0]&&!e[1]}),M(function(e){var t,n=e[2],r=n[0],a=n[1],o=e[3],i=e[5],s=e[6],l=e[7],u=e[8],c=e[9],d=e[10],p=e[4],m=p.sizeTree,f=p.offsetTree;if(0===o||0===r&&0===a)return q({},eZ,{totalCount:o});if(ec(m))return eQ(function(e,t,n){if(eA(t)){var r=eO(e,t);return[{index:ed(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}("number"==typeof i?i:"LAST"===i.index?o-1:i.index,p,d),[],o,c,p,u);var h=[];if(l.length>0)for(var g,y=l[0],v=l[l.length-1],b=0,D=G(ey(m,y,v));!(g=D()).done;)for(var E=g.value,_=E.value,w=Math.max(E.start,y),x=Math.min(E.end,v),C=w;C<=x;C++)h.push({index:C,size:_,offset:b,data:d&&d[C]}),b+=_;if(!s)return eQ([],h,o,c,p,u);var k=l.length>0?l[l.length-1]+1:0,S=function(e,t,n,r){var a,o;return void 0===r&&(r=0),r>0&&(t=Math.max(t,e[eE(e,r,ew)].offset)),ev((a=eE(e,t,ex),o=eE(e,n,ex,a),e.slice(a,o+1)),eC)}(f,r,a,k);if(0===S.length)return null;var M=o-1;return eQ((function(e){for(var t,n=G(S);!(t=n()).done;){var o=t.value,i=o.value,s=i.offset,l=o.start,u=i.size;
1if(i.offset<r){var p=(l+=Math.floor((r-i.offset+c)/(u+c)))-o.start;s+=p*u+p*c}l<k&&(s+=(k-l)*u,l=k);for(var m=Math.min(o.end,M),f=l;f<=m&&!(s>=a);f++)e.push({index:f,size:u,offset:s,data:d&&d[f]}),s+=u+c}}(t=[]),t),h,o,c,p,u)}),S(function(e){return null!==e}),k()),eZ);return y(x(a,S(function(e){return void 0!==e}),M(function(e){return e.length})),r),y(x(O,M(function(e){return e.topListHeight})),h),y(h,d),y(x(O,M(function(e){return[e.top,e.bottom]})),c),y(x(O,M(function(e){return e.items})),T),q({listState:O,topItemsIndexes:C,endReached:E(x(O,S(function(e){return e.items.length>0}),L(r,a),S(function(e){var t=e[0].items;return t[t.length-1].originalIndex===e[1]-1}),M(function(e){return[e[1]-1,e[2]]}),k(e$),M(function(e){return e[0]}))),startReached:E(x(O,P(200),S(function(e){var t=e.items;return t.length>0&&t[0].originalIndex===e.topItems.length}),M(function(e){return e.items[0].index}),k())),rangeChanged:E(x(O,S(function(e){return e.items.length>0}),M(function(e){for(var t=e.items,n=0,r=t.length-1;"group"===t[n].type&&n<r;)n++;for(;"group"===t[r].type&&r>n;)r--;return{startIndex:t[n].index,endIndex:t[r].index}}),k(eq))),itemsRendered:T},g)},u(eF,eW,eG,ez,ej,eI,eB,e_),{singleton:!0}),e0=I(function(e){var t=e[0],n=t.sizes,r=t.firstItemIndex,a=t.data,o=t.gap,i=e[1].listState,s=e[2].didMount,l=D(0);return y(x(s,L(l),S(function(e){return 0!==e[1]}),L(n,r,o,a),M(function(e){var t=e[0][1],n=e[1],r=e[2],a=e[3],o=e[4],i=void 0===o?[]:o,s=0;if(n.groupIndices.length>0)for(var l,u=G(n.groupIndices);!((l=u()).done||l.value-s>=t);)s++;var c=t+s;return eQ(Array.from({length:c}).map(function(e,t){return{index:t,size:0,offset:0,data:i[t]}}),[],c,a,n,r)})),i),{initialItemCount:l}},u(eF,eJ,eB),{singleton:!0}),e1=I(function(e){var t=e[0].scrollVelocity,n=D(!1),r=b(),a=D(!1);return y(x(t,L(a,n,r),S(function(e){return!!e[1]}),M(function(e){var t=e[0],n=e[1],r=e[2],a=e[3],o=n.enter;if(r){if((0,n.exit)(t,a))return!1}else if(o(t,a))return!0;return r}),k()),n),x(N(n,t,r),L(a))(1,function(e){var t=e[0],n=e[1];return t[0]&&n&&n.change&&n.change(t[1],t[2])}),{isSeeking:n,scrollSeekConfiguration:a,scrollVelocity:t,scrollSeekRangeChanged:r}},u(eI),{singleton:!0}),e2=I(function(e){var t=e[0].topItemsIndexes,n=D(0);return y(x(n,S(function(e){return e>0}),M(function(e){return Array.from({length:e}).map(function(e,t){return t})})),t),{topItemCount:n}},u(eJ)),e3=I(function(e){var t=e[0],n=t.footerHeight,r=t.headerHeight,a=t.fixedHeaderHeight,o=t.fixedFooterHeight,i=e[1].listState,s=b(),l=_(x(N(n,o,r,a,i),M(function(e){var t=e[4];return e[0]+e[1]+e[2]+e[3]+t.offsetBottom+t.bottom})),0);return y(j(l),s),{totalListHeight:l,totalListHeightChanged:s}},u(es,eJ),{singleton:!0});function e4(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}var e5=e4(function(){return/iP(ad|hone|od).+Version\/[\d.]+.*Safari/i.test(navigator.userAgent)}),e6=I(function(e){var t=e[0],n=t.scrollBy,r=t.scrollTop,a=t.deviation,o=t.scrollingInProgress,i=e[1],s=i.isScrolling,l=i.isAtBottom,u=i.scrollDirection,c=e[3],d=c.beforeUnshiftWith,p=c.shiftWithOffset,m=c.sizes,h=c.gap,g=e[4].log,v=e[5].recalcInProgress,b=E(x(e[2].listState,L(i.lastJumpDueToItemResize),O(function(e,t){var n=e[1],r=t[0],a=r.items,o=r.totalCount,i=r.bottom+r.offsetBottom,s=0;return e[2]===o&&n.length>0&&a.length>0&&(0===a[0].originalIndex&&0===n[0].originalIndex||0!=(s=i-e[3])&&(s+=t[1])),[s,a,o,i]},[0,[],0,0]),S(function(e){return 0!==e[0]}),L(r,u,o,l,g),S(function(e){return!e[3]&&0!==e[1]&&"up"===e[2]}),M(function(e){var t=e[0][0];return(0,e[5])("Upward scrolling compensation",{amount:t},X.DEBUG),t})));function D(e){e>0?(f(n,{top:-e,behavior:"auto"}),f(a,0)):(f(a,0),f(n,{top:-e,behavior:"auto"}))}return x(b,L(a,s))(1,function(e){var t=e[0],n=e[1];e[2]&&e5()?f(a,n-t):D(-t)}),x(N(_(s,!1),a,v),S(function(e){return!e[0]&&!e[2]&&0!==e[1]}),M(function(e){return e[1]}),P(1))(1,D),y(x(p,M(function(e){return{top:-e}})),n),x(d,L(m,h),M(function(e){var t=e[0];return t*e[1].lastSize+t*e[2]}))(1,function(e){f(a,e),requestAnimationFrame(function(){f(n,{top:e}),requestAnimationFrame(function(){f(a,0),f(v,!1)})})}),{deviation:a}},u(es,eI,eJ,eF,ee,e_)),e8=I(function(e){var t=e[0].totalListHeight,n=e[1].didMount,r=e[2].scrollTo,a=D(0);return x(n,L(a),S(function(e){return 0!==e[1]}),M(function(e){return{top:e[1]}}))(1,function(e){v(x(t,S(function(e){return 0!==e})),function(){setTimeout(function(){f(r,e)})})}),{initialScrollTop:a}},u(e3,eB,es),{singleton:!0}
1),e9=I(function(e){var t=e[0].viewportHeight,n=e[1].totalListHeight,r=D(!1);return{alignToBottom:r,paddingTopAddition:_(x(N(r,t,n),S(function(e){return e[0]}),M(function(e){return Math.max(0,e[1]-e[2])}),k()),0)}},u(es,e3),{singleton:!0}),e7=I(function(e){var t=e[0],n=t.scrollTo,r=t.scrollContainerState,a=b(),o=b(),i=b(),s=D(!1),l=D(void 0);return y(x(N(a,o),M(function(e){var t=e[0],n=t.viewportHeight,r=t.scrollHeight;return{scrollTop:Math.max(0,t.scrollTop-e[1].offsetTop),scrollHeight:r,viewportHeight:n}})),r),y(x(n,L(o),M(function(e){var t=e[0];return q({},t,{top:t.top+e[1].offsetTop})})),i),{useWindowScroll:s,customScrollParent:l,windowScrollContainerState:a,windowViewportRect:o,windowScrollTo:i}},u(es)),te=["done","behavior","align"],tt=I(function(e){var t=e[0],n=t.sizes,r=t.totalCount,a=t.gap,o=e[1],i=o.scrollTop,s=o.viewportHeight,l=o.headerHeight,u=o.fixedHeaderHeight,c=o.fixedFooterHeight,d=o.scrollingInProgress,p=e[2].scrollToIndex,m=b();return y(x(m,L(n,s,r,l,u,c,i),L(a),M(function(e){var t=e[0],n=t[0],r=t[1],a=t[2],o=t[3],i=t[4],s=t[5],l=t[6],u=t[7],c=e[1],p=n.done,m=n.behavior,f=n.align,h=Y(n,te),g=null,y=eT(n,r,o-1),b=eM(y,r.offsetTree,c)+i+s;return b<u+s?g=q({},h,{behavior:m,align:null!=f?f:"start"}):b+ed(r.sizeTree,y)[1]>u+a-l&&(g=q({},h,{behavior:m,align:null!=f?f:"end"})),g?p&&v(x(d,A(1),S(function(e){return!1===e})),p):p&&p(),g}),S(function(e){return null!==e})),p),{scrollIntoView:m}},u(eF,es,ej,eJ,ee),{singleton:!0}),tn=["listState","topItemsIndexes"],tr=I(function(e){return q({},e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},u(eG,e0,eB,e1,e3,e8,e9,e7,tt)),ta=I(function(e){var t=e[0],n=t.totalCount,r=t.sizeRanges,a=t.fixedItemSize,o=t.defaultItemSize,i=t.trackItemSizes,s=t.itemSize,l=t.data,u=t.firstItemIndex,c=t.groupIndices,d=t.statefulTotalCount,p=t.gap,m=e[1],f=m.initialTopMostItemIndex,h=m.scrolledToInitialItem,g=e[2],v=e[3],b=e[4],D=b.listState,E=b.topItemsIndexes,_=Y(b,tn),w=e[5].scrollToIndex,C=e[7].topItemCount,k=e[8].groupCounts,S=e[9],T=e[10];return y(_.rangeChanged,S.scrollSeekRangeChanged),y(x(S.windowViewportRect,M(function(e){return e.visibleHeight})),g.viewportHeight),q({totalCount:n,data:l,firstItemIndex:u,sizeRanges:r,initialTopMostItemIndex:f,scrolledToInitialItem:h,topItemsIndexes:E,topItemCount:C,groupCounts:k,fixedItemHeight:a,defaultItemHeight:o,gap:p},v,{statefulTotalCount:d,listState:D,scrollToIndex:w,trackItemSizes:i,itemSize:s,groupIndices:c},_,S,g,T)},u(eF,ez,es,eU,eJ,ej,e6,e2,eW,tr,ee)),to=e4(function(){if("u"<typeof document)return"sticky";var e=document.createElement("div");return e.style.position="-webkit-sticky","-webkit-sticky"===e.style.position?"-webkit-sticky":"sticky"});function ti(e,t){var n=(0,a.useRef)(null),r=(0,a.useCallback)(function(r){if(null!==r&&r.offsetParent){var a,o,i=r.getBoundingClientRect(),s=i.width;if(t){var l=t.getBoundingClientRect(),u=i.top-l.top;a=l.height-Math.max(0,u),o=u+t.scrollTop}else a=window.innerHeight-Math.max(0,i.top),o=i.top+window.pageYOffset;n.current={offsetTop:o,visibleHeight:a,visibleWidth:s},e(n.current)}},[e,t]),o=et(r),i=o.callbackRef,s=o.ref,l=(0,a.useCallback)(function(){r(s.current)},[r,s]);return(0,a.useEffect)(function(){if(t){t.addEventListener("scroll",l);var e=new ResizeObserver(l);return e.observe(t),function(){t.removeEventListener("scroll",l),e.unobserve(t)}}return window.addEventListener("scroll",l),window.addEventListener("resize",l),function(){window.removeEventListener("scroll",l),window.removeEventListener("resize",l)}},[l,t]),i}var ts=a.createContext(void 0),tl=["placeholder"],tu=["style","children"],tc=["style","children"];function td(e){return e}var tp=I(function(){var e=D(function(e){return"Item "+e}),t=D(null),n=D(function(e){return"Group "+e}),r=D({}),a=D(td),o=D("div"),i=D(m),s=function(e,t){return void 0===t&&(t=null),_(x(r,M(function(t){return t[e]}),k()),t)};return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:a,headerFooterTag:o,scrollerRef:i,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}});function tm(e,t){var n=b();return n(1,function(){return console.warn("react-virtuoso: You are using a deprecated property. "+t,"color: red;","color: inherit;","color: blue;")}),y(n,e),n}var tf=I(function(e){var t=e[0],n=e[1],r={item:tm(n.itemContent,"Rename the %citem%c prop to %citemContent."),group:tm(n.groupContent,"Rename the %cgroup%c prop to %cgroupContent."),topItems:tm(t.topItemCount,"Rename the %ctopItems%c prop to %ctopItemCount."),itemHeight:tm(t.fixedItemHeight,"Rename the %citemHeight%c prop to %cfixedItemHeight."),scrollingStateChange:tm(t.isScrolling,"Rename the %cscrollingStateChange%c prop to %cisScrolling."),adjustForPrependedItems:b(),maxHeightCacheSize:b(),footer:b(),header:b(),HeaderContainer:b(),FooterContainer:b(),ItemContainer:b(),ScrollContainer:b(),GroupContainer:b(),ListContainer:b(),emptyComponent:b(),scrollSeek:b()};function a(e,t,r){y(x(e,L(n.components),M(function(e){var n,a=e[0],o=e[1];return console.warn("react-virtuoso: "+r+" property is deprecated. Pass components."+t+" instead."),q({},o,((n={})[t]=a,n))})),n.components)}return(0,r.adjustForPrependedItems)(1,function(){console.warn("react-virtuoso: adjustForPrependedItems is no longer supported. Use the firstItemIndex property instead - https://virtuoso.dev/prepend-items.","color: red;","color: inherit;","color: blue;")}),(0,r.maxHeightCacheSize)(1,function(){console.warn("react-virtuoso: maxHeightCacheSize is no longer necessary. Setting it has no effect - remove it from your co
1de.")}),(0,r.HeaderContainer)(1,function(){console.warn("react-virtuoso: HeaderContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the header component and pass components.Header to change its contents.")}),(0,r.FooterContainer)(1,function(){console.warn("react-virtuoso: FooterContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the footer component and pass components.Footer to change its contents.")}),(0,r.scrollSeek)(1,function(e){var r=e.placeholder,a=Y(e,tl);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),f(n.components,q({},g(n.components),{ScrollSeekPlaceholder:r})),f(t.scrollSeekConfiguration,a)}),a(r.footer,"Footer","footer"),a(r.header,"Header","header"),a(r.ItemContainer,"Item","ItemContainer"),a(r.ListContainer,"List","ListContainer"),a(r.ScrollContainer,"Scroller","ScrollContainer"),a(r.emptyComponent,"EmptyPlaceholder","emptyComponent"),a(r.GroupContainer,"Group","GroupContainer"),q({},t,n,r)},u(ta,tp)),th=function(e){return a.createElement("div",{style:{height:e.height}})},tg={position:to(),zIndex:1,overflowAnchor:"none"},ty={overflowAnchor:"none"},tv=a.memo(function(e){var t=e.showTopList,n=void 0!==t&&t,r=tF("listState"),o=tP("sizeRanges"),i=tF("useWindowScroll"),s=tF("customScrollParent"),l=tP("windowScrollContainerState"),u=tP("scrollContainerState"),c=tF("itemContent"),d=tF("context"),p=tF("groupContent"),f=tF("trackItemSizes"),h=er(o,tF("itemSize"),f,n?m:s||i?l:u,tF("log"),tP("gap"),s).callbackRef,g=a.useState(0),y=g[0],v=g[1];tL("deviation",function(e){y!==e&&v(e)});var b=tF("EmptyPlaceholder"),D=tF("ScrollSeekPlaceholder")||th,E=tF("ListComponent"),_=tF("ItemComponent"),w=tF("GroupComponent"),x=tF("computeItemKey"),C=tF("isSeeking"),k=tF("groupIndices").length>0,S=tF("paddingTopAddition"),M=n?{}:{boxSizing:"border-box",paddingTop:r.offsetTop+S,paddingBottom:r.offsetBottom,marginTop:y};return!n&&0===r.totalCount&&b?(0,a.createElement)(b,t_(b,d)):(0,a.createElement)(E,q({},t_(E,d),{ref:h,style:M,"data-test-id":n?"virtuoso-top-item-list":"virtuoso-item-list"}),(n?r.topItems:r.items).map(function(e){var t=e.originalIndex,n=x(t+r.firstItemIndex,e.data,d);return C?(0,a.createElement)(D,q({},t_(D,d),{key:n,index:e.index,height:e.size,type:e.type||"item"},"group"===e.type?{}:{groupIndex:e.groupIndex})):"group"===e.type?(0,a.createElement)(w,q({},t_(w,d),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:tg}),p(e.index)):(0,a.createElement)(_,q({},t_(_,d),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,style:ty}),k?c(e.index,e.groupIndex,e.data,d):c(e.index,e.data,d))}))}),tb={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},tD={width:"100%",height:"100%",position:"absolute",top:0},tE={width:"100%",position:to(),top:0};function t_(e,t){if("string"!=typeof e)return{context:t}}var tw=a.memo(function(){var e=tF("HeaderComponent"),t=tP("headerHeight"),n=tF("headerFooterTag"),r=en(function(e){return t(ea(e,"height"))}),o=tF("context");return e?(0,a.createElement)(n,{ref:r},(0,a.createElement)(e,t_(e,o))):null}),tx=a.memo(function(){var e=tF("FooterComponent"),t=tP("footerHeight"),n=tF("headerFooterTag"),r=en(function(e){return t(ea(e,"height"))}),o=tF("context");return e?(0,a.createElement)(n,{ref:r},(0,a.createElement)(e,t_(e,o))):null});function tC(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return a.memo(function(e){var o=e.style,i=e.children,s=Y(e,tu),l=t("scrollContainerState"),u=r("ScrollerComponent"),c=t("smoothScrollTargetReached"),d=r("scrollerRef"),p=r("context"),m=ei(l,c,u,d),f=m.scrollerRef,h=m.scrollByCallback;return n("scrollTo",m.scrollToCallback),n("scrollBy",h),(0,a.createElement)(u,q({ref:f,style:q({},tb,o),"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0},s,t_(u,p)),i)})}function tk(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return a.memo(function(e){var o=e.style,i=e.children,s=Y(e,tc),l=t("windowScrollContainerState"),u=r("ScrollerComponent"),c=t("smoothScrollTargetReached"),d=r("totalListHeight"),p=r("deviation"),f=r("customScrollParent"),h=r("context"),g=ei(l,c,u,m,f),y=g.scrollerRef,v=g.scrollByCallback,b=g.scrollToCallback;return Q(function(){return y.current=f||window,function(){y.current=null}},[y,f]),n("windowScrollTo",b),n("scrollBy",v),(0,a.createElement)(u,q({style:q({position:"relative"},o,0!==d?{height:d+p}:{}),"data-virtuoso-scroller":!0},s,t_(u,h)),i)})}var tS=function(e){var t=e.children,n=(0,a.useContext)(ts),r=tP("viewportHe
1ight"),i=tP("fixedItemHeight"),s=en(o(r,function(e){return ea(e,"height")}));return a.useEffect(function(){n&&(r(n.viewportHeight),i(n.itemHeight))},[n,r,i]),a.createElement("div",{style:tD,ref:s,"data-viewport-type":"element"},t)},tM=function(e){var t=e.children,n=(0,a.useContext)(ts),r=tP("windowViewportRect"),o=tP("fixedItemHeight"),i=ti(r,tF("customScrollParent"));return a.useEffect(function(){n&&(o(n.itemHeight),r({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))},[n,r,o]),a.createElement("div",{ref:i,style:tD,"data-viewport-type":"window"},t)},tT=function(e){var t=e.children,n=tF("TopItemListComponent"),r=tF("headerHeight"),o=q({},tE,{marginTop:r+"px"}),i=tF("context");return(0,a.createElement)(n||"div",{style:o,context:i},t)},tO=W(tf,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering",item:"item",group:"group",topItems:"topItems",itemHeight:"itemHeight",scrollingStateChange:"scrollingStateChange",maxHeightCacheSize:"maxHeightCacheSize",footer:"footer",header:"header",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",GroupContainer:"GroupContainer",emptyComponent:"emptyComponent",HeaderContainer:"HeaderContainer",FooterContainer:"FooterContainer",scrollSeek:"scrollSeek"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",adjustForPrependedItems:"adjustForPrependedItems",autoscrollToBottom:"autoscrollToBottom"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},a.memo(function(e){var t=tF("useWindowScroll"),n=tF("topItemsIndexes").length>0,r=tF("customScrollParent");return a.createElement(r||t?tj:tR,q({},e),a.createElement(r||t?tM:tS,null,a.createElement(tw,null),a.createElement(tv,null),a.createElement(tx,null)),n&&a.createElement(tT,null,a.createElement(tv,{showTopList:!0})))})),tA=tO.Component,tP=tO.usePublisher,tF=tO.useEmitterValue,tL=tO.useEmitter,tR=tC({usePublisher:tP,useEmitterValue:tF,useEmitter:tL}),tj=tk({usePublisher:tP,useEmitterValue:tF,useEmitter:tL}),tN={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},tI={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},tB=Math.round,tz=Math.ceil,tH=Math.floor,tU=Math.min,tV=Math.max;function tW(e,t){return Array.from({length:t-e+1}).map(function(t,n){return{index:n+e}})}function t$(e,t){return e&&e.column===t.column&&e.row===t.row}var tq=I(function(e){var t=e[0],n=t.overscan,r=t.visibleRange,a=t.listBoundary,o=e[1],i=o.scrollTop,s=o.viewportHeight,l=o.scrollBy,u=o.scrollTo,c=o.smoothScrollTargetReached,d=o.scrollContainerState,p=e[2],m=e[3],f=e[4],h=f.propsReady,g=f.didMount,v=e[5],w=v.windowViewportRect,C=v.windowScrollTo,O=v.useWindowScroll,A=v.customScrollParent,P=v.windowScrollContainerState,F=e[6],R=D(0),I=D(0),B=D(tN),z=D({height:0,width:0}),H=D({height:0,width:0}),U=b(),V=b(),W=D(0),$=D({row:0,column:0});y(x(g,L(I),S(function(e){return 0!==e[1]}),M(function(e){return{items:tW(0,e[1]-1),top:0,bottom:0,offsetBottom:0,offsetTop:0,itemHeight:0,itemWidth:0}}
1)),B),y(x(N(j(R),r,j($,t$),j(H,function(e,t){return e&&e.width===t.width&&e.height===t.height})),L(z),M(function(e){var t,n,r,a=e[0],o=a[0],i=a[1],s=i[0],l=i[1],u=a[2],c=a[3],d=e[1],p=u.row,m=c.height,f=c.width,h=d.width;if(0===o||0===h)return tN;if(0===f)return tI;var g=(t=h,n=f,tV(1,tH((t+(r=u.column))/(n+r)))),y=g*tH((s+p)/(m+p)),v=g*tz((l+p)/(m+p))-1;v=tV(0,tU(o-1,v));var b=tW(y=tU(v,tV(0,y)),v),D=tY(d,u,c,b),E=D.top,_=D.bottom,w=tz(o/g);return{items:b,offsetTop:E,offsetBottom:w*m+(w-1)*p-_,top:E,bottom:_,itemHeight:m,itemWidth:f}})),B),y(x(z,M(function(e){return e.height})),s),y(x(N(z,H,B,$),M(function(e){var t=tY(e[0],e[3],e[1],e[2].items);return[t.top,t.bottom]}),k(e$)),a);var Y=E(x(j(B),S(function(e){return e.items.length>0}),L(R),S(function(e){var t=e[0].items;return t[t.length-1].index===e[1]-1}),M(function(e){return e[1]-1}),k())),K=E(x(j(B),S(function(e){var t=e.items;return t.length>0&&0===t[0].index}),T(0),k())),G=E(x(j(B),S(function(e){return e.items.length>0}),M(function(e){var t=e.items;return{startIndex:t[0].index,endIndex:t[t.length-1].index}}),k(eq)));y(G,m.scrollSeekRangeChanged),y(x(U,L(z,H,R,$),M(function(e){var t=e[1],n=e[2],r=e[3],a=e[4],o=eR(e[0]),i=o.align,s=o.behavior,l=o.offset,u=o.index;"LAST"===u&&(u=r-1);var c=tK(t,a,n,u=tV(0,u,tU(r-1,u)));return"end"===i?c=tB(c-t.height+n.height):"center"===i&&(c=tB(c-t.height/2+n.height/2)),l&&(c+=l),{top:c,behavior:s}})),u);var Z=_(x(B,M(function(e){return e.offsetBottom+e.bottom})),0);return y(x(w,M(function(e){return{width:e.visibleWidth,height:e.visibleHeight}})),z),q({totalCount:R,viewportDimensions:z,itemDimensions:H,scrollTop:i,scrollHeight:V,overscan:n,scrollBy:l,scrollTo:u,scrollToIndex:U,smoothScrollTargetReached:c,windowViewportRect:w,windowScrollTo:C,useWindowScroll:O,customScrollParent:A,windowScrollContainerState:P,deviation:W,scrollContainerState:d,initialItemCount:I,gap:$},m,{gridState:B,totalListHeight:Z},p,{startReached:K,endReached:Y,rangeChanged:G,propsReady:h},F)},u(eG,es,eI,e1,eB,e7,ee));function tY(e,t,n,r){var a=n.height;return void 0===a||0===r.length?{top:0,bottom:0}:{top:tK(e,t,n,r[0].index),bottom:tK(e,t,n,r[r.length-1].index)+a}}function tK(e,t,n,r){var a,o,i,s=tH(r/(a=e.width,o=n.width,tV(1,tH((a+(i=t.column))/(o+i))))),l=s*n.height+tV(0,s-1)*t.row;return l>0?l+t.row:l}var tG=["placeholder"],tZ=I(function(){var e=D(function(e){return"Item "+e}),t=D({}),n=D(null),r=D("virtuoso-grid-item"),a=D("virtuoso-grid-list"),o=D(td),i=D(m),s=function(e,n){return void 0===n&&(n=null),_(x(t,M(function(t){return t[e]}),k()),n)};return{context:n,itemContent:e,components:t,computeItemKey:o,itemClassName:r,listClassName:a,scrollerRef:i,ListComponent:s("List","div"),ItemComponent:s("Item","div"),ScrollerComponent:s("Scroller","div"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder","div")}}),tX=I(function(e){var t=e[0],n=e[1],r={item:tm(n.itemContent,"Rename the %citem%c prop to %citemContent."),ItemContainer:b(),ScrollContainer:b(),ListContainer:b(),emptyComponent:b(),scrollSeek:b()};function a(e,t,r){y(x(e,L(n.components),M(function(e){var n,a=e[0],o=e[1];return console.warn("react-virtuoso: "+r+" property is deprecated. Pass components."+t+" instead."),q({},o,((n={})[t]=a,n))})),n.components)}return(0,r.scrollSeek)(1,function(e){var r=e.placeholder,a=Y(e,tG);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),f(n.components,q({},g(n.components),{ScrollSeekPlaceholder:r})),f(t.scrollSeekConfiguration,a)}),a(r.ItemContainer,"Item","ItemContainer"),a(r.ListContainer,"List","ListContainer"),a(r.ScrollContainer,"Scroller","ScrollContainer"),q({},t,n,r)},u(tq,tZ)),tQ=a.memo(function(){var e=t3("gridState"),t=t3("listClassName"),n=t3("itemClassName"),r=t3("itemContent"),o=t3("computeItemKey"),i=t3("isSeeking"),s=t2("scrollHeight"),l=t3("ItemComponent"),u=t3("ListComponent"),c=t3("ScrollSeekPlaceholder"),d=t3("context"),p=t2("itemDimensions"),m=t2("gap"),f=t3("log"),h=en(function(e){s(e.parentElement.parentElement.scrollHeight);var t=e.firstChild;t&&p(t.getBoundingClientRect()),m({row:t8("row-gap",getComputedStyle(e).rowGap,f),column:t8("column-gap",getComputedStyle(e).columnGap,f)})});return(0,a.createElement)(u,q({ref:h,className:t},t_(u,d),{style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom}}),e.items.map(function(t){var s=o(t.index);return i?(0,a.createElement)(c,q({key:s},t_(c,d),{index:t.index,height:e.itemHeight,width:e.itemWidth})):(0,a.createElement)(l,q({},t_(l,d),{className:n,"data-index":t.index,key:s}),r(t.index,d))}))}),tJ=function(e){var t=e.children,n=t2("viewportDimensions"),r=en(function(e){n(e.getBoundingClientRect())});return a.createElement("div",{style:tD,ref:r},t)},t0=function(e){var t=e.children,n=ti(t2("windowViewportRect"),t3("customScrollParent"));return a.createElement("div",{ref:n,style:tD},t)},t1=W(tX,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",listClassName:"listClassName",itemClassName:"itemClassName",useW
1indowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",item:"item",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",scrollSeek:"scrollSeek"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange"}},a.memo(function(e){var t=q({},e),n=t3("useWindowScroll"),r=t3("customScrollParent");return a.createElement(r||n?t6:t5,q({},t),a.createElement(r||n?t0:tJ,null,a.createElement(tQ,null)))})),t2=(t1.Component,t1.usePublisher),t3=t1.useEmitterValue,t4=t1.useEmitter,t5=tC({usePublisher:t2,useEmitterValue:t3,useEmitter:t4}),t6=tk({usePublisher:t2,useEmitterValue:t3,useEmitter:t4});function t8(e,t,n){return"normal"===t||null!=t&&t.endsWith("px")||n(e+" was not resolved to pixel value correctly",t,X.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}var t9=I(function(){var e=D(function(e){return a.createElement("td",null,"Item $",e)}),t=D(null),n=D(null),r=D(null),o=D({}),i=D(td),s=D(m),l=function(e,t){return void 0===t&&(t=null),_(x(o,M(function(t){return t[e]}),k()),t)};return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:r,components:o,computeItemKey:i,scrollerRef:s,TableComponent:l("Table","table"),TableHeadComponent:l("TableHead","thead"),TableFooterComponent:l("TableFoot","tfoot"),TableBodyComponent:l("TableBody","tbody"),TableRowComponent:l("TableRow","tr"),ScrollerComponent:l("Scroller","div"),EmptyPlaceholder:l("EmptyPlaceholder"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),FillerRow:l("FillerRow")}}),t7=I(function(e){return q({},e[0],e[1])},u(ta,t9)),ne=function(e){return a.createElement("tr",null,a.createElement("td",{style:{height:e.height}}))},nt=function(e){return a.createElement("tr",null,a.createElement("td",{style:{height:e.height,padding:0,border:0}}))},nn=a.memo(function(){var e=ns("listState"),t=ni("sizeRanges"),n=ns("useWindowScroll"),r=ns("customScrollParent"),o=ni("windowScrollContainerState"),i=ni("scrollContainerState"),s=ns("itemContent"),l=ns("trackItemSizes"),u=er(t,ns("itemSize"),l,r||n?o:i,ns("log"),void 0,r),c=u.callbackRef,d=u.ref,p=a.useState(0),m=p[0],f=p[1];nl("deviation",function(e){m!==e&&(d.current.style.marginTop=e+"px",f(e))});var h=ns("EmptyPlaceholder"),g=ns("ScrollSeekPlaceholder")||ne,y=ns("FillerRow")||nt,v=ns("TableBodyComponent"),b=ns("TableRowComponent"),D=ns("computeItemKey"),E=ns("isSeeking"),_=ns("paddingTopAddition"),w=ns("firstItemIndex"),x=ns("statefulTotalCount"),C=ns("context");if(0===x&&h)return(0,a.createElement)(h,t_(h,C));var k=e.offsetTop+_+m,S=e.offsetBottom,M=k>0?a.createElement(y,{height:k,key:"padding-top"}):null,T=S>0?a.createElement(y,{height:S,key:"padding-bottom"}):null,O=e.items.map(function(e){var t=e.originalIndex,n=D(t+w,e.data,C);return E?(0,a.createElement)(g,q({},t_(g,C),{key:n,index:e.index,height:e.size,type:e.type||"item"})):(0,a.createElement)(b,q({},t_(b,C),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:{overflowAnchor:"none"}}),s(e.index,e.data,C))});return(0,a.createElement)(v,q({ref:c,"data-test-id":"virtuoso-item-list"},t_(v,C)),[M].concat(O,[T]))}),nr=function(e){var t=e.children,n=(0,a.useContext)(ts),r=ni("viewportHeight"),i=ni("fixedItemHeight"),s=en(o(r,function(e){return ea(e,"height")}));return a.useEffect(function(){n&&(r(n.viewportHeight),i(n.itemHeight))},[n,r,i]),a.createElement("div",{style:tD,ref:s,"data-viewport-type":"element"},t)},na=function(e){var t=e.children,n=(0,a.useContext)(ts),r=ni("windowViewportRect"),o=ni("fixedItemHeight"),i=ti(r,ns("customScrollParent"));return a.useEffect(function(){n&&(o(n.itemHeight),r({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))},[n,r,o]),a.createElement("div",{ref:i,style:tD,"data-viewport-type":"window"},t)},no=W(t7,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopM
1ostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},a.memo(function(e){var t=ns("useWindowScroll"),n=ns("customScrollParent"),r=ni("fixedHeaderHeight"),i=ni("fixedFooterHeight"),s=ns("fixedHeaderContent"),l=ns("fixedFooterContent"),u=ns("context"),c=en(o(r,function(e){return ea(e,"height")})),d=en(o(i,function(e){return ea(e,"height")})),p=n||t?nc:nu,m=n||t?na:nr,f=ns("TableComponent"),h=ns("TableHeadComponent"),g=ns("TableFooterComponent"),y=s?a.createElement(h,q({key:"TableHead",style:{zIndex:1,position:"sticky",top:0},ref:c},t_(h,u)),s()):null,v=l?a.createElement(g,q({key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:d},t_(g,u)),l()):null;return a.createElement(p,q({},e),a.createElement(m,null,a.createElement(f,q({style:{borderSpacing:0}},t_(f,u)),[y,a.createElement(nn,{key:"TableBody"}),v])))})),ni=(no.Component,no.usePublisher),ns=no.useEmitterValue,nl=no.useEmitter,nu=tC({usePublisher:ni,useEmitterValue:ns,useEmitter:nl}),nc=tk({usePublisher:ni,useEmitterValue:ns,useEmitter:nl}),nd=tA},3171:(e,t,n)=>{"use strict";function r(e){return"function"==typeof e?{next:e}:e}n.d(t,{r:()=>r})},3307:e=>{"use strict";e.exports
vendor: 15,667 bytes, line 1
1=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}
1},3665:function(e,t,n){e.exports=function(e){"use strict";var t={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return""+e+(1===e?"er":"")}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t}(n(56557))},4460:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var r=n(97901),a=n(10289);function o(e,t,n){let[o,i]=(0,r.x)(n?.in,e,t);return+(0,a.o)(o)==+(0,a.o)(i)}},4594:(e,t,n)=>{"use strict";n.d(t,{Y:()=>u});var r=n(69241),a=n(14232),o=n(95248),i=n(65258),s=n(43937),l=n(26373);let u=({children:e,className:t,focus:n=!0,id:u,placement:c="auto",referenceElement:d=null,trapFocus:p,...m})=>{let f=(0,l.sp)({id:u}),h=(0,l.mC)(u),{attributes:g,setPopperElement:y,styles:v}=function({open:e,placement:t,referenceElement:n}){let[r,o]=(0,a.useState)(null),{attributes:s,styles:l,update:u}=(0,i.E)(n,r,{modifiers:[{name:"eventListeners",options:{resize:!1,scroll:!1}}],placement:t});return(0,a.useEffect)(()=>{e&&r&&u?.()},[e,r,u]),r&&!e&&o(null),{attributes:s,setPopperElement:o,styles:l}}({open:h,placement:c,referenceElement:d});return((0,a.useEffect)(()=>{if(!h)return;let e=e=>{"Escape"===e.key&&f?.close()};return document.addEventListener("keyup",e),()=>{document.removeEventListener("keyup",e)}},[f,h]),h)?a.createElement(s.N,{dialogId:u},a.createElement(o.n1,{autoFocus:n,contain:p,restoreFocus:!0},a.createElement("div",{...m,...g.popper,className:(0,r.A)("str-chat__dialog-contents",t),"data-testid":"str-chat__dialog-contents",ref:y,style:v.popper,tabIndex:0},e))):null}},5255:(e,t,n)=>{"use strict";n.d(t,{Q:()=>E});var r=n(14232),a=n(80609),o=n(76844);let i=`Action handler was called, but it is missing one of its required arguments. 2Make sure the ChannelAction and ChannelState contexts are properly set and the hook is initialized with a valid message.`;var s=n(77170),l=n.n(s),u=n(7970),c=n(26707);let d=`Reaction handler was called, but it is missing one of its required arguments. 3Make sure the ChannelAction and ChannelState contexts are properly set and the hook is initialized with a valid message.`;var p=n(62417),m=n(25958),f=n(30199),h=n(27475);function g(e,t){return n=>{"function"==typeof e&&t?.mentioned_users?.length&&e(n,t.mentioned_users)}}var y=n(10623),v=n(70251),b=n(16878);let D=r.memo(e=>{let t,{canPin:n,groupedByUser:a,Message:i,message:s,messageActions:l=Object.keys(f.wx),onUserClick:c,onUserHover:d,userRoles:p}=e,{client:m,isMessageAIGenerated:h}=(0,u.vd)("Message"),{read:g}=(0,o.BX)("Message"),{Message:D}=(0,y.aD)("Message"),E="regular"===s.type&&"received"===s.status,_=i??D??b.I,{clearEdit:w,editing:x,setEdit:C}=((e=!1)=>{let[t,n]=(0,r.useState)(e);return{clearEdit:e=>{e?.preventDefault&&e.preventDefault(),n(!1)},editing:t,setEdit:e=>{e?.preventDefault&&e.preventDefault(),n(!0)}}})(),{onUserClick:k,onUserHover:S}=(t={onUserClickHandler:c,onUserHoverHandler:d},{onUserClick:e=>{"function"==typeof t?.onUserClickHandler&&s?.user&&t.onUserClickHandler(e,s.user)},onUserHover:e=>{"function"==typeof t?.onUserHoverHandler&&s?.user&&t.onUserHoverHandler(e,s.user)}}),{canDelete:M,canEdit:T,canFlag:O,canMarkUnread:A,canMute:P,canQuote:F,canReact:L,canReply:R,isMyMessage:j}=p,N=(0,r.useMemo)(()=>!!(!j&&m.user?.id&&g&&(!g[m.user.id]||s?.created_at&&new Date(s.created_at).getTime()>g[m.user.id].last_read.getTime())),[m,j,s.created_at,g]),I=(0,r.useCallback)(()=>(0,f.fl)(l,{canDelete:M,canEdit:T,canFlag:O,canMarkUnread:A,canMute:P,canPin:n,canQuote:F,canReact:L,canReply:R}),[l,M,T,O,A,P,n,F,L,R]),{canPin:B,messageActions:z,onlySenderCanEdit:H,onUserClick:U,onUserHover:V,userRoles:W,...$}=e,q={...$,actionsEnabled:E,clearEditingState:w,editing:x,getMessageActions:I,handleEdit:C,isMessageAIGenerated:h,isMyMessage:()=>j,messageIsUnread:N,onUserClick:k,onUserHover:S,setEditingState:C};return r.createElement(v.p2,{value:q},r.createElement(_,{groupedByUser:a}))},f.yp),E=e=>{let{closeReactionSelectorOnClick:t,disableQuotedMessages:n,getDeleteMessageErrorNotification:s,getFetchReactionsErrorNotification:y,getFlagMessageErrorNotification:v,getFlagMessageSuccessNotification:b,getMarkMessageUnreadErrorNotification:E,getMarkMessageUnreadSuccessNotification:_,getMuteUserErrorNotification:w,getMuteUserSuccessNotification:x,getPinMessageErrorNotification:C,message:k,onlySenderCanEdit:S=!1,onMentionsClick:M,onMentionsHover:T,openThread:O,pinPermissions:A,reactionDetail
3sSort:P,retrySendMessage:F,sortReactionDetails:L,sortReactions:R}=e,{addNotification:j}=(0,a.KS)("Message"),{highlightedMessageId:N,mutes:I}=(0,o.BX)("Message"),B=function(e){let{removeMessage:t,updateMessage:n}=(0,a.KS)("useActionHandler"),{channel:r}=(0,o.BX)("useActionHandler");return async(a,o,s)=>{if(s&&s.preventDefault(),!e||!n||!t||!r)return void console.warn(i);let l=e.id,u={};if("string"==typeof a?u[a]=o:u={...a},l){let a=await r.sendAction(l,u);a?.message?n(a.message):t(e)}}}(k),z=((e,t)=>{let{openThread:n}=(0,a.KS)("useOpenThreadHandler"),r=t||n;return t=>{r&&e?r(e,t):console.warn("Open thread handler was called but it is missing one of its parameters")}})(k,O),H=(e=>{let t=(0,c.xH)(),{updateMessage:n}=(0,a.KS)("useReactionHandler"),{channel:i,channelCapabilities:s}=(0,o.BX)("useReactionHandler"),{client:p}=(0,u.vd)("useReactionHandler"),m=(0,r.useCallback)((e,t,n)=>{let r=n?.reaction_groups||{},a=t.type,o=!!r[a];if(e){let e=new Date().toISOString();r[a]=o?{...r[a],count:r[a].count+1}:{count:1,first_reaction_at:e,last_reaction_at:e,sum_scores:1}}else o&&r[a].count>1?r[a]={...r[a],count:r[a].count-1}:delete r[a];let i=e?[t,...n?.latest_reactions||[]]:n.latest_reactions?.filter(e=>e.type!==t.type||e.user_id!==t.user_id),s=e?[t,...n?.own_reactions||[]]:n?.own_reactions?.filter(e=>e.type!==t.type);return{...n,latest_reactions:i||n.latest_reactions,own_reactions:s,reaction_groups:r}},[p.user,p.userID]),f=l()(async(r,a,o)=>
3{if(!e||!s["send-reaction"])return;let l=m(o,{message_id:e?.id,score:1,type:a,user:p.user,user_id:p.user?.id},e);try{n(l),t?.upsertReplyLocally({message:l});let e=o?await i.sendReaction(r,{type:a}):await i.deleteReaction(r,a);n(e.message)}catch(r){n(e),t?.upsertReplyLocally({message:e})}},1e3);return async(t,n)=>{if(n?.preventDefault&&n.preventDefault(),!e)return console.warn(d);let r=null;e.own_reactions&&e.own_reactions.forEach(e=>{e.user&&p.userID===e.user.id&&e.type===t?r=e:e.user&&p.userID!==e.user.id&&console.warn("message.own_reactions contained reactions from a different user, this indicates a bug")});try{r?await f(e.id,r.type,!1):await f(e.id,t,!0)}catch(e){console.log({error:e})}}})(k),U=(e=>{let{retrySendMessage:t}=(0,a.KS)("useRetryHandler"),n=e||t;return async e=>{e&&await n(e)}})(F),V=(0,p.h)(k,S,n),W=(0,m.F)(k,{getErrorNotification:y,notify:j}),$=((e,t={})=>{let{getErrorNotification:n,notify:r}=t,{deleteMessage:o,updateMessage:i}=(0,a.KS)("useDeleteHandler"),{client:s}=(0,u.vd)("useDeleteHandler"),{t:l}=(0,h.WR)("useDeleteHandler");return async t=>{if(t.preventDefault(),e?.id&&s&&i)try{let t=await o(e);i(t)}catch(a){let t=n&&(0,f.JN)(n,[e]);r&&r(t||l("Error deleting message"),"error")}}})(k,{getErrorNotification:s,notify:j}),q=((e,t={})=>{let{client:n}=(0,u.vd)("useFlagHandler"),{t:r}=(0,h.WR)("useFlagHandler");return async a=>{a.preventDefault();let{getErrorNotification:o,getSuccessNotification:i,notify:s}=t;if(!n||!r||!s||!e?.id)return void console.warn("useFlagHandler was called but it is missing one or more necessary parameters.");if(n.user?.banned)return s(r("Error adding flag"),"error");try{await n.flagMessage(e.id);let t=i&&(0,f.JN)(i,[e]);s(t||r("Message has been successfully flagged"),"success")}catch(t){s(o&&(0,f.JN)(o,[e])||r("Error adding flag"),"error")}}})(k,{getErrorNotification:v,getSuccessNotification:b,notify:j}),Y=((e,t={})=>{let{getErrorNotification:n,getSuccessNotification:r,notify:a}=t,{channel:i}=(0,o.BX)("useMarkUnreadHandler"),{t:s}=(0,h.WR)("useMarkUnreadHandler");return async t=>{if(t.preventDefault(),!e?.id)return void console.warn("Mark unread handler does not have access to message id");try{if(await i.markUnread({message_id:e.id}),!a)return;let t=r&&(0,f.JN)(r,[e]);t&&a(t,"success")}catch(r){if(!a)return;let t=n&&(0,f.JN)(n,[e]);if(n&&!t)return;a(t||s("Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages."),"error")}}})(k,{getErrorNotification:E,getSuccessNotification:_,notify:j}),K=((e,t={})=>{let{mutes:n}=(0,o.BX)("useMuteHandler"),{client:r}=(0,u.vd)("useMuteHandler"),{t:a}=(0,h.WR)("useMuteHandler");return async o=>{o.preventDefault();let{getErrorNotification:i,getSuccessNotification:s,notify:l}=t;if(!a||!e?.user||!l||!r)return void console.warn("useMuteHandler was called but it is missing one or more necessary parameter.");if((0,f.PX)(e,n))try{await r.unmuteUser(e.user.id);let t=a("{{ user }} has been unmuted",{user:e.user.name||e.user.id}),n=s&&(0,f.JN)(s,[e.user])||t;"string"==typeof n&&l(n,"success")}catch(n){let t=i&&(0,f.JN)(i,[e.user])||a("Error unmuting a user ...");"string"==typeof t&&l(t,"error")}else try{await r.muteUser(e.user.id);let t=s&&(0,f.JN)(s,[e.user]);l(t||a("{{ user }} has been muted",{user:e.user.name||e.user.id}),"success")}catch(t){l(i&&(0,f.JN)(i,[e.user])||a("Error muting a user ..."),"error")}}})(k,{getErrorNotification:w,getSuccessNotification:x,notify:j}),{onMentionsClick:G,onMentionsHover:Z}=((e,t)=>{let{onMentionsClick:n,onMentionsHover:r}=(0,a.KS)("useMentionsHandler"),o=t?.onMentionsClick||n||(()=>null),i=t?.onMentionsHover||r||(()=>null);return{onMentionsClick:g(o,e),onMentionsHover:g(i,e)}})(k,{onMentionsClick:M,onMentionsHover:T}),{canPin:X,handlePin:Q}=((e,t=f.X8,n={})=>{let{getErrorNotification:r,notify:i}=n,{updateMessage:s}=(0,a.KS)("usePinHandler"),{channelCapabilities:l={}}=(0,o.BX)("usePinHandler"),{client:c}=(0,u.vd)("usePinHandler"),{t:d}=(0,h.WR)("usePinHandler");return{canPin:!!l["pin-message"],handlePin:async t=>{if(t.preventDefault(),e)if(e.pinned)try{let t={...e,pin_expires:null,pinned:!1,pinned_at:null,pinned_by:null};s(t),await c.unpinMessage(e)}catch(n){let t=r&&(0,f.JN)(r,[e]);i&&i(t||d("Error removing message pin"),"error"),s(e)}else try{let t={...e,pinned:!0,pinned_at:new Date,pinned_by:c.user};s(t),await c.pinMessage(e)}catch(n){let t=r&&(0,f.JN)(r,[e]);i&&i(t||d("Error pinning message"),"error"),s(e)}}}})(k,A,{getErrorNotification:C,notify:j}),J=N===k.id;
3return r.createElement(D,{additionalMessageInputProps:e.additionalMessageInputProps,autoscrollToBottom:e.autoscrollToBottom,canPin:X,closeReactionSelectorOnClick:t,customMessageActions:e.customMessageActions,disableQuotedMessages:e.disableQuotedMessages,endOfGroup:e.endOfGroup,firstOfGroup:e.firstOfGroup,formatDate:e.formatDate,groupedByUser:e.groupedByUser,groupStyles:e.groupStyles,handleAction:B,handleDelete:$,handleFetchReactions:W,handleFlag:q,handleMarkUnread:Y,handleMute:K,handleOpenThread:z,handlePin:Q,handleReaction:H,handleRetry:U,highlighted:J,initialMessage:e.initialMessage,lastReceivedId:e.lastReceivedId,message:k,Message:e.Message,messageActions:e.messageActions,messageListRect:e.messageListRect,mutes:I,onMentionsClickMessage:G,onMentionsHoverMessage:Z,onUserClick:e.onUserClick,onUserHover:e.onUserHover,pinPermissions:e.pinPermissions,reactionDetailsSort:P,readBy:e.readBy,renderText:e.renderText,sortReactionDetails:L,sortReactions:R,threadList:e.threadList,unsafeHTML:e.unsafeHTML,userRoles:V})}},5355:(e,t)=>{"use strict";t.Jf=t.dz=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,a=/&(newline|tab);/gi,o=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,i=/^.+(:|:)/gim,s=[".","/"];t.dz="about:blank",t.Jf=function(e){if(!e)return t.dz;var l=e.replace(o,"").replace(r,function(e,t){return String.fromCharCode(t)}).replace(a,"").replace(o,"").trim();if(!l)return t.dz;if(s.indexOf(l[0])>-1)return l;var u=l.match(i);if(!u)return l;var c=u[0];return n.test(c)?t.dz:l}},5492:function(e){e.exports=function(e,t,n){var r=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},o=function(e,t,n,r,o){var i=e.name?e:e.$locale(),s=a(i[t]),l=a(i[n]),u=s||l.map(function(e){return e.slice(0,r)});if(!o)return u;var c=i.weekStart;return u.map(function(e,t){return u[(t+(c||0))%7]})},i=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):o(e,"months")},monthsShort:function(t){return t?t.format("MMM"):o(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):o(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):o(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):o(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=i();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return o(i(),"months")},n.monthsShort=function(){return o(i(),"monthsShort","months",3)},n.weekdays=function(e){return o(i(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return o(i(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return o(i(),"weekdaysMin","weekdays",2,e)}}},5516:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(14232)),o=n(24657),i=n(95824);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
3function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");m.prototype=Object.create(e&&e.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),e&&u(m,e);var t,n,s=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=d(m);return a=t?Reflect.construct(o,arguments,d(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:c(e)});function m(){var e;if(!(this instanceof m))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(c(e=s.call.apply(s,[this].concat(n))),"callPlayer",o.callPlayer),p(c(e),"playerID",e.props.config.playerId||"".concat("twitch-player-").concat((0,o.randomString)())),p(c(e),"mute",function(){e.callPlayer("setMuted",!0)}),p(c(e),"unmute",function(){e.callPlayer("setMuted",!1)}),e}return n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,t){var n=this,r=this.props,a=r.playsinline,s=r.onError,u=r.config,c=r.controls,d=i.MATCH_URL_TWITCH_CHANNEL.test(e),m=d?e.match(i.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(i.MATCH_URL_TWITCH_VIDEO)[1];t?d?this.player.setChannel(m):this.player.setVideo("v"+m):(0,o.getSDK)("https://player.twitch.tv/js/embed/v1.js","Twitch").then(function(t){n.player=new t.Player(n.playerID,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({video:d?"":m,channel:d?m:"",height:"100%",width:"100%",playsinline:a,autoplay:n.props.playing,muted:n.props.muted,controls:!!d||c,time:(0,o.parseStartTime)(e)},u.options));var r=t.Player,i=r.READY,s=r.PLAYING,f=r.PAUSE,h=r.ENDED,g=r.ONLINE,y=r.OFFLINE,v=r.SEEK;n.player.addEventListener(i,n.props.onReady),n.player.addEventListener(s,n.props.onPlay),n.player.addEventListener(f,n.props.onPause),n.player.addEventListener(h,n.props.onEnded),n.player.addEventListener(v,n.props.onSeek),n.player.addEventListener(g,n.props.onLoaded),n.player.addEventListener(y,n.props.onLoaded)},s)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("pause")}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){return a.default.createElement("div",{style:{width:"100%",height:"100%"},id:this.playerID})}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(m.prototype,n),m}(a.Component);t.default=m,p(m,"displayName","Twitch"),p(m,"canPlay",i.canPlay.twitch),p(m,"loopOnEnded",!0)},5902:function(e){e.exports={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}}},6055:(e,t,n)=>{"use strict";n.d(t,{D:()=>i,l:()=>l});var r=n(76700),a=n.n(r);let o=(e,t)=>t,i=(e,t)=>a()(e,t,o),s=(e,t)=>e??t,l=(e,t)=>
3a()(e,t,s)},7227:(e,t,n)=>{"use strict";n.d(t,{r:()=>e$});var r=n(14232),a=n(84989),o=n(86195),i=n(54945),s=n(59524),l=n(44212),u=n(1584),c=n(27196),d=n(22055),p=n(61371),m=n(85190),f=n(83784),h=n(96244),g=n(16213),y=n(13163);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){(0,m.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var D={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},E=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.A)(this,e),this.init(t,n)}return(0,l.A)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||D,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,b(b({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),_=function(){function e(){(0,s.A)(this,e),this.observers={}}return(0,l.A)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function w(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function x(e){return null==e?"":""+e}function C(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function a(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(a())return{};var i=r(o.shift());!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return a()?{}:{obj:e,k:r(o.shift())}}function k(e,t,n){var r=C(e,t,Object);r.obj[r.k]=n}function S(e,t){var n=C(e,t),r=n.obj,a=n.k;if(r)return r[a]}function M(e,t,n){var r=S(e,n);return void 0!==r?r:S(t,n)}function T(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var O={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function A(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return O[e]}):e}var P="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,F=[" ",",","?","!",";"];function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
3t%2?L(Object(n),!0).forEach(function(t){(0,m.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var j=function(e){(0,c.A)(r,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,p.A)(r);return e=t?Reflect.construct(n,arguments,(0,p.A)(this).constructor):n.apply(this,arguments),(0,d.A)(this,e)});function r(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,s.A)(this,r),t=n.call(this),P&&_.call((0,u.A)(t)),t.data=e||{},t.options=a,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return(0,l.A)(r,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,i=[e,t];n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(a?n.split(a):n)),e.
3indexOf(".")>-1&&(i=e.split("."));var s=S(this.data,i);return s||!o||"string"!=typeof n?s:function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[n])return t[n];for(var a=n.split(r),o=t,i=0;i<a.length;++i){if(!o||"string"==typeof o[a[i]]&&i+1<a.length)return;if(void 0===o[a[i]]){for(var s=2,l=a.slice(i,i+s).join(r),u=o[l];void 0===u&&a.length>i+s;)s++,u=o[l=a.slice(i,i+s).join(r)];if(void 0===u)return;if(null===u)return null;if(n.endsWith(l)){if("string"==typeof u)return u;if(l&&"string"==typeof u[l])return u[l]}var c=a.slice(i+s).join(r);if(c)return e(u,c,r);return}o=o[a[i]]}return o}}(this.data&&this.data[e]&&this.data[e][t],n,a)}},{key:"addResource",value:function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var i=[e,t];n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split("."),r=t,t=i[1]),this.addNamespaces(t),k(this.data,i,r),a.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var a in n)("string"==typeof n[a]||"[object Array]"===Object.prototype.toString.apply(n[a]))&&this.addResource(e,t,a,n[a],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[e,t];e.indexOf(".")>-1&&(i=e.split("."),r=n,n=t,t=i[1]),this.addNamespaces(t);var s=S(this.data,i)||{};r?function e(t,n,r){for(var a in n)"__proto__"!==a&&"constructor"!==a&&(a in t?"string"==typeof t[a]||t[a]instanceof String||"string"==typeof n[a]||n[a]instanceof String?r&&(t[a]=n[a]):e(t[a],n[a],r):t[a]=n[a]);return t}(s,n,a):s=R(R({},s),n),k(this.data,i,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?R(R({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(_),N={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,a){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,a))}),t}};function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach(function(t){(0,m.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var z={},H=function(e){(0,c.A)(r,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,p.A)(r);return e=t?Reflect.construct(n,arguments,(0,p.A)(this).constructor):n.apply(this,arguments),(0,d.A)(this,e)});function r(e){var t,a,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.A)(this,r),o=n.call(this),P&&_.call((0,u.A)(o)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
3i18nFormat","utils"],a=(0,u.A)(o),t.forEach(function(t){e[t]&&(a[t]=e[t])}),o.options=i,void 0===o.options.keySeparator&&(o.options.keySeparator="."),o.logger=E.create("translator"),o}return(0,l.A)(r,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,i=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var r=F.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===r.length)return!0;var a=new RegExp("(".concat(r.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),o=!a.test(e);if(!o){var i=e.indexOf(n);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o}(e,n,r);if(o&&!i){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:a};var l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(a=l.shift()),e=l.join(r)}return"string"==typeof a&&(a=[a]),{key:e,namespaces:a}}},{key:"translate",value:function(e,t,n){var a=this;if("object"!==(0,i.A)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,s=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],t),u=l.key,c=l.namespaces,d=c[c.length-1],p=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(m){var f=t.nsSeparator||this.options.nsSeparator;return o?(h.res="".concat(d).concat(f).concat(u),h):"".concat(d).concat(f).concat(u)}return o?(h.res=u,h):u}var h=this.resolve(e,t),g=h&&h.res,y=h&&h.usedKey||u,v=h&&h.exactUsedKey||u,b=Object.prototype.toString.apply(g),D=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,_="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(E&&g&&_&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(b)&&("string"!=typeof D||"[object Array]"!==b)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,g,B(B({},t),{},{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(h.res=w,h):w}if(s){var x="[object Array]"===b,C=x?[]:{},k=x?v:y;for(var S in g)if(Object.prototype.hasOwnProperty.call(g,S)){var M="".concat(k).concat(s).concat(S);C[S]=this.translate(M,B(B({},t),{joinArrays:!1,ns:c})),C[S]===M&&(C[S]=g[S])}g=C}}else if(E&&"string"==typeof D&&"[object Array]"===b)(g=g.join(D))&&(g=this.extendTranslation(g,e,t,n));else{var T=!1,O=!1,A=void 0!==t.count&&"string"!=typeof t.count,P=r.hasDefaultValue(t),F=A?this.pluralResolver.getSuffix(p,t.count,t):"",L=t["defaultValue".concat(F)]||t.defaultValue;!this.isValidLookup(g)&&P&&(T=!0,g=L),this.isValidLookup(g)||(O=!0,g=u);var R=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:g,j=P&&L!==g&&this.options.updateMissing;if(O||T||j){if(this.logger.log(j?"updateKey":"missingKey",p,d,u,j?L:g),s){var N=this.resolve(u,B(B({},t),{},{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var I=[],z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&z&&z[0])for(var H=0;H<z.length;H++)I.push(z[H]);else"all"===this.options.saveMissingTo?I=this.languageUtils.toResolveHierarchy(t.lng||this.language):I.push(t.lng||this.language);var U=function(e,n,r){var o=P&&r!==g?r:R;a.options.missingKeyHandler?a.options.missingKeyHandler(e,d,n,o,j,t):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,d,n,o,j,t),a.emit("missingKey",e,d,n,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?I.forEach(function(e){a.pluralResolver.getSuffixes(e,t).forEach(function(n){U([e],u+n,t["defaultValue".concat(n)]||L)})}
vendor: 2,491 bytes, line 3
3):U(I,u,L))}g=this.extendTranslation(g,e,t,h,n),O&&g===u&&this.options.appendNamespaceToMissingKey&&(g="".concat(d,":").concat(u)),(O||T)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(u):u,T?g:void 0):this.options.parseMissingKeyHandler(g))}return o?(h.res=g,h):g}},{key:"extendTranslation",value:function(e,t,n,r,a){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,B(B({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(B(B({},n),{interpolation:B(B({},this.options.interpolation),n.interpolation)}));var i,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);i=l&&l.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=B(B({},this.options.interpolation.defaultVariables),u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),s){var c=e.match(this.interpolator.nestingRegexp);i<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return a&&a[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=N.handle(p,e,t,this.options&&this.options.postProcessPassResolved?B({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,a,o,i=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!i.isValidLookup(t)){var l=i.extractFromKey(e,s),u=l.key;n=u;var c=l.namespaces;i.options.fallbackNS&&(c=c.concat(i.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=d&&!s.ordinal&&0===s.count&&i.pluralResolver.shouldUseIntlApi(),m=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);
3c.forEach(function(e){i.isValidLookup(t)||(o=e,!z["".concat(f[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(o)&&(z["".concat(f[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(function(n){if(!i.isValidLookup(t)){a=n;var o,l=[u];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(l,u,n,e,s);else{d&&(c=i.pluralResolver.getSuffix(n,s.count,s));var c,f="".concat(i.options.pluralSeparator,"zero");if(d&&(l.push(u+c),p&&l.push(u+f)),m){var h="".concat(u).concat(i.options.contextSeparator).concat(s.context);l.push(h),d&&(l.push(h+c),p&&l.push(h+f))}}for(;o=l.pop();)i.isValidLookup(t)||(r=o,t=i.getResource(n,e,o,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:a,usedNS:o}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),r}(_);function U(e){return e.charAt(0).toUpperCase()+e.slice(1)}var V=function(){function e(t){(0,s.A)(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=E.create("languageUtils")}return(0,l.A)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=U(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=U(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=U(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(r))&&(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(r))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],o=function(e){e&&(n.isSupportedCode(e)?a.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach(function(e){0>a.indexOf(e)&&o(n.formatLanguageCode(e))}),a}}]),e}(),W=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","
3sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],$={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},q=["v1","v2","v3"],Y={zero:0,one:1,two:2,few:3,many:4,other:5},K=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.A)(this,e),this.languageUtils=t,this.options=r,this.logger=E.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},W.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:$[e.fc]}})}),n)}return(0,l.A)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(e,t){return Y[e]-Y[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):r.numbers.map(function(r){return t.getSuffix(e,r,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),a=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[
vendor: 5,861 bytes, line 3
30]&&(2===a?a="plural":1===a&&(a=""));var o=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return"v1"===this.options.compatibilityJSON?1===a?"":"number"==typeof a?"_plural_".concat(a.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!q.includes(this.options.compatibilityJSON)}}]),e}();function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach(function(t){(0,m.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var X=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.A)(this,e),this.logger=E.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,l.A)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:A,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?T(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?T(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?T(t.nestingPrefix):t.nestingPrefixEscaped||T("$t("),this.nestingSuffix=t.nestingSuffix?T(t.nestingSuffix):t.nestingSuffixEscaped||T(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var a,o,i,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(0>e.indexOf(s.formatSeparator)){var a=M(t,l,e);return s.alwaysFormat?s.format(a,void 0,n,Z(Z(Z({},r),t),{},{interpolationkey:e})):a}var o=e.split(s.formatSeparator),i=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(M(t,l,i),u,n,Z(Z(Z({},r),t),{},{interpolationkey:i}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach(function(t){for(i=0;a=t.regex.exec(e);){var n=a[1].trim();if(void 0===(o=c(n)))if("function"==typeof d){var l=d(e,a,r);o="string"==typeof l?l:""}else if(r&&r.hasOwnProperty(n))o="";else if(p){o=a[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o="";else"string"==typeof o||s.useRawValueToEscape||(o=x(o));var u=t.safeValue(o);if(e=e.replace(a[0],u),p?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,++i>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Z({},o);function s(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),a="{".concat(r[1]);e=r[0];var o=(a=this.interpolate(a,i)).match(/'/g),s=a.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(a=a.replace(/'/g,'"'));try{i=JSON.parse(a),t&&(i=Z(Z({},t),i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(a)}return delete i.defaultValue,e}for(i.applyPostProcessor=!1,delete i.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=c.shift(),l=c,u=!0}if((r=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=x(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=l.reduce(function(e,t){return a.format(e,t,o.lng,Z(Z({},o),{},{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
3t%2?Q(Object(n),!0).forEach(function(t){(0,m.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ee(e){var t={};return function(n,r,a){var o=r+JSON.stringify(a),i=t[o];return i||(i=e(r,a),t[o]=i),i(n)}}var et=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.A)(this,e),this.logger=E.create("formatter"),this.options=t,this.formats={number:ee(function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}}),currency:ee(function(e,t){var n=new Intl.NumberFormat(e,J(J({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:ee(function(e,t){var n=new Intl.DateTimeFormat(e,J({},t));return function(e){return n.format(e)}}),relativetime:ee(function(e,t){var n=new Intl.RelativeTimeFormat(e,J({},t));return function(e){return n.format(e,t.range||"day")}}),list:ee(function(e,t){var n=new Intl.ListFormat(e,J({},t));return function(e){return n.format(e)}})},this.init(t)}return(0,l.A)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=ee(t)}},{key:"format",value:function(e,t,n,r){var a=this;return t.split(this.formatSeparator).reduce(function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var a=r[1].substring(0,r[1].length-1);"currency"===t&&0>a.indexOf(":")?n.currency||(n.currency=a.trim()):"relativetime"===t&&0>a.indexOf(":")?n.range||(n.range=a.trim()):a.split(";").forEach(function(e){if(e){var t,r=(t=e.split(":"),(0,f.A)(t)||(0,h.A)(t)||(0,g.A)(t)||(0,y.A)()),a=r[0],o=r.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=o),"false"===o&&(n[a.trim()]=!1),"true"===o&&(n[a.trim()]=!0),isNaN(o)||(n[a.trim()]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}}(t),i=o.formatName,s=o.formatOptions;if(a.formats[i]){var l=e;try{var u=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},c=u.locale||u.lng||r.locale||r.lng||n;l=a.formats[i](e,c,J(J(J({},s),r),u))}catch(e){a.logger.warn(e)}return l}return a.logger.warn("there was no format function for ".concat(i)),e},e)}}]),e}();function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach(function(t){(0,m.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ea=function(e){(0,c.A)(r,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,p.A)(r);return e=t?Reflect.construct(n,arguments,(0,p.A)(this).constructor):n.apply(this,arguments),(0,d.A)(this,e)});function r(e,t,a){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,s.A)(this,r),o=n.call(this),P&&_.call((0,u.A)(o)),o.backend=e,o.store=t,o.services=a,o.languageUtils=a.languageUtils,o.options=i,o.logger=E.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=i.maxParallelReads||10,o.readingCalls=0,o.maxRetries=i.maxRetries>=0?i.maxRetries:5,o.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,i.backend,i),o}return(0,l.A)(r,[{key:"queueLoad",value:function(e,t,n,r){var a=this,o={},i={},s={},l={};return e.forEach(function(e){var r=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&a.store.hasResourceBundle(e,t)?a.state[s]=2:a.state[s]<0||(1===a.state[s]?void 0===i[s]&&(i[s]=!0):(a.state[s]=1,r=!1,void 0===i[s]&&(i[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===l[t]&&(l[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),a=r[0],o=r[1];
3t&&this.emit("failedLoading",a,o,t),n&&this.store.addResourceBundle(a,o,n),this.state[e]=t?-1:2;var i={};this.queue.forEach(function(n){var r,s,l,u;r=n.loaded,(l=(s=C(r,[a],Object)).obj)[u=s.k]=l[u]||[],l[u].push(o),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){i[e]||(i[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===i[e][t]&&(i[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:a,wait:o,callback:i}):(this.readingCalls++,this.backend[n](e,t,function(s,l){if(r.readingCalls--,r.waitingReads.length>0){var u=r.waitingReads.shift();r.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}s&&l&&a<r.maxRetries?setTimeout(function(){r.read.call(r,e,t,n,a+1,2*o,i)},o):i(s,l)})):i(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,function(r,i){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(a," failed"),r),!r&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(a),i),t.loaded(e,r,i)})}},{key:"saveMissing",value:function(e,t,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==n||""===n||(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,er(er({},o),{},{isUpdate:a})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),r}(_);function eo(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ei(Object(n),!0).forEach(function(t){(0,m.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ei(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function el(){}var eu=function(e){(0,c.A)(r,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,p.A)(r);return e=t?Reflect.construct(n,arguments,(0,p.A)(this).constructor):n.apply(this,arguments),(0,d.A)(this,e)});function r(){var e,t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if((0,s.A)(this,r),t=n.call(this),P&&_.call((0,u.A)(t)),t.options=eo(a),t.services={},t.logger=E,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=(0,u.A)(t))).forEac
3h(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),o&&!t.isInitialized&&!a.isClone){if(!t.options.initImmediate)return t.init(a,o),(0,d.A)(t,(0,u.A)(t));setTimeout(function(){t.init(a,o)},0)}return t}return(0,l.A)(r,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var r={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,i.A)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,i.A)(e[2])||"object"===(0,i.A)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function a(e){return e?"function"==typeof e?new e:e:null}if(this.options=es(es(es({},r),this.options),eo(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=es(es({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?E.init(a(this.modules.logger),this.options):E.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"u">typeof Intl&&(o=et);var o,s=new V(this.options);this.store=new j(this.options.resources,this.options);var l=this.services;l.logger=E,l.resourceStore=this.store,l.languageUtils=s,l.pluralResolver=new K(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(l.formatter=a(o),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new X(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new ea(a(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];e.emit.apply(e,[t].concat(r))}),this.modules.languageDetector&&(l.languageDetector=a(this.modules.languageDetector),l.languageDetector.init(l,this.options.detection,this.options)),this.modules.i18nFormat&&(l.i18nFormat=a(this.modules.i18nFormat),l.i18nFormat.init&&l.i18nFormat.init(this)),this.translator=new H(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];e.emit.apply(e,[t].concat(r))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=el),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=w(),d=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:el,r=n,a="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(a&&"cimode"===a.toLowerCase())return r();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>o.indexOf(e)&&o.push(e)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return i(e)}
vendor: 3,526 bytes, line 3
3),this.options.preload&&this.options.preload.forEach(function(e){return i(e)}),this.services.backendConnector.load(o,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)})}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=w();return e||(e=this.languages),t||(t=this.options.ns),n||(n=el),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&N.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=w();this.emit("languageChanging",e);var a=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(e,o){o?(a(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},i=function(t){e||t||!n.services.languageDetector||(t=[]);var r="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);r&&(n.language||a(r),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,function(e){o(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,a=function e(t,a){if("object"!==(0,i.A)(a)){for(var o,s=arguments.length,l=Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];o=r.options.overloadTranslationOptionHandler([t,a].concat(l))}else o=es({},a);o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,o.keyPrefix=o.keyPrefix||n||e.keyPrefix;var c=r.options.keySeparator||".",d=o.keyPrefix?"".concat(o.keyPrefix).concat(c).concat(t):t;return r.t(d,o)};return"string"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
3if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],a=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===r||2===r};if(n.precheck){var s=n.precheck(this,i);if(void 0!==s)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!a||i(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=w();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=w();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],a=e.filter(function(e){return 0>r.indexOf(e)});return a.length?(this.options.preload=r.concat(a),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:el,a=es(es(es({},this.options),t),{isClone:!0}),o=new r(a);return(void 0!==t.debug||void 0!==t.prefix)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(function(t){o[t]=e[t]}),o.services=es({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new H(o.services,o.options),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))}),o.init(a,n),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),r}(_);(0,m.A)(eu,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new eu(e,t)});var ec=eu.createInstance();ec.createInstance=eu.createInstance,ec.createInstance,ec.init,ec.loadResources,ec.reloadResources,ec.use,ec.changeLanguage,ec.getFixedT,ec.t,ec.exists,ec.setDefaultNamespace,ec.hasLoadedNamespace,ec.loadNamespaces,ec.loadLanguages;var ed=n(56557),ep=n.n(ed),em=n(27808),ef=n.n(em),eh=n(22429),eg=n.n(eh),ey=n(82908),ev=n.n(ey),eb=n(5492),eD=n.n(eb),eE=n(66315),e_=n.n(eE),ew=n(71576),ex=n.n(ew),eC=n(64301),ek=n.n(eC);let eS=JSON.parse('{"Add a comment":"Einen Kommentar hinzuf\xfcgen","Add an option":"Eine Option hinzuf\xfcgen","All results loaded":"Alle Ergebnisse geladen","Allow access to camera":"Zugriff auf Kamera erlauben","Allow access to microphone":"Zugriff auf Mikrofon erlauben","Allow comments":"Kommentare erlauben","Allow option suggestion":"Optionsvorschl\xe4ge erlauben","An error has occurred during recording":"Ein Fehler ist w\xe4hrend der Aufnahme aufgetreten","An error has occurred during the recording processing":"Ein Fehler ist w\xe4hrend der Aufnahmeverarbeitung aufgetreten","Anonymous":"Anonym","Anonymous poll":"Anonyme Umfrage","Archive":"Archivieren","Ask a question":"Eine Frage stellen","Attach files":"Dateien anh\xe4ngen","Cancel":"Abbrechen","Cannot seek in the recording":"In der Aufnahme kann nicht gesucht werden","Channel Missing":"Kanal fehlt","Close":"Schlie\xdfen","Close emoji picker":"Emoji-Auswahl schlie\xdfen","Commands matching":"\xdcbereinstimmende Befehle","Connection failure, reconnecting now...":"Verbindungsfehler, Wiederherstellung der Verbindung...","Create":"Erstellen","Create poll":"Umfrage erstellen","Delete":"L\xf6schen","Delivered":"Zugestellt","Download attachment {{ name }}":"Anhang {{ name }} herunterladen","Drag your files here":"Ziehen Sie Ihre Dateien hierher","Drag your files here to add to your post":"Ziehen Sie Ihre Dateien hierher, um sie Ihrem Beitrag hinzuzuf\xfcgen","Edit Message":"Nachricht bearbeiten","Edit message request failed":"Anfrage zum Bearbeiten der Nachricht fehlgeschlagen","Edited":"Bearbeitet","Emoji matching":"Passende Emojis","Empty message...":"Leere Nachricht...","End":"Beenden","End vote":"Abstimmung beenden","Error adding flag":"Fehler beim Hinzuf\xfcgen des Flags","Error c
3onnecting to chat, refresh the page to try again.":"Verbindungsfehler zum Chat, aktualisieren Sie die Seite, um es erneut zu versuchen.","Error deleting message":"Fehler beim L\xf6schen der Nachricht","Error fetching reactions":"Fehler beim Laden von Reaktionen","Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.":"Fehler beim Markieren der Nachricht als ungelesen. Kann keine \xe4lteren ungelesenen Nachrichten markieren als die neuesten 100 Kanalnachrichten.","Error muting a user ...":"Fehler beim Stummschalten eines Nutzers.","Error pinning message":"Fehler beim Pinnen der Nachricht","Error removing message pin":"Fehler beim Entfernen der gepinnten Nachricht","Error reproducing the recording":"Fehler bei der Wiedergabe der Aufnahme","Error starting recording":"Fehler beim Starten der Aufnahme","Error unmuting a user ...":"Fehler beim Aufheben der Stummschaltung eines Nutzers ...","Error uploading attachment":"Fehler beim Hochladen des Anhangs","Error uploading file":"Fehler beim Hochladen der Datei","Error uploading image":"Fehler beim Hochladen des Bildes","Error \xb7 Unsent":"Fehler \xb7 Nicht gesendet","Error: {{ errorMessage }}":"Fehler: {{ errorMessage }}","Failed to jump to the first unread message":"Fehler beim Springen zur ersten ungelesenen Nachricht","Failed to mark channel as read":"Fehler beim Markieren des Kanals als gelesen","Failed to play the recording":"Wiedergabe der Aufnahme fehlgeschlagen","File":"Datei","File is too large: {{ size }}, maximum upload size is {{ limit }}":"Datei ist zu gro\xdf: {{ size }}, maximale Upload-Gr\xf6\xdfe betr\xe4gt {{ limit }}","Flag":"Melden","Generating...":"Generieren...","Latest Messages":"Neueste Nachrichten","Load more":"Mehr laden","Mark as unread":"Als ungelesen markieren","Maximum number of votes (from 2 to 10)":"Maximale Anzahl der Stimmen (von 2 bis 10)","Menu":"Men\xfc","Message Failed \xb7 Click to try again":"Nachricht fehlgeschlagen \xb7 Klicken, um es erneut zu versuchen","Message Failed \xb7 Unauthorized":"Nachricht fehlgeschlagen \xb7 Nicht autorisiert","Message deleted":"Nachricht gel\xf6scht","Message has been successfully flagged":"Nachricht wurde erfolgreich gemeldet","Message pinned":"Nachricht angeheftet","Message was blocked by moderation policies":"Nachricht wurde durch moderationsrichtlinien blockiert","Messages have been marked unread.":"Nachrichten wurden als ungelesen markiert.","Missing permissions to upload the attachment":"Fehlende Berechtigungen zum Hochladen des Anhangs","Multiple answers":"Mehrere Antworten","Mute":"Stummschalten","New":"Neu","New Messages!":"Neue Nachrichten!","No chats here yetâ¦":"Noch keine Chats hier...","No results found":"Keine Ergebnisse gefunden","Nobody will be able to vote in this poll anymore.":"Niemand kann mehr in dieser Umfrage abstimmen.","Nothing yet...":"Noch nichts...","Ok":"Ok","Open emoji picker":"Emoji-Auswahl \xf6ffnen","Option already exists":"Option existiert bereits","Options":"Optionen","People matching":"Passende Personen","Pin":"Anheften","Pinned by":"Angeheftet von","Poll":"Umfrage","Poll comments":"Umfragekommentare","Poll options":"Umfrageoptionen","Poll results":"Umfrageergebnisse","Question":"Frage","Quote":"Zitieren","Recording format is not supported and cannot be reproduced":"Aufnahmeformat wird nicht unterst\xfctzt und kann nicht wiedergegeben werden","Reply":"Antworten","Reply to Message":"Auf Nachricht antworten","Search":"Suche","Searching...":"Suchen...","See all options ({{count}})_one":"Alle Optionen anzeigen ({{count}})","See all options ({{count}})_other":"Alle Optionen anzeigen ({{count}})","Select one":"Eine ausw\xe4hlen","Select one or more":"Eine oder mehrere ausw\xe4hlen","Select up to {{count}}_one":"Bis zu {{count}} ausw\xe4hlen","Select up to {{count}}_other":"Bis zu {{count}} ausw\xe4hlen","Send":"Senden","Send Anyway":"Trotzdem senden","Send message request failed":"Senden der Nachrichtenanfrage fehlgeschlagen","Sending...":"Senden...","Show all":"Alle anzeigen","Shuffle":"Mischen","Slow Mode ON":"Langsamer Modus EIN","Some of the files will not be accepted":"Einige der Dateien werden nicht akzeptiert","Start t
3yping to search":"Tippen Sie, um zu suchen","Submit":"Absenden","Suggest an option":"Eine Option vorschlagen","Thinking...":"Denken...","This message did not meet our content guidelines":"Diese Nachricht entsprach nicht unseren Inhaltsrichtlinien","This message was deleted...":"Diese Nachricht wurde gel\xf6scht...","Thread":"Thread","To start recording, allow the camera access in your browser":"Um mit der Aufnahme zu beginnen, erlauben Sie den Zugriff auf die Kamera in Ihrem Browser","To start recording, allow the microphone access in your browser":"Um mit der Aufnahme zu beginnen, erlauben Sie den Zugriff auf das Mikrofon in Ihrem Browser","Type a number from 2 to 10":"Geben Sie eine Zahl von 2 bis 10 ein","Type your message":"Nachricht eingeben","Unarchive":"Archivierung aufheben","Unmute":"Stummschaltung aufheben","Unpin":"Anheftung aufheben","Unread messages":"Ungelesene Nachrichten","Unsupported attachment":"Nicht unterst\xfctzter Anhang","Update your comment":"Ihren Kommentar aktualisieren","Upload type: \\"{{ type }}\\" is not allowed":"Upload-Typ: \\"{{ type }}\\" ist nicht erlaubt","User uploaded content":"Vom Benutzer hochgeladener Inhalt","View results":"Ergebnisse anzeigen","View {{count}} comments_one":"{{count}} Kommentar anzeigen","View {{count}} comments_other":"{{count}} Kommentare anzeigen","Voice message":"Sprachnachricht","Vote ended":"Abstimmung beendet","Wait until all attachments have uploaded":"Bitte warten, bis alle Anh\xe4nge hochgeladen wurden","You":"Du","You have no channels currently":"Du hast momentan noch keine Kan\xe4le","You\'ve reached the maximum number of files":"Die maximale Anzahl an Dateien ist erreicht","aria/Attachment":"Anhang","aria/Cancel Reply":"Antwort abbrechen","aria/Cancel upload":"Upload abbrechen","aria/Channel list":"Kanalliste","aria/Channel search results":"Kanalsuchergebnisse","aria/Close thread":"Thread schlie\xdfen","aria/Download attachment":"Anhang herunterladen","aria/Emoji picker":"Emoji-Auswahl","aria/File input":"Dateieingabe","aria/File upload":"Datei hochladen","aria/Image input":"Bildeingabe","aria/Load More Channels":"Mehr Kan\xe4le laden","aria/Menu":"Men\xfc","aria/Message Options":"Nachrichtenoptionen","aria/Open Attachment Selector":"Anhang-Auswahl \xf6ffnen","aria/Open Message Actions Menu":"Nachrichtenaktionsmen\xfc \xf6ffnen","aria/Open Reaction Selector":"Reaktionsauswahl \xf6ffnen","aria/Open Thread":"Thread \xf6ffnen","aria/Reaction list":"Reaktionsliste","aria/Remove attachment":"Anhang entfernen","aria/Retry upload":"Upload erneut versuchen","aria/Search results":"Suchergebnisse","aria/Search results header filter button":"Suchergebnisse-Kopfzeilen-Filterbutton","aria/Send":"Senden","aria/Stop AI Generation":"KI-Generierung stoppen","ban-command-args":"[@Benutzername] [Text]","ban-command-description":"Einen Benutzer verbannen","giphy-command-args":"[Text]","giphy-command-description":"Poste ein zuf\xe4lliges Gif in den Kanal","live":"live","mute-command-args":"[@Benutzername]","mute-command-description":"Stummschalten eines Benutzers","replyCount_one":"1 Antwort","replyCount_other":"{{ count }} Antworten","search-results-header-filter-source-button-label--channels":"Kan\xe4le","search-results-header-filter-source-button-label--messages":"Nachrichten","search-results-header-filter-source-button-label--users":"Benutzer","searchResultsCount_one":"1 Ergebnis","searchResultsCount_other":"{{ count }} Ergebnisse","this content could not be displayed":"Dieser Inhalt konnte nicht angezeigt werden","timestamp/DateSeparator":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/MessageTimestamp":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/PollVote":"{{ timestamp | timestampFormatter(format: MMM D [at] HH:mm) }}","timestamp/PollVoteTooltip":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/SystemMessage":"{{ timestamp | timestampFormatter(format: dddd L) }}","unban-command-args":"[@Benutzername]","unban-command-description":"Einen Benutzer entbannen","unmute-command-args":"[@Benutzername]","unmute-command-description":"Stummschaltung eines Benutzers aufheben","unreadMessagesSeparatorText_one":"1 ungelesene Nachricht","unreadMessagesSeparatorText_other":"{{count}} ungelesene Nachrichten","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} und {{moreCount}} mehr","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} und {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} und {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} mehr","{{ memberCount }} members":"{{ memberCount }} Mitglieder","{{ user }} has been muted":"{{ user }} wurde stummgeschaltet","{{ user }} has been unmuted":"Die Stummschaltung von {{ user }} wurde aufgehoben","{{ user }} is typing...":"{{ user }} tippt...","{{ users }} and more are typing...":"{{ users }} und mehr tippen...","{{ users }} and {{ user }} are typing...":"{{ users }} und {{ user }} tippen...","{{ watcherCount }} online":"{{ watcherCount }} online","{{count}}
3 unread_one":"{{count}} ungelesen","{{count}} unread_other":"{{count}} ungelesen","{{count}} votes_one":"{{count}} Stimme","{{count}} votes_other":"{{count}} Stimmen","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Anhang...","\uD83D\uDCCA {{createdBy}} created: {{ pollName}}":"\uD83D\uDCCA {{createdBy}} hat erstellt: {{ pollName}}","\uD83D\uDCCA {{votedBy}} voted: {{pollOptionText}}":"\uD83D\uDCCA {{votedBy}} hat abgestimmt: {{pollOptionText}}"}'),eM=JSON.parse('{"Add a comment":"Add a comment","Add an option":"Add an option","All results loaded":"All results loaded","Allow access to camera":"Allow access to camera","Allow access to microphone":"Allow access to microphone","Allow comments":"Allow comments","Allow option suggestion":"Allow option suggestion","An error has occurred during recording":"An error has occurred during recording","An error has occurred during the recording processing":"An error has occurred during the recording processing","Anonymous":"Anonymous","Anonymous poll":"Anonymous poll","Archive":"Archive","Ask a question":"Ask a question","Attach files":"Attach files","Cancel":"Cancel","Cannot seek in the recording":"Cannot seek in the recording","Channel Missing":"Channel Missing","Close":"Close","Close emoji picker":"Close emoji picker","Commands matching":"Commands matching","Connection failure, reconnecting now...":"Connection failure, reconnecting now...","Create":"Create","Create poll":"Create poll","Delete":"Delete","Delivered":"Delivered","Download attachment {{ name }}":"Download attachment {{ name }}","Drag your files here":"Drag your files here","Drag your files here to add to your post":"Drag your files here to add to your post","Edit Message":"Edit Message","Edit message request failed":"Edit message request failed","Edited":"Edited","Emoji matching":"Emoji matching","Empty message...":"Empty message...","End":"End","End vote":"End vote","Error adding flag":"Error adding flag","Error connecting to chat, refresh the page to try again.":"Error connecting to chat, refresh the page to try again.","Error deleting message":"Error deleting message","Error fetching reactions":"Error loading reactions","Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.":"Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.","Error muting a user ...":"Error muting a user ...","Error pinning message":"Error pinning message","Error removing message pin":"Error removing message pin","Error reproducing the recording":"Error reproducing the recording","Error starting recording":"Error starting recording","Error unmuting a user ...":"Error unmuting a user ...","Error uploading attachment":"Error uploading attachment","Error uploading file":"Error uploading file","Error uploading image":"Error uploading image","Error \xb7 Unsent":"Error \xb7 Unsent","Error: {{ errorMessage }}":"Error: {{ errorMessage }}","Failed to jump to the first unread message":"Failed to jump to the first unread message","Failed to mark channel as read":"Failed to mark channel as read","Failed to play the recording":"Failed to play the recording","File":"File","File is too large: {{ size }}, maximum upload size is {{ limit }}":"File is too large: {{ size }}, maximum upload size is {{ limit }}","Flag":"Flag","Generating...":"Generating...","Latest Messages":"Latest Messages","Load more":"Load more","Mark as unread":"Mark as unread","Maximum number of votes (from 2 to 10)":"Maximum number of votes (from 2 to 10)","Menu":"Menu","Message Failed \xb7 Click to try again":"Message Failed \xb7 Click to try again","Message Failed \xb7 Unauthorized":"Message Failed \xb7 Unauthorized","Message deleted":"Message deleted","Message has been successfully flagged":"Message has been successfully flagged","Message pinned":"Message pinned","Message was blocked by moderation policies":"Message was blocked by moderation policies","Messages have been marked unread.":"Messages have been marked unread.","Missing permissions to upload the attachment":"Missing permissions to upload the attachment","Multiple answers":"Multiple answers","Mute":"Mute","New":"New","New Messages!":"New Messages!","No chats here yetâ¦":"No chats here yetâ¦","No results found":"No results found","Nobody will be able to vote in this poll anymore.":"Nobody will be able to vote in this poll anymore.","Nothing yet...":"Nothing yet...","Ok":"Ok","Open emoji picker":"Open emoji picker","Option already exists":"Option already exists","Options":"Options","People matching":"People matching","Pin":"Pin","Pinned by":"Pinned by","Poll":"Poll","Poll comments":"Poll comments","Poll options":"Poll options","Poll results":"Poll results","Question":"Question","Quote":"Quote","Recording format is not supported and cannot be reproduced":"Recording format is not supported and cannot be reproduced","Reply":"Reply","Reply to Message":"Reply to Message","Search":"Search","Searching...":"Searching...","See all options ({{count}})_one":"See all options ({{count}})","See all options ({{count}})_other":"See all options ({{count}})","Select one":"Select one","Select one or more":"Select one or more","Select up to {{count}}_one":"Select up to {{count}}","Select up to {{count}}_other":"Select up to {{count}}","Send":"Send","Send Anyway":"Send Anyway","Send message request failed":"Send message request failed","Sending...":"Sending...","Show all":"Show all","Shuffle":"Shuffle","Slow Mode ON":"Slow Mode ON","Some of the files will not be accepted":"Some of the files will not be accepted","Start t
3yping to search":"Start typing to search","Submit":"Submit","Suggest an option":"Suggest an option","Thinking...":"Thinking...","This message did not meet our content guidelines":"This message did not meet our content guidelines","This message was deleted...":"This message was deleted...","Thread":"Thread","To start recording, allow the camera access in your browser":"To start recording, allow the camera access in your browser","To start recording, allow the microphone access in your browser":"To start recording, allow the microphone access in your browser","Type a number from 2 to 10":"Type a number from 2 to 10","Type your message":"Type your message","Unarchive":"Unarchive","Unmute":"Unmute","Unpin":"Unpin","Unread messages":"Unread messages","Unsupported attachment":"Unsupported attachment","Update your comment":"Update your comment","Upload type: \\"{{ type }}\\" is not allowed":"Upload type: \\"{{ type }}\\" is not allowed","User uploaded content":"User uploaded content","View results":"View results","View {{count}} comments_one":"View {{count}} comment","View {{count}} comments_other":"View {{count}} comments","Voice message":"Voice message","Vote ended":"Vote ended","Wait until all attachments have uploaded":"Wait until all attachments have uploaded","You":"You","You have no channels currently":"You have no channels currently","You\'ve reached the maximum number of files":"You\'ve reached the maximum number of files","aria/Attachment":"Attachment","aria/Cancel Reply":"Cancel Reply","aria/Cancel upload":"Cancel upload","aria/Channel list":"Channel list","aria/Channel search results":"Channel search results","aria/Close thread":"Close thread","aria/Download attachment":"aria/Download attachment","aria/Emoji picker":"Emoji picker","aria/File input":"File input","aria/File upload":"File upload","aria/Image input":"Image input","aria/Load More Channels":"Load More Channels","aria/Menu":"Menu","aria/Message Options":"Message Options","aria/Open Attachment Selector":"aria/Open Attachment Selector","aria/Open Message Actions Menu":"Open Message Actions Menu","aria/Open Reaction Selector":"Open Reaction Selector","aria/Open Thread":"Open Thread","aria/Reaction list":"Reaction list","aria/Remove attachment":"Remove attachment","aria/Retry upload":"Retry upload","aria/Search results":"Search results","aria/Search results header filter button":"Search results header filter button","aria/Send":"Send","aria/Stop AI Generation":"Stop AI Generation","live":"live","replyCount_one":"1 reply","replyCount_other":"{{ count }} replies","search-results-header-filter-source-button-label--channels":"channels","search-results-header-filter-source-button-label--messages":"messages","search-results-header-filter-source-button-label--users":"users","searchResultsCount_one":"1 result","searchResultsCount_other":"{{ count }} results","this content could not be displayed":"this content could not be displayed","timestamp/DateSeparator":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/MessageTimestamp":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/PollVote":"{{ timestamp | timestampFormatter(format: MMM D [at] HH:mm) }}","timestamp/PollVoteTooltip":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/SystemMessage":"{{ timestamp | timestampFormatter(format: dddd L) }}","unreadMessagesSeparatorText_one":"1 unread message","unreadMessagesSeparatorText_other":"{{count}} unread messages","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} and {{ moreCount }} more","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }}, and {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} and {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} more","{{ memberCount }} members":"{{ memberCount }} members","{{ user }} has been muted":"{{ user }} has been muted","{{ user }} has been unmuted":"{{ user }} has been unmuted","{{ user }} is typing...":"{{ user }} is typing...","{{ users }} and more are typing...":"{{ users }} and more are typing...","{{ users }} and {{ user }} are typing...":"{{ users }} and {{ user }} are typing...","{{ watcherCount }} online":"{{ watcherCount }} online","{{count}}
3 unread_one":"{{count}} unread","{{count}} unread_other":"{{count}} unread","{{count}} votes_one":"{{count}} vote","{{count}} votes_other":"{{count}} votes","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Attachment...","\uD83D\uDCCA {{createdBy}} created: {{ pollName}}":"\uD83D\uDCCA {{createdBy}} created: {{ pollName}}","\uD83D\uDCCA {{votedBy}} voted: {{pollOptionText}}":"\uD83D\uDCCA {{votedBy}} voted: {{pollOptionText}}"}'),eT=JSON.parse('{"Add a comment":"Agregar un comentario","Add an option":"Agregar una opci\xf3n","All results loaded":"Todos los resultados cargados","Allow access to camera":"Permitir acceso a la c\xe1mara","Allow access to microphone":"Permitir acceso al micr\xf3fono","Allow comments":"Permitir comentarios","Allow option suggestion":"Permitir sugerencia de opciones","An error has occurred during recording":"Se ha producido un error durante la grabaci\xf3n","An error has occurred during the recording processing":"Se ha producido un error durante el procesamiento de la grabaci\xf3n","Anonymous":"An\xf3nimo","Anonymous poll":"Encuesta an\xf3nima","Archive":"Archivo","Ask a question":"Hacer una pregunta","Attach files":"Adjuntar archivos","Cancel":"Cancelar","Cannot seek in the recording":"No se puede buscar en la grabaci\xf3n","Channel Missing":"Falta canal","Close":"Cerrar","Close emoji picker":"Cerrar el selector de emojis","Commands matching":"Coincidencia de comandos","Connection failure, reconnecting now...":"Fallo de conexi\xf3n, reconectando ahora...","Create":"Crear","Create poll":"Crear encuesta","Delete":"Borrar","Delivered":"Entregado","Download attachment {{ name }}":"Descargar adjunto {{ name }}","Drag your files here":"Arrastra tus archivos aqu\xed","Drag your files here to add to your post":"Arrastra tus archivos aqu\xed para agregarlos a tu publicaci\xf3n","Edit Message":"Editar mensaje","Edit message request failed":"Error al editar la solicitud de mensaje","Edited":"Editado","Emoji matching":"Coincidencia de emoji","Empty message...":"Mensaje vac\xedo...","End":"Final","End vote":"Finalizar votaci\xf3n","Error adding flag":"Error al agregar la bandera","Error connecting to chat, refresh the page to try again.":"Error al conectarse al chat, actualice la p\xe1gina para volver a intentarlo.","Error deleting message":"Error al eliminar el mensaje","Error fetching reactions":"Error al cargar las reacciones","Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.":"Error al marcar el mensaje como no le\xeddo. No se pueden marcar mensajes no le\xeddos m\xe1s antiguos que los \xfaltimos 100 mensajes del canal.","Error muting a user ...":"Error al silenciar el usuario...","Error pinning message":"Error al fijar el mensaje","Error removing message pin":"Error al quitar el pin del mensaje","Error reproducing the recording":"Error al reproducir la grabaci\xf3n","Error starting recording":"Error al iniciar la grabaci\xf3n","Error unmuting a user ...":"Error al desactivar el silencio del usuario...","Error uploading attachment":"Error al subir el archivo adjunto","Error uploading file":"Error al cargar el archivo","Error uploading image":"Error al subir la imagen","Error \xb7 Unsent":"Error \xb7 No enviado","Error: {{ errorMessage }}":"Error: {{ errorMessage }}","Failed to jump to the first unread message":"Error al saltar al primer mensaje no le\xeddo","Failed to mark channel as read":"Error al marcar el canal como le\xeddo","Failed to play the recording":"No se pudo reproducir la grabaci\xf3n","File":"Archivo","File is too large: {{ size }}, maximum upload size is {{ limit }}":"El archivo es demasiado grande: {{ size }}, el tama\xf1o m\xe1ximo de carga es de {{ limit }}","Flag":"Marcar","Generating...":"Generando...","Latest Messages":"\xdaltimos mensajes","Load more":"Cargar m\xe1s","Mark as unread":"Marcar como no le\xeddo","Maximum number of votes (from 2 to 10)":"N\xfamero m\xe1ximo de votos (de 2 a 10)","Menu":"Men\xfa","Message Failed \xb7 Click to try again":"Mensaje fallido \xb7 Haga clic para volver a intentarlo","Message Failed \xb7 Unauthorized":"Mensaje fallido \xb7 No autorizado","Message deleted":"Mensaje eliminado","Message has been successfully flagged":"El mensaje se marc\xf3 correctamente","Message pinned":"Mensaje fijado","Message was blocked by moderation policies":"El mensaje fue bloqueado por las pol\xedticas de moderaci\xf3n","Messages have been marked unread.":"Los mensajes han sido marcados como no le\xeddos.","Missing permissions to upload the attachment":"Faltan permisos para subir el archivo adjunto","Multiple answers":"M\xfalt
3iples respuestas","Mute":"Silenciar","New":"Nuevo","New Messages!":"\xa1Nuevos mensajes!","No chats here yetâ¦":"A\xfan no hay mensajes aqu\xed...","No results found":"No se han encontrado resultados","Nobody will be able to vote in this poll anymore.":"Nadie podr\xe1 votar en esta encuesta.","Nothing yet...":"Nada a\xfan...","Ok":"Ok","Open emoji picker":"Abrir el selector de emojis","Option already exists":"La opci\xf3n ya existe","Options":"Opciones","People matching":"Personas que coinciden","Pin":"Fijar","Pinned by":"Fijado por","Poll":"Encuesta","Poll comments":"Comentarios de la encuesta","Poll options":"Opciones de la encuesta","Poll results":"Resultados de la encuesta","Question":"Pregunta","Quote":"Citar","Recording format is not supported and cannot be reproduced":"El formato de grabaci\xf3n no es compatible y no se puede reproducir","Reply":"Responder","Reply to Message":"Responder al mensaje","Search":"Buscar","Searching...":"Buscando...","See all options ({{count}})_many":"Ver todas las opciones ({{count}})","See all options ({{count}})_one":"Ver todas las opciones ({{count}})","See all options ({{count}})_other":"Ver todas las opciones ({{count}})","Select one":"Seleccionar uno","Select one or more":"Seleccionar uno o m\xe1s","Select up to {{count}}_many":"Selecciona hasta {{count}}","Select up to {{count}}_one":"Selecciona hasta {{count}}","Select up to {{count}}_other":"Selecciona hasta {{count}}
3","Send":"Enviar","Send Anyway":"Enviar de todos modos","Send message request failed":"Error al enviar la solicitud de mensaje","Sending...":"Enviando...","Show all":"Mostrar todo","Shuffle":"Mezclar","Slow Mode ON":"Modo lento activado","Some of the files will not be accepted":"Algunos archivos no ser\xe1n aceptados","Start typing to search":"Empieza a escribir para buscar","Submit":"Enviar","Suggest an option":"Sugerir una opci\xf3n","Thinking...":"Pensando...","This message did not meet our content guidelines":"Este mensaje no cumple con nuestras directrices de contenido","This message was deleted...":"Este mensaje fue eliminado...","Thread":"Hilo","To start recording, allow the camera access in your browser":"Para comenzar a grabar, permita el acceso a la c\xe1mara en su navegador","To start recording, allow the microphone access in your browser":"Para comenzar a grabar, permita el acceso al micr\xf3fono en su navegador","Type a number from 2 to 10":"Escribe un n\xfamero del 2 al 10","Type your message":"Escribe tu mensaje","Unarchive":"Desarchivar","Unmute":"Activar sonido","Unpin":"Desfijar","Unread messages":"Mensajes no le\xeddos","Unsupported attachment":"Adjunto no compatible","Update your comment":"Actualizar tu comentario","Upload type: \\"{{ type }}\\" is not allowed":"Tipo de carga: \\"{{ type }}\\" no est\xe1 permitido","User uploaded content":"Contenido subido por el usuario","View results":"Ver resultados","View {{
3count}} comments_many":"Ver {{count}} comentarios","View {{count}} comments_one":"Ver {{count}} comentario","View {{count}} comments_other":"Ver {{count}} comentarios","Voice message":"Mensaje de voz","Vote ended":"Votaci\xf3n finalizada","Wait until all attachments have uploaded":"Espere hasta que se hayan cargado todos los archivos adjuntos","You":"T\xfa","You have no channels currently":"Actualmente no tienes canales","You\'ve reached the maximum number of files":"Has alcanzado el n\xfamero m\xe1ximo de archivos","aria/Attachment":"Adjunto","aria/Cancel Reply":"Cancelar respuesta","aria/Cancel upload":"Cancelar carga","aria/Channel list":"Lista de canales","aria/Channel search results":"Resultados de b\xfasqueda de canales","aria/Close thread":"Cerrar hilo","aria/Download attachment":"Descargar adjunto","aria/Emoji picker":"Selector de emojis","aria/File input":"Entrada de archivo","aria/File upload":"Carga de archivo","aria/Image input":"Entrada de imagen","aria/Load More Channels":"Cargar m\xe1s canales","aria/Menu":"Men\xfa","aria/Message Options":"Opciones de mensaje","aria/Open Attachment Selector":"Abrir selector de adjuntos","aria/Open Message Actions Menu":"Abrir men\xfa de acciones de mensaje","aria/Open Reaction Selector":"Abrir selector de reacciones","aria/Open Thread":"Abrir hilo","aria/Reaction list":"Lista de reacciones","aria/Remove attachment":"Eliminar adjunto","aria/Retry upload":"Reintentar carga","aria/Search results":"Resultados de b\xfasqueda","aria/Search results header filter button":"Bot\xf3n de filtro del encabezado de resultados de b\xfasqueda","aria/Send":"Enviar","aria/Stop AI Generation":"Detener generaci\xf3n de IA","ban-command-args":"[@usuario] [texto]","ban-command-description":"Prohibir a un usuario","giphy-command-args":"[texto]","giphy-command-description":"Publicar un gif aleatorio en el canal","live":"En vivo","mute-command-args":"[@usuario]","mute-command-description":"Silenciar a un usuario","replyCount_many":"{{ count }} respuestas","replyCount_one":"1 respuesta","replyCount_other":"{{ count }} respuestas","search-results-header-filter-source-button-label--channels":"canales","search-results-header-filter-source-button-label--messages":"mensajes","search-results-header-filter-source-button-label--users":"usuarios","searchResultsCount_many":"{{ count }} resultados","searchResultsCount_one":"1 resultado","searchResultsCount_other":"{{ count }} resultados","this content could not be displayed":"Este contenido no se pudo mostrar","timestamp/DateSeparator":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/MessageTimestamp":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/PollVote":"{{ timestamp | timestampFormatter(format: MMM D [at] HH:mm) }}","timestamp/PollVoteTooltip":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/SystemMessage":"{{ timestamp | timestampFormatter(format: dddd L) }}","unban-command-args":"[@usuario]","unban-command-description":"Quitar la prohibici\xf3n a un usuario","unmute-command-args":"[@usuario]","unmute-command-description":"Desactivar el silencio de un usuario","unreadMessagesSeparatorText_many":"{{count}} mensajes no le\xeddos","unreadMessagesSeparatorText_one":"1 mensaje no le\xeddo","unreadMessagesSeparatorText_other":"{{count}} mensajes no le\xeddos","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} y {{ moreCount }} m\xe1s","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} y {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} y {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} m\xe1s","{{ memberCount }} members":"{{ memberCount }} miembros","{{ user }} has been muted":"{{ user }} ha sido silenciado","{{ user }} has been unmuted":"Se ha desactivado el silencio de {{ user }}","{{ user }} is typing...":"{{ user }} est\xe1 escribiendo...","{{ users }} and more are typing...":"{{ users }} y m\xe1s est\xe1n escribiendo...","{{ users }} and {{ user }} are typing...":"{{ users }} y {{ user }} est\xe1n escribiendo...","{{ watcherCount }} online":"{{ watcherCount }} en l\xednea","{{count}} unread_many":"{{count}} no le\xeddos","{{count}}
3 unread_one":"{{count}} no le\xeddo","{{count}} unread_other":"{{count}} no le\xeddos","{{count}} votes_many":"{{count}} votos","{{count}} votes_one":"1 voto","{{count}} votes_other":"{{count}} votos","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Adjunto...","\uD83D\uDCCA {{createdBy}} created: {{ pollName}}":"\uD83D\uDCCA {{createdBy}} cre\xf3: {{ pollName}}","\uD83D\uDCCA {{votedBy}} voted: {{pollOptionText}}":"\uD83D\uDCCA {{votedBy}} vot\xf3: {{pollOptionText}}"}'),eO=JSON.parse('{"Add a comment":"Ajouter un commentaire","Add an option":"Ajouter une option","All results loaded":"Tous les r\xe9sultats sont charg\xe9s","Allow access to camera":"Autoriser l\'acc\xe8s \xe0 la cam\xe9ra","Allow access to microphone":"Autoriser l\'acc\xe8s au microphone","Allow comments":"Autoriser les commentaires","Allow option suggestion":"Autoriser la suggestion d\'options","An error has occurred during recording":"Une erreur s\'est produite pendant l\'enregistrement","An error has occurred during the recording processing":"Une erreur s\'est produite pendant le traitement de l\'enregistrement","Anonymous":"Anonyme","Anonymous poll":"Sondage anonyme","Archive":"Archive","Ask a question":"Poser une question","Attach files":"Joindre des fichiers","Cancel":"Annuler","Cannot seek in the recording":"Impossible de rechercher dans l\'enregistrement","Channel Missing":"Canal Manquant","Close":"Fermer","Close emoji picker":"Fermer le s\xe9lecteur d\'\xe9mojis","Commands matching":"Correspondance des commandes","Connection failure, reconnecting now...":"\xc9chec de la connexion, reconnexion en cours...","Create":"Cr\xe9er","Create poll":"Cr\xe9er un sondage","Delete":"Supprimer","Delivered":"Publi\xe9","Download attachment {{ name }}":"T\xe9l\xe9charger la pi\xe8ce jointe {{ name }}","Drag your files here":"Glissez vos fichiers ici","Drag your files here to add to your post":"Glissez vos fichiers ici pour les ajouter \xe0 votre publication","Edit Message":"\xc9diter un message","Edit message request failed":"\xc9chec de la demande de modification du message","Edited":"Modifi\xe9","Emoji matching":"Correspondance d\'\xe9mojis","Empty message...":"Message vide...","
3End":"Fin","End vote":"Fin du vote","Error adding flag":"Erreur lors de l\'ajout du signalement","Error connecting to chat, refresh the page to try again.":"Erreur de connexion au chat, rafra\xeechissez la page pour r\xe9essayer.","Error deleting message":"Erreur lors de la suppression du message","Error fetching reactions":"Erreur lors du chargement des r\xe9actions","Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.":"Erreur lors de la marque du message comme non lu. Impossible de marquer des messages non lus plus anciens que les 100 derniers messages du canal.","Error muting a user ...":"Erreur lors de la mise en sourdine d\'un utilisateur...","Error pinning message":"Erreur lors de l\'\xe9pinglage du message","Error removing message pin":"Erreur lors du retrait de l\'\xe9pinglage du message","Error reproducing the recording":"Erreur lors de la reproduction de l\'enregistrement","Error starting recording":"Erreur lors du d\xe9marrage de l\'enregistrement","Error unmuting a user ...":"Erreur lors du d\xe9marrage de la sourdine d\'un utilisateur ...","Error uploading attachment":"Erreur lors du t\xe9l\xe9chargement de la pi\xe8ce jointe","Error uploading file":"Erreur lors du t\xe9l\xe9chargement du fichier","Error uploading image":"Erreur lors de l\'envoi de l\'image","Error \xb7 Unsent":"Erreur - Non envoy\xe9","Error: {{ errorMessage }}":"Erreur : {{ errorMessage }}","Failed to jump to the first unread message":"\xc9chec du saut vers le premier message non lu","Failed to mark channel as read":"\xc9chec du marquage du canal comme lu","Failed to play the recording":"Impossible de lire l\'enregistrement","File":"Fichier","File is too large: {{ size }}, maximum upload size is {{ limit }}":"Le fichier est trop volumineux : {{ size }}, la taille maximale de t\xe9l\xe9chargement est de {{ limit }}","Flag":"Signaler","Generating...":"G\xe9n\xe9ration...","Latest Messages":"Derniers messages","Load more":"Charger plus","Mark as unread":"Marquer comme non lu","Maximum number of votes (from 2 to 10)":"Nombre maximum de votes (de 2 \xe0 10)","Menu":"Menu","Message Failed \xb7 Click to try again":"\xc9chec de l\'envoi du message - Cliquez pour r\xe9essayer","Message Failed \xb7 Unauthorized":"\xc9chec de l\'envoi du message - Non autoris\xe9","Message deleted":"Message supprim\xe9","Message has been successfully flagged":"Le message a \xe9t\xe9 signal\xe9 avec succ\xe8s","Message pinned":"Message \xe9pingl\xe9","Message was blocked by moderation policies":"Le message a \xe9t\xe9 bloqu\xe9 par les politiques de mod\xe9ration","Messages have been marked unread.":"Les messages ont \xe9t\xe9 marqu\xe9s comme non lus.","Missing permissions to upload the attachment":"Autorisations manquantes pour t\xe9l\xe9charger la pi\xe8ce jointe","Multiple answers":"R\xe9ponses multiples","Mute":"Muet","New":"Nouveau","New Messages!":"Nouveaux Messages!","No chats here yetâ¦":"Pas encore de messages ici...","No results found":"Aucun r\xe9sultat trouv\xe9","Nobody will be able to vote in this poll anymore.":"Personne ne pourra plus voter dans ce sondage.","Nothing yet...":"Rien pour l\'instant...","Ok":"D\'accord","Open emoji picker":"Ouvrir le s\xe9lecteur d\'\xe9mojis","Option already exists":"L\'option existe d\xe9j\xe0","Options":"Options","People matching":"Correspondance de personnes","Pin":"\xc9pingler","Pinned by":"\xc9pingl\xe9 par","Poll":"Sondage","Poll comments":"Commentaires du sondage","Poll options":"Options du sondage","Poll results":"R\xe9sultats du sondage","Question":"Question","Quote":"Citer","Recording format is not supported and cannot be reproduced":"Le format d\'enregistrement n\'est pas pris en charge et ne peut pas \xeatre reproduit","Reply":"R\xe9pondre","Reply to Message":"R\xe9pondre au message","Search":"Rechercher","Searching...":"Recherche en cours...","See all options ({{count}})_many":"Voir toutes les options ({{count}})","See all options ({{count}})_one":"Voir toutes les options ({{count}})","See all options ({{count}})_other":"Voir toutes les options ({{count}})","Select one":"S\xe9lectionner un","Select one or more":"S\xe9lectionner un ou plusieurs","Select up to {{count}}_many":"S\xe9lectionner jusqu\'\xe0 {{count}}","Select up to {{count}}_one":"S\xe9lectionner jusqu\'\xe0 {{count}}","Select up to {{count}}_other":"S\xe9lectionner jusqu\'\xe0 {{count}}","Send":"Envoyer","Send Anyway":"Envoyer quand m\xeame","Send message request failed":"\xc9chec de la demande d\'envoi de message","Sending...":"Envoi en cours...","Show all":"Tout afficher","Shuffle":"M\xe9langer","Slow Mode ON":"Mode lent activ\xe9","Some of the files will not be accepted":"Certains fichiers ne seront pas accept\xe9s","Start t
3yping to search":"Commencez \xe0 taper pour rechercher","Submit":"Envoyer","Suggest an option":"Sugg\xe9rer une option","Thinking...":"R\xe9flexion...","This message did not meet our content guidelines":"Ce message ne respecte pas nos directives de contenu","This message was deleted...":"Ce message a \xe9t\xe9 supprim\xe9...","Thread":"Fil de discussion","To start recording, allow the camera access in your browser":"Pour commencer l\'enregistrement, autorisez l\'acc\xe8s \xe0 la cam\xe9ra dans votre navigateur","To start recording, allow the microphone access in your browser":"Pour commencer l\'enregistrement, autorisez l\'acc\xe8s au microphone dans votre navigateur","Type a number from 2 to 10":"Tapez un nombre de 2 \xe0 10","Type your message":"Tapez votre message","Unarchive":"D\xe9sarchiver","Unmute":"D\xe9sactiver muet","Unpin":"D\xe9tacher","Unread messages":"Messages non lus","Unsupported attachment":"Pi\xe8ce jointe non prise en charge","Update your comment":"Mettre \xe0 jour votre commentaire","Upload type: \\"{{ type }}\\" is not allowed":"Le type de fichier : \\"{{ type }}\\" n\'est pas autoris\xe9","User uploaded content":"Contenu t\xe9l\xe9charg\xe9 par l\'utilisateur","View results":"Voir les r\xe9sultats","View {{count}} comments_many":"Voir {{count}} commentaires","View {{count}} comments_one":"Voir {{count}} commentaire","View {{count}} comments_other":"Voir {{count}} commentaires","Voice message":"Message vocal","Vote ended":"Vote termin\xe9","Wait until all attachments have uploaded":"Attendez que toutes les pi\xe8ces jointes soient t\xe9l\xe9charg\xe9es","You":"Vous","You have no channels currently":"Vous n\'avez actuellement aucun canal","You\'ve reached the maximum number of files":"Vous avez atteint le nombre maximal de fichiers","aria/Attachment":"Pi\xe8ce jointe","aria/Cancel Reply":"Annuler la r\xe9ponse","aria/Cancel upload":"Annuler le t\xe9l\xe9chargement","aria/Channel list":"Liste des canaux","aria/Channel search results":"R\xe9sultats de recherche de canaux","aria/Close thread":"Fermer le fil","aria/Download attachment":"T\xe9l\xe9charger la pi\xe8ce jointe","aria/Emoji picker":"S\xe9lecteur d\'\xe9mojis","aria/File input":"Entr\xe9e de fichier","aria/File upload":"T\xe9l\xe9chargement de fichier","aria/Image input":"Entr\xe9e d\'image","aria/Load More Channels":"Charger plus de canaux","aria/Menu":"Menu","aria/Message Options":"Options du message","aria/Open Attachment Selector":"Ouvrir le s\xe9lecteur de pi\xe8ces jointes","aria/Open Message Actions Menu":"Ouvrir le menu des actions du message","aria/Open Reaction Selector":"Ouvrir le s\xe9lecteur de r\xe9actions","aria/Open Thread":"Ouvrir le fil","aria/Reaction list":"Liste des r\xe9actions","aria/Remove attachment":"Supprimer la pi\xe8ce jointe","aria/Retry upload":"R\xe9essayer le t\xe9l\xe9chargement","aria/Search results":"R\xe9sultats de recherche","aria/Search results header filter button":"Bouton de filtre d\'en-t\xeate des r\xe9sultats de recherche","aria/Send":"Envoyer","aria/Stop AI Generation":"Arr\xeater la g\xe9n\xe9ration d\'IA","ban-command-args":"[@nomdutilisateur] [texte]","ban-command-description":"Bannir un utilisateur","giphy-command-args":"[texte]","giphy-command-description":"Poster un GIF al\xe9atoire dans le canal","live":"en direct","mute-command-args":"[@nomdutilisateur]","mute-command-description":"Muter un utilisateur","replyCount_many":"{{ count }} r\xe9ponses","replyCount_one":"1 r\xe9ponse","replyCount_other":"{{ count }} r\xe9ponses","search-results-header-filter-source-button-label--channels":"canaux","search-results-header-filter-source-button-label--messages":"messages","search-results-header-filter-source-button-label--users":"utilisateurs","searchResultsCount_many":"{{ count }} r\xe9sultats","searchResultsCount_one":"1 r\xe9sultat","searchResultsCount_other":"{{ count }} r\xe9sultats","this content could not be displayed":"ce contenu n\'a pas pu \xeatre affich\xe9","timestamp/DateSeparator":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/MessageTimestamp":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/PollVote":"{{ timestamp | timestampFormatter(format: MMM D [at] HH:mm) }}","timestamp/PollVoteTooltip":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/SystemMessage":"{{ timestamp | timestampFormatter(format: dddd L) }}
3","unban-command-args":"[@nomdutilisateur]","unban-command-description":"D\xe9bannir un utilisateur","unmute-command-args":"[@nomdutilisateur]","unmute-command-description":"D\xe9muter un utilisateur","unreadMessagesSeparatorText_many":"{{count}} messages non lus","unreadMessagesSeparatorText_one":"1 message non lu","unreadMessagesSeparatorText_other":"{{count}} messages non lus","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} et {{ moreCount }} autres","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} et {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} et {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} suppl\xe9mentaires","{{ memberCount }} members":"{{ memberCount }} membres","{{ user }} has been muted":"{{ user }} a \xe9t\xe9 mis en sourdine","{{ user }} has been unmuted":"{{ user }} n\'est plus en sourdine","{{ user }} is typing...":"{{ user }} est en train d\'\xe9crire...","{{ users }} and more are typing...":"{{ users }} et plus sont en train d\'\xe9crire...","{{ users }} and {{ user }} are typing...":"{{ users }} et {{ user }} sont en train d\'\xe9crire...","{{ watcherCount }} online":"{{ watcherCount }} en ligne","{{count}} unread_many":"{{count}} non lus","{{count}} unread_one":"{{count}} non lu","{{count}} unread_other":"{{count}} non lus","{{count}} votes_many":"{{count}} votes","{{count}} votes_one":"{{count}} vote","{{count}} votes_other":"{{count}} votes","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Pi\xe8ce jointe...","\uD83D\uDCCA {{createdBy}} created: {{ pollName}}":"\uD83D\uDCCA {{createdBy}} a cr\xe9\xe9 : {{ pollName}}","\uD83D\uDCCA {{votedBy}} voted: {{pollOptionText}}":"\uD83D\uDCCA {{votedBy}} a vot\xe9 : {{pollOptionText}}"}'),eA=JSON.parse('{"Add a comment":"à¤à¤ à¤à¤¿à¤ªà¥à¤ªà¤£à¥ à¤à¥à¤¡à¤¼à¥à¤","Add an option":"à¤à¤ विà¤à¤²à¥à¤ª à¤à¥à¤¡à¤¼à¥à¤","All results loaded":"सà¤à¥ परिणाम लà¥à¤¡ हॠà¤à¤","Allow access to camera":"à¤à¥à¤®à¤°à¤¾ तठपहà¥à¤à¤ दà¥à¤","Allow access to microphone":"माà¤à¤à¥à¤°à¥à¤«à¤¼à¥à¤¨ तठपहà¥à¤à¤ दà¥à¤","Allow comments":"à¤à¤¿à¤ªà¥à¤ªà¤£à¤¿à¤¯à¤¾à¤ à¤à¥ à¤
नà¥à¤®à¤¤à¤¿ दà¥à¤","Allow option suggestion":"विà¤à¤²à¥à¤ª सà¥à¤à¤¾à¤µ à¤à¥ à¤
नà¥à¤®à¤¤à¤¿ दà¥à¤","An error has occurred during recording":"रà¥à¤à¥à¤°à¥à¤¡à¤¿à¤à¤ à¤à¥ दà¥à¤°à¤¾à¤¨ à¤à¤ तà¥à¤°à¥à¤à¤¿ ठà¤à¤ हà¥","An error has occurred during the recording processing":"रà¥à¤à¥à¤°à¥à¤¡à¤¿à¤à¤ पà¥à¤°à¥à¤¸à¥à¤¸à¤¿à¤à¤ à¤à¥ दà¥à¤°à¤¾à¤¨ à¤à¤ तà¥à¤°à¥à¤à¤¿ ठà¤à¤ हà¥","Anonymous":"à¤à¥à¤®à¤¨à¤¾à¤®","Anonymous poll":"à¤à¥à¤®à¤¨à¤¾à¤® मतदान","Archive":"à¤à¤°à¥à¤à¤¾à¤à¤µ","Ask a question":"à¤à¤ पà¥à¤°à¤¶à¥à¤¨ पà¥à¤à¥à¤","Attach files":"फाà¤à¤²à¥à¤¸ à¤
à¤à¥à¤ à¤à¤°à¥","Cancel":"रदà¥à¤¦ à¤à¤°à¥à¤","Cannot seek in the recording":"रà¥à¤à¥à¤°à¥à¤¡à¤¿à¤à¤ मà¥à¤ à¤à¥à¤ नहà¥à¤ à¤à¥ à¤à¤¾ सà¤à¤¤à¥","Channel Missing":"à¤à¥à¤¨à¤² à¤à¤ªà¤²à¤¬à¥à¤§ नहà¥à¤ हà¥","Close":"बà¤à¤¦ à¤à¤°à¥","Close emoji picker":"à¤à¤®à¥à¤à¥ पिà¤à¤° बà¤à¤¦ à¤à¤°à¥à¤","Commands matching":"मà¥à¤² à¤à¤¾à¤¤à¥ हà¥","Connection failure, reconnecting now...":"à¤à¤¨à¥à¤à¥à¤¶à¤¨ विफल रहा, à¤
ब पà¥à¤¨à¤ à¤à¤¨à¥à¤à¥à¤ हॠरहा हॠ...","Create":"बनाà¤à¤","Create poll":"मतदान बनाà¤à¤","Delete":"डिलà¥à¤","Delivered":"पहà¥à¤à¤ à¤à¤¯à¤¾","Download attachment {{ name }}":"à¤
नà¥à¤²à¤à¥à¤¨à¤ {{ name }} डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥à¤","Drag your files here":"à¤
पनॠफ़ाà¤à¤²à¥à¤ यहाठà¤à¥à¤à¤à¥à¤","Drag your files here to add to your post":"à¤
पनॠफ़ाà¤à¤²à¥à¤ यहाठà¤à¥à¤à¤à¥à¤ à¤à¤° à¤
पनॠपà¥à¤¸à¥à¤ मà¥à¤ à¤à¥à¤¡à¤¼à¤¨à¥ à¤à¥ लिà¤","Edit Message":"मà¥à¤¸à¥à¤ मà¥à¤ बदलाव à¤à¤°à¥","Edit message request failed":"सà¤à¤¦à¥à¤¶ सà¤à¤ªà¤¾à¤¦à¤¿à¤¤ à¤à¤°à¤¨à¥ à¤à¤¾ à¤
नà¥à¤°à¥à¤§ विफल रहा","Edited":"सà¤à¤ªà¤¾à¤¦à¤¿à¤¤","Emoji matching":"à¤à¤®à¥à¤à¥ मिलाà
3¤¨","Empty message...":"à¤à¤¾à¤²à¥ सà¤à¤¦à¥à¤¶ ...","End":"समापà¥à¤¤","End vote":"मत समापà¥à¤¤ à¤à¤°à¥à¤","Error adding flag":"धà¥à¤µà¤ à¤à¥à¤¡à¤¼à¤¨à¥ मà¥à¤ तà¥à¤°à¥à¤à¤¿","Error connecting to chat, refresh the page to try again.":"à¤à¥à¤ सॠà¤à¤¨à¥à¤à¥à¤ à¤à¤°à¤¨à¥ मà¥à¤ तà¥à¤°à¥à¤à¤¿, पà¥à¤ à¤à¥ रिफà¥à¤°à¥à¤¶ à¤à¤°à¥à¤","Error deleting message":"सà¤à¤¦à¥à¤¶ हà¤à¤¾à¤¨à¥ मà¥à¤ तà¥à¤°à¥à¤à¤¿","Error fetching reactions":"पà¥à¤°à¤¤à¤¿à¤à¥à¤°à¤¿à¤¯à¤¾à¤à¤ लà¥à¤¡ à¤à¤°à¤¨à¥ मà¥à¤ तà¥à¤°à¥à¤à¤¿","Error marking message unread":"सà¤à¤¦à¥à¤¶ à¤à¥ à¤
पठित à¤à¤¿à¤¹à¥à¤¨à¤¿à¤¤ à¤à¤°à¤¨à¥ मà¥à¤ तà¥à¤°à¥à¤à¤¿","Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.":"सà¤à¤¦à¥à¤¶ à¤à¥ à¤
पठित मारà¥à¤ à¤à¤°à¤¨à¥ मà¥à¤ तà¥à¤°à¥à¤à¤¿à¥¤ सबसॠनठ100 à¤à¥à¤¨à¤² सà¤à¤¦à¥à¤¶ सॠपहलॠà¤à¥ सà¤à¥ à¤
पठित सà¤à¤¦à¥à¤¶à¥à¤ à¤à¥ à¤
पठित मारà¥à¤ नहà¥à¤ à¤à¤¿à¤¯à¤¾ à¤à¤¾ सà¤à¤¤à¤¾ हà¥à¥¤","Error muting a user ...":"यà¥à¤à¤° à¤à¥ मà¥à¤¯à¥à¤ à¤à¤°à¤¨à¥ à¤à¤¾ पà¥à¤°à¤¯à¤¾à¤¸ फà¥à¤² हà¥à¤","Error pinning message":"सà¤à¤¦à¥à¤¶ à¤à¥ पिन à¤à¤°à¤¨à¥ मà¥à¤ तà¥à¤°à¥à¤à¤¿","Error removing message pin":"सà¤à¤¦à¥à¤¶ पिन निà¤à¤¾à¤²à¤¨à¥ मà¥à¤ तà¥à¤°à¥à¤à¤¿","Error reproducing the recording":"रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ पà¥à¤¨: à¤à¤¤à¥à¤ªà¤¨à¥à¤¨ à¤à¤°à¤¨à¥ मà¥à¤ तà¥à¤°à¥à¤à¤¿","Error starting recording":"रà¥à¤à¥à¤°à¥à¤¡à¤¿à¤à¤ शà¥à¤°à¥ à¤à¤°à¤¨à¥ मà¥à¤ तà¥à¤°à¥à¤à¤¿","Error unmuting a user ...":"यà¥à¤à¤° à¤à¥ à¤
नमà¥à¤¯à¥à¤ à¤à¤°à¤¨à¥ à¤à¤¾ पà¥à¤°à¤¯à¤¾à¤¸ फà¥à¤² हà¥à¤","Error uploading attachment":"à¤
à¤à¥à¤à¤®à¥à¤à¤ à¤
पलà¥à¤¡ à¤à¤°à¤¤à¥ समय तà¥à¤°à¥à¤à¤¿","Error uploading file":"फ़ाà¤à¤² à¤
पलà¥à¤¡ à¤à¤°à¤¨à¥ मà¥à¤ तà¥à¤°à¥à¤à¤¿","Error uploading image":"à¤à¤µà¤¿ à¤
पलà¥à¤¡ à¤à¤°à¤¨à¥ मà¥à¤ तà¥à¤°à¥à¤à¤¿","Error \xb7 Unsent":"फà¥à¤²","Error: {{ errorMessage }}":"फà¥à¤²: {{ errorMessage }}","Failed to jump to the first unread message":"पहलॠà¤
पठित सà¤à¤¦à¥à¤¶ पर à¤à¤¾à¤¨à¥ मà¥à¤ विफल","Failed to mark channel as read":"à¤à¥à¤¨à¤² à¤à¥ पढ़ा हà¥à¤ à¤à¤¿à¤¹à¥à¤¨à¤¿à¤¤ à¤à¤°à¤¨à¥ मà¥à¤ विफल।","Failed to play the recording":"रà¥à¤à¥à¤°à¥à¤¡à¤¿à¤à¤ पà¥à¤²à¥ à¤à¤°à¤¨à¥ मà¥à¤ विफल","File":"फ़ाà¤à¤²","File is too large: {{ size }}, maximum upload size is {{ limit }}":"फ़ाà¤à¤² बहà¥à¤¤ बड़ॠहà¥: {{ size }}, à¤
धिà¤à¤¤à¤® à¤
पलà¥à¤¡ साà¤à¤à¤¼ {{ limit }} हà¥","Flag":"फà¥à¤²à¥à¤ à¤à¤°à¥","Generating...":"बना रहा हà¥...","Latest Messages":"नवà¥à¤¨à¤¤à¤® सà¤à¤¦à¥à¤¶","Load more":"à¤à¤° लà¥à¤¡ à¤à¤°à¥à¤","Mark as unread":"à¤
पठित à¤à¤¿à¤¹à¥à¤¨à¤¿à¤¤ à¤à¤°à¥à¤","Maximum number of votes (from 2 to 10)":"à¤
धिà¤à¤¤à¤® वà¥à¤à¥à¤ à¤à¥ सà¤à¤à¥à¤¯à¤¾ (2 सॠ10)","Menu":"मà¥à¤¨à¥à¤¯à¥","Message Failed \xb7 Click to try again":"मà¥à¤¸à¥à¤ फ़à¥à¤² - पà¥à¤¨à¤ à¤à¥à¤¶à¤¿à¤¶ à¤à¤°à¥à¤","Message Failed \xb7 Unauthorized":"मà¥à¤¸à¥à¤ फ़à¥à¤² - à¤
नधिà¤à¥à¤¤","Message deleted":"मà¥à¤¸à¥à¤ हà¤à¤¾ दिया à¤à¤¯à¤¾","Message has been successfully flagged":"मà¥à¤¸à¥à¤ à¤à¥ फà¥à¤²à¥à¤ à¤à¤° दिया à¤à¤¯à¤¾ हà¥","Message pinned":"सà¤à¤¦à¥à¤¶ पिन à¤à¤¿à¤¯à¤¾ à¤à¤¯à¤¾","Message was blocked by moderation policies":"सà¤à¤¦à¥à¤¶ à¤à¥ मà¥à¤¡à¤°à¥à¤¶à¤¨ नà¥à¤¤à¤¿à¤¯à¥à¤ दà¥à¤µà¤¾à¤°à¤¾ बà¥à¤²à¥à¤ à¤à¤° दिया à¤à¤¯à¤¾ हà¥","Messages have been marked unread.":"सà¤à¤¦à¥à¤¶à¥à¤ à¤à¥ à¤
पठित à¤à¤¿à¤¹à¥à¤¨à¤¿à¤¤ à¤à¤¿à¤¯à¤¾ à¤à¤¯à¤¾ हà¥à¥¤","Missing permissions to upload the attachment":"à¤
à¤à¥à¤à¤®à¥à¤à¤ à¤
पलà¥à¤¡ à¤à¤°à¤¨à¥ à¤à¥ लिठà¤
नà¥à¤®à¤¤à¤¿à¤¯à¤¾à¤ à¤à¤¾à
3¤¯à¤¬","Multiple answers":"à¤à¤ à¤à¤¤à¥à¤¤à¤°","Mute":"मà¥à¤¯à¥à¤ à¤à¤°à¥","New":"नà¤","New Messages!":"नठमà¥à¤¸à¥à¤!","No chats here yetâ¦":"यहाठà¤
à¤à¥ तठà¤à¥à¤ à¤à¥à¤ नहà¥à¤...","No results found":"à¤à¥à¤ परिणाम नहà¥à¤ मिला","Nobody will be able to vote in this poll anymore.":"à¤
ब à¤à¥à¤ à¤à¥ à¤à¤¸ मतदान मà¥à¤ मतदान नहà¥à¤ à¤à¤° सà¤à¥à¤à¤¾à¥¤","Nothing yet...":"à¤à¥à¤ मà¥à¤¸à¥à¤ नहà¥à¤ हà¥","Ok":"ठà¥à¤ हà¥","Open emoji picker":"à¤à¤®à¥à¤à¥ पिà¤à¤° à¤à¥à¤²à¤¿à¤¯à¥","Option already exists":"विà¤à¤²à¥à¤ª पहलॠसॠमà¥à¤à¥à¤¦ हà¥","Options":"विà¤à¤²à¥à¤ª","People matching":"मà¥à¤² à¤à¤¾à¤¤à¥ लà¥à¤","Pin":"पिन","Pinned by":"दà¥à¤µà¤¾à¤°à¤¾ पिन à¤à¤¿à¤¯à¤¾ à¤à¤¯à¤¾","Poll":"मतदान","Poll comments":"मतदान à¤à¤¿à¤ªà¥à¤ªà¤£à¤¿à¤¯à¤¾à¤","Poll options":"मतदान विà¤à¤²à¥à¤ª","Poll results":"मतदान परिणाम","Question":"पà¥à¤°à¤¶à¥à¤¨","Quote":"à¤à¤¦à¥à¤§à¤°à¤£","Recording format is not supported and cannot be reproduced":"रà¥à¤à¥à¤°à¥à¤¡à¤¿à¤à¤ फ़à¥à¤°à¥à¤®à¥à¤ समरà¥à¤¥à¤¿à¤¤ नहà¥à¤ हॠà¤à¤° पà¥à¤¨à¤ à¤à¤¤à¥à¤ªà¤¨à¥à¤¨ नहà¥à¤ à¤à¤¿à¤¯à¤¾ à¤à¤¾ सà¤à¤¤à¤¾","Reply":"à¤à¤µà¤¾à¤¬ दॠदà¥","Reply to Message":"सà¤à¤¦à¥à¤¶ à¤à¤¾ à¤à¤µà¤¾à¤¬ दà¥à¤","Search":"à¤à¥à¤","Searching...":"à¤à¥à¤ à¤à¤°...","See all options ({{count}})_one":"सà¤à¥ विà¤à¤²à¥à¤ª दà¥à¤à¥à¤ ({{count}})","See all options ({{count}})_other":"सà¤à¥ विà¤à¤²à¥à¤ª दà¥à¤à¥à¤ ({{count}})","Select one":"à¤à¤ à¤à¥à¤¨à¥à¤","Select one or more":"à¤à¤ या à¤
धिठà¤à¥à¤¨à¥à¤","Select up to {{count}}_one":"à¤
धिà¤à¤¤à¤® {{count}} तठà¤à¥à¤¨à¥à¤","Select up to {{count}}_other":"à¤
धिà¤à¤¤à¤® {{count}} तठà¤à¥à¤¨à¥à¤","Send":"à¤à¥à¤à¥","Send Anyway":"वà¥à¤¸à¥ à¤à¥ à¤à¥à¤à¥à¤","Send message request failed":"सà¤à¤¦à¥à¤¶ à¤à¥à¤à¤¨à¥ à¤à¤¾ à¤
नà¥à¤°à¥à¤§ विफल रहा","Sending...":"à¤à¥à¤à¤¾ à¤à¤¾ रहा हà¥","Show all":"सà¤à¥ दिà¤à¤¾à¤à¤","Shuffle":"मिशà¥à¤°à¤¿à¤¤ à¤à¤°à¥à¤","Slow Mode ON":"सà¥à¤²à¥ मà¥à¤¡ à¤à¤¨","Some of the files will not be accepted":"à¤à¥à¤ फ़ाà¤à¤²à¥à¤ सà¥à¤µà¥à¤à¤¾à¤° नहà¥à¤ à¤à¥ à¤à¤¾à¤à¤à¤à¥","Start t
3yping to search":"à¤à¥à¤à¤¨à¥ à¤à¥ लिठà¤à¤¾à¤à¤ª à¤à¤°à¤¨à¤¾ शà¥à¤°à¥ à¤à¤°à¥à¤","Submit":"à¤à¤®à¤¾ à¤à¤°à¥à¤","Suggest an option":"à¤à¤ विà¤à¤²à¥à¤ª सà¥à¤à¤¾à¤µ दà¥à¤","Thinking...":"सà¥à¤ रहा हà¥...","This message did not meet our content guidelines":"यह सà¤à¤¦à¥à¤¶ हमारॠसामà¤à¥à¤°à¥ दिशानिरà¥à¤¦à¥à¤¶à¥à¤ à¤à¥ à¤
नà¥à¤°à¥à¤ª नहà¥à¤ था","This message was deleted...":"मà¥à¤¸à¥à¤ हà¤à¤¾ दिया à¤à¤¯à¤¾","Thread":"रिपà¥à¤²à¤¾à¤ थà¥à¤°à¥à¤¡","To start recording, allow the camera access in your browser":"रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ शà¥à¤°à¥ à¤à¤°à¤¨à¥ à¤à¥ लिà¤, à¤
पनॠबà¥à¤°à¤¾à¤à¤à¤¼à¤° मà¥à¤ à¤à¥à¤®à¤°à¤¾ तठपहà¥à¤à¤ दà¥à¤","To start recording, allow the microphone access in your browser":"रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ शà¥à¤°à¥ à¤à¤°à¤¨à¥ à¤à¥ लिà¤, à¤
पनॠबà¥à¤°à¤¾à¤à¤à¤¼à¤° मà¥à¤ माà¤à¤à¥à¤°à¥à¤«à¤¼à¥à¤¨ तठपहà¥à¤à¤ दà¥à¤","Type a number from 2 to 10":"2 सॠ10 तठà¤à¤¾ à¤à¤ नà¤à¤¬à¤° à¤à¤¾à¤à¤ª à¤à¤°à¥à¤","Type your message":"à¤
पना मà¥à¤¸à¥à¤ लिà¤à¥","Unarchive":"à¤
नà¤à¤°à¥à¤à¤¾à¤à¤µ","Unmute":"à¤
नमà¥à¤¯à¥à¤","Unpin":"à¤
नपिन","Unread messages":"à¤
पठित सà¤à¤¦à¥à¤¶","Unsupported attachment":"à¤
समरà¥à¤¥à¤¿à¤¤ à¤
à¤à¥à¤à¤®à¥à¤à¤","Update your comment":"à¤
पनॠà¤à¤¿à¤ªà¥à¤ªà¤£à¥ à¤à¥ à¤
पडà¥à¤ à¤à¤°à¥à¤","Upload type: \\"{{ type }}\\" is not allowed":"à¤
पलà¥à¤¡ पà¥à¤°à¤à¤¾à¤°: \\"{{ type }}\\" à¤à¥ à¤
नà¥à¤®à¤¤à¤¿ नहà¥à¤ हà¥","User uploaded content":"à¤à¤ªà¤¯à¥à¤à¤à¤°à¥à¤¤à¤¾ à¤
पलà¥à¤¡ à¤à¥ à¤à¤ सामà¤à¥à¤°à¥","View results":"परिणाम दà¥à¤à¥à¤","View {{count}} comments_one":"दà¥à¤à¥à¤ {{count}} à¤à¤¿à¤ªà¥à¤ªà¤£à¥","View {{count}} comments_other":"दà¥à¤à¥à¤ {{count}} à¤à¤¿à¤ªà¥à¤ªà¤£à¤¿à¤¯à¤¾à¤","Voice message":"à¤à¤µà¤¾à¤ सà¤à¤¦à¥à¤¶","Vote ended":"मतदान समापà¥à¤¤","Wait until all attachments have uploaded":"सà¤à¥ à¤
à¤à¥à¤à¤®à¥à¤à¤ à¤
पलà¥à¤¡ हà¥à¤¨à¥ तठपà¥à¤°à¤¤à¥à¤à¥à¤·à¤¾ à¤à¤°à¥à¤","You":"à¤à¤ª","You have no channels currently":"à¤à¤ªà¤à¥ पास à¤à¥à¤ à¤à¥à¤¨à¤² नहà¥à¤ हà¥","You\'ve reached the maximum number of files":"à¤à¤ª à¤
धिà¤à¤¤à¤® फ़ाà¤à¤²à¥à¤ तठपहà¥à¤à¤ à¤à¤ हà¥à¤","aria/Attachment":"à¤
नà¥à¤²à¤à¥à¤¨à¤","aria/Cancel Reply":"à¤à¤¤à¥à¤¤à¤° रदà¥à¤¦ à¤à¤°à¥à¤","aria/Cancel upload":"à¤
पलà¥à¤¡ रदà¥à¤¦ à¤à¤°à¥à¤","aria/Channel list":"à¤à¥à¤¨à¤² सà¥à¤à¥","aria/Channel search results":"à¤à¥à¤¨à¤² à¤à¥à¤ परिणाम","aria/Close thread":"थà¥à¤°à¥à¤¡ बà¤à¤¦ à¤à¤°à¥à¤","aria/Download attachment":"à¤
नà¥à¤²à¤à¥à¤¨à¤ डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥à¤","aria/Emoji picker":"à¤à¤®à¥à¤à¥ à¤à¥à¤¨à¤¨à¥ वाला","aria/File input":"फ़ाà¤à¤² à¤à¤¨à¤ªà¥à¤","aria/File upload":"फ़ाà¤à¤² à¤
पलà¥à¤¡","aria/Image input":"à¤à¤µà¤¿ à¤à¤¨à¤ªà¥à¤","aria/Load More Channels":"à¤à¤° à¤à¥à¤¨à¤² लà¥à¤¡ à¤à¤°à¥à¤","aria/Menu":"मà¥à¤¨à¥à¤¯à¥","aria/Message Options":"सà¤à¤¦à¥à¤¶ विà¤à¤²à¥à¤ª","aria/Open Attachment Selector":"à¤
à¤à¥à¤à¤®à¥à¤à¤ à¤à¤¯à¤¨à¤à¤°à¥à¤¤à¤¾ à¤à¥à¤²à¥à¤","aria/Open Message Actions Menu":"सà¤à¤¦à¥à¤¶ à¤à¥à¤°à¤¿à¤¯à¤¾ मà¥à¤¨à¥à¤¯à¥ à¤à¥à¤²à¥à¤","aria/Open Reaction Selector":"पà¥à¤°à¤¤à¤¿à¤à¥à¤°à¤¿à¤¯à¤¾ à¤à¤¯à¤¨à¤à¤°à¥à¤¤à¤¾ à¤à¥à¤²à¥à¤","aria/Open Thread":"थà¥à¤°à¥à¤¡ à¤à¥à¤²à¥à¤","aria/Reaction list":"पà¥à¤°à¤¤à¤¿à¤à¥à¤°à¤¿à¤¯à¤¾ सà¥à¤à¥","aria/Remove attachment":"सà¤à¤²à¤à¥à¤¨à¤ हà¤à¤¾à¤à¤","aria/Retry upload":"à¤
पलà¥à¤¡ पà¥à¤¨à¤ पà¥à¤°à¤¯à¤¾à¤¸ à¤à¤°à¥à¤","aria/Search results":"à¤à¥à¤ परिणाम","aria/Search results header filter button":"à¤à¥à¤ परिणाम हà¥à¤¡à¤° फ़िलà¥à¤à¤° बà¤à¤¨","aria/Send":"à¤à¥à¤à¥à¤","aria/Stop AI Generation":"à¤à¤à¤ à¤à¤¨à¤°à¥à¤¶à¤¨ रà¥à¤à¥à¤","ban-command-args":"[@à¤à¤ªà¤¯à¥à¤à¤à¤°à¥à¤¤à¤¨à¤¾à¤®] [पाठ]","ban-command-description":"à¤à¤ à¤à¤ªà¤¯à¥à¤à¤à¤°à¥à¤¤à¤¾ à¤à¥ पà¥à¤°à¤¤à¤¿à¤·à¥à¤§à¤¿à¤¤ à¤à¤°à¥à¤","giphy-command-args":"[पाठ]","giphy-command-description":"à¤à¥à¤¨à¤² पर à¤à¤ à¤à¥à¤°à¥à¤«à¤¿à¤² à¤à¥à¤à¤à¤à¤« पà¥à¤¸à¥à¤ à¤à¤°à¥à¤","live":"लाà¤à¤µ","mute-command-args":"[@à¤à¤ªà¤¯à¥à¤à¤à¤°à¥à¤¤à¤¨à¤¾à¤®]","mute-command-description":"à¤à¤ à¤à¤ªà¤¯à¥à¤à¤à¤°à¥à¤¤à¤¾ à¤à¥ मà¥à¤¯à¥à¤ à¤à¤°à¥à¤","replyCount_one":"1 रिप
3à¥à¤²à¤¾à¤","replyCount_other":"{{ count }} रिपà¥à¤²à¤¾à¤","search-results-header-filter-source-button-label--channels":"à¤à¥à¤¨à¤²à¥à¤¸","search-results-header-filter-source-button-label--messages":"सà¤à¤¦à¥à¤¶","search-results-header-filter-source-button-label--users":"à¤à¤ªà¤¯à¥à¤à¤à¤°à¥à¤¤à¤¾","searchResultsCount_one":"1 परिणाम","searchResultsCount_other":"{{ count }} परिणाम","this content could not be displayed":"यह à¤à¥à¤¨à¥à¤à¥à¤à¤ लà¥à¤¡ नहà¥à¤ हॠपाया","timestamp/DateSeparator":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/MessageTimestamp":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/PollVote":"{{ timestamp | timestampFormatter(format: MMM D [at] HH:mm) }}","timestamp/PollVoteTooltip":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/SystemMessage":"{{ timestamp | timestampFormatter(format: dddd L) }}","unban-command-args":"[@à¤à¤ªà¤¯à¥à¤à¤à¤°à¥à¤¤à¤¨à¤¾à¤®]","unban-command-description":"à¤à¤ à¤à¤ªà¤¯à¥à¤à¤à¤°à¥à¤¤à¤¾ à¤à¥ पà¥à¤°à¤¤à¤¿à¤·à¥à¤§ सॠमà¥à¤à¥à¤¤ à¤à¤°à¥à¤","unmute-command-args":"[@à¤à¤ªà¤¯à¥à¤à¤à¤°à¥à¤¤à¤¨à¤¾à¤®]","unmute-command-description":"à¤à¤ à¤à¤ªà¤¯à¥à¤à¤à¤°à¥à¤¤à¤¾ à¤à¥ à¤
नमà¥à¤¯à¥à¤ à¤à¤°à¥à¤","unreadMessagesSeparatorText_one":"1 à¤
पठित सà¤à¤¦à¥à¤¶","unreadMessagesSeparatorText_other":"{{count}} à¤
पठित सà¤à¤¦à¥à¤¶","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} à¤à¤° {{ moreCount }} à¤à¤°","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} à¤à¤° {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} à¤à¤° {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} à¤à¤°","{{ memberCount }} members":"{{ memberCount }} मà¥à¤à¤¬à¤°à¥à¤¸","{{ user }} has been muted":"{{ user }} à¤à¥ मà¥à¤¯à¥à¤ à¤à¤° दिया à¤à¤¯à¤¾ हà¥","{{ user }} has been unmuted":"{{ user }} à¤à¥ à¤
नमà¥à¤¯à¥à¤ à¤à¤° दिया à¤à¤¯à¤¾ हà¥","{{ user }} is typing...":"{{ user }} à¤à¤¾à¤à¤ª à¤à¤° रहा हà¥...","{{ users }} and more are typing...":"{{ users }} à¤à¤° à¤
धिठà¤à¤¾à¤à¤ª à¤à¤° रहॠहà¥à¤...","{{ users }} and {{ user }} are typing...":"{{ users }} à¤à¤° {{ user }} à¤à¤¾à¤à¤ª à¤à¤° रहॠहà¥à¤...","{{ watcherCount }} online":"{{ watcherCount }} à¤à¤¨à¤²à¤¾à¤à¤¨","{{count}} unread_one":"{{count}} à¤
पठित","{{count}} unread_other":"{{count}} à¤
पठित","{{count}} votes_one":"{{count}} वà¥à¤","{{count}} votes_other":"{{count}} वà¥à¤","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 à¤
à¤à¥à¤à¤®à¥à¤à¤","\uD83D\uDCCA {{createdBy}} created: {{ pollName}}":"\uD83D\uDCCA {{createdBy}} नॠबनाया: {{ pollName}}","\uD83D\uDCCA {{votedBy}} voted: {{pollOptionText}}":"\uD83D\uDCCA {{votedBy}} नॠवà¥à¤ दिया: {{pollOptionText}}"}'),eP=JSON.parse('{"Add a comment":"Aggiungi un commento","Add an option":"Aggiungi un\'opzione","All results loaded":"Tutti i risultati caricati","Allow access to camera":"Consenti l\'accesso alla fotocamera","Allow access to microphone":"Consenti l\'accesso al microfono","Allow comments":"Consenti i commenti","Allow option suggestion":"Consenti il suggerimento di opzioni","An error has occurred during recording":"Si \xe8 verificato un errore durante la registrazione","An error has occurred during the recording processing":"Si \xe8 verificato un errore durante l\'elaborazione della registrazione","Anonymous":"Anonimo","Anonymous poll":"Sondaggio anonimo","Archive":"Archivia","Ask a question":"Fai una domanda","Attach files":"Allega file","Cancel":"Annulla","Cannot seek in the recording":"Impossibile cercare nella registrazione","Channel Missing":"Il canale non esiste","Close":"Chiudi","Close emoji picker":"Chiudi il selettore di emoji","Commands matching":"Comandi corrispondenti","Connection failure, reconnecting now...":"Errore di connessione, riconnessione in corso...","Create":"Crea","Create poll":"Crea sondaggio","Delete":"Elimina","Delivered":"Conseg
3nato","Download attachment {{ name }}":"Scarica l\'allegato {{ name }}","Drag your files here":"Trascina i tuoi file qui","Drag your files here to add to your post":"Trascina i tuoi file qui per aggiungerli al tuo post","Edit Message":"Modifica messaggio","Edit message request failed":"Richiesta di modifica del messaggio non riuscita","Edited":"Modificato","Emoji matching":"Abbinamento emoji","Empty message...":"Messaggio vuoto...","End":"Fine","End vote":"Termina il voto","Error adding flag":"Errore durante l\'aggiunta del flag","Error connecting to chat, refresh the page to try again.":"Errore di connessione alla chat, aggiorna la pagina per riprovare.","Error deleting message":"Errore durante l\'eliminazione del messaggio","Error fetching reactions":"Errore nel caricamento delle reazioni","Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.":"Errore durante la marcatura del messaggio come non letto. Impossibile marcare messaggi non letti pi\xf9 vecchi dei pi\xf9 recenti 100 messaggi del canale.","Error muting a user ...":"Errore nel silenziare un utente ...","Error pinning message":"Errore durante il blocco del messaggio","Error removing message pin":"Errore durante la rimozione del PIN del messaggio","Error reproducing the recording":"Errore durante la riproduzione della registrazione","Error starting recording":"Errore durante l\'avvio della registrazione","Error unmuting a user ...":"Errore nel riattivare un utente ...","Error uploading attachment":"Errore durante il caricamento dell\'allegato","Error uploading file":"Errore durante il caricamento del file","Error uploading image":"Errore durante il caricamento dell\'immagine","Error \xb7 Unsent":"Errore \xb7 Non inviato","Error: {{ errorMessage }}":"Errore: {{ errorMessage }}","Failed to jump to the first unread message":"Impossibile passare al primo messaggio non letto","Failed to mark channel as read":"Impossibile contrassegnare il canale come letto","Failed to play the recording":"Impossibile riprodurre la registrazione","File":"File","File is too large: {{ size }}, maximum upload size is {{ limit }}":"Il file \xe8 troppo grande: {{ size }}, la dimensione massima di caricamento \xe8 {{ limit }}","Flag":"Segnala","Generating...":"Generando...","Latest Messages":"Ultimi messaggi","Load more":"Carica di pi\xf9","Mark as unread":"Contrassegna come non letto","Maximum number of votes (from 2 to 10)":"Numero massimo di voti (da 2 a 10)","Menu":"Men\xf9","Message Failed \xb7 Click to try again":"Invio messaggio fallito \xb7 Clicca per riprovare","Message Failed \xb7 Unauthorized":"Invio messaggio fallito \xb7 Non autorizzato","Message deleted":"Messaggio cancellato","Message has been successfully flagged":"Il messaggio \xe8 stato segnalato con successo","Message pinned":"Messaggio bloccato","Message was blocked by moderation policies":"Il messaggio \xe8 stato bloccato dalle politiche di moderazione","Messages have been marked unread.":"I messaggi sono stati contrassegnati come non letti.","Missing permissions to upload the attachment":"Autorizzazioni mancanti per caricare l\'allegato","Multiple answers":"Risposte multiple","Mute":"Silenzia","New":"Nuovo","New Messages!":"Nuovi messaggi!","No chats here yetâ¦":"Non ci sono ancora messaggi qui...","No results found":"Nessun risultato trovato","Nobody will be able to vote in this poll anymore.":"Nessuno potr\xe0 pi\xf9 votare in questo sondaggio.","Nothing yet...":"Ancora niente...","Ok":"Ok","Open emoji picker":"Apri il selettore di emoji","Option already exists":"L\'opzione esiste gi\xe0","Options":"Opzioni","People matching":"Persone che corrispondono","Pin":"Pin","Pinned by":"Appuntato da","Poll":"Sondaggio","Poll comments":"Commenti del sondaggio","Poll options":"Opzioni del sondaggio","Poll results":"Risultati del sondaggio","Question":"Domanda","Quote":"Citazione","Recording format is not supported and cannot be reproduced":"Il formato di registrazione non \xe8 supportato e non pu\xf2 essere riprodotto","Reply":"Rispondi","Reply to Message":"Rispondi al messaggio","Search":"Cerca","Searching...":"Ricerca in corso...","See all options ({{count}})_many":"Vedi tutte le opzioni ({{count}})","See all options ({{count}})_one":"Vedi tutte le opzioni ({{count}})","See all options ({{count}}
3)_other":"Vedi tutte le opzioni ({{count}})","Select one":"Seleziona uno","Select one or more":"Seleziona uno o pi\xf9","Select up to {{count}}_many":"Seleziona fino a {{count}}","Select up to {{count}}_one":"Seleziona fino a {{count}}","Select up to {{count}}_other":"Seleziona fino a {{count}}","Send":"Invia","Send Anyway":"Invia comunque","Send message request failed":"Richiesta di invio messaggio non riuscita","Sending...":"Invio in corso...","Show all":"Mostra tutto","Shuffle":"Mescolare","Slow Mode ON":"Modalit\xe0 lenta attivata","Some of the files will not be accepted":"Alcuni dei file non saranno accettati","Start typing to search":"Inizia a digitare per cercare","Submit":"Invia","Suggest an option":"Suggerisci un\'opzione","Thinking...":"Pensando...","This message did not meet our content guidelines":"Questo messaggio non soddisfa le nostre linee guida sui contenuti","This message was deleted...":"Questo messaggio \xe8 stato cancellato...","Thread":"Discussione","To start recording, allow the camera access in your browser":"Per iniziare a registrare, consenti l\'accesso alla fotocamera nel tuo browser","To start recording, allow the microphone access in your browser":"Per iniziare a registrare, consenti l\'accesso al microfono nel tuo browser","Type a number from 2 to 10":"Digita un numero da 2 a 10","Type your message":"Scrivi il tuo messaggio","Unarchive":"Ripristina","Unmute":"Riattiva il notifiche","Unpin":"Sblocca","Unread messages":"Messaggi non letti","Unsupported attachment":"Allegato non supportato","Update your comment":"Aggiorna il tuo commento","Upload type: \\"{{ type }}\\" is not allowed":"Tipo di caricamento: \\"{{ type }}\\" non \xe8 consentito","User uploaded content":"Contenuto caricato dall\'utente","View results":"Vedi risultati","View {{count}} comments_many":"Visualizza {{count}} commenti","View {{count}} comments_one":"Visualizza {{count}}
3 commento","View {{count}} comments_other":"Visualizza {{count}} commenti","Voice message":"Messaggio vocale","Vote ended":"Voto terminato","Wait until all attachments have uploaded":"Attendi il caricamento di tutti gli allegati","You":"Tu","You have no channels currently":"Al momento non sono presenti canali","You\'ve reached the maximum number of files":"Hai raggiunto il numero massimo di file","aria/Attachment":"Allegato","aria/Cancel Reply":"Annulla risposta","aria/Cancel upload":"Annulla caricamento","aria/Channel list":"Elenco dei canali","aria/Channel search results":"Risultati della ricerca dei canali","aria/Close thread":"Chiudi discussione","aria/Download attachment":"Scarica l\'allegato","aria/Emoji picker":"Selettore di emoji","aria/File input":"Input di file","aria/File upload":"Caricamento di file","aria/Image input":"Input di immagine","aria/Load More Channels":"Carica altri canali","aria/Menu":"Menu","aria/Message Options":"Opzioni di messaggio","aria/Open Attachment Selector":"Apri selettore allegati","aria/Open Message Actions Menu":"Apri il menu delle azioni di messaggio","aria/Open Reaction Selector":"Apri il selettore di reazione","aria/Open Thread":"Apri discussione","aria/Reaction list":"Elenco delle reazioni","aria/Remove attachment":"Rimuovi allegato","aria/Retry upload":"Riprova caricamento","aria/Search results":"Risultati della ricerca","aria/Search results header filter button":"Pulsante filtro intestazione risultati ricerca","aria/Send":"Invia","aria/Stop AI Generation":"Interrompi generazione IA","ban-command-args":"[@nomeutente] [testo]","ban-command-description":"Vietare un utente","giphy-command-args":"[testo]","giphy-command-description":"Pubblica un gif casuale sul canale","live":"live","mute-command-args":"[@nomeutente]","mute-command-description":"Silenzia un utente","replyCount_many":"{{ count }} risposte","replyCount_one":"Una risposta","replyCount_other":"{{ count }} risposte","search-results-header-filter-source-button-label--channels":"canali","search-results-header-filter-source-button-label--messages":"messaggi","search-results-header-filter-source-button-label--users":"utenti","searchResultsCount_many":"{{ count }} risultati","searchResultsCount_one":"1 risultato","searchResultsCount_other":"{{ count }} risultati","this content could not be displayed":"questo contenuto non pu\xf2 essere mostrato","timestamp/DateSeparator":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/MessageTimestamp":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/PollVote":"{{ timestamp | timestampFormatter(format: MMM D [at] HH:mm) }}","timestamp/PollVoteTooltip":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/SystemMessage":"{{ timestamp | timestampFormatter(format: dddd L) }}","unban-command-args":"[@nomeutente]","unban-command-description":"Togliere il divieto a un utente","unmute-command-args":"[@nomeutente]","unmute-command-description":"Togliere il silenzio a un utente","unreadMessagesSeparatorText_many":"{{count}} messaggi non letti","unreadMessagesSeparatorText_one":"1 messaggio non letto","unreadMessagesSeparatorText_other":"{{count}} messaggi non letti","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} e altri {{ moreCount }}","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} e {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} e {{ secondUser }}","{{ imageCount }} more":"+ {{ imageCount }}","{{ memberCount }} members":"{{ memberCount }} membri","{{ user }} has been muted":"{{ user }} \xe8 stato silenziato","{{ user }} has been unmuted":"Notifiche riattivate per {{ user }}","{{ user }} is typing...":"{{ user }} sta digitando...","{{ users }} and more are typing...":"{{ users }} e altri stanno digitando...","{{ users }} and {{ user }} are typing...":"{{ users }} e {{ user }} stanno digitando...","{{ watcherCount }} online":"{{ watcherCount }} online","{{count}} unread_many":"{{count}} non letti","{{count}} unread_one":"{{count}} non letto","{{count}} unread_other":"{{count}} non letti","{{count}} votes_many":"{{count}} voti","{{count}} votes_one":"{{count}} voto","{{count}} votes_other":"{{count}} voti","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Allegato...","\uD83D\uDCCA {{createdBy}} created: {{ pollName}}":"\uD83D\uDCCA {{createdBy}} ha creato: {{ pollName}}","\uD83D\uDCCA {{votedBy}} voted: {{pollOptionText}}":"\uD83D\uDCCA {{votedBy}} ha votato: {{pollOptionText}}"}'),eF=JSON.parse('{"Add a comment":"ã³ã¡ã³ãã追å ","Add an option":"ãªãã·ã§ã³ã追å ","All results loaded":"ãã¹ã¦ã®çµæãèªã¿è¾¼ã¾ãã¾ãã","Allow access to camera":"ã«ã¡ã©ã¸ã®ã¢ã¯ã»ã¹ã許å¯ãã","Allow access to microphone":"ãã¤ã¯ããã©ã³ã¸ã®ã¢ã¯ã»ã¹ã許å¯ãã","Allow comments":"ã³ã¡ã³ãã許å¯","Allow option suggestion":"ãªãã·ã§ã³ã®ææ¡ã許å¯","An error has occurred during recording":"é²é³ä¸ã«ã¨ã©ã¼ãçºçãã¾ãã","An error has occurred during the recording processing":"é²é³å¦çä¸ã«ã¨ã©ã¼ãçºçãã¾ãã","Anonymous":"å¿å","Anonymous poll":"å¿åæç¥¨","Archive":"ã¢ã¼ã«ã¤ã","Ask a question":"質åãã","Attach files":"ãã¡ã¤ã«ãæ·»ä»ãã","Cancel":"ãã£ã³ã»ã«","Cannot seek in the recording":"é²é³ä¸ã«ã·ã¼ã¯ã§ãã¾ãã","Channel Missing":"ãã£ãã«ãããã¾ãã","Close":"éãã","Close emoji picker":"çµµæåããã«ã¼ãéãã","Commands matching":"ä¸è´ããã³ãã³ã","Connection failure, reconnecting now...":"æ¥ç¶ã失æãã¾ããã忥ç¶ä¸...","Create":"使","Create poll":"æç¥¨ã使","Delete":"æ¶å»","Delivered":"é
ä¿¡ãã¾ãã","Download attachment {{ name }}":"æ·»ä»ãã¡ã¤ã« {{ name }} ããã¦ã³ãã¼ã","Drag your files here":"ããã«ãã¡ã¤ã«ããã©ãã°","Drag your files here to add to your post":"æç¨¿ã«è¿½å ããããã«ããã«ãã¡ã¤ã«ããã©ãã°","Edit Message":"ã¡ãã»ã¼ã¸ãç·¨é","E
3dit message request failed":"ã¡ãã»ã¼ã¸ã®ç·¨éè¦æ±ã失æãã¾ãã","Edited":"ç·¨éæ¸ã¿","Emoji matching":"çµµæåãããã³ã°","Empty message...":"空ã®ã¡ãã»ã¼ã¸...","End":"çµäº","End vote":"æç¥¨ãçµäº","Error adding flag":"ãã©ã°ã追å ã®ã¨ã©ã¼ãçºçãã¾ãã","Error connecting to chat, refresh the page to try again.":"ãã£ããã¸ã®æ¥ç¶ãã§ãã¾ããã§ããããã¼ã¸ãæ´æ°ãã¦ãã ããã","Error deleting message":"ã¡ãã»ã¼ã¸ãåé¤ããã¨ã©ã¼ãçºçãã¾ãã","Error fetching reactions":"åå¿ã®èªã¿è¾¼ã¿ã¨ã©ã¼","Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.":"ã¡ãã»ã¼ã¸ãæªèªã«ããéã«ã¨ã©ã¼ãçºçãã¾ãããææ°ã®100ä»¶ã®ãã£ã³ãã«ã¡ãã»ã¼ã¸ããå¤ãæªèªã¡ãã»ã¼ã¸ã¯ãã¼ã¯ã§ãã¾ããã","Error muting a user ...":"ã¦ã¼ã¶ã¼ãç¡é³ããã¨ã©ã¼ãçºçãã¾ãã...","Error pinning message":"ã¡ãã»ã¼ã¸ããã³ã®ã¨ã©ã¼ãçºçãã¾ãã","Error removing message pin":"ã¡ãã»ã¼ã¸ã®ãã³ãåé¤ã®ã¨ã©ã¼ãçºçãã¾ãã","Error reproducing the recording":"é²é³ã®åçä¸ã«ã¨ã©ã¼ãçºçãã¾ãã","Error starting recording":"é²é³ã®éå§æã«ã¨ã©ã¼ãçºçãã¾ãã","Error unmuting a user ...":"ã¦ã¼ã¶ã¼ã®ç¡é³è§£é¤ã®ã¨ã©ã¼ãçºçãã¾ãã...","Error uploading attachment":"æ·»ä»ãã¡ã¤ã«ã®ã¢ãããã¼ãä¸ã«ã¨ã©ã¼ãçºçãã¾ãã","Error uploading file":"ãã¡ã¤ã«ãã¢ãããã¼ãã®ã¨ã©ã¼ãçºçãã¾ãã","Error uploading image":"ç»åãã¢ãããã¼ãã®ã¨ã©ã¼ãçºçãã¾ãã","Error \xb7 Unsent":"ã¨ã©ã¼ã»æªéä¿¡","Error: {{ errorMessage }}":"ã¨ã©ã¼: {{ errorMessage }}","Failed to jump to the first unread message":"æåã®æªèªã¡ãã»ã¼ã¸ã«ã¸ã£ã³ãã§ãã¾ããã§ãã","Failed to mark channel as read":"ãã£ã³ãã«ãæ¢èªã«ãããã¨ãã§ãã¾ããã§ãã","Failed to play the recording":"é²é³ã®åçã«å¤±æãã¾ãã","File":"ãã¡ã¤ã«","File is too large: {{ size }}, maximum upload size is {{ limit }}":"ãã¡ã¤ã«ã大ãããã¾ãï¼{{ size }}ãæå¤§ã¢ãããã¼ããµã¤ãºã¯{{ limit }}ã§ã","Flag":"ãã©ã°","Generating...":"çæä¸...","Latest Messages":"ææ°ã®ã¡ãã»ã¼ã¸","Load more":"ãã£ã¨èªã¿è¾¼ã","Mark as unread":"æªèªã¨ãã¦ãã¼ã¯","Maximum number of votes (from 2 to 10)":"æå¤§æç¥¨æ°ï¼2ãã10ã¾ã§ï¼","Menu":"ã¡ãã¥ã¼","Message Failed \xb7 Click to try again":"ã¡ãã»ã¼ã¸ã失æãã¾ãã \xb7 ã¯ãªãã¯ãã¦å試è¡ãã¦ãã ãã","Message Failed \xb7 Unauthorized":"ã¡ãã»ã¼ã¸ã失æãã¾ãã \xb7 許å¯ããã¦ãã¾ãã","Message deleted":"ã¡ãã»ã¼ã¸ãåé¤ããã¾ãã","Message has been successfully flagged":"ã¡ãã»ã¼ã¸ã«æ£å¸¸ã«ãã©ã°ãä»ãããã¾ãã","Message pinned":"ã¡ãã»ã¼ã¸ã«ãã³ãä»ãããã¾ãã","Message was blocked by moderation policies":"ã¡ãã»ã¼ã¸ã¯ã¢ãã¬ã¼ã·ã§ã³ããªã·ã¼ã«ãã£ã¦ãããã¯ããã¾ãã","Messages have been marked unread.":"ã¡ãã»ã¼ã¸ã¯æªèªã¨ãã¦ãã¼ã¯ããã¾ããã","Missing permissions to upload the attachment":"æ·»ä»ãã¡ã¤ã«ãã¢ãããã¼ãããããã®è¨±å¯ãããã¾ãã","Multiple answers":"è¤æ°åç","Mute":"ç¡é³","New":"æ°ãã","New Messages!":"æ°ããã¡ãã»ã¼ã¸!","No chats here yetâ¦":"ããã«ã¯ã¾ã ãã£ããã¯ããã¾ããâ¦","No results found":"çµæãè¦ã¤ããã¾ãã","Nobody will be able to vote in this poll anymore.":"ãã®æç¥¨ã§ã¯ã誰ãæç¥¨ã§ããªããªãã¾ãã","Nothing yet...":"ã¾ã ä½ãããã¾ãã...","Ok":"OK","Open emoji picker":"çµµæåããã«ã¼ãéã","Option already exists":"ãªãã·ã§ã³ã¯æ¢ã«åå¨ãã¾ã","Options":"ãªãã·ã§ã³","People matching":"ä¸è´ãã人","Pin":"ãã³","Pinned by":"ãã³ããæ¹","Poll":"æç¥¨","Poll comments":"æç¥¨ã³ã¡ã³ã","Poll options":"æç¥¨ã
3ªãã·ã§ã³","Poll results":"æç¥¨çµæ","Question":"質å","Quote":"å¼ç¨","Recording format is not supported and cannot be reproduced":"é²é³å½¢å¼ã¯ãµãã¼ãããã¦ããããåçã§ãã¾ãã","Reply":"è¿äº","Reply to Message":"ã¡ãã»ã¼ã¸ã«è¿ä¿¡","Search":"æ¢ã","Searching...":"æ¤ç´¢ä¸...","See all options ({{count}})_other":"ãã¹ã¦ã®ãªãã·ã§ã³ãè¦ã ({{count}})","Select one":"1ã¤é¸æ","Select one or more":"1ã¤ä»¥ä¸é¸æ","Select up to {{count}}_other":"æå¤§{{count}}ã¾ã§é¸æ","Send":"éä¿¡","Send Anyway":"ã¨ã«ããéä¿¡ãã","Send message request failed":"ã¡ãã»ã¼ã¸éä¿¡ãªã¯ã¨ã¹ãã失æãã¾ãã","Sending...":"éä¿¡ä¸...","Show all":"ãã¹ã¦è¡¨ç¤º","Shuffle":"ã·ã£ããã«","Slow Mode ON":"ã¹ãã¼ã¢ã¼ããªã³","Some of the files will not be accepted":"ä¸é¨ã®ãã¡ã¤ã«ã¯åãä»ãããã¾ãã","Start typing to search":"æ¤ç´¢ããã«ã¯å
¥åãéå§ãã¦ãã ãã","Submit":"éä¿¡","Suggest an option":"ãªãã·ã§ã³ãææ¡","Thinking...":"èãä¸...","This message did not meet our content guidelines":"ãã®ã¡ãã»ã¼ã¸ã¯ã³ã³ãã³ãã¬ã¤ãã©ã¤ã³ã«é©åãã¦ãã¾ãã","This message was deleted...":"ãã®ã¡ãã»ã¼ã¸ã¯åé¤ããã¾ãã...","Thread":"ã¹ã¬ãã","To start recording, allow the camera access in your browser":"é²é³ãéå§ããã«ã¯ããã©ã¦ã¶ã¼ã§ã«ã¡ã©ã¸ã®ã¢ã¯ã»ã¹ã許å¯ãã¦ãã ãã","To start recording, allow the microphone access in your browser":"é²é³ãéå§ããã«ã¯ããã©ã¦ã¶ã¼ã§ãã¤ã¯ããã©ã³ã¸ã®ã¢ã¯ã»ã¹ã許å¯ãã¦ãã ãã","Type a number from 2 to 10":"2ãã10ã¾ã§ã®æ°åãå
¥åãã¦ãã ãã","Type your message":"ã¡ãã»ã¼ã¸ãå
¥åãã¦ãã ãã","Unarchive":"ã¢ã¼ã«ã¤ãè§£é¤","Unmute":"ç¡é³ãè§£é¤ãã","Unpin":"ãã³ãè§£é¤ãã","Unread messages":"æªèªã¡ãã»ã¼ã¸","Unsupported attachment":"ãµãã¼ãããã¦ããªãæ·»ä»ãã¡ã¤ã«","Update your comment":"ã³ã¡ã³ããæ´æ°","Upload type: \\"{{ type }}\\" is not allowed":"ã¢ãããã¼ãã¿ã¤ãï¼\\"{{ type }}\\"ã¯è¨±å¯ããã¦ãã¾ãã","User uploaded content":"ã¦ã¼ã¶ã¼ãã¢ãããã¼ãããã³ã³ãã³ã","View results":"çµæã表示","View {{
3count}} comments_other":"{{count}} ã³ã¡ã³ãã表示","Voice message":"ãã¤ã¹ã¡ãã»ã¼ã¸","Vote ended":"æç¥¨ãçµäºãã¾ãã","Wait until all attachments have uploaded":"ãã¹ã¦ã®æ·»ä»ãã¡ã¤ã«ãã¢ãããã¼ããããã¾ã§ãå¾
ã¡ãã ãã","You":"ããªã","You have no channels currently":"ç¾å¨ãã£ã³ãã«ã¯ããã¾ãã","You\'ve reached the maximum number of files":"ãã¡ã¤ã«ã®æå¤§æ°ã«éãã¾ãã","aria/Attachment":"æ·»ä»ãã¡ã¤ã«","aria/Cancel Reply":"è¿ä¿¡ããã£ã³ã»ã«","aria/Cancel upload":"ã¢ãããã¼ãããã£ã³ã»ã«","aria/Channel list":"ãã£ã³ãã«ä¸è¦§","aria/Channel search results":"ãã£ã³ãã«æ¤ç´¢çµæ","aria/Close thread":"ã¹ã¬ãããéãã","aria/Download attachment":"æ·»ä»ãã¡ã¤ã«ããã¦ã³ãã¼ã","aria/Emoji picker":"çµµæåããã«ã¼","aria/File input":"ãã¡ã¤ã«å
¥å","aria/File upload":"ãã¡ã¤ã«ã¢ãããã¼ã","aria/Image input":"ç»åå
¥å","aria/Load More Channels":"ããã«ãã£ã³ãã«ãèªã¿è¾¼ã","aria/Menu":"ã¡ãã¥ã¼","aria/Message Options":"ã¡ãã»ã¼ã¸ãªãã·ã§ã³","aria/Open Attachment Selector":"æ·»ä»ãã¡ã¤ã«é¸æãéã","aria/Open Message Actions Menu":"ã¡ãã»ã¼ã¸ã¢ã¯ã·ã§ã³ã¡ãã¥ã¼ãéã","aria/Open Reaction Selector":"ãªã¢ã¯ã·ã§ã³ã»ã¬ã¯ã¿ã¼ãéã","aria/Open Thread":"ã¹ã¬ãããéã","aria/Reaction list":"ãªã¢ã¯ã·ã§ã³ä¸è¦§","aria/Remove attachment":"æ·»ä»ãã¡ã¤ã«ãåé¤","aria/Retry upload":"ã¢ãããã¼ããå試è¡","aria/Search results":"æ¤ç´¢çµæ","aria/Search results header filter button":"æ¤ç´¢çµæãããã¼ãã£ã«ã¿ã¼ãã¿ã³","aria/Send":"éä¿¡","aria/Stop AI Generation":"AIçæã忢","ban-command-args":"[@ã¦ã¼ã¶å] [ããã¹ã]","ban-command-description":"ã¦ã¼ã¶ã¼ãç¦æ¢ãã","giphy-command-args":"[ããã¹ã]","giphy-command-description":"ãã£ã³ãã«ã«ã©ã³ãã ãªGIFãæç¨¿ãã","live":"ã©ã¤ã","mute-command-args":"[@ã¦ã¼ã¶å]","mute-command-description":"ã¦ã¼ã¶ã¼ããã¥ã¼ããã","replyCount_one":"1ä»¶ã®è¿ä¿¡","replyCount_other":"{{ count }} è¿ä¿¡","search-results-header-filter-source-button-label--channels":"ãã£ã³ãã«","search-results-header-filter-source-button-label--messages":"ã¡ãã»ã¼ã¸","search-results-header-filter-source-button-label--users":"ã¦ã¼ã¶ã¼","searchResultsCount_one":"1ä»¶ã®çµæ","searchResultsCount_other":"{{ count }}ä»¶ã®çµæ","this content could not be displayed":"ãã®ã³ã³ãã³ãã¯è¡¨ç¤ºã§ãã¾ããã§ãã","timestamp/DateSeparator":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/MessageTimestamp":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/PollVote":"{{ timestamp | timestampFormatter(format: MMM D [at] HH:mm) }}","timestamp/PollVoteTooltip":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/SystemMessage":"{{ timestamp | timestampFormatter(format: dddd L) }}","unban-command-args":"[@ã¦ã¼ã¶å]","unban-command-description":"ã¦ã¼ã¶ã¼ã®ç¦æ¢ãè§£é¤ãã","unmute-command-args":"[@ã¦ã¼ã¶å]","unmute-command-description":"ã¦ã¼ã¶ã¼ã®ãã¥ã¼ããè§£é¤ãã","unreadMessagesSeparatorText_other":"æªèªã¡ãã»ã¼ã¸ {{count}} ä»¶","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} 㨠{{ moreCount }} ä»äºº","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} 㨠{{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} 㨠{{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} ã¤ã¡ã¼ã¸","{{ memberCount }} members":"{{ memberCount }} ã¡ã³ãã¼","{{ user }} has been muted":"{{ user }} ç¡é³ããã¦ãã¾ã","{{ user }} has been unmuted":"{{ user }} ç¡é³ããã¦ãã¾ãã","{{ user }} is typing...":"{{ user }} ãå
¥åä¸...","{{ users }} and more are typing...":"{{ users }} ã¨ãã®ä»ãå
¥åä¸...","{{ users }} and {{ user }} are typing...":"{{ users }} 㨠{{ user }} ãå
¥åä¸...","{{ watcherCount }} online":"{{ watcherCount }} ãªã³ã©ã¤ã³","{{count}} unread_other":"{{count}} æªèª","{{count}} votes_other":"{{count}} 票","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 ã¢ã¿ããã¡ã³ã...","\uD83D\uDCCA {{createdBy}} created: {{ pollName}}":"\uD83D\uDCCA {{createdBy}} ã使: {{ pollName}}","\uD83D\uDCCA {{votedBy}} voted: {{pollOptionText}}":"\uD83D\uDCCA {{votedBy}} ãæç¥¨: {{pollOptionText}}"}'),eL=JSON.parse('{"Add a comment":"ëê¸ ì¶ê°","Add an option":"ìµì
ì¶ê°","All results loaded":"모ë ê²°ê³¼ê° ë¡ëëììµëë¤","Allow access to camera":"ì¹´ë©ë¼ì ëí ì¡ì¸ì¤ íì©","Allow access to microphone":"ë§ì´í¬ë¡í°ì ëí ì¡ì¸ì¤ íì©","Allow comments":"ëê¸ í
3ì©","Allow option suggestion":"ìµì
ì ì íì©","An error has occurred during recording":"ë
¹ì ì¤ ì¤ë¥ê° ë°ìíìµëë¤","An error has occurred during the recording processing":"ë
¹ì ì²ë¦¬ ì¤ ì¤ë¥ê° ë°ìíìµëë¤","Anonymous":"ìµëª
","Anonymous poll":"ìµëª
í¬í","Archive":"ìì¹´ì´ë¸","Ask a question":"ì§ë¬¸í기","Attach files":"íì¼ ì²¨ë¶","Cancel":"ì·¨ì","Cannot seek in the recording":"ë
¹ììì ì°¾ì ì ììµëë¤","Channel Missing":"ì±ë ëë½","Close":"ë«ê¸°","Close emoji picker":"ì´ëª¨í°ì½ ì í기 ë«ê¸°","Commands matching":"ì¼ì¹íë ëª
ë ¹","Connection failure, reconnecting now...":"ì°ê²° ì¤í¨, ì§ê¸ ë¤ì ì°ê²° ì¤...","Create":"ìì±","Create poll":"í¬í ìì±","Delete":"ìì ","Delivered":"ë°°ë¬ë¨","Download attachment {{ name }}":"ì²¨ë¶ íì¼ {{ name }} ë¤ì´ë¡ë","Drag your files here":"ì¬ê¸°ë¡ íì¼ì ëì´ë¤ ëì¼ì¸ì","Drag your files here to add to your post":"ê²ì물ì ì¶ê°íë ¤ë©´ íì¼ì ì¬ê¸°ë¡ ëì´ë¤ ëì¼ì¸ì","Edit Message":"ë©ìì§ ìì ","Edit message request failed":"ë©ìì§ ìì ìì² ì¤í¨","Edited":"í¸ì§ë¨","Emoji matching":"ì´ëª¨í°ì½ 매ì¹","Empty message...":"ë¹ ë©ìì§...","End":"ì¢
ë£","End vote":"í¬í ì¢
ë£","Error adding flag":"íë그를 ì¶ê°íë ëì ì¤ë¥ê° ë°ìíìµëë¤.","Error connecting to chat, refresh the page to try again.":"ì±í
ì ì°ê²°íë ëì ì¤ë¥ê° ë°ìíìµëë¤. íì´ì§ë¥¼ ìë¡ê³ 침íì¬ ë¤ì ìëíì¸ì.","Error deleting message":"ë©ìì§ë¥¼ ìì íë ì¤ì ì¤ë¥ê° ë°ìíìµëë¤.","Error fetching reactions":"ë°ì ë¡ë© ì¤ë¥.","Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.":"ë©ìì§ë¥¼ ì½ì§ ììì¼ë¡ íìíë ì¤ ì¤ë¥ê° ë°ìíìµëë¤. ê°ì¥ ìµê·¼ 100ê°ì ì±ë ë©ìì§ë³´ë¤ ì¤ëë ì½ì§ ìì ë©ìì§ë íìí ì ììµëë¤.","Error muting a user ...":"ì¬ì©ì를 ììê±°íë ì¤ì ì¤ë¥ê° ë°ìíìµëë¤...","Error pinning message":"ë©ìì§ë¥¼ ííë ì¤ì ì¤ë¥ê° ë°ìíìµëë¤.","Error removing message pin":"ë©ìì§ íì ì ê±°íë ì¤ì ì¤ë¥ê° ë°ìíìµëë¤.","Error reproducing the recording":"ë
¹ì ì¬ì ì¤ ì¤ë¥ ë°ì","Error starting recording":"ë
¹ì ìì ì¤ ì¤ë¥ê° ë°ìíìµëë¤","Error unmuting a user ...":"ì¬ì©ì ììê±° í´ì ì¤ ì¤ë¥ ë°ì...","Error uploading attachment":"ì²¨ë¶ íì¼ ì
ë¡ë ì¤ ì¤ë¥ê° ë°ìíìµëë¤","Error uploading file":"íì¼ ì
ë¡ë ì¤ë¥","Error uploading image":"ì´ë¯¸ì§ë¥¼ ì
ë¡ëíë ëì ì¤ë¥ê° ë°ìíìµëë¤.","Error \xb7 Unsent":"ì¤ë¥ \xb7 ì ì¡ëì§ ìì","Error: {{ errorMessage }}":"ì¤ë¥: {{ errorMessage }}","Failed to jump to the first unread message":"첫 ë²ì§¸ ì½ì§ ìì ë©ìì§ë¡ ì´ëíì§ ëª»íìµëë¤","Failed to mark channel as read":"ì±ëì ì½ìì¼ë¡ íìíë ë° ì¤í¨íìµëë¤","Failed to play the recording":"ë
¹ìì ì¬ìíì§ ëª»íìµëë¤","File":"íì¼","File is too large: {{ size }}, maximum upload size is {{ limit }}":"íì¼ì´ ë무 í½ëë¤: {{ size }}, ìµë ì
ë¡ë í¬ê¸°ë {{ limit }}ì
ëë¤","Flag":"íëê·¸","Generating...":"ìì± ì¤...","Latest Messages":"ìµì ë©ìì§","Load more":"ë ë¶ë¬ì¤ê¸°","Mark as unread":"ì½ì§ ììì¼ë¡ íì","Maximum number of votes (from 2 to 10)":"ìµë í¬í ì (2ìì 10ê¹ì§)","Menu":"ë©ë´","Message Failed \xb7 Click to try again":"ë©ìì§ ì¤í¨ \xb7 ë¤ì ìëíë ¤ë©´ í´ë¦íì¸ì.","Message Failed \xb7 Unauthorized":"ë©ìì§ ì¤í¨ \xb7 ì¹ì¸ëì§ ìì","Message deleted":"ë©ìì§ê° ìì ëììµëë¤.","Message has been successfully flagged":"ë©ìì§ì íëê·¸ê° ì§ì ëììµëë¤.","Message pinned":"ë©ìì§ ííìµëë¤","Message was blocked by moderation policies":"ë©ìì§ê° ê´ë¦¬ ì ì±
ì ìí´ ì°¨ë¨ëììµëë¤.","Messages have been marked unread.":"ë©ìì§ê° ì½ì§ ììì¼ë¡ íìëììµëë¤.","Missing permissions to upload the attachment":"ì²¨ë¶ íì¼ì
3 ì
ë¡ëíë ¤ë©´ ê¶íì´ íìí©ëë¤","Multiple answers":"ë³µì ìëµ","Mute":"무ì","New":"ìë¡ì´","New Messages!":"ì ë©ìì§!","No chats here yetâ¦":"ìì§ ì±í
ì´ ììµëë¤...","No results found":"ê²ì ê²°ê³¼ê° ììµëë¤","Nobody will be able to vote in this poll anymore.":"ì´ í¬íì ë ì´ì ì무ë í¬íí ì ììµëë¤.","Nothing yet...":"ìì§ ì무ê²ë...","Ok":"íì¸","Open emoji picker":"ì´ëª¨í°ì½ ì í기 ì´ê¸°","Option already exists":"ìµì
ì´ ì´ë¯¸ ì¡´ì¬í©ëë¤","Options":"ìµì
","People matching":"ì¼ì¹íë ì¬ë","Pin":"í","Pinned by":"ííë ë¶:","Poll":"í¬í","Poll comments":"í¬í ëê¸","Poll options":"í¬í ìµì
","Poll results":"í¬í ê²°ê³¼","Question":"ì§ë¬¸","Quote":"ì¸ì©","Recording format is not supported and cannot be reproduced":"ë
¹ì íìì´ ì§ìëì§ ìì¼ë¯ë¡ ì¬ìí ì ììµëë¤","Reply":"ëµì¥","Reply to Message":"ë©ìì§ì ëµì¥","Search":"ì°¾ë¤","Searching...":"ìì...","See all options ({{count}})_other":"모ë ìµì
보기 ({{count}})","Select one":"íë ì í","Select one or more":"íë ì´ì ì í","Select up to {{count}}_other":"{{count}}ê°ê¹ì§ ì í","Send":"ë³´ë´ë¤","Send Anyway":"ì´ì¨ë ë³´ë´ê¸°","Send message request failed":"ë©ìì§ ë³´ë´ê¸° ìì² ì¤í¨","Sending...":"ë°°ìì¤...","Show all":"모ë 보기","Shuffle":"ì
í","Slow Mode ON":"ì¬ë¡ì° 모ë ì¼ì§","Some of the files will not be accepted":"ì¼ë¶ íì¼ì íì©ëì§ ìì ì ììµëë¤","Start typing to search":"ê²ìíë ¤ë©´ ì
ë ¥ì ììíì¸ì","Submit":"ì ì¶","Suggest an option":"ìµì
ì ì","Thinking...":"ìê° ì¤...","This message did not meet our content guidelines":"ì´ ë©ìì§ë ì½í
ì¸ ê°ì´ëë¼ì¸ì 충족íì§ ììµëë¤.","This message was deleted...":"ì´ ë©ìì§ë ìì ëììµëë¤...","Thread":"ì¤ë ë","To start recording, allow the camera access in your browser":"ë¸ë¼ì°ì ìì ì¹´ë©ë¼ ì¡ì¸ì¤ë¥¼ íì©íì¬ ë
¹ìì ììí©ëë¤","To start recording, allow the microphone access in your browser":"ë¸ë¼ì°ì ìì ë§ì´í¬ë¡í° ì¡ì¸ì¤ë¥¼ íì©íì¬ ë
¹ìì ììí©ëë¤","Type a number from 2 to 10":"2ìì 10 ì¬ì´ì ì«ì를 ì
ë ¥íì¸ì","Type your message":"ë©ìì§ ì
ë ¥","Unarchive":"ìì¹´ì´ë¸ í´ì ","Unmute":"ììê±° í´ì ","Unpin":"í í´ì ","Unread messages":"ì½ì§ ìì ë©ìì§","Unsupported attachment":"ì§ìëì§ ìë ì²¨ë¶ íì¼","Update your comment":"ëê¸ ì
ë°ì´í¸","Upload type: \\"{{ type }}\\" is not allowed":"ì
ë¡ë ì í: \\"{{ type }}\\"ì(ë) íì©ëì§ ììµëë¤.","User uploaded content":"ì¬ì©ì ì
ë¡ë ì½í
ì¸ ","View results":"ê²°ê³¼ 보기","View {{count}} comments_other":"{{count}}ê°ì ëê¸ ë³´ê¸°","Voice message":"ìì± ë©ìì§","Vote ended":"í¬í ì¢
ë£","Wait until all attachments have uploaded":"모ë ì²¨ë¶ íì¼ì´ ì
ë¡ëë ëê¹ì§ 기ë¤ë¦½ëë¤.","You":"ë¹ì ","You have no channels currently":"íì¬ ì±ëì´ ììµëë¤.","You\'ve reached the maximum number of files":"ìµë íì¼ ìì ëë¬íìµëë¤.","aria/Attachment":"ì²¨ë¶ íì¼","aria/Cancel Reply":"ëµì¥ ì·¨ì","aria/Cancel upload":"ì
ë¡ë ì·¨ì","aria/Channel list":"ì±ë 목ë¡","aria/Channel search results":"ì±ë ê²ì ê²°ê³¼","aria/Close thread":"ì¤ë ë ë«ê¸°","aria/Download attachment":"ì²¨ë¶ íì¼ ë¤ì´ë¡ë","aria/Emoji picker":"ì´ëª¨ì§ ì í기","aria/File input":"íì¼ ì
ë ¥","aria/File upload":"íì¼ ì
ë¡ë","aria/Image input":"ì´ë¯¸ì§ ì
ë ¥","aria/Load More Channels":"ë ë§ì ì±ë ë¶ë¬ì¤ê¸°","aria/Menu":"ë©ë´","aria/Message Options":"ë©ìì§ ìµì
","aria/Open Attachment Selector":"ì²¨ë¶ íì¼ ì í기 ì´ê¸°","aria/Open Message Actions Menu":"ë©ìì§ ì¡ì
ë©ë´ ì´ê¸°","aria/Open Reaction Selector":"ë°ì ì í기 ì´ê¸°","aria/Open Thread":"ì¤ë ë ì´ê¸°","aria/Reaction list":"ë°ì 목ë¡","aria/Remove attachment":"ì²¨ë¶ íì¼ ì ê±°","aria/Retry upload":"ì
ë¡ë ë¤ì ìë","aria/Search results":"ê²ì ê²°ê
3³¼","aria/Search results header filter button":"ê²ì ê²°ê³¼ í¤ë íí° ë²í¼","aria/Send":"ë³´ë´ê¸°","aria/Stop AI Generation":"AI ìì± ì¤ì§","ban-command-args":"[@ì¬ì©ìì´ë¦] [í
ì¤í¸]","ban-command-description":"ì¬ì©ì를 ì°¨ë¨","giphy-command-args":"[í
ì¤í¸]","giphy-command-description":"ì±ëì 무ìì GIF ê²ì","live":"ë¼ì´ë¸","mute-command-args":"[@ì¬ì©ìì´ë¦]","mute-command-description":"ì¬ì©ì ììê±°","replyCount_one":"ëµì¥ 1ê°","replyCount_other":"{{ count }} ëµì¥","search-results-header-filter-source-button-label--channels":"ì±ë","search-results-header-filter-source-button-label--messages":"ë©ìì§","search-results-header-filter-source-button-label--users":"ì¬ì©ì","searchResultsCount_one":"1ê°ì ê²°ê³¼","searchResultsCount_other":"{{ count }}ê° ê²°ê³¼","this content could not be displayed":"ì´ ì½í
ì¸ ë¥¼ íìí ì ììµëë¤","timestamp/DateSeparator":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/MessageTimestamp":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/PollVote":"{{ timestamp | timestampFormatter(format: MMM D [at] HH:mm) }}","timestamp/PollVoteTooltip":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/SystemMessage":"{{ timestamp | timestampFormatter(format: dddd L) }}","unban-command-args":"[@ì¬ì©ìì´ë¦]","unban-command-description":"ì¬ì©ì ì°¨ë¨ í´ì ","unmute-command-args":"[@ì¬ì©ìì´ë¦]","unmute-command-description":"ì¬ì©ì ììê±° í´ì ","unreadMessagesSeparatorText_other":"ì½ì§ ìì ë©ìì§ {{count}}ê°","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} ê·¸ë¦¬ê³ {{ moreCount }}ëª
ë","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} ê·¸ë¦¬ê³ {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} ê·¸ë¦¬ê³ {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }}ê° ë","{{ memberCount }} members":"{{ memberCount }}ëª
","{{ user }} has been muted":"{{ user }} ììê±°ëììµëë¤","{{ user }} has been unmuted":"{{ user }} ììê±°ê° í´ì ëììµëë¤","{{ user }} is typing...":"{{ user }}ì´(ê°) ì
ë ¥ ì¤ì
ëë¤...","{{ users }} and more are typing...":"{{ users }}ì(ê³¼) ë ë§ì ì¬ëë¤ì´ ì
ë ¥ ì¤ì
ëë¤...","{{ users }} and {{ user }} are typing...":"{{ users }}ì(ê³¼) {{ user }}ì´(ê°) ì
ë ¥ ì¤ì
ëë¤...","{{ watcherCount }} online":"{{ watcherCount }} ì¨ë¼ì¸","{{count}} unread_other":"{{count}} ì½ì§ ìì","{{count}} votes_other":"{{count}} í¬í","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 ë¶ì°©...","\uD83D\uDCCA {{createdBy}} created: {{ pollName}}":"\uD83D\uDCCA {{createdBy}}ì´(ê°) ìì±í¨: {{ pollName}}","\uD83D\uDCCA {{votedBy}} voted: {{pollOptionText}}":"\uD83D\uDCCA {{votedBy}}ì´(ê°) í¬íí¨: {{pollOptionText}}"}'),eR=JSON.parse('{"Add a comment":"Voeg een opmerking toe","Add an option":"Voeg een optie toe","All results loaded":"Alle resultaten geladen","Allow access to camera":"Toegang tot camera toestaan","Allow access to microphone":"Toegang tot microfoon toestaan","Allow comments":"Sta opmerkingen toe","Allow option suggestion":"Sta optie-suggesties toe","An error has occurred during recording":"Er is een fout opgetreden tijdens het opnemen","An error has occurred during the recording processing":"Er is een fout opgetreden tijdens de verwerking van de opname","Anonymous":"Anoniem","Anonymous poll":"Anonieme peiling","Archive":"Archief","Ask a question":"Stel een vraag","Attach files":"Bijlage toevoegen","Cancel":"Annuleer","Cannot seek in the recording":"Kan niet zoeken in de opname","Channel Missing":"Kanaal niet gevonden","Close":"Sluit","Close emoji picker":"Sluit de emoji-kiezer","Commands matching":"Bijpassende opdrachten","Connection failure, reconnecting now...":"Verbindingsfout, opnieuw verbinden...","Create":"Maak","Create poll":"Maak peiling","Delete":"Verwijder","Delivered":"Afgeleverd","Download attachment {{ name }}":"Bijlage {{ name }} downloaden","Drag your files here":"Sleep je bestanden hier naartoe","Drag your files here to add to your post":"Sleep je bestanden hier naartoe om aan je bericht toe te voegen","Edit Message":"Bericht bewerken","Edit message request failed":"Verzoek om bericht bewerken mislukt","Edited":"Bewerkt","Emoji matching":"Emoji-overeenkomsten","Empty message...":"Leeg bericht...","End":"Einde","End vote":"Einde stem","Error adding flag":"Fout bij toevoegen van vlag","Error c
3onnecting to chat, refresh the page to try again.":"Fout bij het verbinden, ververs de pagina om nogmaals te proberen","Error deleting message":"Fout bij verwijderen van bericht","Error fetching reactions":"Fout bij het laden van reacties","Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.":"Fout bij markeren van bericht als ongelezen. Kan geen oudere ongelezen berichten markeren dan de nieuwste 100 kanaalberichten.","Error muting a user ...":"Fout bij het muten van de gebruiker","Error pinning message":"Fout bij vastzetten van bericht","Error removing message pin":"Fout bij verwijderen van berichtpin","Error reproducing the recording":"Fout bij het afspelen van de opname","Error starting recording":"Fout bij het starten van de opname","Error unmuting a user ...":"Fout bij het unmuten van de gebruiker","Error uploading attachment":"Fout bij het uploaden van de bijlage","Error uploading file":"Fout bij uploaden bestand","Error uploading image":"Fout bij uploaden afbeelding","Error \xb7 Unsent":"Fout \xb7 niet verzonden","Error: {{ errorMessage }}":"Fout: {{ errorMessage }}","Failed to jump to the first unread message":"Niet gelukt om naar het eerste ongelezen bericht te springen","Failed to mark channel as read":"Kanaal kon niet als gelezen worden gemarkeerd","Failed to play the recording":"Kan de opname niet afspelen","File":"Bestand","File is too large: {{ size }}, maximum upload size is {{ limit }}":"Bestand is te groot: {{ size }}, maximale uploadgrootte is {{ limit }}","Flag":"Markeer","Generating...":"Genereren...","Latest Messages":"Laatste berichten","Load more":"Meer laden","Mark as unread":"Markeren als ongelezen","Maximum number of votes (from 2 to 10)":"Maximaal aantal stemmen (van 2 tot 10)","Menu":"Menu","Message Failed \xb7 Click to try again":"Bericht mislukt, klik om het nogmaals te proberen","Message Failed \xb7 Unauthorized":"Bericht mislukt, ongeautoriseerd","Message deleted":"Bericht verwijderd","Message has been successfully flagged":"Bericht is succesvol gemarkeerd","Message pinned":"Bericht vastgezet","Message was blocked by moderation policies":"Bericht is geblokkeerd door moderatiebeleid","Messages have been marked unread.":"Berichten zijn gemarkeerd als ongelezen.","Missing permissions to upload the attachment":"Missende toestemmingen om de bijlage te uploaden","Multiple answers":"Meerdere antwoorden","Mute":"Dempen","New":"Nieuwe","New Messages!":"Nieuwe Berichten!","No chats here yetâ¦":"Nog geen chats hier...","No results found":"Geen resultaten gevonden","Nobody will be able to vote in this poll anymore.":"Niemand kan meer stemmen in deze peiling.","Nothing yet...":"Nog niets ...","Ok":"Ok\xe9","Open emoji picker":"Open emojipicker","Option already exists":"Optie bestaat al","Options":"Opties","People matching":"Mensen die matchen","Pin":"Pin","Pinned by":"Vastgemaakt door","Poll":"Peiling","Poll comments":"Peiling opmerkingen","Poll options":"Peiling opties","Poll results":"Peiling resultaten","Question":"Vraag","Quote":"Citeer","Recording format is not supported and cannot be reproduced":"Opnameformaat wordt niet ondersteund en kan niet worden gereproduceerd","Reply":"Antwoord","Reply to Message":"Antwoord op bericht","Search":"Zoeken","Searching...":"Zoeken...","See all options ({{count}})_one":"Bekijk alle opties ({{count}})","See all options ({{count}})_other":"Bekijk alle opties ({{count}})","Select one":"Selecteer er een","Select one or more":"Selecteer een of meer","Select up to {{count}}_one":"Selecteer tot {{count}}","Select up to {{count}}_other":"Selecteer tot {{count}}","Send":"Verstuur","Send Anyway":"Toch versturen","Send message request failed":"Verzoek om bericht te verzenden mislukt","Sending...":"Aan het verzenden...","Show all":"Toon alles","Shuffle":"Schudden","Slow Mode ON":"Langzame modus aan","Some of the files will not be accepted":"Sommige bestanden zullen niet worden geaccepteerd","Start typing to search":"Begin met typen om te zoeken","Submit":"Versturen","Suggest an option":"Stel een optie voor","Thinking...":"Denken...","This message did n
3ot meet our content guidelines":"Dit bericht voldeed niet aan onze inhoudsrichtlijnen","This message was deleted...":"Dit bericht was verwijderd","Thread":"Draadje","To start recording, allow the camera access in your browser":"Om te beginnen met opnemen, sta toegang tot de camera toe in uw browser","To start recording, allow the microphone access in your browser":"Om te beginnen met opnemen, sta toegang tot de microfoon toe in uw browser","Type a number from 2 to 10":"Typ een getal van 2 tot 10","Type your message":"Type je bericht","Unarchive":"Uit archief halen","Unmute":"Dempen opheffen","Unpin":"Losmaken","Unread messages":"Ongelezen berichten","Unsupported attachment":"Niet-ondersteunde bijlage","Update your comment":"Werk je opmerking bij","Upload type: \\"{{ type }}\\" is not allowed":"Uploadtype: \\"{{ type }}\\" is niet toegestaan","User uploaded content":"Gebruikersge\xfcploade inhoud","View results":"Bekijk resultaten","View {{count}} comments_one":"Bekijk {{count}} opmerkingen","View {{count}} comments_other":"Bekijk {{count}} opmerkingen","Voice message":"Spraakbericht","Vote ended":"Stemmen be\xebindigd","Wait until all attachments have uploaded":"Wacht tot alle bijlagen zijn ge\xfcpload","You":"Jij","You have no channels currently":"Er zijn geen chats beschikbaar","You\'ve reached the maximum number of files":"Je hebt het maximale aantal bestanden bereikt","aria/Attachment":"Bijlage","aria/Cancel Reply":"Antwoord annuleren","aria/Cancel upload":"Upload annuleren","aria/Channel list":"Kanaallijst","aria/Channel search results":"Zoekresultaten voor kanalen","aria/Close thread":"Draad sluiten","aria/Download attachment":"Bijlage downloaden","aria/Emoji picker":"Emoji kiezer","aria/File input":"Bestandsinvoer","aria/File upload":"Bestand uploaden","aria/Image input":"Afbeelding invoeren","aria/Load More Channels":"Meer kanalen laden","aria/Menu":"Menu","aria/Message Options":"Berichtopties","aria/Open Attachment Selector":"Open bijlage selector","aria/Open Message Actions Menu":"Menu voor berichtacties openen","aria/Open Reaction Selector":"Reactiekiezer openen","aria/Open Thread":"Draad openen","aria/Reaction list":"Reactielijst","aria/Remove attachment":"Bijlage verwijderen","aria/Retry upload":"Upload opnieuw proberen","aria/Search results":"Zoekresultaten","aria/Search results header filter button":"Zoekresultaten header filter knop","aria/Send":"Verzenden","aria/Stop AI Generation":"AI-generatie stoppen","ban-command-args":"[@gebruikersnaam] [tekst]","ban-command-description":"Een gebruiker verbannen","giphy-command-args":"[tekst]","giphy-command-description":"Plaats een willekeurige gif in het kanaal","live":"live","mute-command-args":"[@gebruikersnaam]","mute-command-description":"Een gebruiker dempen","replyCount_one":"1 antwoord","replyCount_other":"{{ count }} antwoorden","search-results-header-filter-source-button-label--channels":"kanalen","search-results-header-filter-source-button-label--messages":"berichten","search-results-header-filter-source-button-label--users":"gebruikers","searchResultsCount_one":"1 resultaat","searchResultsCount_other":"{{ count }} resultaten","this content could not be displayed":"Deze inhoud kan niet weergegeven worden","timestamp/DateSeparator":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/MessageTimestamp":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/PollVote":"{{ timestamp | timestampFormatter(format: MMM D [at] HH:mm) }}","timestamp/PollVoteTooltip":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/SystemMessage":"{{ timestamp | timestampFormatter(format: dddd L) }}","unban-command-args":"[@gebruikersnaam]","unban-command-description":"Een gebruiker debannen","unmute-command-args":"[@gebruikersnaam]","unmute-command-description":"Een gebruiker niet meer dempen","unreadMessagesSeparatorText_one":"1 ongelezen bericht","unreadMessagesSeparatorText_other":"{{count}} ongelezen berichten","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} en {{ moreCount }} meer","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} en {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} en {{ secondUser }}","{{ imageCount }} more":"+{{ imageCount }}","{{ memberCount }} members":"{{ memberCount }}
3 deelnemers","{{ user }} has been muted":"{{ user }} is gedempt","{{ user }} has been unmuted":"{{ user }} is niet meer gedempt","{{ user }} is typing...":"{{ user }} is aan het typen...","{{ users }} and more are typing...":"{{ users }} en meer zijn aan het typen...","{{ users }} and {{ user }} are typing...":"{{ users }} en {{ user }} zijn aan het typen...","{{ watcherCount }} online":"{{ watcherCount }} online","{{count}} unread_one":"{{count}} ongelezen","{{count}} unread_other":"{{count}} ongelezen","{{count}} votes_one":"{{count}} stem","{{count}} votes_other":"{{count}} stemmen","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Bijlage...","\uD83D\uDCCA {{createdBy}} created: {{ pollName}}":"\uD83D\uDCCA {{createdBy}} heeft gemaakt: {{ pollName}}","\uD83D\uDCCA {{votedBy}} voted: {{pollOptionText}}":"\uD83D\uDCCA {{votedBy}} heeft gestemd: {{pollOptionText}}"}'),ej=JSON.parse('{"Add a comment":"Adicionar um coment\xe1rio","Add an option":"Adicionar uma op\xe7\xe3o","All results loaded":"Todos os resultados carregados","Allow access to camera":"Permitir acesso \xe0 c\xe2mera","Allow access to microphone":"Permitir acesso ao microfone","Allow comments":"Permitir coment\xe1rios","Allow option suggestion":"Permitir sugest\xe3o de op\xe7\xe3o","An error has occurred during recording":"Ocorreu um erro durante a grava\xe7\xe3o","An error has occurred during the recording processing":"Ocorreu um erro durante o processamento da grava\xe7\xe3o","Anonymous":"An\xf4nimo","Anonymous poll":"Enquete an\xf4nima","Archive":"Arquivar","Ask a question":"Fa\xe7a uma pergunta","Attach files":"Anexar arquivos","Cancel":"Cancelar","Cannot seek in the recording":"N\xe3o \xe9 poss\xedvel buscar na grava\xe7\xe3o","Channel Missing":"Canal ausente","Close":"Fechar","Close emoji picker":"Fechar seletor de emoji","Commands matching":"Comandos correspondentes","Connection failure, reconnecting now...":"Falha de conex\xe3o, reconectando agora...","Create":"Criar","Create poll":"Criar enquete","Delete":"Excluir","Delivered":"Entregue","Download attachment {{ name }}":"Baixar anexo {{ name }}","Drag your files here":"Arraste seus arquivos aqui","Drag your files here to add to your post":"Arraste seus arquivos aqui para adicionar ao seu post","Edit Message":"Editar Mensagem","Edit message request failed":"O pedido de edi\xe7\xe3o da mensagem falhou","Edited":"Editada","Emoji matching":"Emoji correspondente","Empty message...":"Mensagem vazia...","End":"Fim","End vote":"Encerrar vota\xe7\xe3o","Error adding flag":"Erro ao reportar","Error connecting to chat, refresh the page to try again.":"Erro ao conectar ao bate-papo, atualize a p\xe1gina para tentar novamente.","Error deleting message":"Erro ao deletar mensagem","Error fetching reactions":"Erro ao carregar rea\xe7\xf5es","Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.":"Erro ao marcar a mensagem como n\xe3o lida. N\xe3o \xe9 poss\xedvel marcar mensagens n\xe3o lidas mais antigas do que as 100 mensagens mais recentes do canal.","Error muting a user ...":"Erro ao silenciar um usu\xe1rio...","Error pinning message":"Erro ao fixar mensagem","Error removing message pin":"Erro ao remover o PIN da mensagem","Error reproducing the recording":"Erro ao reproduzir a grava\xe7\xe3o","Error starting recording":"Erro ao iniciar a grava\xe7\xe3o","Error unmuting a user ...":"Erro ao ativar o som de um usu\xe1rio...","Error uploading attachment":"Erro ao carregar o anexo","Error uploading file":"Erro ao enviar arquivo","Error uploading image":"Erro ao carregar a imagem","Error \xb7 Unsent":"Erro \xb7 N\xe3o enviado","Error: {{ errorMessage }}":"Erro: {{ errorMessage }}","Failed to jump to the first unread message":"Falha ao pular para a primeira mensagem n\xe3o lida","Failed to mark channel as read":"Falha ao marcar o canal como lido","Failed to play the recording":"Falha ao reproduzir a grava\xe7\xe3o","File":"Arquivo","File is too large: {{ size }}, maximum upload size is {{ limit }}":"O arquivo \xe9 muito grande: {{ size }}, o tamanho m\xe1ximo de upload \xe9 {{ limit }}","Flag":"Reportar","Generating...":"Gerando...","Latest Messages":"Mensagens mais recentes","Load more":"Carregar mais","Mark as unread":"Marcar como n\xe3o lida","Maximum number of votes (from 2 to 10)":"N\xfamero m\xe1ximo de votos (de 2 a 10)","Menu":"Menu","Message Failed \xb7 Click to try again":"A mensagem falhou \xb7 Clique para tentar novamente","Message Failed \xb7 Unauthorized":"A mensagem falhou \xb7
3n\xe3o autorizado","Message deleted":"Mensagem apagada","Message has been successfully flagged":"A mensagem foi reportada com sucesso","Message pinned":"Mensagem fixada","Message was blocked by moderation policies":"A mensagem foi bloqueada pelas pol\xedticas de modera\xe7\xe3o","Messages have been marked unread.":"Mensagens foram marcadas como n\xe3o lidas.","Missing permissions to upload the attachment":"Faltando permiss\xf5es para enviar o anexo","Multiple answers":"M\xfaltiplas respostas","Mute":"Silenciar","New":"Novo","New Messages!":"Novas Mensagens!","No chats here yetâ¦":"Ainda n\xe3o h\xe1 conversas aqui...","No results found":"Nenhum resultado encontrado","Nobody will be able to vote in this poll anymore.":"Ningu\xe9m mais poder\xe1 votar nesta pesquisa.","Nothing yet...":"Nada ainda...","Ok":"Ok","Open emoji picker":"Abrir seletor de emoji","Option already exists":"Op\xe7\xe3o j\xe1 existe","Options":"Op\xe7\xf5es","People matching":"Pessoas correspondentes","Pin":"Fixar","Pinned by":"Fixado por","Poll":"Enquete","Poll comments":"Coment\xe1rios da pesquisa","Poll options":"Op\xe7\xf5es da pesquisa","Poll results":"Resultados da pesquisa","Question":"Pergunta","Quote":"Citar","Recording format is not supported and cannot be reproduced":"Formato de grava\xe7\xe3o n\xe3o \xe9 suportado e n\xe3o pode ser reproduzido","Reply":"Responder","Reply to Message":"Responder \xe0 mensagem","Search":"Buscar","Searching...":"Buscando...","See all options ({{count}})_many":"Ver todas as op\xe7\xf5es ({{count}})","See all options ({{count}})_one":"Ver todas as op\xe7\xf5es ({{count}})","See all options ({{count}})_other":"Ver todas as op\xe7\xf5es ({{count}})","Select one":"Selecionar um","Select one or more":"Selecionar um ou mais","Select up to {{count}}_many":"Selecionar at\xe9 {{count}}","Select up to {{count}}_one":"Selecionar at\xe9 {{count}}","Select up to {{count}}_other":"Selecionar at\xe9 {{count}}
3","Send":"Enviar","Send Anyway":"Enviar de qualquer forma","Send message request failed":"O pedido de envio da mensagem falhou","Sending...":"Enviando...","Show all":"Mostrar tudo","Shuffle":"Embaralhar","Slow Mode ON":"Modo lento LIGADO","Some of the files will not be accepted":"Alguns arquivos n\xe3o ser\xe3o aceitos","Start typing to search":"Comece a digitar para pesquisar","Submit":"Enviar","Suggest an option":"Sugerir uma op\xe7\xe3o","Thinking...":"Pensando...","This message did not meet our content guidelines":"Esta mensagem n\xe3o corresponde \xe0s nossas diretrizes de conte\xfado","This message was deleted...":"Esta mensagem foi exclu\xedda...","Thread":"Fio","To start recording, allow the camera access in your browser":"Para come\xe7ar a gravar, permita o acesso \xe0 c\xe2mera no seu navegador","To start recording, allow the microphone access in your browser":"Para come\xe7ar a gravar, permita o acesso ao microfone no seu navegador","Type a number from 2 to 10":"Digite um n\xfamero de 2 a 10","Type your message":"Digite sua mensagem","Unarchive":"Desarquivar","Unmute":"Ativar som","Unpin":"Desfixar","Unread messages":"Mensagens n\xe3o lidas","Unsupported attachment":"Anexo n\xe3o suportado","Update your comment":"Atualizar seu coment\xe1rio","Upload type: \\"{{ type }}\\" is not allowed":"Tipo de upload: \\"{{ type }}\\" n\xe3o \xe9 permitido","User uploaded content":"Conte\xfado enviado pelo usu\xe1rio","View results":"Ver resultados","View {{
3count}} comments_many":"Ver {{count}} coment\xe1rios","View {{count}} comments_one":"Ver {{count}} coment\xe1rio","View {{count}} comments_other":"Ver {{count}} coment\xe1rios","Voice message":"Mensagem de voz","Vote ended":"Vota\xe7\xe3o encerrada","Wait until all attachments have uploaded":"Espere at\xe9 que todos os anexos tenham sido carregados","You":"Voc\xea","You have no channels currently":"Voc\xea n\xe3o tem canais atualmente","You\'ve reached the maximum number of files":"Voc\xea atingiu o n\xfamero m\xe1ximo de arquivos","aria/Attachment":"Anexo","aria/Cancel Reply":"Cancelar resposta","aria/Cancel upload":"Cancelar upload","aria/Channel list":"Lista de canais","aria/Channel search results":"Resultados de pesquisa de canais","aria/Close thread":"Fechar t\xf3pico","aria/Download attachment":"Baixar anexo","aria/Emoji picker":"Seletor de emojis","aria/File input":"Entrada de arquivo","aria/File upload":"Carregar arquivo","aria/Image input":"Entrada de imagem","aria/Load More Channels":"Carregar mais canais","aria/Menu":"Menu","aria/Message Options":"Op\xe7\xf5es de mensagem","aria/Open Attachment Selector":"Abrir seletor de anexos","aria/Open Message Actions Menu":"Abrir menu de a\xe7\xf5es de mensagem","aria/Open Reaction Selector":"Abrir seletor de rea\xe7\xf5es","aria/Open Thread":"Abrir t\xf3pico","aria/Reaction list":"Lista de rea\xe7\xf5es","aria/Remove attachment":"Remover anexo","aria/Retry upload":"Tentar upload novamente","aria/Search results":"Resultados da pesquisa","aria/Search results header filter button":"Bot\xe3o de filtro do cabe\xe7alho dos resultados da pesquisa","aria/Send":"Enviar","aria/Stop AI Generation":"Parar gera\xe7\xe3o de IA","ban-command-args":"[@nomedeusu\xe1rio] [texto]","ban-command-description":"Banir um usu\xe1rio","giphy-command-args":"[texto]","giphy-command-description":"Postar um gif aleat\xf3rio no canal","live":"ao vivo","mute-command-args":"[@nomedeusu\xe1rio]","mute-command-description":"Silenciar um usu\xe1rio","replyCount_many":"{{ count }} respostas","replyCount_one":"1 resposta","replyCount_other":"{{ count }} respostas","search-results-header-filter-source-button-label--channels":"canais","search-results-header-filter-source-button-label--messages":"mensagens","search-results-header-filter-source-button-label--users":"usu\xe1rios","searchResultsCount_many":"{{ count }} resultados","searchResultsCount_one":"1 resultado","searchResultsCount_other":"{{ count }} resultados","this content could not be displayed":"este conte\xfado n\xe3o p\xf4de ser exibido","timestamp/DateSeparator":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/MessageTimestamp":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/PollVote":"{{ timestamp | timestampFormatter(format: MMM D [at] HH:mm) }}","timestamp/PollVoteTooltip":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/SystemMessage":"{{ timestamp | timestampFormatter(format: dddd L) }}","unban-command-args":"[@nomedeusu\xe1rio]","unban-command-description":"Desbanir um usu\xe1rio","unmute-command-args":"[@nomedeusu\xe1rio]","unmute-command-description":"Retirar o silenciamento de um usu\xe1rio","unreadMessagesSeparatorText_many":"{{count}} mensagens n\xe3o lidas","unreadMessagesSeparatorText_one":"1 mensagem n\xe3o lida","unreadMessagesSeparatorText_other":"{{count}} mensagens n\xe3o lidas","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} e mais {{ moreCount }}","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} e {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} e {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} mais","{{ memberCount }} members":"{{ memberCount }} membros","{{ user }} has been muted":"{{ user }} foi silenciado","{{ user }} has been unmuted":"{{ user }} foi reativado","{{ user }} is typing...":"{{ user }} est\xe1 digitando...","{{ users }} and more are typing...":"{{ users }} e mais est\xe3o digitando...","{{ users }} and {{ user }} are typing...":"{{ users }} e {{ user }} est\xe3o digitando...","{{ watcherCount }} online":"{{ watcherCount }} online","{{count}} unread_many":"{{count}} n\xe3o lidos","{{count}}
3 unread_one":"{{count}} n\xe3o lido","{{count}} unread_other":"{{count}} n\xe3o lidos","{{count}} votes_many":"{{count}} votos","{{count}} votes_one":"{{count}} voto","{{count}} votes_other":"{{count}} votos","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Anexo...","\uD83D\uDCCA {{createdBy}} created: {{ pollName}}":"\uD83D\uDCCA {{createdBy}} criou: {{ pollName}}","\uD83D\uDCCA {{votedBy}} voted: {{pollOptionText}}":"\uD83D\uDCCA {{votedBy}} votou: {{pollOptionText}}"}'),eN=JSON.parse('{"Add a comment":"ÐобавиÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий","Add an option":"ÐобавиÑÑ Ð²Ð°ÑианÑ","All results loaded":"ÐÑе ÑезÑлÑÑаÑÑ Ð·Ð°Ð³ÑÑженÑ","Allow access to camera":"РазÑеÑиÑÑ Ð´Ð¾ÑÑÑп к камеÑе","Allow access to microphone":"РазÑеÑиÑÑ Ð´Ð¾ÑÑÑп к микÑоÑонÑ","Allow comments":"РазÑеÑиÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑии","Allow option suggestion":"РазÑеÑиÑÑ Ð¿Ñедложение ваÑианÑов","An error has occurred during recording":"ÐÑоизоÑла оÑибка во вÑÐµÐ¼Ñ Ð·Ð°Ð¿Ð¸Ñи","An error has occurred during the recording processing":"ÐÑоизоÑла оÑибка во вÑÐµÐ¼Ñ Ð¾Ð±ÑабоÑки запиÑи","Anonymous":"Ðноним","Anonymous poll":"ÐнонимнÑй опÑоÑ","Archive":"AÑÑ
ивиÑоваÑÑ","Ask a question":"ÐадаÑÑ Ð²Ð¾Ð¿ÑоÑ","Attach files":"ÐÑикÑепиÑÑ ÑайлÑ","Cancel":"ÐÑмена","Cannot seek in the recording":"Ðевозможно оÑÑÑеÑÑвиÑÑ Ð¿Ð¾Ð¸Ñк в запиÑи","Channel Missing":"Ðанал не найден","Close":"ÐакÑÑÑÑ","Close emoji picker":"ÐакÑÑÑÑ Ð¾ÐºÐ½Ð¾ вÑбоÑа Ñмайлов","Commands matching":"СооÑвеÑÑÑвие команд","Connection failure, reconnecting now...":"ÐÑибка ÑоединениÑ, пеÑеподклÑÑение...","Create":"СоздаÑÑ","Create poll":"СоздаÑÑ Ð¾Ð¿ÑоÑ","Delete":"УдалиÑÑ","Delivered":"ÐÑпÑавлено","Download attachment {{ name }}":"СкаÑаÑÑ Ð²Ð»Ð¾Ð¶ÐµÐ½Ð¸Ðµ {{ name }}","Drag your files here":"ÐеÑеÑаÑиÑе ваÑи ÑÐ°Ð¹Ð»Ñ ÑÑда","Drag your files here to add to your post":"ÐеÑеÑаÑиÑе ваÑи ÑÐ°Ð¹Ð»Ñ ÑÑда, ÑÑÐ¾Ð±Ñ Ð´Ð¾Ð±Ð°Ð²Ð¸ÑÑ Ð¸Ñ
в Ð²Ð°Ñ Ð¿Ð¾ÑÑ","Edit Message":"РедакÑиÑоваÑÑ ÑообÑение","Edit message request failed":"Ðе ÑдалоÑÑ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ Ð·Ð°Ð¿ÑÐ¾Ñ ÑообÑениÑ","Edited":"ÐÑÑедакÑиÑовано","Emoji matching":"СооÑвеÑÑÑвие Ñмодзи","Empty message...":"ÐÑÑÑое ÑообÑение...","End":"ÐонеÑ","End vote":"ÐаконÑиÑÑ Ð³Ð¾Ð»Ð¾Ñование","Error adding flag":"ÐÑибка Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ñлага","Error connecting to chat, refresh the page to try again.":"ÐÑибка подклÑÑÐµÐ½Ð¸Ñ Ðº ÑаÑÑ, обновиÑе ÑÑÑаниÑÑ ÑÑÐ¾Ð±Ñ Ð¿Ð¾Ð¿ÑобоваÑÑ Ñнова.","Error deleting message":"ÐÑибка пÑи Ñдалении ÑообÑениÑ","Error fetching reactions":"ÐÑибка пÑи загÑÑзке ÑеакÑий","Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.":"ÐÑибка пÑи оÑмеÑке ÑообÑÐµÐ½Ð¸Ñ ÐºÐ°Ðº непÑоÑиÑанного. Ðевозможно оÑмеÑиÑÑ ÐºÐ°Ðº непÑоÑиÑаннÑе ÑообÑÐµÐ½Ð¸Ñ ÑÑаÑÑе поÑледниÑ
100 ÑообÑений в канале.","Error muting a user ...":"ÐÑибка оÑклÑÑÐµÐ½Ð¸Ñ Ñведомлений Ð¾Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ...","Error pinning message":"СообÑение об оÑибке пÑи закÑеплении","Error removing message pin":"ÐÑибка пÑи Ñдалении бÑлавки ÑообÑениÑ","Error reproducing the recording":"ÐÑибка воÑпÑÐ¾Ð¸Ð·Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð·Ð°Ð¿Ð¸Ñи","Error starting recording":"ÐÑибка пÑи запÑÑке запиÑи","Error unmuting a user ...":"ÐÑибка вклÑÑÐµÐ½Ð¸Ñ Ñведомлений...","Error uploading attachment":"ÐÑибка пÑи загÑÑзке вложениÑ","Error uploading file":"ÐÑибка пÑи загÑÑзке Ñайла","Error uploading image":"ÐÑибка загÑÑзки изобÑажениÑ","Error \xb7 Unsent":"ÐÑибка \xb7 Ðе оÑпÑавлено","Error: {{ errorMessage }}":"ÐÑибка: {{ errorMessage }}","Failed to jump to the first unread message":"Ðе ÑдалоÑÑ Ð¿ÐµÑейÑи Ð
3º пеÑÐ²Ð¾Ð¼Ñ Ð½ÐµÐ¿ÑоÑиÑÐ°Ð½Ð½Ð¾Ð¼Ñ ÑообÑениÑ","Failed to mark channel as read":"Ðе ÑдалоÑÑ Ð¿Ð¾Ð¼ÐµÑиÑÑ ÐºÐ°Ð½Ð°Ð» как пÑоÑиÑаннÑй","Failed to play the recording":"Ðе ÑдалоÑÑ Ð²Ð¾ÑпÑоизвеÑÑи запиÑÑ","File":"Файл","File is too large: {{ size }}, maximum upload size is {{ limit }}":"Файл ÑлиÑком болÑÑой: {{ size }}, макÑималÑнÑй ÑÐ°Ð·Ð¼ÐµÑ Ð·Ð°Ð³ÑÑзки ÑоÑÑавлÑÐµÑ {{ limit }}","Flag":"ÐожаловаÑÑÑÑ","Generating...":"ÐенеÑиÑÑÑ...","Latest Messages":"ÐоÑледние ÑообÑениÑ","Load more":"ÐагÑÑзиÑÑ Ð±Ð¾Ð»ÑÑе","Mark as unread":"ÐÑмеÑиÑÑ ÐºÐ°Ðº непÑоÑиÑанное","Maximum number of votes (from 2 to 10)":"ÐакÑималÑное колиÑеÑÑво голоÑов (Ð¾Ñ 2 до 10)","Menu":"ÐенÑ","Message Failed \xb7 Click to try again":"ÐÑибка оÑпÑавки ÑообÑÐµÐ½Ð¸Ñ \xb7 ÐажмиÑе ÑÑÐ¾Ð±Ñ Ð¿Ð¾Ð²ÑоÑиÑÑ","Message Failed \xb7 Unauthorized":"ÐÑибка оÑпÑавки ÑообÑÐµÐ½Ð¸Ñ \xb7 ÐеавÑоÑизованнÑй","Message deleted":"СообÑение Ñдалено","Message has been successfully flagged":"Ðалоба на ÑообÑение бÑла пÑинÑÑа","Message pinned":"СообÑение закÑеплено","Message was blocked by moderation policies":"СообÑение бÑло заблокиÑовано модеÑаÑией","Messages have been marked unread.":"СообÑÐµÐ½Ð¸Ñ Ð±Ñли оÑмеÑÐµÐ½Ñ ÐºÐ°Ðº непÑоÑиÑаннÑе.","Missing permissions to upload the attachment":"ÐÑÑÑÑÑÑвÑÑÑ ÑазÑеÑÐµÐ½Ð¸Ñ Ð´Ð»Ñ Ð·Ð°Ð³ÑÑзки вложениÑ","Multiple answers":"ÐеÑколÑко оÑвеÑов","Mute":"ÐÑклÑÑиÑÑ ÑведомлениÑ","New":"ÐовÑе","New Messages!":"ÐовÑе ÑообÑениÑ!","No chats here yetâ¦":"ÐдеÑÑ ÐµÑе Ð½ÐµÑ ÑаÑов...","No results found":"РезÑлÑÑаÑÑ Ð½Ðµ найденÑ","Nobody will be able to vote in this poll anymore.":"ÐикÑо болÑÑе не ÑÐ¼Ð¾Ð¶ÐµÑ Ð³Ð¾Ð»Ð¾ÑоваÑÑ Ð² ÑÑом опÑоÑе.","Nothing yet...":"Ðока ниÑего неÑ...","Ok":"Ðк","Open emoji picker":"ÐÑкÑÑÑÑ Ð²ÑÐ±Ð¾Ñ Ñмайлов","Option already exists":"ÐаÑÐ¸Ð°Ð½Ñ Ñже ÑÑÑеÑÑвÑеÑ","Options":"ÐаÑианÑÑ","People matching":"СовпадаÑÑие лÑди","Pin":"ÐакÑепиÑÑ","Pinned by":"ÐакÑеплено","Poll":"ÐпÑоÑ","Poll comments":"ÐомменÑаÑии к опÑоÑÑ","Poll options":"ÐпÑии опÑоÑа","Poll results":"РезÑлÑÑаÑÑ Ð¾Ð¿ÑоÑа","Question":"ÐопÑоÑ","Quote":"ЦиÑиÑоваÑÑ","Recording format is not supported and cannot be reproduced":"ФоÑÐ¼Ð°Ñ Ð·Ð°Ð¿Ð¸Ñи не поддеÑживаеÑÑÑ Ð¸ не Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð²Ð¾ÑпÑоизведен","Reply":"ÐÑвеÑиÑÑ","Reply to Message":"ÐÑвеÑиÑÑ Ð½Ð° ÑообÑение","Search":"ÐоиÑк","Searching...":"ÐÑем...","See all options ({{count}})_few":"ÐоÑмоÑÑеÑÑ Ð²Ñе ваÑианÑÑ ({{count}})","See all options ({{count}})_many":"ÐоÑмоÑÑеÑÑ Ð²Ñе ваÑианÑÑ ({{count}})","See all options ({{count}})_one":"ÐоÑмоÑÑеÑÑ Ð²Ñе ваÑианÑÑ ({{count}})","See all options ({{count}})_other":"ÐоÑмоÑÑеÑÑ Ð²Ñе ваÑианÑÑ ({{count}})","Select one":"ÐÑбеÑиÑе один","Select one or more":"ÐÑбеÑиÑе один или неÑколÑко","Select up to {{count}}_few":"ÐÑбеÑиÑе до {{count}}","Select up to {{count}}_many":"ÐÑбеÑиÑе до {{count}}","Select up to {{count}}_one":"ÐÑбеÑиÑе до {{count}}","Select up to {{count}}_other":"ÐÑбеÑиÑе до {{count}}","Send":"ÐÑпÑавиÑÑ","Send Anyway":"Ðне вÑÑ Ñавно, оÑпÑавиÑÑ","Send message request failed":"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ Ð·Ð°Ð¿ÑÐ¾Ñ Ð½Ð° оÑпÑÐ°Ð²ÐºÑ ÑообÑениÑ","Sending...":"ÐÑпÑавка...","Show all":"ÐоказаÑÑ Ð²Ñе","Shuffle":"ÐеÑемеÑаÑÑ","Slow Mode ON":"ÐедленнÑй Ñежим вклÑÑен","Some of the files will not be accepted":"ÐекоÑоÑÑе ÑÐ°Ð¹Ð»Ñ Ð½Ðµ бÑдÑÑ Ð¿ÑинÑÑÑ","Start t
3yping to search":"ÐаÑниÑе вводиÑÑ Ð´Ð»Ñ Ð¿Ð¾Ð¸Ñка","Submit":"ÐÑпÑавиÑÑ","Suggest an option":"ÐÑедложиÑÑ Ð²Ð°ÑианÑ","Thinking...":"ÐÑмаÑ...","This message did not meet our content guidelines":"СообÑение не ÑооÑвеÑÑÑвÑÐµÑ Ð¿Ñавилам","This message was deleted...":"СообÑение бÑло Ñдалено...","Thread":"ÐеÑка","To start recording, allow the camera access in your browser":"ÐÐ»Ñ Ð½Ð°Ñала запиÑи ÑазÑеÑиÑе доÑÑÑп к камеÑе в ваÑем бÑаÑзеÑе","To start recording, allow the microphone access in your browser":"ÐÐ»Ñ Ð½Ð°Ñала запиÑи ÑазÑеÑиÑе доÑÑÑп к микÑоÑÐ¾Ð½Ñ Ð² ваÑем бÑаÑзеÑе","Type a number from 2 to 10":"ÐведиÑе ÑиÑло Ð¾Ñ 2 до 10","Type your message":"ÐаÑе ÑообÑение","Unarchive":"УдалиÑÑ Ð¸Ð· аÑÑ
ива","Unmute":"ÐклÑÑиÑÑ ÑведомлениÑ","Unpin":"ÐÑкÑепиÑÑ","Unread messages":"ÐепÑоÑиÑаннÑе ÑообÑениÑ","Unsupported attachment":"ÐеподдеÑживаемое вложение","Update your comment":"ÐбновиÑе Ð²Ð°Ñ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий","Upload type: \\"{{ type }}\\" is not allowed":"Тип загÑÑзки: \\"{{ type }}\\" не ÑазÑеÑен","User uploaded content":"ÐолÑзоваÑÐµÐ»Ñ Ð·Ð°Ð³ÑÑзил конÑенÑ","View results":"ÐоÑмоÑÑеÑÑ ÑезÑлÑÑаÑÑ","View {{count}} comments_few":"ÐÑоÑмоÑÑеÑÑ {{count}} комменÑаÑиев","View {{count}} comments_many":"ÐÑоÑмоÑÑеÑÑ {{count}} комменÑаÑиев","View {{count}} comments_one":"ÐÑоÑмоÑÑеÑÑ {{count}} комменÑаÑий","View {{count}} comments_other":"ÐÑоÑмоÑÑеÑÑ {{count}} комменÑаÑиев","Voice message":"ÐолоÑовое ÑообÑение","Vote ended":"ÐолоÑование завеÑÑено","Wait until all attachments have uploaded":"ÐодождиÑе, пока вÑе Ð²Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð·Ð°Ð³ÑÑзÑÑÑÑ","You":"ÐÑ","You have no channels currently":"У Ð²Ð°Ñ Ð½ÐµÑ ÐºÐ°Ð½Ð°Ð»Ð¾Ð² в даннÑй моменÑ","You\'ve reached the maximum number of files":"ÐÑ Ð´Ð¾ÑÑигли макÑималÑного колиÑеÑÑва Ñайлов","aria/Attachment":"Ðложение","aria/Cancel Reply":"ÐÑмениÑÑ Ð¾ÑвеÑ","aria/Cancel upload":"ÐÑмениÑÑ Ð·Ð°Ð³ÑÑзкÑ","aria/Channel list":"СпиÑок каналов","aria/Channel search results":"РезÑлÑÑаÑÑ Ð¿Ð¾Ð¸Ñка по каналам","aria/Close thread":"ÐакÑÑÑÑ ÑемÑ","aria/Download attachment":"СкаÑаÑÑ Ð²Ð»Ð¾Ð¶ÐµÐ½Ð¸Ðµ","aria/Emoji picker":"ÐÑÐ±Ð¾Ñ Ñмодзи","aria/File input":"Ðвод Ñайла","aria/File upload":"ÐагÑÑзка Ñайла","aria/Image input":"Ðвод изобÑажениÑ","aria/Load More Channels":"ÐагÑÑзиÑÑ Ð±Ð¾Ð»ÑÑе каналов","aria/Menu":"ÐенÑ","aria/Message Options":"ÐаÑамеÑÑÑ ÑообÑениÑ","aria/Open Attachment Selector":"ÐÑкÑÑÑÑ Ð²ÑÐ±Ð¾Ñ Ð²Ð»Ð¾Ð¶ÐµÐ½Ð¸Ð¹","aria/Open Message Actions Menu":"ÐÑкÑÑÑÑ Ð¼ÐµÐ½Ñ Ð´ÐµÐ¹ÑÑвий Ñ ÑообÑениÑми","aria/Open Reaction Selector":"ÐÑкÑÑÑÑ ÑелекÑÐ¾Ñ ÑеакÑий","aria/Open Thread":"ÐÑкÑÑÑÑ ÑемÑ","aria/Reaction list":"СпиÑок ÑеакÑий","aria/Remove attachment":"УдалиÑÑ Ð²Ð»Ð¾Ð¶ÐµÐ½Ð¸Ðµ","aria/Retry upload":"ÐовÑоÑиÑÑ Ð·Ð°Ð³ÑÑзкÑ","aria/Search results":"РезÑлÑÑаÑÑ Ð¿Ð¾Ð¸Ñка","aria/Search results header filter button":"Ðнопка ÑилÑÑÑа заголовка ÑезÑлÑÑаÑов поиÑка","aria/Send":"ÐÑпÑавиÑÑ","aria/Stop AI Generation":"ÐÑÑановиÑÑ Ð³ÐµÐ½ÐµÑаÑÐ¸Ñ ÐÐ","ban-command-args":"[@имÑполÑзоваÑелÑ] [ÑекÑÑ]","ban-command-description":"ÐаблокиÑоваÑÑ Ð¿Ð¾Ð»ÑзоваÑелÑ","giphy-command-args":"[ÑекÑÑ]","giphy-command-description":"ÐпÑбликоваÑÑ ÑлÑÑайнÑÑ GIF-анимаÑÐ¸Ñ Ð² канале","live":"РпÑÑмом ÑÑиÑе","mute-command-args":"[@имÑÐ
3¿Ð¾Ð»ÑзоваÑелÑ]","mute-command-description":"ÐÑклÑÑиÑÑ Ð¼Ð¸ÐºÑоÑон Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ","replyCount_few":"{{ count }} оÑвеÑов","replyCount_many":"{{ count }} оÑвеÑов","replyCount_one":"1 оÑвеÑ","replyCount_other":"{{ count }} оÑвеÑов","search-results-header-filter-source-button-label--channels":"каналÑ","search-results-header-filter-source-button-label--messages":"ÑообÑениÑ","search-results-header-filter-source-button-label--users":"полÑзоваÑели","searchResultsCount_few":"{{ count }} ÑезÑлÑÑаÑа","searchResultsCount_many":"{{ count }} ÑезÑлÑÑаÑов","searchResultsCount_one":"1 ÑезÑлÑÑаÑ","searchResultsCount_other":"{{ count }} ÑезÑлÑÑаÑов","this content could not be displayed":"ÐÑÐ¾Ñ ÐºÐ¾Ð½ÑÐµÐ½Ñ Ð½Ðµ Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¾ÑобÑажен в даннÑй моменÑ","timestamp/DateSeparator":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/MessageTimestamp":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/PollVote":"{{ timestamp | timestampFormatter(format: MMM D [at] HH:mm) }}","timestamp/PollVoteTooltip":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/SystemMessage":"{{ timestamp | timestampFormatter(format: dddd L) }}","unban-command-args":"[@имÑполÑзоваÑелÑ]","unban-command-description":"РазблокиÑоваÑÑ Ð¿Ð¾Ð»ÑзоваÑелÑ","unmute-command-args":"[@имÑполÑзоваÑелÑ]","unmute-command-description":"ÐклÑÑиÑÑ Ð¼Ð¸ÐºÑоÑон Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ","unreadMessagesSeparatorText_few":"1 непÑоÑиÑанное ÑообÑениÑ","unreadMessagesSeparatorText_many":"{{count}} непÑоÑиÑаннÑÑ
ÑообÑений","unreadMessagesSeparatorText_one":"1 непÑоÑиÑанное ÑообÑение","unreadMessagesSeparatorText_other":"{{count}} непÑоÑиÑаннÑÑ
ÑообÑений","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} и {{ moreCount }} еÑе","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} и {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} и {{ secondUser }}","{{ imageCount }} more":"ÐÑÑ {{ imageCount }}","{{ memberCount }} members":"{{ memberCount }} ÑÑаÑÑников","{{ user }} has been muted":"ÐÑ Ð¾ÑпиÑалиÑÑ Ð¾Ñ Ñведомлений Ð¾Ñ {{ user }}","{{ user }} has been unmuted":"Ð£Ð²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð¾Ñ {{ user }} бÑли вклÑÑенÑ","{{ user }} is typing...":"{{ user }} пеÑаÑаеÑ...","{{ users }} and more are typing...":"{{ users }} и дÑÑгие пеÑаÑаÑÑ...","{{ users }} and {{ user }} are typing...":"{{ users }} и {{ user }} пеÑаÑаÑÑ...","{{ watcherCount }} online":"{{ watcherCount }} в ÑеÑи","{{count}} unread_few":"{{count}} непÑоÑиÑаннÑÑ
","{{count}} unread_many":"{{count}} непÑоÑиÑаннÑÑ
","{{count}} unread_one":"{{count}} непÑоÑиÑанное","{{count}} unread_other":"{{count}} непÑоÑиÑаннÑÑ
","{{count}} votes_few":"{{count}} голоÑа","{{count}} votes_many":"{{count}} голоÑов","{{count}} votes_one":"{{count}} голоÑ","{{count}} votes_other":"{{count}} голоÑов","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Ðложение...","\uD83D\uDCCA {{createdBy}} created: {{ pollName}}":"\uD83D\uDCCA {{createdBy}} Ñоздал(а): {{ pollName}}","\uD83D\uDCCA {{votedBy}} voted: {{pollOptionText}}":"\uD83D\uDCCA {{votedBy}} пÑоголоÑовал(а): {{pollOptionText}}"}'),eI=JSON.parse('{"Add a comment":"Yorum ekle","Add an option":"Bir se\xe7enek ekle","All results loaded":"T\xfcm sonu\xe7lar y\xfcklendi","Allow access to camera":"Kameraya eriÅime izin ver","Allow access to microphone":"Mikrofona eriÅime izin ver","Allow comments":"Yorumlara izin ver","Allow option suggestion":"Se\xe7enek \xf6nerisine izin ver","An error has occurred during recording":"Kayıt sırasında bir hata oluÅtu","An error has occurred during the recording processing":"Kayıt iÅlemi sırasında bir hata oluÅtu","Anonymous":"Anonim","Anonymous poll":"Anonim anket","Archive":"ArÅivle","Ask a question":"Bir soru sor","Attach files":"Dosya ekle","Cancel":"İptal","Cannot seek in the recording":"Kayıtta arama yapılamıyor","Channel Missing":"Kanal bulunamıyor","Close":"Kapat","Close emoji picker":"Emoji se\xe7iciyi kapat","Commands matching":"EÅleÅen komutlar","Connection failure, reconnecting now...":"BaÄlantı hatası, tekrar baÄlanılıyor...","Create":"OluÅtur","Create poll":"Anket oluÅtur","Delete":"Sil","Delivered":"İletildi","Download attachment {{ name }}":"Ek {{ name }}\'i indir","Drag your files here":"Dosyalarınızı buraya s\xfcr\xfckleyin","Drag your files here to add to your post":"G\xf6nderinize eklemek i\xe7in dosyalarınızı buraya s\xfcr\xfckleyin","Edit Message":"Mesajı D\xfczenle","Edit message request failed":"Mesaj d\xfczenleme isteÄi baÅarısız oldu","Edited":"D\xfczenlendi","Emoji matching":"Emoji eÅleÅtirme","Empty message...":"BoÅ mesaj...","End":"Son","End vote":"Oyu bitir","Error adding flag":"Bayrak eklenirken hata oluÅtu","Error c
3onnecting to chat, refresh the page to try again.":"BaÄlantı hatası, sayfayı yenileyip tekrar deneyin.","Error deleting message":"Mesaj silinirken hata oluÅtu","Error fetching reactions":"Reaksiyonlar alınırken hata oluÅtu","Error marking message unread. Cannot mark unread messages older than the newest 100 channel messages.":"Mesajı okunmamıŠolarak iÅaretleme hatası. En yeni 100 kanal mesajından daha eski okunmamıŠmesajları iÅaretleme yapılamaz.","Error muting a user ...":"Kullanıcıyı sessize alırken hata oluÅtu ...","Error pinning message":"Mesaj sabitlenirken hata oluÅtu","Error removing message pin":"Mesaj PIN\'i kaldırılırken hata oluÅtu","Error reproducing the recording":"Kaydı yeniden \xfcretme hatası","Error starting recording":"Kayıt baÅlatılırken hata oluÅtu","Error unmuting a user ...":"Kullanıcının sesini a\xe7arken hata oluÅtu ...","Error uploading attachment":"Ek y\xfcklenirken hata oluÅtu","Error uploading file":"Dosya y\xfcklenirken hata oluÅtu","Error uploading image":"Resmi y\xfcklerken hata","Error \xb7 Unsent":"Hata \xb7 G\xf6nderilemedi","Error: {{ errorMessage }}":"Hata: {{ errorMessage }}","Failed to jump to the first unread message":"İlk okunmamıŠmesaja atlamada hata oluÅtu","Failed to mark channel as read":"Kanalı okundu olarak iÅaretleme baÅarısız oldu","Failed to play the recording":"Kayıt oynatılamadı","File":"Dosya","File is too large: {{ size }}, maximum upload size is {{ limit }}":"Dosya \xe7ok b\xfcy\xfck: {{ size }}, maksimum y\xfckleme boyutu {{ limit }}","Flag":"Bayrak","Generating...":"OluÅturuluyor...","Latest Messages":"Son Mesajlar","Load more":"Daha fazla y\xfckle","Mark as unread":"OkunmamıŠolarak iÅaretle","Maximum number of votes (from 2 to 10)":"Maksimum oy sayısı (2 ile 10 arası)","Menu":"Men\xfc","Message Failed \xb7 Click to try again":"Mesaj BaÅarısız \xb7 Tekrar denemek i\xe7in tıklayın","Message Failed \xb7 Unauthorized":"Mesaj BaÅarısız \xb7 Yetkisiz","Message deleted":"Mesaj silindi","Message has been successfully flagged":"Mesaj baÅarıyla bayraklandı","Message pinned":"Mesaj sabitlendi","Message was blocked by moderation policies":"Mesaj moderasyon politikaları tarafından engellendi","Messages have been marked unread.":"Mesajlar okunmamıŠolarak iÅaretlendi.","Missing permissions to upload the attachment":"Ek y\xfcklemek i\xe7in izinler eksik","Multiple answers":"\xc7oklu cevaplar","Mute":"Sessiz","New":"Yeni","New Messages!":"Yeni Mesajlar!","No chats here yetâ¦":"Hen\xfcz burada sohbet yok...","No results found":"Sonu\xe7 bulunamadı","Nobody will be able to vote in this poll anymore.":"Artık bu ankette kimse oy kullanamayacak.","Nothing yet...":"Åimdilik hi\xe7bir Åey...","Ok":"Tamam","Open emoji picker":"Emoji klavyesini a\xe7","Option already exists":"Se\xe7enek zaten mevcut","Options":"Se\xe7enekler","People matching":"EÅleÅen kiÅiler","Pin":"Sabitle","Pinned by":"Sabitleyen","Poll":"Anket","Poll comments":"Anket yorumları","Poll options":"Anket se\xe7enekleri","Poll results":"Anket sonu\xe7ları","Question":"Soru","Quote":"Alıntı","Recording format is not supported and cannot be reproduced":"Kayıt formatı desteklenmiyor ve \xe7oÄaltılamıyor","Reply":"Cevapla","Reply to Message":"Mesaja Cevapla","Search":"Arama","Searching...":"Aranıyor...","See all options ({{count}})_one":"T\xfcm se\xe7enekleri g\xf6ster ({{count}})","See all options ({{count}})_other":"T\xfcm se\xe7enekleri g\xf6ster ({{count}})","Select one":"Birini se\xe7in","Select one or more":"Bir veya daha fazlasını se\xe7in","Select up to {{count}}_one":"En fazla {{count}}\'yi se\xe7in","Select up to {{count}}_other":"En fazla {{count}}\'yi se\xe7in","Send":"G\xf6nder","Send Anyway":"Yine de g\xf6nder","Send message request failed":"Mesaj g\xf6nderme isteÄi baÅarısız oldu","Sending...":"G\xf6nderiliyor...","Show all":"T\xfcm\xfcn\xfc g\xf6ster","Shuffle":"KarıÅtır","Slow Mode ON":"YavaÅ Mod A\xe7ık","Some of the files will not be accepted":"Bazı dosyalar kabul edilmeyecek","Start typing to search":"Aramak i\xe7in yazmaya baÅlayın","Submit":"G\xf6nder","Suggest an option":"Bir se\xe7enek \xf6nerin","Thinking...":"D\xfcÅ\xfcn\xfcyor...","This message did n
3ot meet our content guidelines":"Bu mesaj i\xe7erik y\xf6nergelerimize uygun deÄil","This message was deleted...":"Bu mesaj silindi...","Thread":"Konu","To start recording, allow the camera access in your browser":"Kayıt yapmaya baÅlamak i\xe7in tarayıcınızda kameraya eriÅime izin verin","To start recording, allow the microphone access in your browser":"Kayıt yapmaya baÅlamak i\xe7in tarayıcınızda mikrofona eriÅime izin verin","Type a number from 2 to 10":"2 ile 10 arasında bir sayı yazın","Type your message":"Mesajınızı yazın","Unarchive":"ArÅivden \xe7ıkar","Unmute":"Sesini a\xe7","Unpin":"Sabitlemeyi kaldır","Unread messages":"OkunmamıŠmesajlar","Unsupported attachment":"Desteklenmeyen ek","Update your comment":"Yorumunuzu g\xfcncelleyin","Upload type: \\"{{ type }}\\" is not allowed":"Y\xfckleme t\xfcr\xfc: \\"{{ type }}\\" izin verilmez","User uploaded content":"Kullanıcı tarafından y\xfcklenen i\xe7erik","View results":"Sonu\xe7ları g\xf6r\xfcnt\xfcle","View {{count}} comments_one":"{{count}} yorumu g\xf6r\xfcnt\xfcle","View {{count}} comments_other":"{{count}} yorumu g\xf6r\xfcnt\xfcle","Voice message":"Sesli mesaj","Vote ended":"Oylama sona erdi","Wait until all attachments have uploaded":"T\xfcm ekler y\xfcklenene kadar bekleyin","You":"Sen","You have no channels currently":"Hen\xfcz kanalınız yok","You\'ve reached the maximum number of files":"Maksimum dosya sayısına ulaÅtınız","aria/Attachment":"Ek","aria/Cancel Reply":"Cevabı İptal Et","aria/Cancel upload":"Y\xfcklemeyi İptal Et","aria/Channel list":"Kanal listesi","aria/Channel search results":"Kanal arama sonu\xe7ları","aria/Close thread":"Konuyu kapat","aria/Download attachment":"Ek indir","aria/Emoji picker":"Emoji se\xe7ici","aria/File input":"Dosya giriÅi","aria/File upload":"Dosya y\xfckleme","aria/Image input":"Resim giriÅi","aria/Load More Channels":"Daha Fazla Kanal Y\xfckle","aria/Menu":"Men\xfc","aria/Message Options":"Mesaj Se\xe7enekleri","aria/Open Attachment Selector":"Ek Se\xe7iciyi A\xe7","aria/Open Message Actions Menu":"Mesaj İÅlemleri Men\xfcs\xfcn\xfc A\xe7","aria/Open Reaction Selector":"Tepki Se\xe7iciyi A\xe7","aria/Open Thread":"Konuyu A\xe7","aria/Reaction list":"Tepki listesi","aria/Remove attachment":"Eki kaldır","aria/Retry upload":"Y\xfcklemeyi Tekrar Dene","aria/Search results":"Arama sonu\xe7ları","aria/Search results header filter button":"Arama sonu\xe7ları baÅlık filtre d\xfcÄmesi","aria/Send":"G\xf6nder","aria/Stop AI Generation":"Yapay Zeka \xdcretimini Durdur","ban-command-args":"[@kullanıcıadı] [metin]","ban-command-description":"Bir kullanıcıyı yasakla","giphy-command-args":"[metin]","giphy-command-description":"Rastgele bir gif\'i kanala g\xf6nder","live":"canlı","mute-command-args":"[@kullanıcıadı]","mute-command-description":"Bir kullanıcının sesini kapat","replyCount_one":"1 cevap","replyCount_other":"{{ count }} cevap","search-results-header-filter-source-button-label--channels":"kanallar","search-results-header-filter-source-button-label--messages":"mesajlar","search-results-header-filter-source-button-label--users":"kullanıcılar","searchResultsCount_one":"1 sonu\xe7","searchResultsCount_other":"{{ count }} sonu\xe7","this content could not be displayed":"bu i\xe7erik g\xf6sterilemiyor","timestamp/DateSeparator":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/MessageTimestamp":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/PollVote":"{{ timestamp | timestampFormatter(format: MMM D [at] HH:mm) }}","timestamp/PollVoteTooltip":"{{ timestamp | timestampFormatter(calendar: true) }}","timestamp/SystemMessage":"{{ timestamp | timestampFormatter(format: dddd L) }}","unban-command-args":"[@kullanıcıadı]","unban-command-description":"Bir kullanıcının yasaÄını kaldır","unmute-command-args":"[@kullanıcıadı]","unmute-command-description":"Bir kullanıcının sesini a\xe7","unreadMessagesSeparatorText_one":"1 okunmamıŠmesaj","unreadMessagesSeparatorText_other":"{{count}} okunmamıŠmesaj","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} ve {{ moreCount }} daha","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} ve {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} ve {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} adet daha","{{ memberCount }} members":"{{ memberCount }} \xfcye","{{ user }} has been muted":"{{ user }} sessize alındı","{{ user }} has been unmuted":"{{ user }} sesi a\xe7ıldı","{{ user }} is typing...":"{{ user }} yazıyor...","{{ users }} and more are typing...":"{{ users }} ve diÄerleri yazıyor...","{{ users }} and {{ user }} are typing...":"{{ users }} ve {{ user }} yazıyor...","{{ watcherCount }} online":"{{ watcherCount }} \xe7evrimi\xe7i","{{count}}
3 unread_one":"{{count}} okunmamıÅ","{{count}} unread_other":"{{count}} okunmamıÅ","{{count}} votes_one":"{{count}} oy","{{count}} votes_other":"{{count}} oy","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Ek...","\uD83D\uDCCA {{createdBy}} created: {{ pollName}}":"\uD83D\uDCCA {{createdBy}} oluÅturdu: {{ pollName}}","\uD83D\uDCCA {{votedBy}} voted: {{pollOptionText}}":"\uD83D\uDCCA {{votedBy}} oy verdi: {{pollOptionText}}"}');n(1994),n(25037),n(3665),n(96546),n(48792),n(69776),n(1215),n(83811),n(59761),n(52204),n(66479),n(5902);let eB="translation";ep().extend(eg()),ep().extend(ex()),ep().extend(ek()),ep().updateLocale("de",{calendar:{lastDay:"[gestern um] LT",lastWeek:"[letzten] dddd [um] LT",nextDay:"[morgen um] LT",nextWeek:"dddd [um] LT",sameDay:"[heute um] LT",sameElse:"L"}}),ep().updateLocale("es",{calendar:{lastDay:"[ayer a las] LT",lastWeek:"[pasado] dddd [a] LT",nextDay:"[ma\xf1ana a] LT",nextWeek:"dddd [a] LT",sameDay:"[hoy a las] LT",sameElse:"L"}}),ep().updateLocale("fr",{calendar:{lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",sameDay:"[Aujourdâhui \xe0] LT",sameElse:"L"}}),ep().updateLocale("hi",{calendar:{lastDay:"[à¤à¤²] LT",lastWeek:"[पिà¤à¤²à¥] dddd, LT",nextDay:"[à¤à¤²] LT",nextWeek:"dddd, LT",sameDay:"[à¤à¤] LT",sameElse:"L"},meridiem:e=>e<4?"रात":e<10?"सà¥à¤¬à¤¹":e<17?"दà¥à¤ªà¤¹à¤°":e<20?"शाम":"रात",meridiemHour(e,t){if(12===e&&(e=0),"रात"===t)return e<4?e:e+12;if("सà¥à¤¬à¤¹"===t);else if("दà¥à¤ªà¤¹à¤°"===t)return e>=10?e:e+12;else if("शाम"===t)return e+12;return e},meridiemParse:/रात|सà¥à¤¬à¤¹|दà¥à¤ªà¤¹à¤°|शाम/}),ep().updateLocale("it",{calendar:{lastDay:"[Ieri alle] LT",lastWeek:"[lo scorso] dddd [alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",sameDay:"[Oggi alle] LT",sameElse:"L"}}),ep().updateLocale("ja",{calendar:{lastDay:"[æ¨æ¥] LT",lastWeek:"dddd LT",nextDay:"[ææ¥] LT",nextWeek:"[次ã®] dddd LT",sameDay:"[仿¥] LT",sameElse:"L"}}),ep().updateLocale("ko",{calendar:{lastDay:"[ì´ì ] LT",lastWeek:"[ì§ë] dddd LT",nextDay:"[ë´ì¼] LT",nextWeek:"dddd LT",sameDay:"[ì¤ë] LT",sameElse:"L"}}),ep().updateLocale("nl",{calendar:{lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",sameDay:"[vandaag om] LT",sameElse:"L"}}),ep().updateLocale("pt",{calendar:{lastDay:"[ontem \xe0s] LT",lastWeek:"dddd [passada \xe0s] LT",nextDay:"[amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",sameDay:"[hoje \xe0s] LT",sameElse:"L"}}),ep().updateLocale("ru",{calendar:{lastDay:"[ÐÑеÑа, в] LT",nextDay:"[ÐавÑÑа, в] LT",sameDay:"[СегоднÑ, в] LT"}}),ep().updateLocale("tr",{calendar:{lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",sameDay:"[bug\xfcn saat] LT",sameElse:"L"}});let ez={formats:{},months:["January","February","March","April","May","June","July","August","September","October","November","December"],relativeTime:{},weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eH={DateTimeParser:ep(),dayjsLocaleConfigForLanguage:null,debug:!1,disableDateTimeTranslations:!1,language:"en",logger:e=>console.warn(e)};class eU{constructor(e={}){this.i18nInstance=ec.createInstance(),this.Dayjs=null,this.setLanguageCallback=()=>null,this.initialized=!1,this.t=o.Ou,this.translations={de:{[eB]:eS},en:{[eB]:eM},es:{[eB]:eT},fr:{[eB]:eO},hi:{[eB]:eA},it:{[eB]:eP},ja:{[eB]:eF},ko:{[eB]:eL},nl:{[eB]:eR},pt:{[eB]:ej},ru:{[eB]:eN},tr:{[eB]:eI}},this.dayjsLocales={},this.formatters=o.Ir,this.localeExists=e=>!!this.isCustomDateTimeParser||Object.keys(ep().Ls).indexOf(e)>-1,this.validateCurrentLanguage=()=>{-1===Object.keys(this.translations).indexOf(this.currentLanguage)&&(this.logger(`Streami18n: '${this.currentLanguage}' language is not registered. Please make sure to call streami18n.registerTranslation('${this.currentLanguage}', {...}) or use one the built-in supported languages - ${this.getAvailableLanguages()}`),this.currentLanguage="en")},this.geti18Instance=()=>this.i18nInstance,this.getAvailableLanguages=()=>Object.keys(this.translations),this.getTranslations=()=>this.translations;const t={...eH,...e};this.logger=t.logger,this.currentLanguage=t.language,this.DateTimeParser=t.DateTimeParser,this.timezone=t.timezone,this.formatters={...o.Ir,...e?.formatters};try{this.DateTimeParser&&(e=>void 0!==e.extend)(this.DateTimeParser)&&(this.DateTimeParser.extend(ev()),this.DateTimeParser.extend(ef()),this.DateTimeParser.extend(eD()),this.DateTimeParser.extend(e_()))}catch(e){throw Error(`Streami18n: Looks like you wanted to provide Dayjs instance, but something went wrong while adding plugins ${e}`)}
3this.isCustomDateTimeParser=!!e.DateTimeParser;const n=t.translationsForLanguage;n&&(this.translations[this.currentLanguage]={[eB]:this.translations[this.currentLanguage]&&this.translations[this.currentLanguage][eB]?{...this.translations[this.currentLanguage][eB],...n}:n}),this.translations[this.currentLanguage]||(this.translations[this.currentLanguage]={[eB]:{}}),this.i18nextConfig={debug:t.debug,fallbackLng:!1,interpolation:{escapeValue:!1,formatSeparator:"|"},keySeparator:!1,lng:this.currentLanguage,nsSeparator:!1},t.parseMissingKeyHandler&&(this.i18nextConfig.parseMissingKeyHandler=t.parseMissingKeyHandler),this.validateCurrentLanguage();const r=t.dayjsLocaleConfigForLanguage;r?this.addOrUpdateLocale(this.currentLanguage,{...r}):this.localeExists(this.currentLanguage)||this.logger(`Streami18n: Streami18n(...) - Locale config for ${this.currentLanguage} does not exist in momentjs.Please import the locale file using "import 'moment/locale/${this.currentLanguage}';" in your app or register the locale config with Streami18n using registerTranslation(language, translation, customDayjsLocale)`),this.tDateTimeParser=e=>{let n=t.disableDateTimeTranslations||!this.localeExists(this.currentLanguage)?"en":this.currentLanguage;return void 0!==this.DateTimeParser.extend?void 0!==this.DateTimeParser.tz?this.DateTimeParser(e).tz(this.timezone).locale(n):this.DateTimeParser(e).locale(n):void 0!==this.DateTimeParser.tz&&this.timezone?this.DateTimeParser(e).tz(this.timezone).locale(n):this.DateTimeParser(e).locale(n)}}
3async init(){this.validateCurrentLanguage();try{this.t=await this.i18nInstance.init({...this.i18nextConfig,lng:this.currentLanguage,resources:this.translations}),this.initialized=!0,this.formatters&&Object.entries(this.formatters).forEach(([e,t])=>{t&&this.i18nInstance.services.formatter?.add(e,t(this))})}catch(e){this.logger(`Something went wrong with init: ${JSON.stringify(e)}`)}return{t:this.t,tDateTimeParser:this.tDateTimeParser}}async getTranslators(){return this.initialized?{t:this.t,tDateTimeParser:this.tDateTimeParser}:(this.dayjsLocales[this.currentLanguage]&&this.addOrUpdateLocale(this.currentLanguage,this.dayjsLocales[this.currentLanguage]),await this.init())}registerTranslation(e,t,n){t?(this.translations[e]?this.translations[e][eB]=t:this.translations[e]={[eB]:t},n?this.dayjsLocales[e]={...n}:this.localeExists(e)||this.logger(`Streami18n: registerTranslation(language, translation, customDayjsLocale) - Locale config for ${e} does not exist in Dayjs.Please import the locale file using "import 'dayjs/locale/${e}';" in your app or register the locale config with Streami18n using registerTranslation(language, translation, customDayjsLocale)`),this.initialized&&this.i18nInstance.addResources(e,eB,t)):this.logger("Streami18n: registerTranslation(language, translation, customDayjsLocale) called without translation")}addOrUpdateLocale(e,t){this.localeExists(e)?ep().updateLocale(e,{...t}):ep().locale({name:e,...ez,...t},void 0,!0)}async setLanguage(e){if(this.currentLanguage=e,this.initialized)try{let t=await this.i18nInstance.changeLanguage(e);return this.dayjsLocales[e]&&this.addOrUpdateLocale(this.currentLanguage,this.dayjsLocales[this.currentLanguage]),this.setLanguageCallback(t),t}catch(e){return this.logger(`Failed to set language: ${JSON.stringify(e)}`),this.t}}registerSetLanguageCallback(e){this.setLanguageCallback=e}}var eV=n(7970),eW=n(27475);let e$=e=>{let{children:t,client:n,customClasses:i,defaultLanguage:s,i18nInstance:l,initialNavOpen:u=!0,isMessageAIGenerated:c,searchController:d,theme:p="messaging light",useImageFlagEmojisOnWindows:m=!1}=e,{channel:f,closeMobileNav:h,getAppSettings:g,latestMessageDatesByChannels:y,mutes:v,navOpen:b,openMobileNav:D,setActiveChannel:E,translators:_}=(({client:e,defaultLanguage:t="en",i18nInstance:n,initialNavOpen:a})=>{let[i,s]=(0,r.useState)({t:e=>e,tDateTimeParser:o.uu,userLanguage:"en"}),[l,u]=(0,r.useState)(),[c,d]=(0,r.useState)([]),[p,m]=(0,r.useState)(a),[f,h]=(0,r.useState)({}),g=e.user?.mutes||[],y=()=>m(!1),v=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!e)return;let t=e.getUserAgent();return t.includes("stream-chat-react")||e.setUserAgent(`stream-chat-react-12.16.0-${t}`),e.threads.registerSubscriptions(),e.polls.registerSubscriptions(),()=>{e.threads.unregisterSubscriptions(),e.polls.unregisterSubscriptions()}},[e]),(0,r.useEffect)(()=>{d(g);let t=e=>{d(e.me?.mutes||[])};return e.on("notification.mutes_updated",t),()=>e.off("notification.mutes_updated",t)},[g?.length]),(0,r.useEffect)(()=>{let r=e.user?.language;if(!r){let e=window.navigator.language.slice(0,2);r=(0,o.Rh)(e)?e:t}let a=n||new eU({language:r});a.registerSetLanguageCallback(e=>s(t=>({...t,t:e}))),a.getTranslators().then(e=>{s({...e,userLanguage:r||t})})},[n]);let b=(0,r.useCallback)(async(e,t={},n)=>{n&&n.preventDefault&&n.preventDefault(),e&&Object.keys(t).length&&await e.query({watch:!0,watchers:t}),u(e),y()},[]);return(0,r.useEffect)(()=>{h({})},[e.user?.id]),{channel:l,closeMobileNav:y,getAppSettings:()=>(v.current||(v.current=e.getAppSettings()),v.current),latestMessageDatesByChannels:f,mutes:c,navOpen:p,openMobileNav:()=>setTimeout(()=>m(!0),100),setActiveChannel:b,translators:i}})({client:n,defaultLanguage:s,i18nInstance:l,initialNavOpen:u}),w=(()=>{let[e,t]=(0,r.useState)(null),[n,a]=(0,r.useState)("uninitialized");return{error:e,queryInProgress:n,setError:t,setQueryInProgress:a}})(),x=(0,r.useMemo)(()=>d??new a.Tp({sources:[new a.Jw(n),new a.lF(n),new a.Ve(n)]}),[n,d]),C=(e=>{let{channel:t,channelsQueryState:n,client:a,closeMobileNav:o,customClasses:i,getAppSettings:s,isMessageAIGenerated:l,latestMessageDatesByChannels:u,mutes:c,navOpen:d,openMobileNav:p,searchController:m,setActiveChannel:f,theme:h,useImageFlagEmojisOnWindows:g}=e,y=t?.cid,v=n.error,b=n.queryInProgress,D=`${a.clientID}${Object.keys(a.activeChannels).length}${Object.keys(a.listeners).length}${a.mutedChannels.length} 4 ${a.user?.id}`,E=c.length;return(0,r.useMemo)(()=>({channel:t,channelsQueryState:n,client:a,closeMobileNav:o,customClasses:i,getAppSettings:s,isMessageAIGenerated:l,latestMessageDatesByChannels:u,mutes:c,navOpen:d,openMobileNav:p,searchController:m,setActiveChannel:f,theme:h,useImageFlagEmojisOnWindows:g}),[y,v,b,D,s,m,E,d,l])})({channel:f,channelsQueryState:w,client:n,closeMobileNav:h,customClasses:i,getAppSettings:g,isMessageAIGenerated:c,latestMessageDatesByChannels:y,mutes:v,navOpen:b,openMobileNav:D,searchController:x,setActiveChannel:E,theme:p,useImageFlagEmojisOnWindows:m});return _.t?r.createElement(eV.k_,{value:C},r.createElement(eW.Dv,{value:_},t)):null}},7970:(e,t,n)=>{"use strict";n.d(t,{k_:()=>o,vd:()=>i});var r=n(14232);let a=r.createContext(void 0),o=({children:e,value:t})=>r.createElement(a.Provider,{value:t},e),i=e=>{let t=(0,r.useContext)(a);return t||(console.warn(`The useChatContext hook was called outside of the ChatContext provider. Make sure this hook is called within a child of the Chat component. The errored call is located in the ${e} component.`),{})}},8142:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(14232),a=n(47455);let o=e=>{let{messages:t,read:n,returnAllReadData:o,userID:i}=e;return(0,r.useMemo)(()=>(0,a.vd)(t.filter(({user:e})=>e?.id===i),n,o),[t,n,o,i])}},8795:(e,t,n)=>{"use strict";n.d(t,{Ko:()=>l,dm:()=>d,g6:()=>p,gd:()=>c,hP:()=>m,lJ:()=>a,oY:()=>o,pc:()=>u});var r=n(14232);let a=(e=!1,t)=>(0,r.useCallback)(({currentTarget:n})=>{let{files:r}=n;if(r){try{t?.(Array.from(r))}catch(e){console.error(e)}e&&(n.value="")}},[t,e]);async function o(e){if(!e||!e.length)return[];let t=function(e){let t=[];for(let n of e)if("file"===n.kind){let e=n.getAsFile();e&&t.push(e)}return t}(e);if(t.length)return t;let n=[];for(let r of e)"text/html"===r.type&&n.push(new Promise(e=>{r.getAsString(async n=>{let r=s(n).map(e=>i(t,e));await Promise.all(r),e()})}));return await Promise.all(n),t}async function i(e,t){let n;try{n=await fetch(t)}catch(e){return}let r=n.headers.get("Content-type")||"application/octet-stream",a=new Blob([await n.arrayBuffer()],{type:r});e.push(a)}let s=e=>Array.from(new DOMParser().parseFromString(e,"text/html").getElementsByTagName("img"),e=>e.src).filter(e=>e),l=e=>e instanceof Blob&&!(e instanceof File),u=({blobsArray:e,fileName:t,mimeType:n})=>{let r=new Blob(e,{type:n});return new File([r],t,{type:r.type})},c=e=>{let t=e.match(/\/([^/;]+)/);return t&&t[1]},d=e=>{let t=e.match(/^(audio|video)\/.*$/);return t&&t[1]}
4,p=e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{t(r.result)},r.onerror=()=>{n(r.error)},r.readAsArrayBuffer(e)}),m=e=>`file_${new Date().toISOString()}.${c(e)}`},8856:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(14232));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p="64px",m={};t.default=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),e&&l(i,e);var t,n,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=c(i);return a=t?Reflect.construct(o,arguments,c(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:u(e)});function i(){var e;if(!(this instanceof i))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(u(e=o.call.apply(o,[this].concat(n))),"mounted",!1),d(u(e),"state",{image:null}),d(u(e),"handleKeyPress",function(t){("Enter"===t.key||" "===t.key)&&e.props.onClick()}),e}return n=[{key:"componentDidMount",value:function(){this.mounted=!0,this.fetchImage(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.url,r=t.light;(e.url!==n||e.light!==r)&&this.fetchImage(this.props)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"fetchImage",value:function(e){var t=this,n=e.url,r=e.light,a=e.oEmbedUrl;return"string"==typeof r?void this.setState({image:r}):m[n]?void this.setState({image:m[n]}):(this.setState({image:null}),window.fetch(a.replace("{url}",n)).then(function(e){return e.json()}).then(function(e){if(e.thumbnail_url&&t.mounted){var r=e.thumbnail_url.replace("height=100","height=480");t.setState({image:r}),m[n]=r}}))}},{key:"render",value:function(){var e=this.props,t=e.onClick,n=e.playIcon,r=e.previewTabIndex,o=this.state.image,i={display:"flex",alignItems:"center",justifyContent:"center"},l={preview:s({width:"100%",height:"100%",backgroundImage:o?"url(".concat(o,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},i),shadow:s({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:p,width:p,height:p},i),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},u=a.default.createElement("div",{style:l.shadow,className:"react-player__shadow"},a.default.createElement("div",{style:l.playIcon,className:"react-player__play-icon"}));return a.default.createElement("div",{style:l.preview,className:"react-player__preview",onClick:t,tabIndex:r,onKeyPress:this.handleKeyPress},n||u)}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(i.prototype,n),i}
4(a.Component)},8972:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(40670);function a(e,t){if(null==e)return{};var n,a,o=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},9159:e=>{var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n="u">typeof window,r=n&&null!=window.mozInnerScreenX;function a(e,a,o){if(!n)throw Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var i=o&&o.debug||!1;if(i){var s=document.querySelector("#input-textarea-caret-position-mirror-div");s&&s.parentNode.removeChild(s)}var l=document.createElement("div");l.id="input-textarea-caret-position-mirror-div",document.body.appendChild(l);var u=l.style,c=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,d="INPUT"===e.nodeName;u.whiteSpace="pre-wrap",d||(u.wordWrap="break-word"),u.position="absolute",i||(u.visibility="hidden"),t.forEach(function(e){d&&"lineHeight"===e?u.lineHeight=c.height:u[e]=c[e]}),r?e.scrollHeight>parseInt(c.height)&&(u.overflowY="scroll"):u.overflow="hidden",l.textContent=e.value.substring(0,a),d&&(l.textContent=l.textContent.replace(/\s/g,"\xa0"));var p=document.createElement("span");p.textContent=e.value.substring(a)||".",l.appendChild(p);var m={top:p.offsetTop+parseInt(c.borderTopWidth),left:p.offsetLeft+parseInt(c.borderLeftWidth),height:parseInt(c.lineHeight)};return i?p.style.backgroundColor="#aaa":document.body.removeChild(l),m}void 0!==e.exports?e.exports=a:n&&(window.getCaretCoordinates=a)},9854:(e,t,n)=>{"use strict";n.d(t,{CZ:()=>l,a6:()=>s,d3:()=>u});var r=n(98723);let a={a:"\xe1|\xe0|\xe3|\xe2|\xc0|\xc1|\xc3|\xc2",c:"\xe7|\xc7",e:"\xe9|\xe8|\xea|\xc9|\xc8|\xca",i:"\xed|\xec|\xee|\xcd|\xcc|\xce",n:"\xf1|\xd1",o:"\xf3|\xf2|\xf4|Å|\xf5|\xd3|\xd2|\xd4|\xd5",u:"\xfa|\xf9|\xfb|\xfc|\xda|\xd9|\xdb|\xdc"},o=e=>e?Object.keys(a).reduce((e,t)=>e.replace(RegExp(a[t],"g"),t),e):"",i=(e,t)=>{let n,r;if(0===e.length)return t.length;if(0===t.length)return e.length;let a=[];for(n=0;n<=t.length;n++)a[n]=[n];for(r=0;r<=e.length;r++)a[0][r]=r;for(n=1;n<=t.length;n++)for(r=1;r<=e.length;r++)t.charAt(n-1)===e.charAt(r-1)?a[n][r]=a[n-1][r-1]:a[n][r]=Math.min(a[n-1][r-1]+1,Math.min(a[n][r-1]+1,a[n-1][r]+1));return a[t.length][e.length]},s=e=>{let{ownUserId:t,query:r,text:a,useMentionsTransliteration:s,users:l}=e;return l.filter(e=>{if(e.id===t)return!1;if(!r)return!0;let l=o(e.id).toLowerCase(),u=o(e.name).toLowerCase(),c=o(r).toLowerCase();s&&(async()=>{let{default:t}=await n.e(8133).then(n.bind(n,28133));u=t(e.name||"").toLowerCase(),c=t(r).toLowerCase(),l=t(e.id).toLowerCase()})();let d=a.slice(-4).includes("@");if(u){let e=i(c,u);if(u.includes(c)||e<=3&&d)return!0}let p=i(c,l);return l.includes(c)||p<=3&&d})},l=async e=>{let{addNotification:t,file:n,getAppSettings:a,t:o,uploadType:i}=e,s=null;s=await a();let{allowed_file_extensions:l,allowed_mime_types:c,blocked_file_extensions:d,blocked_mime_types:p,size_limit:m}=("image"===i?s?.app?.image_upload_config:s?.app?.file_upload_config)||{},f=()=>t(o('Upload type: "{{ type }}" is not allowed',{type:n.type||"unknown type"}),"error");if(l?.length&&!l.some(e=>n.name.toLowerCase().endsWith(e.toLowerCase()))||d?.length&&d.some(e=>n.name.toLowerCase().endsWith(e.toLowerCase()))||c?.length&&!c.some(e=>e.toLowerCase()===n.type?.toLowerCase())||p?.length&&p.some(e=>e.toLowerCase()===n.type?.toLowerCase()))return f(),!1;let h=m||r.up;return!n.size||!(n.size>h)||(t(o("File is too large: {{ size }}, maximum upload size is {{ limit }}",{limit:u(h),size:u(n.size)}),"error"),!1)};function u(e,t=3){let n=["B","kB","MB","GB"],r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1),a=e/1024**r,o=0===t?Math.round(a).toString():a.toPrecision(t);return`${o} ${n[r]}`}},10111:(e,t,n)=>{"use strict";n.d(t,{KF:()=>o,Oy:()=>i});var r=n(14232);let a=(0,r.createContext)(void 0),o=({children:e,value:t})=>r.createElement(a.Provider,{value:t},e),i=e=>{let t=(0,r.useContext)(a);return t||{}}},10358:(e,t,n)=>{"use strict";n.d(t,{nr:()=>H,tj:()=>i,Dz:()=>s});var r,a,o,i,s,l=n(667),u=n.n(l),c=n(46512),d=n(12205),p=n(84721),m=n(6055);let f={analyserConfig:{fftSize:32,maxDecibels:0,minDecibels:-100},sampleCount:100,samplingFrequencyMs:60};(r=o||(o={})).CLOSED="closed",r.RECORDING="recording",r.STOPPED="stopped";class h{constructor({config:e,stream:t}){this.amplitudes=new d.t([]),this.state=new d.t(void 0),this.error=new p.B,this.start=()=>{if(this.state.value!==o.CLOSED){if(!this.stream)throw Error("Missing MediaStream instance. Cannot to start amplitude recording");if(this.state.value===o.RECORDING&&this.stop(),!this.analyserNode){if(!this.stream)return;this.init()}this.state.next(o.RECORDING),this.amplitudeSamplingInterval=setInterval(()=>{if(!(this.analyserNode&&this.state.value===o.RECORDING))return;let e=new Uint8Array(this.analyserNode.frequencyBinCount);try{this.analyserNode.getByteFrequencyData(e)}catch(e){e&&console.error("[AMPLITUDE RECORDER ERROR]",e),this.error.next(e);return}let t=Math.sqrt(e.reduce((e,t)=>
4e+Math.pow(t,2),0)/e.length)/255;this.amplitudes.next([...this.amplitudes.value,t])},this.config.samplingFrequencyMs)}},this.config=(0,m.l)({...e},f),this.stream=t}init(){this.audioContext=new AudioContext,this.analyserNode=this.audioContext.createAnalyser();let{analyserConfig:e}=this.config;this.analyserNode.fftSize=e.fftSize,this.analyserNode.maxDecibels=e.maxDecibels,this.analyserNode.minDecibels=e.minDecibels,this.microphone=this.audioContext.createMediaStreamSource(this.stream),this.microphone.connect(this.analyserNode)}stop(){clearInterval(this.amplitudeSamplingInterval),this.amplitudeSamplingInterval=void 0,this.state.next(o.STOPPED)}close(){this.state.value!==o.STOPPED&&this.stop(),this.state.next(o.CLOSED),this.amplitudes.next([]),this.microphone?.disconnect(),this.analyserNode?.disconnect(),this.audioContext?.state!=="closed"&&this.audioContext?.close()}}var g=n(97151),y=n(8795);let v=async e=>{let t=new AudioContext,n=await (0,y.g6)(e),r=await t.decodeAudioData(n);return"closed"!==t.state&&await t.close(),r},b=async(e,t)=>{let n=new OfflineAudioContext(e.numberOfChannels,e.duration*t,t),r=n.createBufferSource();return r.buffer=e,r.connect(n.destination),r.start(),await n.startRendering()},D={offset:20,value:1},E={offset:34,value:16},_={offset:32},w={offset:28},x={offset:22},C={offset:0,value:0x52494646},k={offset:4},S={offset:8,value:0x57415645},M={offset:24},T={offset:12,value:0x666d7420},O={offset:16,value:16},A={offset:36,value:0x64617461},P={offset:40},F=e=>e.charCodeAt(0)<<24|e.charCodeAt(1)<<16|e.charCodeAt(2)<<8|e.charCodeAt(3);F("data"),F("fmt "),F("RIFF"),F("WAVE");let L=async(e,t)=>{let n=await b(await v(e),t),r=new ArrayBuffer(n.duration*t*n.numberOfChannels*2+44);return(({arrayBuffer:e,channelCount:t,sampleRate:n})=>{let r=new DataView(e),a=Math.min(r.byteLength-44,0xffffffd3);r.setUint32(C.offset,C.value),r.setUint32(k.offset,e.byteLength-8,!0),r.setUint32(S.offset,S.value),r.setUint32(T.offset,T.value),r.setUint32(O.offset,O.value,!0),r.setUint16(D.offset,D.value,!0),r.setUint16(x.offset,t,!0),r.setUint32(M.offset,n,!0),r.setUint32(w.offset,n*t*2,!0),r.setUint16(_.offset,2*t,!0),r.setUint16(E.offset,E.value,!0),r.setUint32(A.offset,A.value),r.setUint32(P.offset,a,!0)})({arrayBuffer:r,channelCount:n.numberOfChannels,sampleRate:t}),(({arrayBuffer:e,dataByChannel:t})=>{let n=new DataView(e),r=t.length;t.forEach((e,t)=>{let a=44+r*t;e.forEach(e=>{n.setInt16(a,e<0?32768*Math.max(-1,e):32767*Math.min(1,e),!0),a+=2*r})})})({arrayBuffer:r,dataByChannel:Array.from({length:n.numberOfChannels},(e,t)=>n.getChannelData(t))}),new Blob([r],{type:"audio/wav"})};var R=n(45103),j=n(86195);let N="audio/webm",I="audio/mp4;codecs=mp4a.40.2",B={sampleRate:16e3},z=e=>e&&console.error("[MEDIA RECORDER ERROR]",e);(a=i||(i={})).PAUSED="paused",a.RECORDING="recording",a.STOPPED="stopped",(s||(s={})).VOICE_RECORDING="voiceRecording";class H{constructor({config:e,generateRecordingTitle:t,t:n}={}){this.recordedChunkDurations=[],this.recordedData=[],this.recordingState=new d.t(void 0),this.recording=new d.t(void 0),this.error=new p.B,this.notification=new p.B,this.generateRecordingTitle=e=>this.customGenerateRecordingTitle?this.customGenerateRecordingTitle(e):`${this.mediaType}_recording_${new Date().toISOString()}.${(0,y.gd)(e)}`,this.makeVoiceRecording=async()=>{if(this.recordingUri&&URL.revokeObjectURL(this.recordingUri),!this.recordedData.length)return;let{mimeType:e}=this.mediaRecorderConfig,t=new Blob(this.recordedData,{type:e});if(e.match("audio/webm")&&(t=await u()(t,this.durationMs,{logger:()=>null})),e.match("audio/mp4")||(t=await (({blob:e,encoder:t=L,sampleRate:n})=>t((0,y.pc)({blobsArray:[e],fileName:`audio_recording_${new Date().toISOString()}.${(0,y.gd)(e.type)}`,mimeType:e.type}),n))({blob:t,...this.transcoderConfig})),!t)return;this.recordingUri=URL.createObjectURL(t);let n=(0,y.pc)({blobsArray:[t],fileName:this.generateRecordingTitle(t.type),mimeType:t.type});return{asset_url:this.recordingUri,duration:this.durationMs/1e3,file_size:t.size,localMetadata:{file:n,id:(0,c.Ak)()},mime_type:t.type,title:n.name,type:s.VOICE_RECORDING,waveform_data:(0,R.tG)(this.amplitudeRecorder?.amplitudes.value??[],this.amplitudeRecorderConfig.sampleC
4ount)}},this.handleErrorEvent=e=>{let{error:t}=e;z(t),this.error.next(t),this.notification.next({text:this.t("An error has occurred during recording"),type:"error"})},this.handleDataavailableEvent=async e=>{if(e.data.size&&"audio"===this.mediaType)try{this.recordedData.push(e.data);let t=await this.makeVoiceRecording();if(!t)return;this.signalRecordingReady?.(t),this.recording.next(t)}catch(e){z(e),this.error.next(e),this.notification.next({text:this.t("An error has occurred during the recording processing"),type:"error"})}},this.resetRecordingState=()=>{this.recordedData=[],this.recording.next(void 0),this.recordingState.next(void 0),this.recordedChunkDurations=[],this.startTime=void 0},this.cleanUp=()=>{if(this.resetRecordingState(),this.recordingUri&&URL.revokeObjectURL(this.recordingUri),this.amplitudeRecorder?.close(),this.mediaRecorder){var e;e=this.mediaRecorder.stream,e?.active&&e.getTracks().forEach(t=>{t.stop(),e.removeTrack(t)}),this.mediaRecorder.removeEventListener("dataavailable",this.handleDataavailableEvent),this.mediaRecorder.removeEventListener("error",this.handleErrorEvent)}},this.start=async()=>{if([i.RECORDING,i.PAUSED].includes(this.recordingState.value)){let e=Error("Cannot start recording. Recording already in progress");z(e),this.error.next(e);return}if(!navigator.mediaDevices){let e=Error("Media recording is not supported");z(e),this.error.next(e),this.notification.next({text:this.t("Error starting recording"),type:"error"});return}if("video"===this.mediaType){let e=Error(`Video recording is not supported. Provided MIME type: ${this.mediaRecorderConfig.mimeType}`);z(e),this.error.next(e),this.notification.next({text:this.t("Error starting recording"),type:"error"});return}if(this.permission.state.value||await this.permission.check(),"denied"===this.permission.state.value)return void z(Error("Permission denied"));try{let e=await navigator.mediaDevices.getUserMedia({audio:!0});this.mediaRecorder=new MediaRecorder(e,this.mediaRecorderConfig),this.mediaRecorder.addEventListener("dataavailable",this.handleDataavailableEvent),this.mediaRecorder.addEventListener("error",this.handleErrorEvent),this.startTime=new Date().getTime(),this.mediaRecorder.start(),"audio"===this.mediaType&&e&&(this.amplitudeRecorder=new h({config:this.amplitudeRecorderConfig,stream:e}),this.amplitudeRecorder.start()),this.recordingState.next(i.RECORDING)}catch(e){z(e),this.cancel(),this.error.next(e),this.notification.next({text:this.t("Error starting recording"),type:"error"})}},this.pause=()=>{this.recordingState.value===i.RECORDING&&(this.startTime&&(this.recordedChunkDurations.push(new Date().getTime()-this.startTime),this.startTime=void 0),this.mediaRecorder?.pause(),this.amplitudeRecorder?.stop(),this.recordingState.next(i.PAUSED))},this.resume=()=>{this.recordingState.value===i.PAUSED&&(this.startTime=new Date().getTime(),this.mediaRecorder?.resume(),this.amplitudeRecorder?.start(),this.recordingState.next(i.RECORDING))},this.stop=()=>{let e=this.recording.value;if(e)return Promise.resolve(e);if(![i.PAUSED,i.RECORDING].includes(this.mediaRecorder?.state||""))return Promise.resolve(void 0);this.startTime&&(this.recordedChunkDurations.push(new Date().getTime()-this.startTime),this.startTime=void 0);let t=new Promise(e=>{this.signalRecordingReady=e});return this.mediaRecorder?.stop(),this.amplitudeRecorder?.stop(),this.recordingState.next(i.STOPPED),t},this.cancel=()=>{this.stop(),this.cleanUp()},this.t=n||j.Ou,this.amplitudeRecorderConfig=(0,m.l)({...e?.amplitudeRecorderConfig},f),this.mediaRecorderConfig=(0,m.l)({...e?.mediaRecorderConfig},{mimeType:MediaRecorder.isTypeSupported("audio/webm")?N:I}),this.transcoderConfig=(0,m.l)({...e?.transcoderConfig},B);const r=(0,y.dm)(this.mediaRecorderConfig.mimeType);if(!r)throw Error(`Unsupported media type (supported audio or video only). Provided mimeType: ${this.mediaRecorderConfig.mimeType}`);this.mediaType=r,this.permission=new g.a({mediaType:r}),this.customGenerateRecordingTitle=t}get durationMs(){return this.recordedChunkDurations.reduce((e,t)=>e+t,0)}}},10623:(e,t,n)=>{"use strict";n.d(t,{aD:()=>o,zq:()=>a});var r=n(14232);let a=r.createContext({}),o=e=>(0,r.useContext)(a)},10673:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(14232);let a=()=>r.createElement("svg",{fill:"currentColor",viewBox:"0 0 14 13",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M1.32227 12.3408C0.944336 11.9629 0.953125 11.3213 1.32227 10.9521L5.60254 6.66309L1.32227 2.38281C0.953125 2.01367 0.944336 1.37207 1.32227 0.994141C1.7002 0.616211 2.3418 0.625 2.71094 0.985352L7 5.27441L11.2803 0.994141C11.6494 0.625 12.291 0.616211 12.6689 0.994141C13.0469 1.37207 13.0381 2.01367 12.6689 2.38281L8.38867 6.66309L12.6689 10.9521C13.0381 11.3213 13.0469 11.9629 12.6689 12.3408C12.291 12.7188 11.6494 12.71 11.2803 12.3408L7 8.06055L2.71094 12.3408C2.3418 12.71 1.7002 12.7188 1.32227 12.3408Z"}));var o=n(80609),i=n(27475);let s=({queryMessageLimit:e,showCount:t,unreadCount:n})=>{let{jumpToFirstUnreadMessage:s,markRead:l}=(0,o.KS)("UnreadMessagesNotification"),{t:u}=(0,i.WR)("UnreadMessagesNotification");return r.createElement("div",{className:"str-chat__unread-messages-notification","data-testid":"unread-messages-notification"},r.createElement("button",{onClick:()=>s(e)},n&&t?u("{{count}} unread",{count:n??0}):u("Unread messages")),r.createElement("button",{onClick:()=>l()},r.createElement(a,null)))}},10810:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(54945);function a(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=(0,r.A)(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},11084:(e,t,n)=>{"use strict";n.d(t,{r:()=>o});var r=n(14232),a=n(69241);let o=({className:e,close:t,goBack:n,title:o})=>r.createElement("div",{className:(0,a.A)("str-chat__modal-header",e)},n&&r.createElement("button",{className:"str-chat__modal-header__go-back-button",onClick:n}),r.createElement("div",{className:"str-chat__modal-header__title"},o),t&&r.createElement("button",{className:"str-chat__modal-header__close-button",onClick:t}))},12205:(e,t,n)=>{"use strict";n.d(t,{t:()=>o});var r=n(84721),a=n(3171);class o extends r.B{constructor(e){super(),this._value=e}get value(){let{_value:e,thrownError:t}=this;if(t)throw t;return e}subscribe(e){let t=(0,a.r)(e),n=super.subscribe(e);return n.closed||t.next(this._value),n}next(e){super.next(this._value=e)}}},12883:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},12906:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(83784),a=n(16213),o=n(13163);function i(e,t){return(0,r.A)(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,a=e}
4finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}(e,t)||(0,a.A)(e,t)||(0,o.A)()}},13163:(e,t,n)=>{"use strict";function r(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},13629:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(14232),a=n(7970);let o=r.lazy(async()=>({default:(await Promise.all([n.e(2886),n.e(3999)]).then(n.bind(n,73999))).MML})),i=e=>{let{actionHandler:t,align:n="right",source:i}=e,{theme:s}=(0,a.vd)("MML");return r.createElement(r.Suspense,{fallback:null},r.createElement(o,{className:`mml-align-${n}`,Loading:null,onSubmit:t,source:i,Success:null,theme:(s||"").replace(" ","-")}))}},13702:(e,t,n)=>{"use strict";n.d(t,{t:()=>V});var r=n(14232),a=n(2882),o=n(5255);let i=e=>{let{message:t}=e;return r.createElement("div",{className:"giphy-preview-message"},r.createElement(o.Q,{message:t}))};var s=n(8142),l=n(7970);let u={failed:!0,sending:!0};var c=n(18563),d=n(90130),p=n(85421),m=n(34334),f=n(47455),h=n(16878),g=n(10673),y=n(69241),v=n(77170),b=n.n(v),D=n(77018),E=n(2106),_=n(30199),w=n(10623);function x(e,t){return e+t-1e7}let C=({context:e,...t})=>{if(!e)return r.createElement(r.Fragment,null);let n=e.processedMessages[x(t["data-item-index"],e.numItemsPrepended)],a=e.messageGroupStyles[n.id];return r.createElement("div",{...t,className:e?.customClasses?.virtualMessage||(0,y.A)("str-chat__virtual-list-message-wrapper str-chat__li",{[`str-chat__li--${a}`]:a})})},k=({context:e})=>{let{LoadingIndicator:t=E.I}=(0,w.aD)("VirtualizedMessageListHeader");return r.createElement(r.Fragment,null,e?.head,e?.loadingMore&&t&&r.createElement("div",{className:"str-chat__virtual-list__loading"},r.createElement(t,{size:20})))},S=({context:e})=>{let{EmptyStateIndicator:t=D.s}=(0,w.aD)("VirtualizedMessageList");return void 0!==e?.processedMessages&&e.processedMessages.length>0?null:r.createElement(r.Fragment,null,t&&r.createElement(t,{listType:e?.threadList?"thread":"message"}))},M=(e,t,n)=>{let{additionalMessageInputProps:a,closeReactionSelectorOnClick:i,customMessageActions:s,customMessageRenderer:l,DateSeparator:u,firstUnreadMessageId:c,formatDate:d,lastReadDate:p,lastReadMessageId:m,lastReceivedMessageId:h,Message:g,messageActions:y,messageGroupStyles:v,MessageSystem:b,numItemsPrepended:D,openThread:E,ownMessagesReadByOthers:w,processedMessages:C,reactionDetailsSort:k,shouldGroupByUser:S,sortReactionDetails:M,sortReactions:T,threadList:O,unreadMessageCount:A=0,UnreadMessagesSeparator:P,virtuosoRef:F}=n,L=x(e,D);if(l)return l(C,L);let R=C[L];if(!R)return r.createElement("div",{style:{height:"1px"}});if((0,f.pj)(R))return u?r.createElement(u,{date:R.date,unread:R.unread}):null;if("system"===R.type)return b?r.createElement(b,{message:R}):null;let j=S&&L>0&&R.user?.id===C[L-1].user?.id,N=C[L-1],I=C[L+1],B=S&&(R.user?.id!==N?.user?.id||N&&(0,_.NY)(N)),z=S&&(R.user?.id!==I?.user?.id||(0,_.NY)(R)),H=(0,f.lT)({firstUnreadMessageId:c,isFirstMessage:0===L,lastReadDate:p,lastReadMessageId:m,message:R,previousMessage:L?C[L-1]:void 0,unreadMessageCount:A});return r.createElement(r.Fragment,null,H&&r.createElement("div",{className:"str-chat__unread-messages-separator-wrapper"},r.createElement(P,{unreadCount:A})),r.createElement(o.Q,{additionalMessageInputProps:a,autoscrollToBottom:F.current?.autoscrollToBottom,closeReactionSelectorOnClick:i,customMessageActions:s,endOfGroup:z,firstOfGroup:B,formatDate:d,groupedByUser:j,groupStyles:[v[R.id]??""],lastReceivedId:h,message:R,Message:g,messageActions:y,openThread:E,reactionDetailsSort:k,readBy:w[R.id]||[],sortReactionDetails:M,sortReactions:T,threadList:O}))};var T=n(56428),O=n(86153),A=n(40921),P=n(46984),F=n(80609),L=n(76844);let R=(0,r.createContext)(void 0),j=({children:e,value:t})=>r.createElement(R.Provider,{value:t},e);var N=n(98723),I=n(2768);function B(e){("ResizeObserver loop completed with undelivered notifications."===e.message||"ResizeObserver loop limit exceeded"===e.message)&&e.stopImmediatePropagation()}function z(e){return e.getBoundingClientRect().height}function H(e,t){return e.findIndex(e=>e.id===t)}let U=e=>
4{let t,n,o,y,{additionalMessageInputProps:v,additionalVirtuosoProps:D={},channel:E,channelUnreadUiState:_,closeReactionSelectorOnClick:F,customMessageActions:L,customMessageRenderer:R,defaultItemHeight:U,disableDateSeparator:V=!0,formatDate:W,groupStyles:$,hasMoreNewer:q,head:Y,hideDeletedMessages:K=!1,hideNewMessageSeparator:G=!1,highlightedMessageId:Z,jumpToLatestMessage:X,loadingMore:Q,loadMore:J,loadMoreNewer:ee,maxTimeBetweenGroupedMessages:et,Message:en,messageActions:er,messageLimit:ea=N.k3,messages:eo,notifications:ei,openThread:es,overscan:el=0,reactionDetailsSort:eu,read:ec,returnAllReadData:ed=!1,reviewProcessedMessage:ep,scrollSeekPlaceHolder:em,scrollToLatestMessageOnFocus:ef=!1,separateGiphyPreview:eh=!1,shouldGroupByUser:eg=!1,showUnreadNotificationAlways:ey,sortReactionDetails:ev,sortReactions:eb,stickToBottomScrollBehavior:eD="smooth",suppressAutoscroll:eE,threadList:e_}=e,{components:ew,...ex}=D;(0,r.useEffect)(()=>(window.addEventListener("error",B),()=>{window.removeEventListener("error",B)}),[]);let{DateSeparator:eC=O.Y,GiphyPreviewMessage:ek=i,MessageListMainPanel:eS=m.d,MessageListNotifications:eM=p.s,MessageNotification:eT=d.d,MessageSystem:eO=A.W,TypingIndicator:eA,UnreadMessagesNotification:eP=g.r,UnreadMessagesSeparator:eF=T.E,VirtualMessage:eL=h.I}=(0,w.aD)("VirtualizedMessageList"),{client:eR,customClasses:ej}=(0,l.vd)("VirtualizedMessageList"),eN=(0,r.useRef)(null),eI=(0,r.useMemo)(()=>E.lastRead?.(),[E]),{show:eB,toggleShowUnreadMessagesNotification:ez}=(({lastRead:e,showAlways:t,unreadCount:n})=>{let[a,o]=(0,r.useState)(!1),i=(0,r.useCallback)(r=>{if(!n)return;let a=r[0],i=r.slice(-1)[0];if(!(a&&i))return;let s=!!e&&new Date(a.created_at).getTime()>e.getTime(),l=!!e&&new Date(i.created_at).getTime()<e.getTime();o(t?s||l:s)},[e,t,n]);return(0,r.useEffect)(()=>{n||o(!1)},[n]),{show:a,toggleShowUnreadMessagesNotification:i}})({lastRead:_?.last_read,showAlways:!!ey,unreadCount:_?.unread_messages??0}),{giphyPreviewMessage:eH,setGiphyPreviewMessage:eU}=(e=>{let[t,n]=(0,r.useState)(),{client:a}=(0,l.vd)("useGiphyPreview");return(0,r.useEffect)(()=>{let t=e=>{let{message:t,user:r}=e;t?.command==="giphy"&&r?.id===a.userID&&n(void 0)};return e&&a.on("message.new",t),()=>a.off("message.new",t)},[a,e]),{giphyPreviewMessage:t,setGiphyPreviewMessage:e?n:void 0}})(eh),eV=(0,r.useMemo)(()=>void 0===eo?[]:V&&!K&&G&&!eh?eo:(0,f.ow)({enableDateSeparator:!V,hideDeletedMessages:K,hideNewMessageSeparator:G,lastRead:eI,messages:eo,reviewProcessedMessage:ep,setGiphyPreviewMessage:eU,userId:eR.userID||""}),[V,K,G,eI,eo,eo?.length,eR.userID]),eW=(0,s.g)({messages:eV,read:ec,returnAllReadData:ed,userID:eR.userID}),e$=(0,r.useMemo)(()=>(0,f.mk)(eV),[eV]),eq=$||f.c1,eY=(0,r.useMemo)(()=>eV.reduce((e,t,n)=>{let r=eq(t,eV[n-1],eV[n+1],!eg,et);return r&&(e[t.id]=r),e},{}),[et,eV.length,eg,eq]),{atBottom:eK,isMessageListScrolledToBottom:eG,newMessagesNotification:eZ,setIsMessageListScrolledToBottom:eX,setNewMessagesNotification:eQ}=function(e,t,n){let[a,o]=(0,r.useState)(!1),[i,s]=(0,r.useState)(!0),l=(0,r.useRef)(!1),u=(0,r.useRef)(""),c=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if(n)return void o(!0);if(!e?.length)return;let r=e[e.length-1],a=u.current;u.current=r.id||"",r.id===a||c.current||(r.user?.id!==t&&l.current&&o(!0),l.current=!0)},[t,e,n]),{atBottom:c,isMessageListScrolledToBottom:i,newMessagesNotification:a,setIsMessageListScrolledToBottom:s,setNewMessagesNotification:o}}(eV,eR.userID,q);(0,c.L)({isMessageListScrolledToBottom:eG,messageListIsThread:!!e_,wasMarkedUnread:!!_?.first_unread_message_id});let eJ=(0,r.useCallback)(async()=>{q?await X():(eN.current&&eN.current.scrollToIndex(eV.length-1),eQ(!1))},[eN,eV,eQ,eV.length,q,X]);(({messages:e,scrollToBottom:t,scrollToLatestMessageOnFocus:n})=>{let[a,o]=(0,r.useState)(!1),i=(0,r.useRef)(void 0);i.current=e=>{n&&a&&e.target===window&&setTimeout(t,100)},(0,r.useEffect)(()=>{o(!0)},[e]),(0,r.useEffect)(()=>{let e=e=>{i.current?.(e)},t=()=>{o(!1)};return"u">typeof window&&(window.addEventListener("focus",e),window.addEventListener("blur",t)),()=>{window.removeEventListener("focus",e),window.removeEventListener("blur",t)}},[])})({messages:eo,scrollToBottom:eJ,scrollToLatestMessageOnFocus:ef});let e0=(t=+!V,n=(0,r.useRef)(void 0),o=(0,r.useRef)(void 0),y=(0,r.useRef)(0),(0,r.useMemo)(()=>
4{if(!eV||!eV.length)return y.current=0,0;let e=eV?.[t],r=e?.id===o.current?.id,a=!!(e?.status&&u[e.status]);if(r||a)return y.current;n.current||(n.current=e),o.current=e;for(let e=y.current;e<eV.length;e+=1)if(eV[e].id===n.current?.id)return y.current=e-t,y.current;return n.current=e,y.current=0,0},[t,eV,eV?.length])),{messageSetKey:e1}=(({messages:e})=>{let[t,n]=(0,r.useState)(+new Date),a=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{e?.find(e=>e.id===a.current)||n(+new Date),a.current=e?.[0]?.id},[e]),{messageSetKey:t}})({messages:eo}),e2=function(e,t){let n=(0,r.useRef)(""),a=(0,r.useRef)(!1);function o(){if(e&&e.length>0){let r=e[e.length-1];if(r.user?.id===t&&n.current!==r.id)return n.current=r.id,!0}return!1}return(0,r.useEffect)(()=>{e&&e.length&&!a.current&&(a.current=!0,o())},[e,e?.length]),o}(eV,eR.userID),e3=(0,r.useMemo)(()=>{let e;return e=[ez],b()(t=>{let n=t.map(e=>{if(e.originalIndex)return eV[x(e.originalIndex,1e7)]}).filter(e=>!!e);e.forEach(e=>e(n))},200)},[eV,ez]),e4=(0,r.useCallback)((e,t,{numItemsPrepended:n,processedMessages:r})=>r[x(e,n)].id,[]);(0,r.useEffect)(()=>{let e;if(Z){let t=H(eV,Z);-1!==t&&(e=setTimeout(()=>{eN.current?.scrollToIndex({align:"center",index:t})},0))}return()=>{clearTimeout(e)}},[Z,eV]);let e5=(0,I.Y)();if(!eV)return null;let e6=e_?`virtualized-message-list-dialog-manager-thread-${e5}`:`virtualized-message-list-dialog-manager-${e5}`;return r.createElement(j,{value:{scrollToBottom:eJ}},r.createElement(eS,null,r.createElement(P.X,{id:e6},!e_&&eB&&r.createElement(eP,{unreadCount:_?.unread_messages}),r.createElement("div",{className:ej?.virtualizedMessageList||"str-chat__virtual-list"},r.createElement(a.aY,{atBottomStateChange:e=>{eK.current=e,eX(e),e&&(ee?.(ea),eQ?.(!1))},atBottomThreshold:100,atTopStateChange:e=>{e&&J?.(ea)},atTopThreshold:100,className:"str-chat__message-list-scroll",components:{EmptyPlaceholder:S,Header:k,Item:C,...ew},computeItemKey:e4,context:{additionalMessageInputProps:v,closeReactionSelectorOnClick:F,customClasses:ej,customMessageActions:L,customMessageRenderer:R,DateSeparator:eC,firstUnreadMessageId:_?.first_unread_message_id,formatDate:W,head:Y,lastReadDate:_?.last_read,lastReadMessageId:_?.last_read_message_id,lastReceivedMessageId:e$,loadingMore:Q,Message:en||eL,messageActions:er,messageGroupStyles:eY,MessageSystem:eO,numItemsPrepended:e0,openThread:es,ownMessagesReadByOthers:eW,processedMessages:eV,reactionDetailsSort:eu,shouldGroupByUser:eg,sortReactionDetails:ev,sortReactions:eb,threadList:e_,unreadMessageCount:_?.unread_messages,UnreadMessagesSeparator:eF,virtuosoRef:eN},firstItemIndex:1e7-e0,followOutput:e=>!q&&!eE&&(e2()?e?eD:"auto":!!e&&eD),increaseViewportBy:{bottom:200,top:0},initialTopMostItemIndex:function(e,t){if(t){let n=H(e,t);if(-1!==n)return{align:"center",index:n}}return e.length-1}(eV,Z),itemContent:M,itemSize:z,itemsRendered:e3,key:e1,overscan:el,ref:eN,style:{overflowX:"hidden"},totalCount:eV.length,...ex,...em?{scrollSeek:em}:{},...U?{defaultItemHeight:U}:{}}))),eA&&r.createElement(eA,null)),r.createElement(eM,{hasNewMessages:eZ,isMessageListScrolledToBottom:eG,isNotAtLatestMessageSet:q,MessageNotification:eT,notifications:ei,scrollToBottom:eJ,threadList:e_,unreadCount:e_?void 0:_?.unread_messages}),eH&&r.createElement(ek,{message:eH}))};function V(e){let{jumpToLatestMessage:t,loadMore:n,loadMoreNewer:a}=(0,F.KS)("VirtualizedMessageList"),{channel:o,channelUnreadUiState:i,hasMore:s,hasMoreNewer:l,highlightedMessageId:u,loadingMore:c,loadingMoreNewer:d,messages:p,notifications:m,read:f,suppressAutoscroll:h}=(0,L.BX)("VirtualizedMessageList"),g=e.messages||p;return r.createElement(U,{channel:o,channelUnreadUiState:e.channelUnreadUiState??i,hasMore:!!s,hasMoreNewer:!!l,highlightedMessageId:u,jumpToLatestMessage:t,loadingMore:!!c,loadingMoreNewer:!!d,loadMore:n,loadMoreNewer:a,messages:g,notifications:m,read:f,suppressAutoscroll:h,...e})}},14209:(e,t,n)=>{"use strict";n.d(t,{E:()=>f});var r=n(14232),a=n(69241),o=n(86300),i=n(43653),s=n(63159),l=n(7970),u=n(10623),c=n(70251),d=n(27475),p=n(80609),m=n(85171);let f=({renderText:e})=>{let{Attachment:t=o.o,Avatar:n}=(0,u.aD)("QuotedMessage"),{client:f}=(0,l.vd)(),{isMyMessage:h,message:g,renderText:y}=(0,c.m7)("QuotedMessage"),{t:v,userLanguage:b}=(0,d.WR)("QuotedMessage"),{jumpToMessage:D}=(0,p.KS)("QuotedMessage"),E=e??y??m.S5,_=n||i.e,{quoted_message:w}=g,x=w?.poll_id&&f.polls.fromState(w.poll_id),C=w?.deleted_at||w?.type==="deleted",k=C?v("This message was deleted..."):w?.i18n?.[`${b}_text`]||w?.text,S=w?.attachments?.length&&!C?w.attachments[0]:null,M=(0,r.useMemo)(()=>E(k,w?.mentioned_users),[k,w?.mentioned_users,E]);return w&&(w.poll||k||S)?r.createElement(r.Fragment,null,r.createElement("div",{className:(0,a.A)("str-chat__quoted-message-preview",{mine:h()}),"data-testid":"quoted-message",onClickCapture:e=>{e.stopPropagation(),e.preventDefault(),D(w.id)}},w.user&&r.createElement(_,{className:"str-chat__avatar--quoted-message-sender",image:w.user.image,name:w.user.n
4ame||w.user.id,user:w.user}),r.createElement("div",{className:"str-chat__quoted-message-bubble","data-testid":"quoted-message-contents"},x?r.createElement(s.s,{isQuoted:!0,poll:x}):r.createElement(r.Fragment,null,S&&r.createElement(t,{attachments:[S],isQuoted:!0}),r.createElement("div",{className:"str-chat__quoted-message-bubble__text","data-testid":"quoted-message-text"},M)))),g.attachments?.length?r.createElement(t,{attachments:g.attachments}):null):null}},14568:(e,t,n)=>{"use strict";t.A=void 0;var r,a=(r=n(27525))&&r.__esModule?r:{default:r},o=n(42170),i=a.default[a.default.length-1];t.A=(0,o.createReactPlayer)(a.default,i)},16213:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(59696);function a(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},16878:(e,t,n)=>{"use strict";n.d(t,{I:()=>J});var r=n(14232),a=n(69241),o=n(45064),i=n(70251),s=n(80609),l=n(30199);let u=(0,r.createContext)(void 0);function c({children:e}){let{handleRetry:t,message:n,setEditingState:a}=(0,i.m7)("MessageBounceProvider");(0,l.AD)(n)||console.warn('The MessageBounceProvider was rendered for a message that is not bounced. Have you missed the "isMessageBounced" check?');let{removeMessage:o}=(0,s.KS)("MessageBounceProvider"),d=(0,r.useCallback)(()=>{o(n)},[n,o]),p=(0,r.useCallback)(e=>{a(e)},[a]),m=(0,r.useCallback)(()=>{t(n)},[t,n]),f=(0,r.useMemo)(()=>({handleDelete:d,handleEdit:p,handleRetry:m,message:n}),[d,p,m,n]);return r.createElement(u.Provider,{value:f},e)}var d=n(27475);function p({children:e,onClose:t}){let n,{handleDelete:a,handleEdit:o,handleRetry:i}=(n=(0,r.useContext)(u))||(console.warn("The useMessageBounceContext hook was called outside of the MessageBounceContext provider. The errored call is located in the MessageBouncePrompt component."),{}),{t:s}=(0,d.WR)("MessageBouncePrompt");function l(e){return n=>{e(n),t?.(n)}}return r.createElement("div",{className:"str-chat__message-bounce-prompt","data-testid":"message-bounce-prompt"},r.createElement("div",{className:"str-chat__message-bounce-prompt-header"},e??s("This message did not meet our content guidelines")),r.createElement("div",{className:"str-chat__message-bounce-actions"},r.createElement("button",{className:"str-chat__message-bounce-edit","data-testid":"message-bounce-edit",onClick:l(o),type:"button"},s("Edit Message")),r.createElement("button",{className:"str-chat__message-bounce-send","data-testid":"message-bounce-send",onClick:l(i)},s("Send Anyway")),r.createElement("button",{className:"str-chat__message-bounce-delete","data-testid":"message-bounce-delete",onClick:l(a)},s("Delete"))))}var m=n(62417);let f=e=>{let{message:t}=e,{t:n}=(0,d.WR)("MessageDeleted"),{isMyMessage:a}=(0,m.h)(t);return r.createElement("div",{className:`${a?"str-chat__message str-chat__message--me str-chat__message-simple str-chat__message-simple--me":"str-chat__message str-chat__message-simple str-chat__message--other"} str-chat__message--deleted ${t.type} `,"data-testid":"message-deleted-component",key:t.id},r.createElement("div",{className:"str-chat__message--deleted-inner"},n("This message was deleted...")))},h=()=>{let{message:e}=(0,i.m7)(),{t}=(0,d.WR)("MessageBlocked"),{isMyMessage:n}=(0,m.h)(e),o=(0,a.A)("str-chat__message str-chat__message-simple str-chat__message--blocked",e.type,{"str-chat__message--me str-chat__message-simple--me":n,"str-chat__message--other":!n});return r.createElement("div",{className:o,"data-testid":"message-blocked-component",key:e.id},r.createElement("div",{className:"str-chat__message--blocked-inner"},t("Message was blocked by moderation policies")))};var g=n(27338);let y=r.memo(e=>{let{labelPlural:t,labelSingle:n,onClick:a,reply_count:o=0}=e,{t:i}=(0,d.WR)("MessageRepliesCountButton");if(!o)return null;let s=i("replyCount",{count:o});return t&&o>1?s=`${o} ${t}`:n&&(s=`1 ${n}`),r.createElement("div",{className:"str-chat__message-replies-count-button-wrapper"},r.createElement("button",{className:"str-chat__message-replies-count-button","data-testid":"replies-count-button",onClick:a},s))});var v=n(43653),b=n(2106),D=n(57041),E=n(92774),_=n(7970),w=n(10623);let x=r.memo(e=>{let{Avatar:t,MessageDeliveredStatus:n,MessageReadStatus:s,MessageSendingStatus:u,messageType:c="simple",tooltipUserNameMapper:p=l.S2}=e,{handleEnter:m,handleLeave:f,tooltipVisible:h}=(0,E.U)(),{client:g}=(0,_.vd)("MessageStatus"),{Avatar:y}=(0,w.aD)("MessageStatus"),{isMyMessage:x,lastReceivedId:C,message:k,readBy:S,threadList:M}=(0,i.m7)("MessageStatus"),{t:T}=(0,d.WR)("MessageStatus"),[O,A]=(0,r.useState)(null),P=t||y||v.e;if(!x()||"error"===k.type)return null;let F=S?.length===1&&S[0].id===g.user?.id,L=`str-chat__message-${c}-status str-chat__message-status`,R="sending"===k.status,j="received"===k.status&&k.id===C&&!M,N=!!(S?.length&&!M&&!F),I=N?S.filter(e=>e.id!==g.user?.id):[],[B]=I;return r.createElement("span",{className:L,"data-testid":(0,a.A)({"message-status-read-by":N,"message-status-received":j&&!N,"message-status-sending":R}),onMouseEnter:m,onMouseLeave:f,ref:A},R&&(u?r.createElement(u,null):r.createElement(r.Fragment,null,r.createElement(D.g,{offset:[0,5],referenceElement:O,visible:h},T("Sending...")),r.createElement(b.I,null))),j&&!N&&(n?r.createElement(n,null):r.createElement(r.Fragment,null,r.createElement(D.g,{offset:[0,5],referenceElement:O,visible:h},T("Delivered")),r.createElement(o.tE,null))),N&&(s?r.createElement(s,null):r.createElement(r.Fragment,null,r.createElement(D.g,{offset:[0,5],referenceElement:O,visible:h},(0,l.Am)(S,T,g,p)),r.createElement(P,{className:"str-chat__avatar--message-status",image:B.image,name:B.name||B.id,user:B}),I.length>1&&r.createElement("span",{className:`str-chat__message-${c}-status-number`,"data-testid":"message-status-read-by-many"},I.length))))});var C=n(14209),k=n(85171);function S({message:e,theme:t}){let{t:n}=(0,d.WR)("MessageText");return"error"!==e.type||(0,l.AD)(e)?"failed"===e.status?r.createElement("div",{className:`str-chat__${t}-message--error-message str-chat__message--error-message`},n(403!==e.errorStatusCode?"Message Failed \xb7 Click to try again":"Message Failed \xb7 Unauthorized")):null:r.createElement("div",{className:`str-chat__${t}-message--error-message str-chat__message--error-message`},n("Error \xb7 Unsent"))}let M=r.memo(e=>{let{customInnerClass:t,customWrapperClass:n="",message:o,renderText:s,theme:u="simple"}=e,{QuotedMessage:c=C.E}=(0,w.aD)("MessageText"),{message:p,onMentionsClickMessage:m,onMentionsHoverMessage:f,renderText:h,unsafeHTML:g}=(0,i.m7)("MessageText"),y=s??h??k.S5,{userLanguage:v}=(0,d.WR)("MessageText"),b=o||p,D=(0,l.Eg)(b),E=b.i18n?.[`${v}_text`]||b.text,_=(0,r.useMemo)(()=>y(E,b.mentioned_users),[b.mentioned_users,E]),x=t||`str-chat__message-text-inner str-chat__message-${u}-text-inner`;return E||b.quoted_message?r.createElement("div",{className:n||"str-chat__message-text",tabIndex:0},r.createElement("div",{className:(0,a.A)(x,{[`str-chat__message-${u}-text-inner--has-attachment`]:D,[` str-chat__message-${u}-text-inner--is-emoji`]:(0,l.hg)(b.text)&&!b.quoted_message}),"data-testid":"message-text-inner-wrapper",onClick:m,onMouseOver:f},b.quoted_message&&r.createElement(c,null),r.createElement(S,{message:b,theme:u}),g&&b.html?r.createElement("div",{dangerouslySetInnerHTML:{__html:b.html}}):r.createElement("div",null,_))):null});var T=n(86195);function O(e){let{calendar:t,calendarFormats:n,customClass:a,format:o,timestamp:s}=e,{formatDate:l}=(0,i.m7)("MessageTimestamp"),{t:u,tDateTimeParser:c}=(0,d.WR)("MessageTimestamp"),p=s&&(0,T.$P)(s)?s.toISOString():s,m=(0,r.useMemo)(()=>(0,T.sq)({calendar:t,calendarFormats:n,format:o,formatDate:l,messageCreatedAt:p,t:u,tDateTimeParser:c,timestampTranslationKey:"timestamp/MessageTimestamp"}),[t,n,o,l,p,u,c]);return m?r.createElement("time",{className:a,dateTime:p,title:p},m):null}let A=r.memo(e=>{let{message:t,...n}=e,{message:a}=(0,i.m7)("MessageTimestamp"),{Timestamp:o=O}=(0,w.aD)("MessageTimestamp");return r.createElement(o,{timestamp:(t||a).created_at,...n})});var P=n(86300),F=n(55067),L=n(96815),R=n(10111);let j=()=>{let{t:e}=(0,d.WR)("EditMessageForm"),{clearEditingState:t,handleSubmit:n}=(0,R.Oy)("EditMessageForm");return(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t?.()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t]),r.createElement("form",{autoComplete:"off",className:"str-chat__edit-message-form",onSubmit:n},r.createElement(L.h,null),r.createElement("div",{className:"str-chat__edit-message-form-options"},r.createElement("button",{className:"str-chat__edit-message-cancel","data-testid":"cancel-button",onClick:t},e("Cancel")),r.createElement("button",{className:"str-chat__edit-message-send","data-testid":"send-button-edit-form",type:"submit"},e("Send"))))};var N=n(65723),I=n(13629),B=n(79674),z=n(63159);let H={created_at:-1};function U({handleFetchReactions:e,onSelectedReactionTypeChange:t,reactionDetail
4sSort:n,reactions:o,selectedReactionType:s,sortReactionDetails:l,...u}){let c=o.find(({reactionType:e})=>e===s),d=c?.EmojiComponent??null,{reactionDetailsSort:p,sortReactionDetails:m}=(0,i.m7)("ReactionsListModal"),f=l??m,{isLoading:h,reactions:g}=function(e){let{handleFetchReactions:t}=(0,i.m7)("useFetchReactions"),[n,a]=(0,r.useState)([]),{handleFetchReactions:o,reactionType:s,shouldFetch:l,sort:u}=e,[c,d]=(0,r.useState)(l),p=o??t;return(0,r.useEffect)(()=>{if(!l)return;let e=!1;return(async()=>{try{d(!0);let t=await p(s,u);e||a(t)}catch(t){e||a([])}finally{e||d(!1)}})(),()=>{e=!0}},[p,s,l,u]),{isLoading:c,reactions:n}}({handleFetchReactions:e,reactionType:s,shouldFetch:u.open,sort:n??p??H}),y=(0,r.useMemo)(()=>f?[...g].sort(f):g,[f,g]);return r.createElement(B.a,{...u,className:(0,a.A)("str-chat__message-reactions-details-modal",u.className)},r.createElement("div",{className:"str-chat__message-reactions-details","data-testid":"reactions-list-modal"},r.createElement("div",{className:"str-chat__message-reactions-details-reaction-types"},o.map(({EmojiComponent:e,reactionCount:n,reactionType:o})=>e&&r.createElement("div",{className:(0,a.A)("str-chat__message-reactions-details-reaction-type",{"str-chat__message-reactions-details-reaction-type--selected":s===o}),"data-testid":`reaction-details-selector-${o}`,key:o,onClick:()=>t?.(o)},r.createElement("span",{className:"str-chat__message-reaction-emoji str-chat__message-reaction-emoji--with-fallback"},r.createElement(e,null)),"\xa0",r.createElement("span",{className:"str-chat__message-reaction-count"},n)))),d&&r.createElement("div",{className:"str-chat__message-reaction-emoji str-chat__message-reaction-emoji--with-fallback str-chat__message-reaction-emoji-big"},r.createElement(d,null)),r.createElement("div",{className:"str-chat__message-reactions-details-reacting-users","data-testid":"all-reacting-users"},h?r.createElement(b.I,null):y.map(({user:e})=>r.createElement("div",{className:"str-chat__message-reactions-details-reacting-user",key:e?.id},r.createElement(v.e,{className:"stream-chat__avatar--reaction","data-testid":"avatar",image:e?.image,name:e?.name||e?.id}),r.createElement("span",{className:"str-chat__user-item--name","data-testid":"reaction-user-username"},e?.name||e?.id))))))}var V=n(87386);let W=(e,t)=>e.firstReactionAt&&t.firstReactionAt?e.firstReactionAt-t.firstReactionAt:e.reactionType.localeCompare(t.reactionType,"en");var $=n(25958);let q=r.memo(e=>{let{handleFetchReactions:t,reactionDetailsSort:n,reverse:o=!1,sortReactionDetails:s,...l}=e,{existingReactions:u,hasReactions:c,totalReactionCount:p}=(e=>{let{own_reactions:t,reaction_groups:n,reactionOptions:a,reactions:o,sortReactions:s}=e,{message:l,sortReactions:u}=(0,i.m7)("useProcessReactions"),{reactionOptions:c=V.t}=(0,w.aD)("useProcessReactions"),d=a??c,p=s??u??W,m=o||l.latest_reactions,f=t||l?.own_reactions,h=n||l?.reaction_groups,g=(0,r.useCallback)(e=>f?.some(t=>t.type===e)??!1,[f]),y=(0,r.useCallback)(e=>d.find(({type:t})=>t===e)?.Component??null,[d]),v=(0,r.useCallback)(e=>d.some(t=>t.type===e),[d]),b=(0,r.useCallback)(e=>m?.flatMap(t=>{if(e&&e===t.type){let e=t.user?.name||t.user?.id;return e?[e]:[]}return[]})??[],[m]),D=(0,r.useMemo)(()=>h?Object.entries(h).flatMap(([e,{count:t,first_reaction_at:n,last_reaction_at:r}])=>{if(0===t||!v(e))return[];let a=b(e);return[{EmojiComponent:y(e),firstReactionAt:n?new Date(n):null,isOwnReaction:g(e),lastReactionAt:r?new Date(r):null,latestReactedUserNames:a,reactionCount:t,reactionType:e,unlistedReactedUserCount:t-a.length}]}).sort(p):[],[y,b,g,v,h,p]),E=D.length>0,_=(0,r.useMemo)(()=>D.reduce((e,{reactionCount:t})=>e+t,0),[D]);return{existingReactions:D,hasReactions:E,totalReactionCount:_}})(l),[m,f]=(0,r.useState)(null),{t:h}=(0,d.WR)("ReactionsList"),{ReactionsListModal:g=U}=(0,w.aD)();return c?r.createElement(r.Fragment,null,r.createElement("div",{"aria-label":h("aria/Reaction list"),className:(0,a.A)("str-chat__reaction-list str-chat__message-reactions-container",{"str-chat__reaction-list--reverse":o}),"data-testid":"reaction-list",role:"figure"},r.createElement("ul",{className:"str-chat__message-reactions"},u.map(({EmojiComponent:e,isOwnReaction:t,reactionCount:n,reactionType:o})=>e&&r.createElement("li",{className:(0,a.A)("str-chat__message-reaction",{"str-chat__message-reaction-own":t}
4),key:o},r.createElement("button",{"aria-label":`Reactions: ${o}`,"data-testid":`reactions-list-button-${o}`,onClick:()=>{!(p>$.r)&&f(o)},type:"button"},r.createElement("span",{className:"str-chat__message-reaction-emoji"},r.createElement(e,null)),"\xa0",r.createElement("span",{className:"str-chat__message-reaction-count","data-testclass":"reaction-list-reaction-count"},n)))),r.createElement("li",null,r.createElement("span",{className:"str-chat__reaction-list--counter"},p)))),null!==m&&r.createElement(g,{handleFetchReactions:t,onClose:()=>f(null),onSelectedReactionTypeChange:f,open:null!==m,reactions:u,selectedReactionType:m,sortReactionDetails:s})):null});function Y({MessageBouncePrompt:e,...t}){return r.createElement(B.a,{className:"str-chat__message-bounce-modal",...t},r.createElement(c,null,r.createElement(e,{onClose:t.onClose})))}function K({message:e,open:t,...n}){let{t:o}=(0,d.WR)("MessageEditedTimestamp"),{message:s}=(0,i.m7)("MessageEditedTimestamp"),{Timestamp:u=O}=(0,w.aD)("MessageEditedTimestamp"),c=e||s;return(0,l.NY)(c)?r.createElement("div",{className:(0,a.A)("str-chat__message-edited-timestamp",t?"str-chat__message-edited-timestamp--open":"str-chat__message-edited-timestamp--collapsed"),"data-testid":"message-edited-timestamp"},o("Edited")," ",r.createElement(u,{timestamp:c.message_text_updated_at,...n})):null}let G=30,Z=2,X=e=>{let{message:t,renderingLetterCount:n,renderText:a,streamingLetterIntervalMs:o}=e,{message:s}=(0,i.m7)("StreamedMessageText"),l=t||s,{text:u=""}=l,{streamedMessageText:c}=(({renderingLetterCount:e=Z,streamingLetterIntervalMs:t=G,text:n})=>{let[a,o]=(0,r.useState)(n),i=(0,r.useRef)(n.length);return(0,r.useEffect)(()=>{let r=n.length,a=setInterval(()=>{(!n||i.current>=r)&&clearInterval(a);let t=i.current+e,s=n.substring(0,t);i.current+=s.length-i.current,o(s)},t);return()=>{clearInterval(a)}},[t,e,n]),{streamedMessageText:a}})({renderingLetterCount:n,streamingLetterIntervalMs:o,text:u});return r.createElement(M,{message:{...l,text:c},renderText:a})},Q=r.memo(e=>{let t,{additionalMessageInputProps:n,clearEditingState:i,editing:s,endOfGroup:u,firstOfGroup:c,groupedByUser:m,handleAction:b,handleOpenThread:D,handleRetry:E,highlighted:C,isMessageAIGenerated:k,isMyMessage:S,message:T,onUserClick:O,onUserHover:L,renderText:R,threadList:H}=e,{client:U}=(0,_.vd)("MessageSimple"),{t:V}=(0,d.WR)("MessageSimple"),[W,$]=(0,r.useState)(!1),[G,Z]=(0,r.useState)(!1),{Attachment:Q=P.o,Avatar:J=v.e,EditMessageInput:ee=j,MessageOptions:et=g.e,MessageActions:en=et,MessageBlocked:er=h,MessageDeleted:ea=f,MessageBouncePrompt:eo=p,MessageRepliesCountButton:ei=y,MessageStatus:es=x,MessageTimestamp:el=A,ReactionsList:eu=q,StreamedMessageText:ec=X,PinIndicator:ed}=(0,w.aD)("MessageSimple"),ep=(0,l.Eg)(T),em=(0,l.CG)(T),ef=(0,r.useMemo)(()=>k?.(T),[k,T]);if(T.customType===F.F.date)return null;if(T.deleted_at||"deleted"===T.type)return r.createElement(ea,{message:T});if((0,l.aI)(T))return r.createElement(er,null);let eh=!m||u,eg=!H&&!!T.reply_count,ey="failed"===T.status&&403!==T.errorStatusCode,ev=(0,l.AD)(T),eb=(0,l.NY)(T)&&!ef;ey?t=()=>E(T):ev?t=()=>$(!0):eb&&(t=()=>Z(e=>!e));let eD=(0,a.A)("str-chat__message str-chat__message-simple",`str-chat__message--${T.type}`,`str-chat__message--${T.status}`,S()?"str-chat__message--me str-chat__message-simple--me":"str-chat__message--other",T.text?"str-chat__message--has-text":"has-no-text",{"str-chat__message--has-attachment":ep,"str-chat__message--highlighted":C,"str-chat__message--pinned pinned-message":T.pinned,"str-chat__message--with-reactions":em,"str-chat__message-send-can-be-retried":T?.status==="failed"&&T?.errorStatusCode!==403,"str-chat__message-with-thread-link":eg,"str-chat__virtual-message__wrapper--end":u,"str-chat__virtual-message__wrapper--first":c,"str-chat__virtual-message__wrapper--group":m}),eE=T.poll_id&&U.polls.fromState(T.poll_id);return r.createElement(r.Fragment,null,s&&r.createElement(B.a,{className:"str-chat__edit-message-modal",onClose:i,open:s},r.createElement(N.E,{clearEditingState:i,grow:!0,hideSendButton:!0,Input:ee,message:T,...n})),W&&r.createElement(Y,{MessageBouncePrompt:eo,onClose:()=>$(!1),open:W}),r.createElement("div",{className:eD,key:T.id},ed&&r.createElement(ed,null),T.user&&r.createElement(J,{image:T.user.image,name:T.user.name||T.user.id,onClick:O,onMouseOver:L,user:T.user}),r.createElement("div",{className:(0,a.A)("str-chat__message-inner",{"str-chat__simple-message--error-failed":ey||ev}),"data-testid":"message-inner",onClick:t,onKeyUp:t},r.createElement(en,null),r.createElement("div",{className:"str-chat__message-reactions-host"},em&&r.createElement(eu,{reverse:!0})),r.createElement("div",{className:"str-chat__message-bubble"},eE&&r.createElement(z.s,{poll:eE}),T.attachments?.length&&!T.quoted_message?r.createElement(Q,{actionHandler:b,attachments:T.attachments}):null,ef?r.createElement(ec,{message:T,renderText:R}):r.createElement(M,{message:T,renderText:R}),T.mml&&r.createElement(I.p,{actionHandler:b,align:S()?"right":"left",source:T.mml}),r.createElement(o.$S,null))),eg&&r.createElement(ei,{onClick:D,reply_count:T.reply_count}),eh&&r.createElement("div",{className:"str-chat__message-metadata"},r.createElement(es,null),!S()&&!!T.user&&r.createElement("span",{className:"str-chat__message-simple-name"},T.user.name||T.user.id),r.createElement(el,{customClass:"str-chat__message-simple-timestamp"}),eb&&r.createElement("span",{className:"str-chat__mesage-simple-edited"},V("Edited")),eb&&r.createElement(K,{calendar:!0,open:G}))))},l._8),J=e=>{let t=(0,i.m7)("MessageSimple");return r.createElement(Q,{...t,...e})}},18563:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(14232),a=n(7970),o=n(80609),i=n(76844);let s=({isMessageListScrolledToBottom:e,messageListIsThread:t,wasMarkedUnread:n}
4)=>{let{client:s}=(0,a.vd)("useMarkRead"),{markRead:l,setChannelUnreadUiState:u}=(0,o.KS)("useMarkRead"),{channel:c}=(0,i.BX)("useMarkRead");(0,r.useEffect)(()=>{let r=()=>{var r;return!document.hidden&&!n&&!t&&e&&s.user?.id&&(r=s.user.id,c.state.latestMessages.slice(-1)[0]?.id!==c.state.read[r]?.last_read_message_id)},a=()=>{r()&&l()},o=t=>{let a=!t.message?.parent_id||t.message?.show_in_channel;!e||n||document.hidden?u(e=>{let n=e?.unread_messages??0,r=function(e,t){let n;if(t){for(let r=e.length-1;r>=0;r--){let a=e[r];if(!a?.id)break;if(a.id!==t.id){n=a;break}}return n}}(c.state.messages,t.message);return{...e||{},last_read:e?.last_read??new Date(0===n&&r?.created_at?r.created_at:0),unread_messages:n+1}}):a&&r()&&l()};return c.on("message.new",o),document.addEventListener("visibilitychange",a),r()&&l(),()=>{c.off("message.new",o),document.removeEventListener("visibilitychange",a)}},[c,s,e,l,t,u,n])}},18980:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(14232)),o=n(24657),i=n(95824);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");l.prototype=Object.create(e&&e.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),e&&c(l,e);var t,n,s=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=p(l);return a=t?Reflect.construct(o,arguments,p(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:d(e)});function l(){var e;if(!(this instanceof l))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(d(e=s.call.apply(s,[this].concat(n))),"callPlayer",o.callPlayer),m(d(e),"duration",null),m(d(e),"currentTime",null),m(d(e),"secondsLoaded",null),m(d(e),"mute",function(){}),m(d(e),"unmute",function(){}),m(d(e),"ref",function(t){e.iframe=t}),e}return n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;(0,o.getSDK)("https://widget.mixcloud.com/media/js/widgetApi.js","Mixcloud").then(function(e){t.player=e.PlayerWidget(t.iframe),t.player.ready.then(function(){t.player.events.play.on(t.props.onPlay),t.player.events.pause.on(t.props.onPause),t.player.events.ended.on(t.props.onEnded),t.player.events.error.on(t.props.error),t.player.events.progress.on(function(e,n){t.currentTime=e,t.duration=n}),t.props.onReady()})},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.config,r=t.match(i.MATCH_URL_MIXCLOUD)[1],s=(0,o.queryString)(u(u({},n.options),{},{feed:"/".concat(r,"/")}));return a.default.createElement("iframe",{key:r,ref:this.ref,style:{width:"100%",height:"100%"},src:"https://www.mixcloud.com/widget/iframe/?".concat(s),frameBorder:"0"})}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(l.prototype,n),l}(a.Component);t.default=f,m(f,"displayName","Mixcloud"),m(f,"canPlay",i.canPlay.mixcloud),m(f,"loopOnEnded",!0)},21334:(e,t,n)=>{"use strict";n.d(t,{S:()=>r,v:()=>a});let r=e=>!!e&&void 0!==e.current,a=e=>new Promise((t,n)=>{let r=new Image;r.addEventListener("load",()=>{t([r.width,r.height])},{once:!0}),r.addEventListener("error",()=>n(`Couldn't load image from ${e}`),{once:!0}),r.src=e})},22055:(e,t,n)=>{"use strict";n.d(t,{A:()=>
4o});var r=n(54945),a=n(1584);function o(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,a.A)(e)}},22429:function(e){e.exports=function(){"use strict";function e(){return(e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}return function(t,n,r){r.updateLocale=function(t,n){var a=r.Ls[t];if(a)return(n?Object.keys(n):[]).forEach(function(t){a[t]&&n[t]&&"object"==typeof a[t]&&"object"==typeof n[t]&&!Array.isArray(a[t])?a[t]=e({},a[t],n[t]):a[t]=n[t]}),a}}}()},24181:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,a=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||a.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(i,l):e.replace(o,l)).replace(r,s))}},24627:e=>{function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}e.exports=function(e,n,r){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"==typeof n&&(r=n,n={}),r=r||function(){},o.type=(n=n||{}).type||"text/javascript",o.charset=n.charset||"utf8",o.async=!("async"in n)||!!n.async,o.src=e,n.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(o,n.attrs),n.text&&(o.text=""+n.text),("onload"in o?t:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(o,r),o.onload||t(o,r),a.appendChild(o)}},24657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStartTime=function(e){return d(e,s)},t.parseEndTime=function(e){return d(e,l)},t.randomString=function(){return Math.random().toString(36).substr(2,5)},t.queryString=function(e){return Object.keys(e).map(function(t){return"".concat(t,"=").concat(e[t])}).join("&")},t.getSDK=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.default,i=p(t);return i&&a(i)?Promise.resolve(i):new Promise(function(r,a){if(m[e])return void m[e].push({resolve:r,reject:a});m[e]=[{resolve:r,reject:a}];var i=function(t){m[e].forEach(function(e){return e.resolve(t)})};if(n){var s=window[n];window[n]=function(){s&&s(),i(p(t))}}o(e,function(r){r?(m[e].forEach(function(e){return e.reject(r)}),m[e]=null):n||i(p(t))})})},t.getConfig=function(e,t){return(0,a.default)(t.config,e.config)},t.omit=function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];for(var o=(t=[]).concat.apply(t,r),i={},s=Object.keys(e),l=0;l<s.length;l++){var u=s[l];-1===o.indexOf(u)&&(i[u]=e[u])}return i},t.callPlayer=function(e){var t;if(!this.player||!this.player[e]){var n="ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(e,"%c â ");return this.player?this.player[e]||(n+="The method was not available"):n+="The player was not available",console.warn(n,"font-weight: bold",""),null}for(var r=arguments.length,a=Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];return(t=this.player)[e].apply(t,a)},t.isMediaStream=function(e){return"u">typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream},t.isBlobUrl=function(e){return/^blob:/.test(e)},t.supportsWebKitPresentationMode=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.createElement("video"),t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t};var r=o(n(24627)),a=o(n(94410));
4function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s=/[?&#](?:start|t)=([0-9hms]+)/,l=/[?&#]end=([0-9hms]+)/,u=/(\d+)(h|m|s)/g,c=/^\d+$/;function d(e,t){if(!(e instanceof Array)){var n=e.match(t);if(n){var r=n[1];if(r.match(u))return function(e){for(var t=0,n=u.exec(e);null!==n;){var r,a=function(e){if(Array.isArray(e))return e}(r=n)||function(e){if("u">typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(n=(o=i.next()).done)&&(t.push(o.value),3!==t.length);n=!0);}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}return t}}(r)||function(e){if(e){if("string"==typeof e)return i(e,3);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return i(e,3)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=a[1],s=a[2];"h"===s&&(t+=60*parseInt(o,10)*60),"m"===s&&(t+=60*parseInt(o,10)),"s"===s&&(t+=parseInt(o,10)),n=u.exec(e)}return t}(r);if(c.test(r))return parseInt(r)}}}function p(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}var m={}},25037:function(e,t,n){e.exports=function(e){"use strict";var t={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(e){return e+"\xba"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t}(n(56557))},25958:(e,t,n)=>{"use strict";n.d(t,{F:()=>i,r:()=>o});var r=n(7970),a=n(27475);let o=1e3;function i(e,t={}){let{client:n}=(0,r.vd)("useRectionsFetcher"),{t:o}=(0,a.WR)("useReactionFetcher"),{getErrorNotification:l,notify:u}=t;return async(t,r)=>{try{return await s(n,e.id,t,r)}catch(n){let t=l?.(e);throw u?.(t||o("Error fetching reactions"),"error"),n}}}async function s(e,t,n,r){let a,i=[],s=!0;for(;s&&i.length<o;){let o=await e.queryReactions(t,n?{type:n}:{},r,{limit:25,next:a});i.push(...o.reactions),s=!!(a=o.next)}return i}},26373:(e,t,n)=>{"use strict";n.d(t,{Yn:()=>u,mC:()=>s,sp:()=>i});var r=n(14232),a=n(46984),o=n(31383);let i=({id:e})=>{let{dialogManager:t}=(0,a.P)();return(0,r.useEffect)(()=>()=>{t.markForRemoval(e)},[t,e]),t.getOrCreate({id:e})},s=e=>{let{dialogManager:t}=(0,a.P)(),n=(0,r.useCallback)(({dialogsById:t})=>({isOpen:!!t[e]?.isOpen}),[e]);return(0,o.q)(t.state,n).isOpen},l=e=>({openedDialogCount:Object.values(e.dialogsById).reduce((e,t)=>t.isOpen?e+1:e,0)}),u=()=>{let{dialogManager:e}=(0,a.P)();return(0,o.q)(e.state,l).openedDialogCount}},26707:(e,t,n)=>{"use strict";n.d(t,{xH:()=>o});var r=n(14232);let a=(0,r.createContext)(void 0),o=()=>(0,r.useContext)(a)??void 0},27190:(e,t,n)=>{"use strict";n.d(t,{o:()=>y});var r=n(14232),a=n(69241);let o=40,i=({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-pdf",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V3Z",fill:"#F5F5F5"}),r.createElement("path",{d:"M0 28H34V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V28Z",fill:"#E71A01"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#DBDBDB"}),r.createElement("path",{clipRule:"evenodd",d:"M16.39 8.90641C16.215 8.27341 15.787 7.95841 15.426 8.00441C14.99 8.06141 14.526 8.32041 14.34 8.72941C13.854 9.82141 14.768 12.8934 15.028 13.7674L15.073 13.9194C14.015 17.1134 10.394 23.4264 8.62002 23.8534C8.58302 23.4364 8.80602 22.2294 11.146 20.7244C11.266 20.5944 11.406 20.4374 11.471 20.3344C9.49302 21.3004 6.93108 22.8514 8.47102 24.0114C8.55602 24.0774 8.68502 24.1314 8.83402 24.1874C10.014 24.6244 11.666 23.1954 13.327 19.9544C15.157 19.3504 16.633 18.8964 18.722 18.5804C21.005 20.1304 22.538 20.4464 23.578 20.0474C23.866 19.9354 24.32 19.5734 24.45 19.1004C24.515 18.8774 24.608 18.5154 24.432 18.2274C23.842 17.2664 21.452 17.5954 20.032 17.7904C19.779 17.8254 19.557 17.8564 19.381 17.8744C17.552 16.7704 16.289 14.8014 15.778 13.3804C15.857 13.0784 15.936 12.7894 16.012 12.5124C16.397 11.1124 16.701 10.0064 16.392 8.90641H16.39ZM24.45 19.1004C23.605 20.1404 21.628 19.4164 20.05 18.4224C21.507 18.2644 23.01 18.1724 23.661 18.3764C24.488 18.6364 24.459 19.0444 24.451 19.1004H24.45ZM15.601 12.7404C15.296 11.6544 14.868 9.24041 15.555 8.46041C16.701 9.11641 16.266 10.5384 15.825 11.9834C15.748 12.2364 15.671 12.4894 15.601 12.7404ZM13.439 19.5834C15.156 18.9054 16.354 18.4494 18.118 18.1254C16.818 16.9554 16.028 15.6834 15.378 14.3834C14.915 16.0554 13.948 18.5894 13.438 19.5834H13.439Z",fill:"#E71A01",fillRule:"evenodd"}),r.createElement("path",{d:"M13.1719 33.0127V37.4219H12.1875V32.3018H13.1001L13.1719 33.0127ZM15.5132 34.1099V34.1816C15.5132 34.4505 15.4813 34.7 15.4175 34.9302C15.356 35.1603 15.2648 35.3608 15.144 35.5317C15.0233 35.7004 14.8729 35.8325 14.6929 35.9282C14.5151 36.0216 14.3101 36.0684 14.0776 36.0684C13.8521 36.0684 13.6561 36.0228 13.4897 35.9316C13.3234 35.8405 13.1833 35.7129 13.0693 35.5488C12.9577 35.3825 12.8677 35.1899 12.7993 34.9712C12.731 34.7524 12.6785 34.5177 12.6421 34.2671V34.0791C12.6785 33.8102 12.731 33.5641 12.7993 33.3408C12.8677 33.1152 12.9577 32.9204 13.0693 32.7563C13.1833 32.59 13.3223 32.4613 13.4863 32.3701C13.6527 32.279 13.8475 32.2334 14.0708 32.2334C14.3055 32.2334 14.5117 32.2778 14.6895 32.366
47C14.8695 32.4556 15.0199 32.5832 15.1406 32.7495C15.2637 32.9159 15.356 33.1141 15.4175 33.3442C15.4813 33.5744 15.5132 33.8296 15.5132 34.1099ZM14.5254 34.1816V34.1099C14.5254 33.9526 14.5117 33.8079 14.4844 33.6758C14.4593 33.5413 14.4183 33.424 14.3613 33.3237C14.3066 33.2235 14.2337 33.146 14.1426 33.0913C14.0537 33.0343 13.9455 33.0059 13.8179 33.0059C13.6834 33.0059 13.5684 33.0275 13.4727 33.0708C13.3792 33.1141 13.3029 33.1768 13.2437 33.2588C13.1844 33.3408 13.14 33.4388 13.1104 33.5527C13.0807 33.6667 13.0625 33.7954 13.0557 33.939V34.4141C13.0671 34.5827 13.099 34.7342 13.1514 34.8687C13.2038 35.0008 13.2847 35.1056 13.394 35.1831C13.5034 35.2606 13.647 35.2993 13.8247 35.2993C13.9546 35.2993 14.064 35.2708 14.1528 35.2139C14.2417 35.1546 14.3135 35.0737 14.3682 34.9712C14.4251 34.8687 14.465 34.7502 14.4878 34.6157C14.5129 34.4813 14.5254 34.3366 14.5254 34.1816ZM18.3091 35.1934V30.75H19.3003V36H18.4082L18.3091 35.1934ZM15.9712 34.1953V34.1235C15.9712 33.841 16.0031 33.5846 16.0669 33.3545C16.1307 33.1221 16.2241 32.9227 16.3472 32.7563C16.4702 32.59 16.6217 32.4613 16.8018 32.3701C16.9818 32.279 17.1868 32.2334 17.417 32.2334C17.6335 32.2334 17.8226 32.279 17.9844 32.3701C18.1484 32.4613 18.2874 32.5911 18.4014 32.7598C18.5176 32.9261 18.611 33.1232 18.6816 33.3511C18.7523 33.5767 18.8035 33.8239 18.8354 34.0928V34.25C18.8035 34.5075 18.7523 34.7467 18.6816 34.9678C18.611 35.1888 18.5176 35.3825 18.4014 35.5488C18.2874 35.7129 18.1484 35.8405 17.9844 35.9316C17.8203 36.0228 17.6289 36.0684 17.4102 36.0684C17.18 36.0684 16.9749 36.0216 16.7949 35.9282C16.6172 35.8348 16.4668 35.7038 16.3438 35.5352C16.223 35.3665 16.1307 35.1683 16.0669 34.9404C16.0031 34.7126 15.9712 34.4642 15.9712 34.1953ZM16.9556 34.1235V34.1953C16.9556 34.348 16.967 34.4904 16.9897 34.6226C17.0148 34.7547 17.0547 34.8721 17.1094 34.9746C17.1663 35.0749 17.2393 35.1535 17.3281 35.2104C17.4193 35.2651 17.5298 35.2925 17.6597 35.2925C17.8283 35.2925 17.9673 35.2549 18.0767 35.1797C18.186 35.1022 18.2692 34.9963 18.3262 34.8618C18.3854 34.7274 18.4196 34.5724 18.4287 34.397V33.9492C18.4219 33.8057 18.4014 33.6769 18.3672 33.563C18.3353 33.4468 18.2874 33.3477 18.2236 33.2656C18.1621 33.1836 18.0846 33.1198 17.9912 33.0742C17.9001 33.0286 17.7918 33.0059 17.6665 33.0059C17.5389 33.0059 17.4295 33.0355 17.3384 33.0947C17.2472 33.1517 17.1732 33.2303 17.1162 33.3306C17.0615 33.4308 17.0205 33.5493 16.9932 33.686C16.9681 33.8205 16.9556 33.9663 16.9556 34.1235ZM21.3237 36H20.3325V31.9736C20.3325 31.6934 20.3872 31.4575 20.4966 31.2661C20.6082 31.0724 20.7643 30.9266 20.9648 30.8286C21.1676 30.7284 21.408 30.6782 21.686 30.6782C21.7772 30.6782 21.8649 30.6851 21.9492 30.6987C22.0335 30.7101 22.1156 30.7249 22.1953 30.7432L22.1851 31.4849C22.1418 31.4735 22.0962 31.4655 22.0483 31.4609C22.0005 31.4564 21.9447 31.4541 21.8809 31.4541C21.7624 31.4541 21.661 31.4746 21.5767 31.5156C21.4946 31.5544 21.432 31.6125 21.3887 31.6899C21.3454 31.7674 21.3237 31.862 21.3237 31.9736V36ZM22.062 32.3018V32.999H19.7822V32.3018H22.062Z",fill:"white"})),s=({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-fallback ",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V3Z",fill:"url(#paint0_linear)"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#DBDBDB"}),r.createElement("path",{clipRule:"evenodd",d:"M8 13H23V15H8V13Z",fill:"#CFCFCF",fillRule:"evenodd"}),r.createElement("path",{clipRule:"evenodd",d:"M8 17H18V19H8V17Z",fill:"#CFCFCF",fillRule:"evenodd"}),r.createElement("path",{clipRule:"evenodd",d:"M8 21H23V23H8V21Z",fill:"#CFCFCF",fillRule:"evenodd"}),r.createElement("defs",null,r.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear",x1:"0",x2:"0",y1:"0",y2:"40"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:"1",stopColor:"#DBDBDB"})))),l=({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-image",e),height:t,viewBox:"0 0 384 512",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z",fill:"#414D54"})),u=["application/msword","application/msword-template","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.text-template","application/vnd.oasis.opendocument.text-flat-xml"],c=["text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.spreadsheet-template","application/vnd.oasis.opendocument.spreadsheet-flat-xml"],d=["application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.template.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.presentation-template","application/vnd.oasis.opendocument.presentation-flat-xml"],p=["application/zip","application/x-7z-compressed","application/x-archive","application/x-tar","application/gzip","application/x-compress","application/x-bzip","application/x-lzip","application/x-lz4","application/x-lzma","application/x-lzop","application/x-xz","application/x-webarchive","application/vnd.rar"],m=["text/html","text/css","application/x-javascript","text/javascript","application/json","text/x-python","text/x-go","text/x-csrc","text/x-c++src","application/x-ruby","text/rust","text/x-java","application/x-php","text/x-csharp","text/x-scala","text/x-erlang","application/x-shellscript"];function f({FileArchiveIcon:e,FileCodeIcon:t,FileExcelIcon:n,FilePdfIcon:r,FilePowerPointIcon:a,FileWordIcon:o}){let i={"application/pdf":r};for(let e of u)i[e]=o;for(let e of c)i[e]=n;for(let e of d)i[e]=a;for(let t of p)i[t]=e;for(let e of m)i[e]=t;return i}function h({FileAltIcon:e,FileAudioIcon:t,FileImageIcon:n,FileVideoIcon:r}){return{"audio/":t,"image/":n,"text/":e,"video/":r}}let g={alt:{...f({FileArchiveIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-archive-alt",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V3Z",fill:"url(#paint0_linear_11086_246)"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#B67A24"}),r.createElement("path",{clipRule:"evenodd",d:"M10 0H8V2H10V4H8V6H10V8H8V10H10V12H8V14H10V12H12V10H10V8H12V6H10V4H12V2H10V0ZM8 17C8 16.4477 8.44771 16 9 16H11C11.5523 16 12 16.4477 12 17V23C12 23.5523 11.5523 24 11 24H9C8.44771 24 8 23.5523 8 23V17ZM9 23V20H11V23H9Z",fill:"#FFE9C8",fillRule:"evenodd"}),r.createElement("defs",null,r.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear_11086_246",x1:"0",x2:"0",y1:"0",y2:"40"},r.createElement("stop",{stopColor:"#FFC775"}),r.createElement("stop",{offset:"1",stopColor:"#E69E34"})))),FileCodeIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-code-alt",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V3Z",fill:"url(#paint0_linear_11086_611)"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#00ACA1"}),r.createElement("path",{clipRule:"evenodd",d:"M15 21V18.984L11.5 18L15 17V15L9 17V19L15 21ZM19 15V17.016L22.5 18L19 19V21L25 19V17L19 15Z",fill:"#A3DCD8",fillRule:"evenodd"}),r.createElement("defs",null,r.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear_11086_611",x1:"0",x2:"0",y1:"0",y2:"40"},r.createElement("stop",{stopColor:"#7FC4BD"}),r.createElement("stop",{offset:"1",stopColor:"#00ACA1"})))),FileExcelIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-excel-alt",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V3Z",fill:"url(#paint0_linear_11084_326)"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#0C864B"}),r.createElement("path",{clipRule:"evenodd",d:"M12 13H7V15H12V13ZM12 17H7V19H12V17ZM7 21H12V23H7V21ZM23 13H14V15H23V13ZM14 17H23V19H14V17ZM23 21H14V23H23V21Z",fill:"#A8E7C9",fillRule:"evenodd"}),r.createElement("defs",null,r.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear_11084_326",x1:"0",x2:"0",y1:"0",y2:"40"},r.createElement("stop",{stopColor:"#64AD8A"}),r.createElement("stop",{offset:"1",stopColor:"#0C864B"})))),FilePdfIcon:i,FilePowerPointIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-powerpoint-alt",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V3Z",fill:"url(#paint0_linear_11084_76)"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#AB381D"}),r.createElement("path",{clipRule:"evenodd",d:"M7 12C7 10.8954 7.89543 10 9 10H19C20.1046 10 21 10.8954 21 12V18C21 19.1046 20.1046 20 19 20H9C7.89543 20 7 19.1046 7 18V12ZM9 12H19V18H9V12ZM25 22C25 23.1046 24.1046 24 23 24H11V22H23V15H25V22Z",fill:"#FFB3A0",fillRule:"evenodd"}),r.createElement("defs",null,r.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear_11084_76",x1:"0",x2:"0",y1:"0",y2:"40"},r.createElement("stop",{stopColor:"#DC7259"}),r.createElement("stop",{offset:"1",stopColor:"#D14423"})))),FileWordIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-word-alt",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V3Z",fill:"url(#paint0_linear_11084_64)"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#3670D3"}),r.createElement("path",{clipRule:"evenodd",d:"M8 13H23V15H8V13Z",fill:"#C1D8FF",fillRule:"evenodd"}),r.createElement("path",{clipRule:"evenodd",d:"M8 17H18V19H8V17Z",fill:"#C1D8FF",fillRule:"evenodd"}),r.createElement("path",{clipRule:"evenodd",d:"M8 21H23V23H8V21Z",fill:"#C1D8FF",fillRule:"evenodd"}),r.createElement("defs",null,r.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear_11084_64",x1:"0",x2:"0",y1:"0",y2:"40"},r.createElement("stop",{stopColor:"#79A4F2"}),r.createElement("stop",{offset:"1",stopColor:"#3375E2"}))))}),...h({FileAltIcon:s,FileAudioIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-audio-alt",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V3Z",fill:"url(#paint0_linear_11086_420)"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#1919A5"}),r.createElement("path",{clipRule:"evenodd",d:"M8.87912 21.941H12.298L16.9521 24.7493C17.0307 24.8138 17.1293 24.849 17.2311 24.849C17.4738 24.8488 17.6705 24.6519
417.6703 24.4092V12.4399C17.6704 12.3381 17.6352 12.2396 17.5707 12.1609C17.4168 11.9732 17.1398 11.9457 16.9521 12.0996L12.298 14.908H8.87912C8.3936 14.908 8 15.3016 8 15.7871V21.0619C8 21.5474 8.3936 21.941 8.87912 21.941ZM12.9258 16.6664L15.9122 15.2224V21.6268L12.9258 20.1829H9.7583V16.6664H12.9258ZM19.8511 16.3517C19.474 16.4092 19.2397 16.6637 19.3283 16.9191L19.3262 16.92C19.5295 17.4995 19.6305 18.098 19.6284 18.6953C19.6305 19.2975 19.5237 19.9014 19.3196 20.4909C19.229 20.7462 19.4682 20.9996 19.8474 21.06C19.9008 21.0683 19.9542 21.072 20.0076 21.072C20.3259 21.072 20.6156 20.9234 20.6922 20.7057C20.9194 20.0451 21.0337 19.37 21.0374 18.6953C21.0349 18.0251 20.9211 17.3575 20.6955 16.7035C20.6053 16.4477 20.229 16.2908 19.8511 16.3517ZM22.1605 14.6028C22.5252 14.5163 22.9259 14.6454 23.055 14.8938C23.6891 16.1157 24 17.4042 24 18.6923C24.0004 19.9895 23.6796 21.2839 23.0521 22.5153C22.9503 22.7123 22.6763 22.8344 22.3828 22.8344C22.3071 22.8344 22.2301 22.8261 22.1543 22.8092C21.7863 22.7251 21.5914 22.4536 21.7185 22.2077C22.2988 21.0761 22.5922 19.8836 22.5931 18.6919C22.5931 17.5056 22.3054 16.3222 21.7276 15.2025C21.6001 14.9563 21.795 14.686 22.1605 14.6028Z",fill:"#AAAAFF",fillRule:"evenodd"}),r.createElement("defs",null,r.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear_11086_420",x1:"0",x2:"0",y1:"0",y2:"40"},r.createElement("stop",{stopColor:"#4A4AB8"}),r.createElement("stop",{offset:"1",stopColor:"#2727B0"})))),FileImageIcon:l,FileVideoIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-video-alt",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V3Z",fill:"url(#paint0_linear_18604_164254)"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#7A1589"}),r.createElement("path",{d:"M9 17H25V24H9V17ZM27 14C27 12.8954 26.1046 12 25 12H22L24 15H21L19 12H17L19 15H16L14 12H12L14 15H11L9 12C7.9 12 7.01 12.9 7.01 14L7 24C7 25.1 7.9 26 9 26H25C26.1 26 27 25.1 27 24V14Z",fill:"#F3A8FF"}),r.createElement("defs",null,r.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear_18604_164254",x1:"0",x2:"0",y1:"0",y2:"40"},r.createElement("stop",{stopColor:"#A94AB8"}),r.createElement("stop",{offset:"1",stopColor:"#9D27B0"}))))}),fallback:s},standard:{...f({FileArchiveIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-archive",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{clipRule:"evenodd",d:"M17.7168 33.172C18.2348 33.172 18.4238 33.655 18.4238 34.18C18.4238 34.642 18.2978 35.195 17.7168 35.195C17.1708 35.195 16.9888 34.642 16.9888 34.145C16.9888 33.683 17.1708 33.172 17.7168 33.172ZM19.5718 31.002H18.3818V32.7589H18.3678C18.1228 32.43 17.7798 32.262 17.3318 32.262C16.3028 32.262 15.7988 33.158 15.7988 34.103C15.7988 35.125 16.2818 36.1049 17.4228 36.1049C17.8428 36.1049 18.1928 35.923 18.4238 35.58H18.4378V36H19.5718V31.002ZM12.7095 34.1872C12.7095 33.7252 12.8775 33.1722 13.4305 33.1722C13.9835 33.1722 14.1585 33.7252 14.1585 34.1872C14.1585 34.6492 13.9835 35.1952 13.4305 35.1952C12.8775 35.1952 12.7095 34.6492 12.7095 34.1872ZM11.5195 34.1872C11.5195 35.2792 12.3035 36.1052 13.4305 36.1052C14.5575 36.1052 15.3485 35.2792 15.3485 34.1872C15.3485 33.0952 14.5575 32.2622 13.4305 32.2622C12.3035 32.2622 11.5195 33.0952 11.5195 34.1872ZM21.839 32.3671H22.574V33.1371H21.839V34.7891C21.839 35.0761 22.007 35.1391 22.266 35.1391C22.3142 35.1391 22.364 35.1357 22.4147 35.1323C22.4672 35.1287 22.5206 35.1251 22.574 35.1251V36.0001C22.481 36.0031 22.388 36.0099 22.295 36.0168C22.171 36.0259 22.047 36.0351 21.923 36.0351C20.908 36.0351 20.649 35.7411 20.649 34.7541V33.1371H20.047V32.3671H20.649V31.2681H21.839V32.3671Z",fill:"white",fillRule:"evenodd"}),r.createElement("path",{d:"M0 28H34V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V28Z",fill:"#F8B859"}),r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V28H0V3Z",fill:"#F5F5F5"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#DBDBDB"}),r.createElement("path",{clipRule:"evenodd",d:"M10 0H8V2H10V4H8V6H10V8H8V10H10V12H8V14H10V12H12V10H10V8H12V6H10V4H12V2H10V0ZM8 17C8 16.4477 8.44771 16 9 16H11C11.5523 16 12 16.4477 12 17V23C12 23.5523 11.5523 24 11 24H9C8.44771 24 8 23.5523 8 23V17ZM9 23V20H11V23H9Z",fill:"#F8B859",fillRule:"evenodd"})),FileCodeIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-code",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{d:"M0 28H34V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V28Z",fill:"#00ACA1"}),r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V28H0V3Z",fill:"#F5F5F5"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#DBDBDB"}),r.createElement("path",{clipRule:"evenodd",d:"M15 21V18.984L11.5 18L15 17V15L9 17V19L15 21ZM19 15V17.016L22.5 18L19 19V21L25 19V17L19 15Z",fill:"#00ACA1",fillRule:"evenodd"})),FileExcelIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-excel",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{clipRule:"evenodd",d:"M17.7168 33.172C18.2348 33.172 18.4238 33.655 18.4238 34.18C18.4238 34.642 18.2978 35.195 17.7168 35.195C17.1708 35.195 16.9888 34.642 16.9888 34.145C16.9888 33.683 17.1708 33.172 17.7168 33.172ZM19.5718 31.002H18.3818V32.7589H18.3678C18.1228 32.43 17.7798 32.262 17.3318 32.262C16.3028 32.262 15.7988 33.158 15.7988 34.103C15.7988 35.125 16.2818 36.1049 17.4228 36.1049C17.8428 36.1049 18.1928 35.923 18.4238 35.58H18.4378V36H19.5718V31.002ZM12.7095 34.1872C12.7095 33.7252 12.8775 33.1722 13.4305 33.1722C13.9835 33.1722 14.1585 33.7252 14.1585 34.1872C14.1585 34.6492 13.9835 35.1952 13.4305 35.1952C12.8775 35.1952 12.7095 34.6492 12.7095 34.1872ZM11.5195 34.1872C11.5195 35.2792 12.3035 36.1052 13.4305 36.1052C14.5575 36.1052 15.3485 35.2792 15.3485 34.1872C15.3485 33.0952 14.5575 32.2622 13.4305 32.2622C12.3035 32.2622 11.5195 33.0952 11.5195 34.1872ZM21.839 32.3671H22.574V33.1371H21.839V34.7891C21.839 35.0761 22.007 35.1391 22.266 35.1391C22.3142 35.1391 22.364 35.1357 22.4147 35.1323C22.4672 35.1287 22.5206 35.1251 22.574 35.1251V36.0001C22.481 36.0031 22.388 36.0099 22.295 36.0168C22.171 36.0259 22.047 36.0351 21.923 36.0351C20.908 36.0351 20.649 35.7411 20.649 34.7541V33.1371H20.047V32.3671H20.649V31.2681H21.839V32.3671Z",fill:"white",fillRule:"evenodd"}),r.createElement("path",{d:"M0 28H34V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V28Z",fill:"#0F9D58"}),r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V28H0V3Z",fill:"#F5F5F5"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#DBDBDB"}),r.createElement("path",{clipRule:"evenodd",d:"M12 13H7V15H12V13ZM12 17H7V19H12V17ZM7 21H12V23H7V21ZM23 13H14V15H23V13ZM14 17H23V19H14V17ZM23 21H14V23H23V21Z",fill:"#0F9D58",fillRule:"evenodd"})),FilePdfIcon:i,FilePowerPointIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-powerpoint",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{clipRule:"evenodd",d:"M17.7168 33.172C18.2348 33.172 18.4238 33.655 18.4238 34.18C18.4238 34.642 18.2978 35.195 17.7168 35.195C17.1708 35.195 16.9888 34.642 16.9888 34.145C16.9888 33.683 17.1708 33.172 17.7168 33.172ZM19.5718 31.002H18.3818V32.7589H18.3678C18.1228 32.43 17.7798 32.262 17.3318 32.262C16.3028 32.262 15.7988 33.158 15.7988 34.103C15.7988 35.125 16.2818 36.1049 17.4228 36.1049C17.8428 36.1049 18.1928 35.923 18.4238 35.58H18.4378V36H19.5718V31.002ZM12.7095 34.1872C12.7095 33.7252 12.8775 33.1722 13.4305 33.1722C13.9835 33.1722 14.1585 33.7252 14.1585 34.1872C14.1585 34.6492 13.9835 35.1952 13.4305 35.1952C12.8775 35.1952 12.7095 34.6492 12.7095 34.1872ZM11.5195 34.1872C11.5195 35.2792 12.3035 36.1052 13.4305 36.1052C14.5575 36.1052 15.3485 35.2792 15.3485 34.1872C15.3485 33.0952 14.5575 32.2622 13.4305 32.2622C12.3035 32.2622 11.5195 33.0952 11.5195 34.1872ZM21.839 32.3671H22.574V33.1371H21.839V34.7891C21.839 35.0761 22.007 35.1391 22.266 35.1391C22.3142 35.1391 22.364 35.1357 22.4147 35.1323C22.4672 35.1287 22.5206 35.1251 22.574 35.1251V36.0001C22.481 36.0031 22.388 36.0099 22.295 36.0168C22.171 36.0259 22.047 36.0351 21.923 36.0351C20.908 36.0351 20.649 35.7411 20.649 34.7541V33.1371H20.047V32.3671H20.649V31.2681H21.839V32.3671Z",fill:"white",fillRule:"evenodd"}),r.createElement("path",{d:"M0 28H34V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V28Z",fill:"#D65537"}),r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V28H0V3Z",fill:"#F5F5F5"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#DBDBDB"}),r.createElement("path",{clipRule:"evenodd",d:"M7 12C7 10.8954 7.89543 10 9 10H19C20.1046 10 21 10.8954 21 12V18C21 19.1046 20.1046 20 19 20H9C7.89543 20 7 19.1046 7 18V12ZM9 12H19V18H9V12ZM25 22C25 23.1046 24.1046 24 23 24H11V22H23V15H25V22Z",fill:"#D65537",fillRule:"evenodd"})),FileWordIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-word",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{d:"M0 28H34V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V28Z",fill:"#4285F4"}),r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V28H0V3Z",fill:"#F5F5F5"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#DBDBDB"}),r.createElement("path",{clipRule:"evenodd",d:"M8 13H23V15H8V13Z",fill:"#4285F4",f
4illRule:"evenodd"}),r.createElement("path",{clipRule:"evenodd",d:"M8 17H18V19H8V17Z",fill:"#4285F4",fillRule:"evenodd"}),r.createElement("path",{clipRule:"evenodd",d:"M8 21H23V23H8V21Z",fill:"#4285F4",fillRule:"evenodd"}))}),...h({FileAltIcon:s,FileAudioIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-audio",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{clipRule:"evenodd",d:"M17.7168 33.172C18.2348 33.172 18.4238 33.655 18.4238 34.18C18.4238 34.642 18.2978 35.195 17.7168 35.195C17.1708 35.195 16.9888 34.642 16.9888 34.145C16.9888 33.683 17.1708 33.172 17.7168 33.172ZM19.5718 31.002H18.3818V32.7589H18.3678C18.1228 32.43 17.7798 32.262 17.3318 32.262C16.3028 32.262 15.7988 33.158 15.7988 34.103C15.7988 35.125 16.2818 36.1049 17.4228 36.1049C17.8428 36.1049 18.1928 35.923 18.4238 35.58H18.4378V36H19.5718V31.002ZM12.7095 34.1872C12.7095 33.7252 12.8775 33.1722 13.4305 33.1722C13.9835 33.1722 14.1585 33.7252 14.1585 34.1872C14.1585 34.6492 13.9835 35.1952 13.4305 35.1952C12.8775 35.1952 12.7095 34.6492 12.7095 34.1872ZM11.5195 34.1872C11.5195 35.2792 12.3035 36.1052 13.4305 36.1052C14.5575 36.1052 15.3485 35.2792 15.3485 34.1872C15.3485 33.0952 14.5575 32.2622 13.4305 32.2622C12.3035 32.2622 11.5195 33.0952 11.5195 34.1872ZM21.839 32.3671H22.574V33.1371H21.839V34.7891C21.839 35.0761 22.007 35.1391 22.266 35.1391C22.3142 35.1391 22.364 35.1357 22.4147 35.1323C22.4672 35.1287 22.5206 35.1251 22.574 35.1251V36.0001C22.481 36.0031 22.388 36.0099 22.295 36.0168C22.171 36.0259 22.047 36.0351 21.923 36.0351C20.908 36.0351 20.649 35.7411 20.649 34.7541V33.1371H20.047V32.3671H20.649V31.2681H21.839V32.3671Z",fill:"white",fillRule:"evenodd"}),r.createElement("path",{d:"M0 28H34V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V28Z",fill:"#2727B0"}),r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V28H0V3Z",fill:"#F5F5F5"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#DBDBDB"}),r.createElement("path",{clipRule:"evenodd",d:"M8.87912 21.941H12.298L16.9521 24.7493C17.0307 24.8138 17.1293 24.849 17.2311 24.849C17.4738 24.8488 17.6705 24.6519 17.6703 24.4092V12.4399C17.6704 12.3381 17.6352 12.2396 17.5707 12.1609C17.4168 11.9732 17.1398 11.9457 16.9521 12.0996L12.298 14.908H8.87912C8.3936 14.908 8 15.3016 8 15.7871V21.0619C8 21.5474 8.3936 21.941 8.87912 21.941ZM12.9258 16.6664L15.9122 15.2224V21.6268L12.9258 20.1829H9.7583V16.6664H12.9258ZM19.8511 16.3517C19.474 16.4092 19.2397 16.6637 19.3283 16.9191L19.3262 16.92C19.5295 17.4995 19.6305 18.098 19.6284 18.6953C19.6305 19.2975 19.5237 19.9014 19.3196 20.4909C19.229 20.7462 19.4682 20.9996 19.8474 21.06C19.9008 21.0683 19.9542 21.072 20.0076 21.072C20.3259 21.072 20.6156 20.9234 20.6922 20.7057C20.9194 20.0451 21.0337 19.37 21.0374 18.6953C21.0349 18.0251 20.9211 17.3575 20.6955 16.7035C20.6053 16.4477 20.229 16.2908 19.8511 16.3517ZM22.1605 14.6028C22.5252 14.5163 22.9259 14.6454 23.055 14.8938C23.6891 16.1157 24 17.4042 24 18.6923C24.0004 19.9895 23.6796 21.2839 23.0521 22.5153C22.9503 22.7123 22.6763 22.8344 22.3828 22.8344C22.3071 22.8344 22.2301 22.8261 22.1543 22.8092C21.7863 22.7251 21.5914 22.4536 21.7185 22.2077C22.2988 21.0761 22.5922 19.8836 22.5931 18.6919C22.5931 17.5056 22.3054 16.3222 21.7276 15.2025C21.6001 14.9563 21.795 14.686 22.1605 14.6028Z",fill:"#2727B0",fillRule:"evenodd"})),FileImageIcon:l,FileVideoIcon:({className:e="",size:t=o,...n})=>r.createElement("svg",{className:(0,a.A)("rfu-file-video",e),fill:"none",height:t,viewBox:"0 0 34 40",width:t,xmlns:"http://www.w3.org/2000/svg",...n},r.createElement("path",{clipRule:"evenodd",d:"M17.7168 33.172C18.2348 33.172 18.4238 33.655 18.4238 34.18C18.4238 34.642 18.2978 35.195 17.7168 35.195C17.1708 35.195 16.9888 34.642 16.9888 34.145C16.9888 33.683 17.1708 33.172 17.7168 33.172ZM19.5718 31.002H18.3818V32.7589H18.3678C18.1228 32.43 17.7798 32.262 17.3318 32.262C16.3028 32.262 15.7988 33.158 15.7988 34.103C15.7988 35.125 16.2818 36.1049 17.4228 36.1049C17.8428 36.1049 18.1928 35.923 18.4238 35.58H18.4378V36H19.5718V31.002ZM12.7095 34.1872C12.7095 33.7252 12.8775 33.1722 13.4305 33.1722C13.9835 33.1722 14.1585 33.7252 14.1585 34.1872C14.1585 34.6492 13.9835 35.1952 13.4305 35.1952C12.8775 35.1952 12.7095 34.6492 12.7095 34.1872ZM11.5195 34.1872C11.5195 35.2792 12.3035 36.1052 13.4305 36.1052C14.5575 36.1052 15.3485 35.2792 15.3485 34.1872C15.3485 33.0952 14.5575 32.2622 13.4305 32.2622C12.3035 32.2622 11.5195 33.0952 11.5195 34.1872ZM21.839 32.3671H22.574V33.1371H21.839V34.7891C21.839 35.0761 22.007 35.1391 22.266 35.1391C22.3142 35.1391 22.364 35.1357 22.4147 35.1323C22.4672 35.1287 22.5206 35.1251 22.574 35.1251V36.0001C22.481 36.0031 22.388 36.0099 22.295 36.0168C22.171 36.0259 22.047 36.0351 21.923 36.0351C20.908 36.0351 20.649 35.7411 20.649 34.7541V33.1371H20.047V32.3671H20.649V31.2681H21.839V32.3671Z",fill:"white",fillRule:"evenodd"}),r.createElement("path",{d:"M0 28H34V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V28Z",fill:"#9D27B0"}),r.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V28H0V3Z",fill:"#F5F5F5"}),r.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#DBDBDB"}),r.createElement("path",{d:"M9 17H25V24H9V17ZM27 14C27 12.8954 26.1046 12 25 12H22L24 15H21L19 12H17L19 15H16L14 12H12L14 15H11L9 12C7.9 12 7.01 12.9 7.01 14L7 24C7 25.1 7.9 26 9 26H25C26.1 26 27 25.1 27 24V14Z",fill:"#9D27B0"}))}),fallback:s}},y=e=>{let{big:t=!1,mimeType:n,size:a=50,sizeSmall:o=20,type:i="standard",...s}=e,l=function(e="standard",t){let n=g[e]||g.standard;if(!t)return n.fallback;let r=n[t];return r||(t.startsWith("audio/")?n["audio/"]:t.startsWith("video/")?n["video/"]:t.startsWith("image/")?n["image/"]:t.startsWith("text/")?n["text/"]:n.fallback)}(i,n);return r.createElement(l,{...s,size:t?a:o})}},27196:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(74767);function a(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}}
4,27338:(e,t,n)=>{"use strict";n.d(t,{e:()=>w});var r=n(69241),a=n(14232),o=n(45064),i=n(30199),s=n(10623),l=n(80609),u=n(70251),c=n(27475);let d=e=>{let{customMessageActions:t,message:n}=e;if(!t)return null;let r=Object.keys(t);return a.createElement(a.Fragment,null,r.map(e=>{let r=t[e];return a.createElement("button",{"aria-selected":"false",className:"str-chat__message-actions-list-item str-chat__message-actions-list-item-button",key:e,onClick:e=>r(n,e),role:"option"},e)}))},p=a.memo(e=>{let{className:t,getMessageActions:n,handleDelete:o,handleEdit:p,handleFlag:m,handleMarkUnread:f,handleMute:h,handlePin:g,isUserMuted:y,mine:v,open:b,...D}=e,{CustomMessageActionsList:E=d}=(0,s.aD)("MessageActionsBox"),{setQuotedMessage:_}=(0,l.KS)("MessageActionsBox"),{customMessageActions:w,message:x,threadList:C}=(0,u.m7)("MessageActionsBox"),{t:k}=(0,c.WR)("MessageActionsBox"),S=n(),M=(0,r.A)("str-chat__message-actions-box",t,{"str-chat__message-actions-box--open":b}),T="str-chat__message-actions-list-item str-chat__message-actions-list-item-button";return a.createElement("div",{...D,className:M,"data-testid":"message-actions-box"},a.createElement("div",{"aria-label":k("aria/Message Options"),className:"str-chat__message-actions-list",role:"listbox"},a.createElement(E,{customMessageActions:w,message:x}),S.indexOf(i.wx.quote)>-1&&a.createElement("button",{"aria-selected":"false",className:T,onClick:()=>{_(x);let e=(x.parent_id?document.querySelectorAll(".str-chat__thread .str-chat__textarea__textarea"):document.getElementsByClassName("str-chat__textarea__textarea")).item(0);e instanceof HTMLTextAreaElement&&e.focus()},role:"option"},k("Reply")),S.indexOf(i.wx.pin)>-1&&!x.parent_id&&a.createElement("button",{"aria-selected":"false",className:T,onClick:g,role:"option"},k(x.pinned?"Unpin":"Pin")),S.indexOf(i.wx.markUnread)>-1&&!C&&!!x.id&&a.createElement("button",{"aria-selected":"false",className:T,onClick:f,role:"option"},k("Mark as unread")),S.indexOf(i.wx.flag)>-1&&a.createElement("button",{"aria-selected":"false",className:T,onClick:m,role:"option"},k("Flag")),S.indexOf(i.wx.mute)>-1&&a.createElement("button",{"aria-selected":"false",className:T,onClick:h,role:"option"},k(y()?"Unmute":"Mute")),S.indexOf(i.wx.edit)>-1&&a.createElement("button",{"aria-selected":"false",className:T,onClick:p,role:"option"},k("Edit Message")),S.indexOf(i.wx.delete)>-1&&a.createElement("button",{"aria-selected":"false",className:T,onClick:o,role:"option"},k("Delete"))))});var m=n(26373),f=n(4594),h=n(7970);let g=e=>{let{ActionsIcon:t=o.h8,customWrapperClass:n="",getMessageActions:r,handleDelete:l,handleFlag:d,handleMarkUnread:g,handleMute:v,handlePin:b,inline:D,message:E,mine:_}=e,{mutes:w}=(0,h.vd)("MessageActions"),{customMessageActions:x,getMessageActions:C,handleDelete:k,handleFlag:S,handleMarkUnread:M,handleMute:T,handlePin:O,isMyMessage:A,message:P,setEditingState:F,threadList:L}=(0,u.m7)("MessageActions"),{CustomMessageActionsList:R}=(0,s.aD)("MessageActions"),{t:j}=(0,c.WR)("MessageActions"),N=r||C,I=E||P,B=_?_():A(),z=(0,a.useCallback)(()=>(0,i.PX)(I,w),[I,w]),H=`message-actions--${I.id}`,U=(0,m.sp)({id:H}),V=(0,m.mC)(H),W=N(),$=(0,i.cd)({customMessageActions:x,CustomMessageActionsList:R,inThread:L,messageActions:W}),q=(0,a.useRef)(null);return $?a.createElement(y,{customWrapperClass:n,inline:D,toggleOpen:U?.toggle},a.createElement(f.Y,{id:H,placement:B?"top-end":"top-start",referenceElement:q.current,trapFocus:!0},a.createElement(p,{getMessageActions:N,handleDelete:l||k,handleEdit:F,handleFlag:d||S,handleMarkUnread:g||M,handleMute:v||T,handlePin:b||O,isUserMuted:z,mine:B,open:V})),a.createElement("button",{"aria-expanded":V,"aria-haspopup":"true","aria-label":j("aria/Open Message Actions Menu"),className:"str-chat__message-actions-box-button","data-testid":"message-actions-toggle-button",ref:q},a.createElement(t,{className:"str-chat__message-action-icon"}))):null},y=e=>{let{children:t,customWrapperClass:n,inline:o,toggleOpen:i}=e,s=(0,r.A)("str-chat__message-simple__actions__action","str-chat__message-simple__actions__action--options","str-chat__message-actions-container"),l={className:n||s,"data-testid":"message-actions",onClick:i};return o?a.createElement("span",{...l},t):a.createElement("div",{...l},t)};var v=n(43653),b=n(87386),D=n(21334);let E=a.memo(e=>{let{Avatar:t,detailedView:n=!0,handleReaction:o,latest_reactions:i,own_reactions:l,reaction_groups:c,reactionOptions:d,reverse:p=!1}=e,{Avatar:f,reactionOptions:h=b.t}=(0,s.aD)("ReactionSelector"),{closeReactionSelectorOnClick:g,handleReaction:y,message:E}=(0,u.m7)("ReactionSelector"),_=`reaction-selector--${E.id}`,w=(0,m.sp)({id:_}),x=t||f||v.e,C=o||y,k=i||E?.latest_reactions||[],S=l||E?.own_reactions||[],M=c||E?.reaction_groups||{},[T,O]=(0,a.useState)(null),[A,P]=(0,a.useState)(null),F=(0,a.useRef)(null),L=(0,a.useRef)(null),R=(0,a.useRef)(null),j=(0,a.useCallback)((e,t)=>{L.current=e.currentTarget,O(t)},[]),N=(0,a.useCallback)(()=>{O(null),P(null)},[]);return(0,a.useEffect)(()=>
4{if(!T||!F.current)return;let e=R.current?.getBoundingClientRect(),t=L.current?.getBoundingClientRect(),n=(0,D.S)(F)?F.current?.getBoundingClientRect():null;if(!e||!t||!n)return;let r=e.width===n.width||e.x<n.x?0:t.left+t.width/2-n.left-e.width/2;P({arrow:t.x-e.x+t.width/2-r,tooltip:r})},[T,F]),a.createElement("div",{className:(0,r.A)("str-chat__reaction-selector str-chat__message-reaction-selector str-chat-react__message-reaction-selector",{"str-chat__reaction-selector--reverse":p}),"data-testid":"reaction-selector",ref:F},!!T&&n&&a.createElement("div",{className:"str-chat__reaction-selector-tooltip",ref:R,style:{left:A?.tooltip,visibility:A?"visible":"hidden"}},a.createElement("div",{className:"arrow",style:{left:A?.arrow}}),k.map(e=>e.type===T?e.user?.name||e.user?.id:null).filter(Boolean)?.map((e,t,n)=>a.createElement("span",{className:"latest-user-username",key:`key-${t}-${e}`},`${e}${t<n.length-1?", ":""}`))),a.createElement("ul",{className:"str-chat__message-reactions-list str-chat__message-reactions-options"},(d??h).map(({Component:e,name:t,type:o})=>{let i=k.find(e=>e.type===o&&!!e.user)?.user||void 0,s=M[o]?.count??0;return a.createElement("li",{key:o},a.createElement("button",{"aria-label":`Select Reaction: ${t||o}`,className:(0,r.A)("str-chat__message-reactions-list-item str-chat__message-reactions-option",{"str-chat__message-reactions-option-selected":S.find(e=>e.type===o)}),"data-testid":"select-reaction-button","data-text":o,onClick:e=>{C(o,e),g&&w.close()}},!!s&&n&&a.createElement("div",{className:"latest-user str-chat__message-reactions-last-user",onClick:N,onMouseEnter:e=>j(e,o),onMouseLeave:N},i?a.createElement(x,{image:i.image,name:i.name,size:20,user:i}):a.createElement("div",{className:"latest-user-not-found"})),a.createElement("span",{className:"str-chat__message-reaction-emoji"},a.createElement(e,null)),!!s&&n&&a.createElement("span",{className:"str-chat__message-reactions-list-item__count"},s||"")))})))}),_=({ReactionIcon:e})=>{let{t}=(0,c.WR)("ReactionSelectorWithButton"),{isMyMessage:n,message:r}=(0,u.m7)("MessageOptions"),{ReactionSelector:o=E}=(0,s.aD)("MessageOptions"),i=(0,a.useRef)(null),l=`reaction-selector--${r.id}`,d=(0,m.sp)({id:l}),p=(0,m.mC)(l);return a.createElement(a.Fragment,null,a.createElement(f.Y,{id:l,placement:n()?"top-end":"top-start",referenceElement:i.current,trapFocus:!0},a.createElement(o,null)),a.createElement("button",{"aria-expanded":p,"aria-label":t("aria/Open Reaction Selector"),className:"str-chat__message-reactions-button","data-testid":"message-reaction-action",onClick:()=>d?.toggle(),ref:i},a.createElement(e,{className:"str-chat__message-action-icon"})))},w=a.memo(e=>{let{ActionsIcon:t=o.h8,displayReplies:n=!0,handleOpenThread:s,ReactionIcon:l=o.nm,theme:d="simple",ThreadIcon:p=o.ys}=e,{getMessageActions:f,handleOpenThread:h,initialMessage:y,message:v,threadList:b}=(0,u.m7)("MessageOptions"),{t:D}=(0,c.WR)("MessageOptions"),E=(0,m.mC)(`message-actions--${v.id}`),w=(0,m.mC)(`reaction-selector--${v.id}`),x=f(),C=x.indexOf(i.wx.react)>-1,k=x.indexOf(i.wx.reply)>-1&&n&&!b;
4return!v.type||"error"===v.type||"system"===v.type||"ephemeral"===v.type||"failed"===v.status||"sending"===v.status||y?null:a.createElement("div",{className:(0,r.A)(`str-chat__message-${d}__actions str-chat__message-options`,{"str-chat__message-options--active":E||w}),"data-testid":"message-options"},a.createElement(g,{ActionsIcon:t}),k&&a.createElement("button",{"aria-label":D("aria/Open Thread"),className:`str-chat__message-${d}__actions__action str-chat__message-${d}__actions__action--thread str-chat__message-reply-in-thread-button`,"data-testid":"thread-action",onClick:s||h},a.createElement(p,{className:"str-chat__message-action-icon"})),C&&a.createElement(_,{ReactionIcon:l}))})},27475:(e,t,n)=>{"use strict";n.d(t,{Dv:()=>p,WR:()=>m});var r=n(14232),a=n(56557),o=n.n(a),i=n(27808),s=n.n(i),l=n(82908),u=n.n(l),c=n(86195);o().extend(s()),o().extend(u());let d=r.createContext({t:c.Ou,tDateTimeParser:c.uu,userLanguage:"en"}),p=({children:e,value:t})=>r.createElement(d.Provider,{value:t},e),m=e=>{let t=(0,r.useContext)(d);return t||(console.warn(`The useTranslationContext hook was called outside of the TranslationContext provider. Make sure this hook is called within a child of the Chat component. The errored call is located in the ${e} component.`),{})}},27525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(14232),a=n(24657),o=n(95824);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}t.default=[{key:"youtube",name:"YouTube",canPlay:o.canPlay.youtube,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(48344))})})},{key:"soundcloud",name:"SoundCloud",canPlay:o.canPlay.soundcloud,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(33239))})})},{key:"vimeo",name:"Vimeo",canPlay:o.canPlay.vimeo,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(51757))})})},{key:"facebook",name:"Facebook",canPlay:o.canPlay.facebook,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(83195))})})},{key:"streamable",name:"Streamable",canPlay:o.canPlay.streamable,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(56551))})})},{key:"wistia",name:"Wistia",canPlay:o.canPlay.wistia,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(75866))})})},{key:"twitch",name:"Twitch",canPlay:o.canPlay.twitch,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(5516))})})},{key:"dailymotion",name:"DailyMotion",canPlay:o.canPlay.dailymotion,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(93934))})})},{key:"mixcloud",name:"Mixcloud",canPlay:o.canPlay.mixcloud,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(18980))})})},{key:"vidyard",name:"Vidyard",canPlay:o.canPlay.vidyard,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(37574))})})},{key:"kaltura",name:"Kaltura",canPlay:o.canPlay.kaltura,lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(29395))})})},{key:"file",name:"FilePlayer",canPlay:o.canPlay.file,canEnablePIP:function(e){return o.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,a.supportsWebKitPresentationMode)())&&!o.AUDIO_EXTENSIONS.test(e)},lazyPlayer:(0,r.lazy)(function(){return Promise.resolve().then(function(){return l(n(77044))})})}]},27808:function(e){e.exports=function(e,t,n){var r="h:mm A",a={lastDay:"[Yesterday at] "+r,sameDay:"[Today at] "+r,nextDay:"[Tomorrow at] "+r,nextWeek:"dddd [at] "+r,lastWeek:"[Last] dddd [at] "+r,sameElse:"MM/DD/YYYY"};
4t.prototype.calendar=function(e,t){var r=t||this.$locale().calendar||a,o=n(e||void 0).startOf("d"),i=this.diff(o,"d",!0),s="sameElse",l=i<-6?s:i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":s,u=r[l]||a[l];return"function"==typeof u?u.call(this,n()):this.format(u)}}},29395:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(14232)),o=n(24657),i=n(95824);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),e&&l(s,e);var t,n,i=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=c(s);return a=t?Reflect.construct(o,arguments,c(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:u(e)});function s(){var e;if(!(this instanceof s))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(u(e=i.call.apply(i,[this].concat(n))),"callPlayer",o.callPlayer),d(u(e),"duration",null),d(u(e),"currentTime",null),d(u(e),"secondsLoaded",null),d(u(e),"mute",function(){e.callPlayer("mute")}),d(u(e),"unmute",function(){e.callPlayer("unmute")}),d(u(e),"ref",function(t){e.iframe=t}),e}return n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;(0,o.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then(function(e){t.iframe&&(t.player=new e.Player(t.iframe),t.player.on("ready",function(){setTimeout(function(){t.player.isReady=!0,t.player.setLoop(t.props.loop),t.props.muted&&t.player.mute(),t.addListeners(t.player,t.props),t.props.onReady()},500)}))},this.props.onError)}},{key:"addListeners",value:function(e,t){var n=this;e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",function(e){var t=e.duration,r=e.seconds;n.duration=t,n.currentTime=r})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("setCurrentTime",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){return a.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(s.prototype,n),s}(a.Component);t.default=p,d(p,"displayName","Kaltura"),d(p,"canPlay",i.canPlay.kaltura)}
4,29464:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var r=n(77170),a=n.n(r),o=n(14232),i=n(69241),s=n(45103);let l=({amplitudesCount:e=40,progress:t=0,relativeAmplitudeBarWidth:n=2,relativeAmplitudeGap:r=1,seek:l,waveformData:u})=>{let[c,d]=(0,o.useState)(null),p=(0,o.useRef)(!1),[m,f]=(0,o.useState)(null),[h,g]=(0,o.useState)(),y=(0,o.useRef)(void 0),v=(0,o.useCallback)(()=>{c&&(p.current=!1,c.style.removeProperty("cursor"))},[c]),b=(0,o.useMemo)(()=>a()(t=>{if(t===y.current)return;y.current=t;let a=Math.floor(t/(r+n)),o=a<e?a:e,i=n/(n+r),s=o&&t/o*i;g({barCount:o,barWidth:s,gap:r/n*s})},1),[n,r,e]),D=(0,o.useMemo)(()=>h?(0,s.tG)(u,h.barCount):[],[h,u]);return((0,o.useEffect)(()=>(document.addEventListener("pointerup",v),()=>{document.removeEventListener("pointerup",v)}),[v]),(0,o.useEffect)(()=>{if(!m||"u"<typeof ResizeObserver)return;let e=new ResizeObserver(([e])=>{b(e.contentRect.width)});return e.observe(m),()=>{e.disconnect()}},[b,m]),(0,o.useLayoutEffect)(()=>{if(!m)return;let{width:e}=m.getBoundingClientRect();b(e)},[b,m]),u.length&&h?.barCount!==0)?o.createElement("div",{className:"str-chat__wave-progress-bar__track","data-testid":"wave-progress-bar-track",onClick:l,onPointerDown:e=>{e.preventDefault(),c&&(p.current=!0,c.style.cursor="grabbing")},onPointerMove:e=>{p.current&&l({...e})},onPointerUp:v,ref:f,role:"progressbar",style:{"--str-chat__voice-recording-amplitude-bar-gap-width":h?.gap+"px"}},D.map((e,n)=>o.createElement("div",{className:(0,i.A)("str-chat__wave-progress-bar__amplitude-bar",{"str-chat__wave-progress-bar__amplitude-bar--active":t>n/D.length*100}),"data-testid":"amplitude-bar",key:`amplitude-${n}`,style:{"--str-chat__voice-recording-amplitude-bar-width":h?.barWidth+"px","--str-chat__wave-progress-bar__amplitude-bar-height":e?100*e+"%":"0%"}})),o.createElement("div",{className:"str-chat__wave-progress-bar__progress-indicator","data-testid":"wave-progress-bar-progress-indicator",ref:d,style:{left:`${t<0?0:t>100?100:t}%`}})):null}},30199:(e,t,n)=>{"use strict";n.d(t,{AD:()=>_,Am:()=>D,CG:()=>y,Eg:()=>v,JN:()=>s,NY:()=>x,PX:()=>l,S2:()=>b,X8:()=>c,_8:()=>g,aI:()=>w,cd:()=>m,fl:()=>d,hg:()=>E,wx:()=>u,yp:()=>h});var r=n(51161),a=n.n(r),o=n(3307),i=n.n(o);let s=(e,t)=>{if(!e||"function"!=typeof e)return null;Array.isArray(t)||(t=[t]);let n=e(...t);return"string"!=typeof n?null:n},l=(e,t)=>
4!!t&&!!e&&!!t.filter(t=>t.target.id===e.user?.id).length,u={delete:"delete",edit:"edit",flag:"flag",markUnread:"markUnread",mute:"mute",pin:"pin",quote:"quote",react:"react",reply:"reply"},c={commerce:{admin:!0,anonymous:!1,channel_member:!1,channel_moderator:!0,guest:!1,member:!1,moderator:!0,owner:!0,user:!1},gaming:{admin:!0,anonymous:!1,channel_member:!1,channel_moderator:!0,guest:!1,member:!1,moderator:!0,owner:!1,user:!1},livestream:{admin:!0,anonymous:!1,channel_member:!1,channel_moderator:!0,guest:!1,member:!1,moderator:!0,owner:!0,user:!1},messaging:{admin:!0,anonymous:!1,channel_member:!0,channel_moderator:!0,guest:!1,member:!0,moderator:!0,owner:!0,user:!1},team:{admin:!0,anonymous:!1,channel_member:!0,channel_moderator:!0,guest:!1,member:!0,moderator:!0,owner:!0,user:!1}},d=(e,{canDelete:t,canEdit:n,canFlag:r,canMarkUnread:a,canMute:o,canPin:i,canQuote:s,canReact:l,canReply:c})=>{let d=[],p=[];if(e&&"boolean"==typeof e)p=Object.keys(u);else{if(!e||!(e.length>0))return[];p=[...e]}return t&&p.indexOf(u.delete)>-1&&d.push(u.delete),n&&p.indexOf(u.edit)>-1&&d.push(u.edit),r&&p.indexOf(u.flag)>-1&&d.push(u.flag),a&&p.indexOf(u.markUnread)>-1&&d.push(u.markUnread),o&&p.indexOf(u.mute)>-1&&d.push(u.mute),i&&p.indexOf(u.pin)>-1&&d.push(u.pin),s&&p.indexOf(u.quote)>-1&&d.push(u.quote),l&&p.indexOf(u.react)>-1&&d.push(u.react),c&&p.indexOf(u.reply)>-1&&d.push(u.reply),d},p=[u.pin,u.reply,u.markUnread],m=({customMessageActions:e,CustomMessageActionsList:t,inThread:n,messageActions:r})=>void 0!==t||void 0!==e||!(!r.length||n&&0===r.filter(e=>!p.includes(e)).length||1===r.length&&(r.includes(u.react)||r.includes(u.reply))||2===r.length&&r.includes(u.react)&&r.includes(u.reply));function f(e,t){return e.deleted_at===t.deleted_at&&e.latest_reactions?.length===t.latest_reactions?.length&&e.own_reactions?.length===t.own_reactions?.length&&e.pinned===t.pinned&&e.reply_count===t.reply_count&&e.status===t.status&&e.text===t.text&&e.type===t.type&&e.updated_at===t.updated_at&&e.user?.updated_at===t.user?.updated_at&&!!e.quoted_message==!!t.quoted_message&&(!e.quoted_message||f(e.quoted_message,t.quoted_message))}let h=(e,t)=>{let{message:n,Message:r}=e,{message:o,Message:i}=t;return r===i&&e.endOfGroup===t.endOfGroup&&t.showDetailedReactions===e.showDetailedReactions&&t.closeReactionSelectorOnClick===e.closeReactionSelectorOnClick&&!!f(n,o)&&!!(a()(t.messageActions,e.messageActions)&&a()(t.readBy,e.readBy)&&a()(t.highlighted,e.highlighted)&&a()(t.groupStyles,e.groupStyles)&&a()(t.mutes,e.mutes)&&a()(t.lastReceivedId,e.lastReceivedId))&&e.messageListRect===t.messageListRect},g=(e,t)=>{let{lastReceivedId:n,message:r}=e,{lastReceivedId:a,message:o}=t;return e.editing===t.editing&&e.highlighted===t.highlighted&&e.endOfGroup===t.endOfGroup&&e.mutes?.length===t.mutes?.length&&e.readBy?.length===t.readBy?.length&&e.groupStyles===t.groupStyles&&e.showDetailedReactions===t.showDetailedReactions&&(r.id!==n&&r.id!==a||n===a)&&f(r,o)},y=e=>Object.values(e?.reaction_groups??{}).some(({count:e})=>e>0),v=e=>!!e?.attachments&&!!e.attachments.length,b=e=>e.name||e.id,D=(e,t,n,r)=>{let a="";if(!t)throw Error("getReadByTooltipText was called, but translation function is not available");if(!r)throw Error("getReadByTooltipText was called, but tooltipUserNameMapper function is not available");let o=e.filter(e=>e&&n?.user&&e.id!==n.user.id).map(r),i=o.slice(0,5),s=o.length-i.length;if(1===i.length)a=`${i[0]} `;else if(2===i.length)a=t("{{ firstUser }} and {{ secondUser }}",{firstUser:i[0],secondUser:i[1]});else if(i.length>2)if(0===s){let e=i.splice(i.length-1,1);a=t("{{ commaSeparatedUsers }}, and {{ lastUser }}",{commaSeparatedUsers:i.join(", "),lastUser:e})}else a=t("{{ commaSeparatedUsers }} and {{ moreCount }} more",{commaSeparatedUsers:i.join(", "),moreCount:s});return a},E=e=>!!e&&!e.replace(i()(),"").replace(/[\s\n]/gm,""),_=e=>"error"===e.type&&(e.moderation_details?.action==="MESSAGE_RESPONSE_ACTION_BOUNCE"||e.moderation?.action==="bounce"),w=e=>"error"===e.type&&(e.moderation_details?.action==="MESSAGE_RESPONSE_ACTION_REMOVE"||e.moderation?.action==="remove"),x=e=>!!e.message_text_updated_at},30236:(e,t,n)=>{"use strict";n.d(t,{VB:()=>ee});var r=n(14232),a=n(95062),o=n(4902);let i
vendor: 41,168 bytes, line 4
4=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function
4s(e,t,n){let r=function(e){let{name:t}=e;if(t&&-1!==t.lastIndexOf(".")&&!e.type){let n=t.split(".").pop().toLowerCase(),r=i.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e),{webkitRelativePath:a}=e,o="string"==typeof t?t:"string"==typeof a&&a.length>0?a:`./${e.name}`;return"string"!=typeof r.path&&l(r,"path",o),void 0!==n&&Object.defineProperty(r,"handle",{value:n,writable:!1,configurable:!1,enumerable:!0}),l(r,"relativePath",o),r}function l(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}let u=[".DS_Store","Thumbs.db"];function c(e){return"object"==typeof e&&null!==e}function d(e){return e.filter(e=>-1===u.indexOf(e.name))}function p(e){if(null===e)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n];t.push(r)}return t}function m(e){if("function"!=typeof e.webkitGetAsEntry)return f(e);let t=e.webkitGetAsEntry();return t&&t.isDirectory?g(t):f(e,t)}function f(e,t){return(0,o.sH)(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle){let t=yield e.getAsFileSystemHandle();if(null===t)throw Error(`${e} is not a File`);if(void 0!==t){let e=yield t.getFile();return e.handle=t,s(e)}}let r=e.getAsFile();if(!r)throw Error(`${e} is not a File`);return s(r,null!=(n=null==t?void 0:t.fullPath)?n:void 0)})}function h(e){return(0,o.sH)(this,void 0,void 0,function*(){return e.isDirectory?g(e):function(e){return(0,o.sH)(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(n=>{t(s(n,e.fullPath))},e=>{n(e)})})})}(e)})}function g(e){let t=e.createReader();
4return new Promise((e,n)=>{let r=[];!function a(){t.readEntries(t=>(0,o.sH)(this,void 0,void 0,function*(){if(t.length){let e=Promise.all(t.map(h));r.push(e),a()}else try{let t=yield Promise.all(r);e(t)}catch(e){n(e)}}),e=>{n(e)})}()})}var y=n(34343);function v(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(e,t)||w(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var C="function"==typeof y?y:y.default,k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(","),n=t.length>1?"one of ".concat(t.join(", ")):t[0];return{code:"file-invalid-type",message:"File type must be ".concat(n)}},S=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},M=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},T={code:"too-many-files",message:"Too many files"};function O(e,t){var n="application/x-moz-file"===e.type||C(e,t)||""===e.type&&"function"==typeof e.getAsFile;return[n,n?null:k(t)]}function A(e,t,n){if(P(e.size)){if(P(t)&&P(n)){if(e.size>n)return[!1,S(n)];if(e.size<t)return[!1,M(t)]}else if(P(t)&&e.size<t)return[!1,M(t)];else if(P(n)&&e.size>n)return[!1,S(n)]}return[!0,null]}function P(e){return null!=e}function F(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function L(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function R(e){e.preventDefault()}function j(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return t.some(function(t){return!F(e)&&t&&t.apply(void 0,[e].concat(r)),F(e)})}}function N(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function I(e){return/^.*\.[\w]+$/.test(e)}var B=["children"],z=["open"],H=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],U=["refKey","onChange","onClick"];function V(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,a=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(e,t)||$(e,t)||function(){throw TypeError("Invalid attempt to de
4structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){if(e){if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var X=(0,r.forwardRef)(function(e,t){var n=e.children,a=ee(Z(e,B)),o=a.open,i=Z(a,z);return(0,r.useImperativeHandle)(t,function(){return{open:o}},[o]),r.createElement(r.Fragment,null,n(K(K({},i),{},{open:o})))});X.displayName="Dropzone";var Q={disabled:!1,getFilesFromEvent:function(e){return(0,o.sH)(this,void 0,void 0,function*(){var t;if(c(e)&&c(e.dataTransfer))return function(e,t){return(0,o.sH)(this,void 0,void 0,function*(){if(e.items){let n=p(e.items).filter(e=>"file"===e.kind);return"drop"!==t?n:d(function e(t){return t.reduce((t,n)=>[...t,...Array.isArray(n)?e(n):[n]],[])}((yield Promise.all(n.map(m)))))}return d(p(e.files).map(e=>s(e)))})}(e.dataTransfer,e.type);if(c(t=e)&&c(t.target))return p(e.target.files).map(e=>s(e));return Array.isArray(e)&&e.every(e=>"getFile"in e&&"function"==typeof e.getFile)?function(e){return(0,o.sH)(this,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>e.getFile()))).map(e=>s(e))})}(e):[]})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};X.defaultProps=Q,X.propTypes={children:a.func,accept:a.objectOf(a.arrayOf(a.string)),multiple:a.bool,preventDropOnDocument:a.bool,noClick:a.bool,noKeyboard:a.bool,noDrag:a.bool,noDragEventsBubbling:a.bool,minSize:a.number,maxSize:a.number,maxFiles:a.number,disabled:a.bool,getFilesFromEvent:a.func,onFileDialogCancel:a.func,onFileDialogOpen:a.func,useFsAccessApi:a.bool,autoFocus:a.bool,onDragEnter:a.func,onDragLeave:a.func,onDragOver:a.func,onDrop:a.func,onDropAccepted:a.func,onDropRejected:a.func,onError:a.func,validator:a.func};var J={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=K(K({},Q),e),n=t.accept,a=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,p=t.onDragOver,m=t.onDrop,f=t.onDropAccepted,h=t.onDropRejected,g=t.onFileDialogCancel,y=t.onFileDialogOpen,b=t.useFsAccessApi,w=t.autoFocus,x=t.preventDropOnDocument,C=t.noClick,k=t.noKeyboard,S=t.noDrag,M=t.noDragEventsBubbling,B=t.onError,z=t.validator,$=(0,r.useMemo)(function(){return P(n)?Object.entries(n).reduce(function(e,t){var n=_(t,2),r=n[0],a=n[1];return[].concat(v(e),[r],v(a))},[]).filter(function(e){return N(e)||I(e)}).join(","):void 0},[n]),q=(0,r.useMemo)(function(){return P(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=_(e,2),n=t[0],r=t[1],a=!0;return N(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),Array.isArray(r)&&r.every(I)||(console.warn('Skipped "'.concat(n,'" because an invali
4d file extension was provided.')),a=!1),a}).reduce(function(e,t){var n=_(t,2),r=n[0],a=n[1];return D(D({},e),{},E({},r,a))},{})}]:n},[n]),Y=(0,r.useMemo)(function(){return"function"==typeof y?y:en},[y]),X=(0,r.useMemo)(function(){return"function"==typeof g?g:en},[g]),ee=(0,r.useRef)(null),er=(0,r.useRef)(null),ea=W((0,r.useReducer)(et,J),2),eo=ea[0],ei=ea[1],es=eo.isFocused,el=eo.isFileDialogActive,eu=(0,r.useRef)("u">typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),ec=function(){!eu.current&&el&&setTimeout(function(){er.current&&(er.current.files.length||(ei({type:"closeDialog"}),X()))},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ec,!1),function(){window.removeEventListener("focus",ec,!1)}},[er,el,X,eu]);var ed=(0,r.useRef)([]),ep=(0,r.useRef)([]),em=function(e){ee.current&&ee.current.contains(e.target)||(e.preventDefault(),ed.current=[])};(0,r.useEffect)(function(){return x&&(document.addEventListener("dragover",R,!1),document.addEventListener("drop",em,!1)),function(){x&&(document.removeEventListener("dragover",R),document.removeEventListener("drop",em))}},[ee,x]),(0,r.useEffect)(function(){var e=function(e){ep.current=[].concat(V(ep.current),[e.target]),L(e)&&ei({isDragGlobal:!0,type:"setDragGlobal"})},t=function(e){ep.current=ep.current.filter(function(t){return t!==e.target&&null!==t}),ep.current.length>0||ei({isDragGlobal:!1,type:"setDragGlobal"})},n=function(){ep.current=[],ei({isDragGlobal:!1,type:"setDragGlobal"})},r=function(){ep.current=[],ei({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",e,!1),document.addEventListener("dragleave",t,!1),document.addEventListener("dragend",n,!1),document.addEventListener("drop",r,!1),function(){document.removeEventListener("dragenter",e),document.removeEventListener("dragleave",t),document.removeEventListener("dragend",n),document.removeEventListener("drop",r)}},[ee]),(0,r.useEffect)(function(){return!a&&w&&ee.current&&ee.current.focus(),function(){}},[ee,w,a]);var ef=(0,r.useCallback)(function(e){B?B(e):console.error(e)},[B]),eh=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eM(e),ed.current=[].concat(V(ed.current),[e.target]),L(e)&&Promise.resolve(o(e)).then(function(t){if(!F(e)||M){var n,r,a,o,d,p,m,f,h=t.length,g=h>0&&(r=(n={files:t,accept:$,minSize:s,maxSize:i,multiple:l,maxFiles:u,validator:z}).files,a=n.accept,o=n.minSize,d=n.maxSize,p=n.multiple,m=n.maxFiles,f=n.validator,(!!p||!(r.length>1))&&(!p||!(m>=1)||!(r.length>m))&&r.every(function(e){var t=_(O(e,a),1)[0],n=_(A(e,o,d),1)[0],r=f?f(e):null;return t&&n&&!r}));ei({isDragAccept:g,isDragReject:h>0&&!g,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return ef(e)})},[o,c,ef,M,$,s,i,l,u,z]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eM(e);var t=L(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&p&&p(e),!1},[p,M]),ey=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eM(e);var t=ed.current.filter(function(e){return ee.current&&ee.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ed.current=t,!(t.length>0)&&(ei({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),L(e)&&d&&d(e))},[ee,d,M]),ev=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=W(O(e,$),2),a=t[0],o=t[1],l=W(A(e,s,i),2),u=l[0],c=l[1],d=z?z(e):null;if(a&&u&&!d)n.push(e);else{var p=[o,c];d&&(p=p.concat(d)),r.push({file:e,errors:p.filter(function(e){return e})})}}),(!l&&n.length>1||l&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[T]})}),n.splice(0)),ei({acceptedFiles:n,fileRejections:r,isDragReject:r.length>0,type:"setFiles"}),m&&m(n,r,t),r.length>0&&h&&h(r,t),n.length>0&&f&&f(n,t)},[ei,l,$,s,i,u,m,f,h,z]),eb=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eM(e),ed.current=[],L(e)&&Promise.resolve(o(e)).then(function(t){(!F(e)||M)&&ev(t,e)}).catch(function(e){return ef(e)}),ei({type:"reset"})},[o,ev,ef,M]),eD=(0,r.useCallback)(function(){if(eu.current){ei({type:"openDialog"}),Y(),window.showOpenFilePicker({multiple:l,types:q}).then(function(e){return o(e)}).then(function(e){ev(e,null),ei({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(X(e),ei({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(eu.current=!1,er.current?(er.current.value=null,er.current.click()):ef(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ef(e)});return}er.current&&(ei({type:"openDialog"}),Y(),er.current.value=null,er.current.click())},[ei,Y,X,b,ev,ef,q,l]),eE=(0,r.useCallback)(function(e){ee.current&&ee.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),eD())},[ee,eD]),e_=(0,r.useCallback)(function(){ei({type:"focus"})},[]),ew=(0,r.useCallback)(function(){ei({type:"blur"})},[]),ex=(0,r.useCallback)(function(){C||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(eD,0):eD())},[C,eD]),eC=function(e){return a?null:e},ek=function(e){return k?null:eC(e)},eS=function(e){return S?null:eC(e)},eM=function(e){M&&e.stopPropagation()},eT=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,o=e.onFocus,i=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,p=Z(e,H);return K(K(G({onKeyDown:ek(j(r,eE)),onFocus:ek(j(o,e_)),onBlur:ek(j(i,ew)
4),onClick:eC(j(s,ex)),onDragEnter:eS(j(l,eh)),onDragOver:eS(j(u,eg)),onDragLeave:eS(j(c,ey)),onDrop:eS(j(d,eb)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,ee),a||k?{}:{tabIndex:0}),p)}},[ee,eE,e_,ew,ex,eh,eg,ey,eb,k,S,a]),eO=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eA=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,a=Z(e,U);return K(K({},G({accept:$,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:eC(j(n,eb)),onClick:eC(j(r,eO)),tabIndex:-1},void 0===t?"ref":t,er)),a)}},[er,n,l,eb,a]);return K(K({},eo),{},{isFocused:es&&!a,getRootProps:eT,getInputProps:eA,rootRef:ee,inputRef:er,open:eC(eD)})}function et(e,t){switch(t.type){case"focus":return K(K({},e),{},{isFocused:!0});case"blur":return K(K({},e),{},{isFocused:!1});case"openDialog":return K(K({},J),{},{isFileDialogActive:!0});case"closeDialog":return K(K({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return K(K({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return K(K({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"setDragGlobal":return K(K({},e),{},{isDragGlobal:t.isDragGlobal});case"reset":return K({},J);default:return e}}function en(){}},30371:(e,t,n)=>{"use strict";n.d(t,{_:()=>r});let r="str-chat__channel"},30416:(e,t,n)=>{"use strict";n.d(t,{B:()=>d});var r=n(91851),a=n(81692),o=n(31666),i=n(97901),s=n(55408),l=n(7941),u=n(91863),c=n(45737);function d(e,t,n){let d,p=(0,a.q)(),m=n?.locale??p.locale??r.c,f=(0,s.z)(e,t);if(isNaN(f))throw RangeError("Invalid time value");let h=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:f}),[g,y]=(0,i.x)(n?.in,...f>0?[t,e]:[e,t]),v=(0,c.O)(y,g),b=Math.round((v-((0,o.G)(y)-(0,o.G)(g))/1e3)/60);if(b<2)if(n?.includeSeconds)if(v<5)return m.formatDistance("lessThanXSeconds",5,h);else if(v<10)return m.formatDistance("lessThanXSeconds",10,h);else if(v<20)return m.formatDistance("lessThanXSeconds",20,h);else if(v<40)return m.formatDistance("halfAMinute",0,h);else if(v<60)return m.formatDistance("lessThanXMinutes",1,h);else return m.formatDistance("xMinutes",1,h);else if(0===b)return m.formatDistance("lessThanXMinutes",1,h);else return m.formatDistance("xMinutes",b,h);if(b<45)return m.formatDistance("xMinutes",b,h);if(b<90)return m.formatDistance("aboutXHours",1,h);if(b<l.F6){let e=Math.round(b/60);return m.formatDistance("aboutXHours",e,h)}if(b<2520)return m.formatDistance("xDays",1,h);else if(b<l.Nw){let e=Math.round(b/l.F6);return m.formatDistance("xDays",e,h)}else if(b<2*l.Nw)return d=Math.round(b/l.Nw),m.formatDistance("aboutXMonths",d,h);if((d=(0,u.W)(y,g))<12){let e=Math.round(b/l.Nw);return m.formatDistance("xMonths",e,h)}{let e=d%12,t=Math.trunc(d/12);return e<3?m.formatDistance("aboutXYears",t,h):e<9?m.formatDistance("overXYears",t,h):m.formatDistance("almostXYears",t+1,h)}}},31383:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var r=n(14232),a=n(38806);let o=()=>{};function i(e,t){let n=(0,r.useCallback)(n=>e?.subscribeWithSelector(t,n)??o,[e,t]),i=(0,r.useMemo)(()=>{let n;return()=>{let r=e?.getLatestValue();if(!r)return;if(n&&n[0]===r)return n[1];let a=t(r);if(n){let e=!0;for(let t in n[1])if(n[1][t]!==a[t]){e=!1;break}if(e)return n[1]}return(n=[r,a])[1]}},[e,t]);return(0,a.useSyncExternalStore)(n,i)}},33239:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(14232)),o=n(24657),i=n(95824);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
4t%2?l(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),e&&c(s,e);var t,n,i=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=p(s);return a=t?Reflect.construct(o,arguments,p(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:d(e)});function s(){var e;if(!(this instanceof s))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(d(e=i.call.apply(i,[this].concat(n))),"callPlayer",o.callPlayer),m(d(e),"duration",null),m(d(e),"currentTime",null),m(d(e),"fractionLoaded",null),m(d(e),"mute",function(){e.setVolume(0)}),m(d(e),"unmute",function(){null!==e.props.volume&&e.setVolume(e.props.volume)}),m(d(e),"ref",function(t){e.iframe=t}),e}return n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,t){var n=this;(0,o.getSDK)("https://w.soundcloud.com/player/api.js","SC").then(function(r){if(n.iframe){var a=r.Widget.Events,o=a.PLAY,i=a.PLAY_PROGRESS,s=a.PAUSE,l=a.FINISH,c=a.ERROR;t||(n.player=r.Widget(n.iframe),n.player.bind(o,n.props.onPlay),n.player.bind(s,function(){n.duration-n.currentTime<.05||n.props.onPause()}),n.player.bind(i,function(e){n.currentTime=e.currentPosition/1e3,n.fractionLoaded=e.loadedProgress}),n.player.bind(l,function(){return n.props.onEnded()}),n.player.bind(c,function(e){return n.props.onError(e)})),n.player.load(e,u(u({},n.props.config.options),{},{callback:function(){n.player.getDuration(function(e){n.duration=e/1e3,n.props.onReady()})}}))}})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seekTo",1e3*e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var e=this.props.display;return a.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:{width:"100%",height:"100%",display:e},frameBorder:0,allow:"autoplay"})}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(s.prototype,n),s}(a.Component);t.default=f,m(f,"displayName","SoundCloud"),m(f,"canPlay",i.canPlay.soundcloud),m(f,"loopOnEnded",!0)},33468:(e,t,n)=>{var r=n(50466);e.exports=function(e,t,n,a,o){var i=r(e,t,n,a,o);return i.next().then(function(e){return e.done?e.value:i.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},34334:(e,t,n)=>{"use strict";n.d(t,{D:()=>a,d:()=>o});var r=n(14232);let a="str-chat__main-panel-inner str-chat__message-list-main-panel",o=({children:e})=>r.createElement("div",{className:a},e)},34343:(e,t)=>
4{"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(0===n.length)return!0;var r=e.name||"",a=(e.type||"").toLowerCase(),o=a.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):a===t})}return!0}},34550:function(e,t,n){e.exports=function(e){var t={703:(e,t,n)=>{"use strict";var r=n(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:e=>{var t="u">typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,i){if(o===i)return!0;if(o&&i&&"object"==typeof o&&"object"==typeof i){var s,l,u,c;if(o.constructor!==i.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=i.length)return!1;for(l=s;0!=l--;)if(!e(o[l],i[l]))return!1;return!0}if(n&&o instanceof Map&&i instanceof Map){if(o.size!==i.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!i.has(l.value[0]))return!1;for(c=o.entries();!(l=c.next()).done;)if(!e(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&o instanceof Set&&i instanceof Set){if(o.size!==i.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(i)){if((s=o.length)!=i.length)return!1;for(l=s;0!=l--;)if(o[l]!==i[l])return!1;return!0}if(o.constructor===RegExp)return o.source===i.source&&o.flags===i.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===i.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===i.toString();if((s=(u=Object.keys(o)).length)!==Object.keys(i).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(i,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],i[u[l]]))return!1;return!0}return o!=o&&i!=i}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},37:function(e,t,n){!function(e,t){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var r="Left",a="Right",o="Down",i={delta:10,preventDefaultTouchmoveEvent:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0},s={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},l="mousemove",u="mouseup";function c(e,t){if(0===t)return e;var n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}e.DOWN=o,e.LEFT=r,e.RIGHT=a,e.UP="Up",e.useSwipeable=function(e){var d,p,m,f=e.trackMouse,h=t.useRef(n({},s)),g=t.useRef(n({},i));g.current=n({},i,e);var y=t.useMemo(function(){var e,t,i,d,p,m,y,v;return e=function(e){return h.current=e(h.current,g.current)},t={trackMouse:f},i=function(t){t&&"touches"in t&&t.touches.length>1||e(function(e,r){r.trackMouse&&(document.addEventListener(l,d),document.addEventListener(u,m));var a="touches"in t?t.touches[0]:t,o=c([a.clientX,a.clientY],r.rotationAngle);return n({},e,s,{initial:[].concat(o),xy:o,start:t.timeStamp||0})})},d=function(t){e(function(e,i){if("touches"in t&&t.touches.length>1)return e;var s="touches"in t?t.touches[0]:t,l=c([s.clientX,s.clientY],i.rotationAngle),u=l[0],d=l[1],p=u-e.xy[0],m=d-e.xy[1],f=Math.abs(p),h=Math.abs(m),g=(t.timeStamp||0)-e.start,y=Math.sqrt(f*f+h*h)/(g||1);if(f<i.delta&&h<i.delta&&!e.swiping)return e;var v=f>h?p>0?a:r:m>0?o:"Up",b={absX:f,absY:h,deltaX:p,deltaY:m,dir:v,event:t,first:e.first,initial:e.initial,velocity:y,vxvy:[p/(g||1),m/(g||1)]};i.onSwiping&&i.onSwiping(b);var D=!1;
4return(i.onSwiping||i.onSwiped||"onSwiped"+v in i)&&(D=!0),D&&i.preventDefaultTouchmoveEvent&&i.trackTouch&&t.cancelable&&t.preventDefault(),n({},e,{first:!1,eventData:b,swiping:!0})})},p=function(t){e(function(e,r){var a;if(e.swiping&&e.eventData){a=n({},e.eventData,{event:t}),r.onSwiped&&r.onSwiped(a);var o="onSwiped"+a.dir;o in r&&r[o](a)}else r.onTap&&r.onTap({event:t});return n({},e,s,{eventData:a})})},m=function(e){document.removeEventListener(l,d),document.removeEventListener(u,m),p(e)},y=function(e,t){var n=function(){};if(e&&e.addEventListener){var r=[["touchstart",i],["touchmove",d],["touchend",p]];r.forEach(function(n){var r=n[0],a=n[1];return e.addEventListener(r,a,{passive:t})}),n=function(){return r.forEach(function(t){var n=t[0],r=t[1];return e.removeEventListener(n,r)})}}return n},v={ref:function(t){null!==t&&e(function(e,r){if(e.el===t)return e;var a={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),a.cleanUpTouch=void 0),r.trackTouch&&t&&(a.cleanUpTouch=y(t,!r.preventDefaultTouchmoveEvent)),n({},e,{el:t},a)})}},t.trackMouse&&(v.onMouseDown=i),[v,y]},[f]),v=y[0],b=y[1];return d=h.current,p=g.current,m={},!p.trackTouch&&d.cleanUpTouch?(d.cleanUpTouch(),m.cleanUpTouch=void 0):p.trackTouch&&!d.cleanUpTouch&&d.el&&(m.cleanUpTouch=b(d.el,!p.preventDefaultTouchmoveEvent)),h.current=n({},d,m),v}}(t,n(888))},888:t=>{"use strict";t.exports=e}},r={};function a(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}};return t[e].call(o.exports,o,o.exports,a),o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";function e(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(a&&(a+=" "),a+=r);else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(r&&(r+=" "),r+=t);return r}a.r(o),a.d(o,{default:()=>eb});var t=a(888),r=a.n(t);let i=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;var l="object"==typeof self&&self&&self.Object===Object&&self;let u=s||l||Function("return this")(),c=function(){return u.Date.now()};var d=/\s/,p=/^\s+/;let m=u.Symbol;var f=Object.prototype,h=f.hasOwnProperty,g=f.toString,y=m?m.toStringTag:void 0,v=Object.prototype.toString,b=m?m.toStringTag:void 0;let D=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":b&&b in Object(e)?function(e){var t=h.call(e,y),n=e[y];try{e[y]=void 0;var r=!0}catch(e){}var a=g.call(e);return r&&(t?e[y]=n:delete e[y]),a}(e):v.call(e)};var E=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,w=/^0o[0-7]+$/i,x=parseInt;let C=function(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||null!=t&&"object"==typeof t&&"[object Symbol]"==D(t))return NaN;if(i(e)){var t,n,r="function"==typeof e.valueOf?e.valueOf():e;e=i(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(n=e)?n.slice(0,function(e){for(var t=e.length;t--&&d.test(e.charAt(t)););return t}(n)+1).replace(p,""):n;var a=_.test(e);return a||w.test(e)?x(e.slice(2),a?2:8):E.test(e)?NaN:+e};var k=Math.max,S=Math.min;let M=function(e,t,n){var r,a,o,s,l,u,d=0,p=!1,m=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function h(t){var n=r,o=a;return r=a=void 0,d=t,s=e.apply(o,n)}function g(e){var n=e-u;return void 0===u||n>=t||n<0||m&&e-d>=o}function y(){var e,n=c();if(g(n))return v(n);l=setTimeout(y,(e=t-(n-u),m?S(e,o-(n-d)):e))}function v(e){return l=void 0,f&&r?h(e):(r=a=void 0,s)}function b(){var e,n=c(),o=g(n);if(r=arguments,a=this,u=n,o){if(void 0===l)return d=e=u,l=setTimeout(y,t),p?h(e):s;if(m)return clearTimeout(l),l=setTimeout(y,t),h(u)}return void 0===l&&(l=setTimeout(y,t)),s}return t=C(t)||0,i(n)&&(p=!!n.leading,o=(m="maxWait"in n)?k(C(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==l&&clearTimeout(l),d=0,r=u=a=l=void 0},b.flush=function(){return void 0===l?s:v(c())},b},T=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),M(e,t,{leading:r,maxWait:t,trailing:a})};var O=a(590),A=a.n(O),P=function(){if("u">typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var a=r[n];e.call(t,a[1],a[0])}},t}(),F="u">typeof window&&"u">typeof document&&window.document===document,L=void 0!==a.g&&a.g.Math===Math?a.g:"u">typeof self&&self.Math===Math?self:"u">typeof window&&window.Math===Math?window:Function("return this")(),R="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(L):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},j=["top","right","bottom","left","width","height","size","weight"],N="u">typeof MutationObserver,I=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function a(){t&&(t=!1,e()),n&&i()}function o(){R(a)}function i(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(o,20);r=e}return i}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){F&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),N?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){F&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;j.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
4w e),this.instance_},e.instance_=null,e}(),B=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},z=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||L},H=$(0,0,0,0);function U(e){return parseFloat(e)||0}function V(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+U(e["border-"+n+"-width"])},0)}var W="u">typeof SVGGraphicsElement?function(e){return e instanceof z(e).SVGGraphicsElement}:function(e){return e instanceof z(e).SVGElement&&"function"==typeof e.getBBox};function $(e,t,n,r){return{x:e,y:t,width:n,height:r}}var q=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e,t,n=(e=this.target,F?W(e)?$(0,0,(t=e.getBBox()).width,t.height):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return H;var r=z(e).getComputedStyle(e),a=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var a=r[n],o=e["padding-"+a];t[a]=U(o)}return t}(r),o=a.left+a.right,i=a.top+a.bottom,s=U(r.width),l=U(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=V(r,"left","right")+o),Math.round(l+i)!==n&&(l-=V(r,"top","bottom")+i)),e!==z(e).document.documentElement){var u=Math.round(s+o)-t,c=Math.round(l+i)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return $(a.left,a.top,s,l)}(e):H);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Y=function(e,t){var n,r,a,o,i,s=(n=t.x,r=t.y,a=t.width,o=t.height,B(i=Object.create(("u">typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:n,y:r,width:a,height:o,top:r,right:n+a,bottom:o+r,left:n}),i);B(this,{target:e,contentRect:s})},K=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new P,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("u">typeof Element&&Element instanceof Object){if(!(e instanceof z(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new q(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("u">typeof Element&&Element instanceof Object){if(!(e instanceof z(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new Y(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),G="u">typeof WeakMap?new WeakMap:new P,Z=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new K(t,I.getInstance(),this);G.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){Z.prototype[e]=function(){var t;return(t=G.get(this))[e].apply(t,arguments)}});let X=void 0!==L.ResizeObserver?L.ResizeObserver:Z;var Q=a(37),J=a(697),ee=r().memo(function(e){var t=e.description,n=e.fullscreen,a=e.handleImageLoaded,o=e.isFullscreen,i=e.onImageError,s=e.original,l=e.originalAlt,u=e.originalHeight,c=e.originalWidth,d=e.originalTitle,p=e.sizes,m=e.srcSet,f=e.loading,h=o&&n||s;return r().createElement(r().Fragment,null,r().createElement("img",{className:"image-gallery-image",src:h,alt:l,srcSet:m,height:u,width:c,sizes:p,title:d,onLoad:function(e){return a(e,s)},onError:i,loading:f}),t&&r().createElement("span",{className:"image-gallery-description"},t))});ee.displayName="Item",ee.propTypes={description:J.string,fullscreen:J.string,handleImageLoaded:J.func.isRequired,isFullscreen:J.bool,onImageError:J.func.isRequired,original:J.string.isRequired,originalAlt:J.string,originalHeight:J.string,originalWidth:J.string,originalTitle:J.string,sizes:J.string,srcSet:J.string,loading:J.string},ee.defaultProps={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"};
4var et={left:r().createElement("polyline",{points:"15 18 9 12 15 6"}),right:r().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:r().createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:r().createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:r().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:r().createElement(r().Fragment,null,r().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),r().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},en=function(e){var t=e.strokeWidth,n=e.viewBox,a=e.icon;return r().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:n,fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"},et[a])};en.propTypes={strokeWidth:J.number,viewBox:J.string,icon:(0,J.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired},en.defaultProps={strokeWidth:1,viewBox:"0 0 24 24"};var er=r().memo(function(e){var t=e.isFullscreen,n=e.onClick;return r().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:n,"aria-label":"Open Fullscreen"},r().createElement(en,{strokeWidth:2,icon:t?"minimize":"maximize"}))});er.displayName="Fullscreen",er.propTypes={isFullscreen:J.bool.isRequired,onClick:J.func.isRequired};var ea=r().memo(function(e){var t=e.disabled,n=e.onClick;return r().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:t,onClick:n,"aria-label":"Previous Slide"},r().createElement(en,{icon:"left",viewBox:"6 0 12 24"}))});ea.displayName="LeftNav",ea.propTypes={disabled:J.bool.isRequired,onClick:J.func.isRequired};var eo=r().memo(function(e){var t=e.disabled,n=e.onClick;return r().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:t,onClick:n,"aria-label":"Next Slide"},r().createElement(en,{icon:"right",viewBox:"6 0 12 24"}))});eo.displayName="RightNav",eo.propTypes={disabled:J.bool.isRequired,onClick:J.func.isRequired};var ei=r().memo(function(e){var t=e.isPlaying,n=e.onClick;return r().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:n,"aria-label":"Play or Pause Slideshow"},r().createElement(en,{strokeWidth:2,icon:t?"pause":"play"}))});function es(){return(es=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}ei.displayName="PlayPause",ei.propTypes={isPlaying:J.bool.isRequired,onClick:J.func.isRequired};var el=function(e){var t=e.children,n=e.className,a=e.delta,o=e.onSwiping,i=e.onSwiped,s=(0,Q.useSwipeable)({delta:a,onSwiping:o,onSwiped:i});return r().createElement("div",es({},s,{className:n}),t)};function eu(e){return(eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(n),!0).forEach(function(t){var r,a,o;r=e,a=t,o=n[t],a in r?Object.defineProperty(r,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[a]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ep(e,t){return(ep=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function em(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ef(e){return(ef=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}el.propTypes={children:J.node.isRequired,className:J.string,delta:J.number,onSwiped:J.func,onSwiping:J.func},el.defaultProps={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}};var eh=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],eg=(0,J.arrayOf)((0,J.shape)({srcSet:J.string,media:J.string}));function ey(e){var t=parseInt(e.keyCode||e.which||0,10);return 66===t||62===t}var ev=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),t&&ep(i,t);var n,a,o=(a=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=ef(i);return e=a?Reflect.construct(t,arguments,ef(this).constructor):t.apply(this,arguments),e&&("object"===eu(e)||"function"==typeof e)?e:em(this)});function i(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={currentIndex:e.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(e.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},t.loadedImages={},t.imageGallery=r().createRef(),t.thumbnailsWrapper=r().createRef(),t.thumbnails=r().createRef(),t.imageGallerySlideWrapper=r().createRef(),t.handleImageLoaded=t.handleImageLoaded.bind(em(t)),t.handleKeyDown=t.handleKeyDown.bind(em(t)),t.handleMouseDown=t.handleMouseDown.bind(em(t)),t.handleResize=t.handleResize.bind(em(t)),t.handleTouchMove=t.handleTouchMove.bind(em(t)),t.handleOnSwiped=t.handleOnSwiped.bind(em(t)),t.handleScreenChange=t.handleScreenChange.bind(em(t)),t.handleSwiping=t.handleSwiping.bind(em(t)),t.handleThumbn
4ailSwiping=t.handleThumbnailSwiping.bind(em(t)),t.handleOnThumbnailSwiped=t.handleOnThumbnailSwiped.bind(em(t)),t.onThumbnailMouseLeave=t.onThumbnailMouseLeave.bind(em(t)),t.handleImageError=t.handleImageError.bind(em(t)),t.pauseOrPlay=t.pauseOrPlay.bind(em(t)),t.renderThumbInner=t.renderThumbInner.bind(em(t)),t.renderItem=t.renderItem.bind(em(t)),t.slideLeft=t.slideLeft.bind(em(t)),t.slideRight=t.slideRight.bind(em(t)),t.toggleFullScreen=t.toggleFullScreen.bind(em(t)),t.togglePlay=t.togglePlay.bind(em(t)),t.unthrottledSlideToIndex=t.slideToIndex,t.slideToIndex=T(t.unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(t.lazyLoaded=[]),t}return n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoPlay,n=e.useWindowKeyDown;t&&this.play(),n?window.addEventListener("keydown",this.handleKeyDown):this.imageGallery.current.addEventListener("keydown",this.handleKeyDown),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),this.addScreenChangeEvent()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.items,a=n.lazyLoad,o=n.slideDuration,i=n.slideInterval,s=n.startIndex,l=n.thumbnailPosition,u=n.showThumbnails,c=n.useWindowKeyDown,d=this.state,p=d.currentIndex,m=d.isPlaying,f=e.items.length!==r.length,h=!A()(e.items,r),g=e.startIndex!==s,y=e.thumbnailPosition!==l,v=e.showThumbnails!==u;i===e.slideInterval&&o===e.slideDuration||m&&(this.pause(),this.play()),y&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),v&&u&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),v&&!u&&this.removeThumbnailsResizeObserver(),(f||v)&&this.handleResize(),t.currentIndex!==p&&this.slideThumbnailBar(),e.slideDuration!==o&&(this.slideToIndex=T(this.unthrottledSlideToIndex,o,{trailing:!1})),a&&(!e.lazyLoad||h)&&(this.lazyLoaded=[]),c!==e.useWindowKeyDown&&(c?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(g||h)&&this.setState({currentIndex:s,slideStyle:{transition:"none"}})}},{key:"componentWillUnmount",value:function(){var e=this.props.useWindowKeyDown;window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("touchmove",this.handleTouchMove),this.removeScreenChangeEvent(),this.removeResizeObserver(),this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null),this.transitionTimer&&window.clearTimeout(this.transitionTimer),e?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"onSliding",value:function(){var e=this,t=this.state,n=t.currentIndex,r=t.isTransitioning,a=this.props,o=a.onSlide,i=a.slideDuration;this.transitionTimer=window.setTimeout(function(){r&&(e.setState({isTransitioning:!r,isSwipingThumbnail:!1}),o&&o(n))},i+50)}},{key:"onThumbnailClick",value:function(e,t){var n=this.props.onThumbnailClick;e.target.parentNode.parentNode.blur(),this.slideToIndex(t,e),n&&n(e,t)}},{key:"onThumbnailMouseOver",value:function(e,t){var n=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){n.slideToIndex(t),n.pause()},300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var e=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,e&&this.play()}}},{key:"setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"setModalFullscreen",value:function(e){var t=this.props.onScreenChange;this.setState({modalFullscreen:e}),t&&t(e)}},{key:"getThumbsTranslate",value:function(e){var t,n=this.props,r=n.disableThumbnailScroll,a=n.items,o=this.state,i=o.thumbnailsWrapperWidth,s=o.thumbnailsWrapperHeight,l=this.thumbnails&&this.thumbnails.current;if(r)return 0;if(l){if(this.isThumbnailVertical()){if(l.scrollHeight<=s)return 0;t=l.scrollHeight-s}else{if(l.scrollWidth<=i||i<=0)return 0;t=l.scrollWidth-i}return e*(t/(a.length-1))}return 0}},{key:"getThumbnailPositionClassName",value:function(e){switch(e){case"left":e=" ".concat("image-gallery-thumbn
4ails-left");break;case"right":e=" ".concat("image-gallery-thumbnails-right");break;case"bottom":e=" ".concat("image-gallery-thumbnails-bottom");break;case"top":e=" ".concat("image-gallery-thumbnails-top")}return e}},{key:"getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n=this.props,r=n.infinite,a=n.items,o="",i="image-gallery-left",s="image-gallery-right";switch(e){case t-1:o=" ".concat(i);break;case t:o=" ".concat("image-gallery-center");break;case t+1:o=" ".concat(s)}return a.length>=3&&r&&(0===e&&t===a.length-1?o=" ".concat(s):e===a.length-1&&0===t&&(o=" ".concat(i))),o}},{key:"getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.currentSlideOffset,a=t.previousIndex,o=0===e&&1===n,i=1===e&&0===n,s=0===r,l=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),i&&r>0&&(l=-100+r),o&&r<0&&(l=100+r),n!==a?0===e&&0===a&&s&&"left"===this.direction?l=100:1===e&&1===a&&s&&"right"===this.direction&&(l=-100):(i&&s&&"left"===this.direction&&(l=-100),o&&s&&"right"===this.direction&&(l=100)),l}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.currentSlideOffset,a=t.slideStyle,o=this.props,i=o.infinite,s=o.items,l=o.useTranslate3D,u=o.isRTL,c=s.length-1,d=(-100*n+100*e)*(u?-1:1)+r;i&&s.length>2&&(0===n&&e===c?d=-100*(u?-1:1)+r:n===c&&0===e&&(d=100*(u?-1:1)+r)),i&&2===s.length&&(d=this.getTranslateXForTwoSlide(e));var p="translate(".concat(d,"%, 0)");return l&&(p="translate3d(".concat(d,"%, 0, 0)")),ed({display:this.isSlideVisible(e)?"inherit":"none",WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,transform:p},a)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var e,t=this.props,n=t.useTranslate3D,r=t.isRTL,a=this.state,o=a.thumbsTranslate,i=a.thumbsStyle,s=r?-1*o:o;return this.isThumbnailVertical()?(e="translate(0, ".concat(o,"px)"),n&&(e="translate3d(0, ".concat(o,"px, 0)"))):(e="translate(".concat(s,"px, 0)"),n&&(e="translate3d(".concat(s,"px, 0, 0)"))),ed({WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e},i)}},{key:"getSlideItems",value:function(){var t=this,n=this.state.currentIndex,a=this.props,o=a.items,i=a.slideOnThumbnailOver,s=a.onClick,l=a.lazyLoad,u=a.onTouchMove,c=a.onTouchEnd,d=a.onTouchStart,p=a.onMouseOver,m=a.onMouseLeave,f=a.renderItem,h=a.renderThumbInner,g=a.showThumbnails,y=a.showBullets,v=[],b=[],D=[];return o.forEach(function(a,o){var E=t.getAlignmentClassName(o),_=a.originalClass?" ".concat(a.originalClass):"",w=a.thumbnailClass?" ".concat(a.thumbnailClass):"",x=a.renderItem||f||t.renderItem,C=a.renderThumbInner||h||t.renderThumbInner,k=!l||E||t.lazyLoaded[o];k&&l&&!t.lazyLoaded[o]&&(t.lazyLoaded[o]=!0);var S=t.getSlideStyle(o),M=r().createElement("div",{"aria-label":"Go to Slide ".concat(o+1),key:"slide-".concat(o),tabIndex:"-1",className:"image-gallery-slide ".concat(E," ").concat(_),style:S,onClick:s,onKeyUp:t.handleSlideKeyUp,onTouchMove:u,onTouchEnd:c,onTouchStart:d,onMouseOver:p,onFocus:p,onMouseLeave:m,role:"button"},k?x(a):r().createElement("div",{style:{height:"100%"}}));if(v.push(M),g&&a.thumbnail){var T=e("image-gallery-thumbnail",w,{active:n===o});b.push(r().createElement("button",{key:"thumbnail-".concat(o),type:"button",tabIndex:"0","aria-pressed":n===o?"true":"false","aria-label":"Go to Slide ".concat(o+1),className:T,onMouseLeave:i?t.onThumbnailMouseLeave:null,onMouseOver:function(e){return t.handleThumbnailMouseOver(e,o)},onFocus:function(e){return t.handleThumbnailMouseOver(e,o)},onKeyUp:function(e){return t.handleThumbnailKeyUp(e,o)},onClick:function(e){return t.onThumbnailClick(e,o)}},C(a)))}if(y){var O=e("image-gallery-bullet",a.bulletClass,{active:n===o});D.push(r().createElement("button",{type:"button",key:"bullet-".concat(o),className:O,onClick:function(e){return a.bulletOnClick&&a.bulletOnClick({item:a,itemIndex:o,currentIndex:n}),e.target.blur(),t.slideToIndex.call(t,o,e)},"aria-pressed":n===o?"true":"false","aria-label":"Go to Slide ".concat(o+1)}))}}),{slides:v,thumbnails:b,bullets:D}}},{key:"ignoreIsTransitioning",value:function(){var e=this.props.items,t=this.state,n=t.previousIndex,r=t.currentIndex,a=e.length-1;return Math.abs(n-r)>1&&(0!==n||r!==a)&&(n!==a||0!==r)}},{key:"isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"slideIsTransitioning",value:function(e){var t=this.state,n=t.
4isTransitioning,r=t.previousIndex,a=t.currentIndex;return n&&e!==r&&e!==a}},{key:"isSlideVisible",value:function(e){return!this.slideIsTransitioning(e)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(e)}},{key:"slideThumbnailBar",value:function(){var e=this.state,t=e.currentIndex,n=e.isSwipingThumbnail,r=-this.getThumbsTranslate(t);n||(0===t?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:r,thumbsSwipedTranslate:r}))}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){var e=this.props,t=e.infinite,n=e.isRTL;return t||(n?this.canSlideNext():this.canSlidePrevious())}},{key:"canSlideRight",value:function(){var e=this.props,t=e.infinite,n=e.isRTL;return t||(n?this.canSlidePrevious():this.canSlideNext())}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"handleSwiping",value:function(e){var t=e.event,n=e.absX,r=e.dir,a=this.props,o=a.disableSwipe,i=a.stopPropagation,s=this.state,l=s.galleryWidth,u=s.isTransitioning,c=s.swipingUpDown,d=s.swipingLeftRight;if(r!==Q.UP&&r!==Q.DOWN&&!c||d){if(r!==Q.LEFT&&r!==Q.RIGHT||d||this.setState({swipingLeftRight:!0}),!o){var p=this.props.swipingTransitionDuration;if(i&&t.preventDefault(),u)this.setState({currentSlideOffset:0});else{var m=r===Q.RIGHT?1:-1,f=n/l*100;Math.abs(f)>=100&&(f=100),this.setState({currentSlideOffset:m*f,slideStyle:{transition:"transform ".concat(p,"ms ease-out")}})}}}else c||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(e){var t=e.event,n=e.absX,r=e.absY,a=e.dir,o=this.props,i=o.stopPropagation,s=o.swipingThumbnailTransitionDuration,l=this.state,u=l.thumbsSwipedTranslate,c=l.thumbnailsWrapperHeight,d=l.thumbnailsWrapperWidth,p=l.swipingUpDown,m=l.swipingLeftRight;if(this.isThumbnailVertical()){if((a===Q.LEFT||a===Q.RIGHT||m)&&!p)return void(m||this.setState({swipingLeftRight:!0}));a!==Q.UP&&a!==Q.DOWN||p||this.setState({swipingUpDown:!0})}else{if((a===Q.UP||a===Q.DOWN||p)&&!m)return void(p||this.setState({swipingUpDown:!0}));a!==Q.LEFT&&a!==Q.RIGHT||m||this.setState({swipingLeftRight:!0})}var f,h,g,y,v=this.thumbnails&&this.thumbnails.current;this.isThumbnailVertical()?(h=Math.abs(f=u+(a===Q.DOWN?r:-r))>v.scrollHeight-c+20,g=f>20,y=v.scrollHeight<=c):(h=Math.abs(f=u+(a===Q.RIGHT?n:-n))>v.scrollWidth-d+20,g=f>20,y=v.scrollWidth<=d),y||(a===Q.LEFT||a===Q.UP)&&h||(a===Q.RIGHT||a===Q.DOWN)&&g||(i&&t.stopPropagation(),this.setState({thumbsTranslate:f,thumbsStyle:{transition:"transform ".concat(s,"ms ease-out")}}))}},{key:"handleOnThumbnailSwiped",value:function(){var e=this.state.thumbsTranslate,t=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:e,thumbsStyle:{transition:"all ".concat(t,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){return Math.abs(this.state.currentSlideOffset)>this.props.swipeThreshold}},{key:"resetSwipingDirection",value:function(){var e=this.state,t=e.swipingUpDown,n=e.swipingLeftRight;t&&this.setState({swipingUpDown:!1}),n&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(e){var t=e.event,n=e.dir,r=e.velocity,a=this.props,o=a.disableSwipe,i=a.stopPropagation,s=a.flickThreshold;if(!o){var l=this.props.isRTL;i&&t.stopPropagation(),this.resetSwipingDirection();var u=(n===Q.LEFT?1:-1)*(l?-1:1),c=n===Q.UP||n===Q.DOWN;this.handleOnSwipedTo(u,r>s&&!c)}}},{key:"handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,a=n.isTransitioning,o=r;(this.sufficientSwipe()||t)&&!a&&(o+=e),(-1!==e||this.canSlideLeft())&&(1!==e||this.canSlideRight())||(o=r),this.unthrottledSlideToIndex(o)}},{key:"handleTouchMove",value:function(e){this.state.swipingLeftRight&&e.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(e){var t=this.props,n=t.disableKeyDown,r=t.useBrowserFullscreen,a=this.state.isFullscreen;
4if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!n)switch(parseInt(e.keyCode||e.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(e);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(e);break;case 27:a&&!r&&this.exitFullScreen()}}},{key:"handleImageError",value:function(e){var t=this.props.onErrorImageURL;t&&-1===e.target.src.indexOf(t)&&(e.target.src=t)}},{key:"removeThumbnailsResizeObserver",value:function(){this.resizeThumbnailWrapperObserver&&this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current),this.resizeThumbnailWrapperObserver=null)}},{key:"removeResizeObserver",value:function(){this.resizeSlideWrapperObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&(this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current),this.resizeSlideWrapperObserver=null),this.removeThumbnailsResizeObserver()}},{key:"handleResize",value:function(){var e=this.state.currentIndex;this.imageGallery&&(this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.setThumbsTranslate(-this.getThumbsTranslate(e)))}},{key:"initSlideWrapperResizeObserver",value:function(e){var t=this;e&&!e.current||(this.resizeSlideWrapperObserver=new X(M(function(e){e&&e.forEach(function(e){t.setState({thumbnailsWrapperWidth:e.contentRect.width},t.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(e.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(e){var t=this;e&&!e.current||(this.resizeThumbnailWrapperObserver=new X(M(function(e){e&&e.forEach(function(e){t.setState({thumbnailsWrapperHeight:e.contentRect.height},t.handleResize)})},50)),this.resizeThumbnailWrapperObserver.observe(e.current))}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen()}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play()}},{key:"handleScreenChange",value:function(){var e=this.props,t=e.onScreenChange,n=e.useBrowserFullscreen,r=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,a=this.imageGallery.current===r;t&&t(a),n&&this.setState({isFullscreen:a})}},{key:"slideToIndex",value:function(e,t){var n=this.state,r=n.currentIndex,a=n.isTransitioning,o=this.props,i=o.items,s=o.slideDuration,l=o.onBeforeSlide;if(!a){t&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var u=i.length-1,c=e;e<0?c=u:e>u&&(c=0),l&&c!==r&&l(c),this.setState({previousIndex:r,currentIndex:c,isTransitioning:c!==r,currentSlideOffset:0,slideStyle:{transition:"all ".concat(s,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(e){var t=this.props.isRTL;this.slideTo(e,t?"right":"left")}},{key:"slideRight",value:function(e){var t=this.props.isRTL;this.slideTo(e,t?"left":"right")}},{key:"slideTo",value:function(e,t){var n=this,r=this.state,a=r.currentIndex,o=r.currentSlideOffset,i=r.isTransitioning,s=this.props.items,l=a+("left"===t?-1:1);i||(2===s.length?this.setState({currentSlideOffset:o+("left"===t?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return n.slideToIndex(l,e)},25)}):this.slideToIndex(l,e))}},{key:"handleThumbnailMouseOver",value:function(e,t){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(e,t)}},{key:"handleThumbnailKeyUp",value:function(e,t){ey(e)&&this.onThumbnailClick(e,t)}},{key:"handleSlideKeyUp",value:function(e){ey(e)&&(0,this.props.onClick)(e)}},{key:"isThumbnailVertical",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"addScreenChangeEvent",value:function(){var e=this;eh.forEach(function(t){document.addEventListener(t,e.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var e=this;eh.forEach(function(t){document.removeEventListener(t,e.handleScreenChange)})}},{key:"fullScreen",value:function(){var e=this.props.useBrowserFullscreen,t=this.imageGallery.current;e?t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var e=this.state.isFullscreen,t=this.props.useBrowserFullscreen;e&&(t?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"pauseOrPlay",value:function(){var e=this.props.infinite,t=this.state.currentIndex;e||this.canSlideRight()?this.slideToIndex(t+1):this.pause()}},{key:"play",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props,n=t.onPlay,r=t.slideInterval,a=t.slideDuration,o=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(r,a)),n&&e&&n(o))}},{key:"pause",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props.onPause,n=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),t&&e&&t(n))}},{key:"isImageLoaded",value:function(e){return!!this.loadedImages[e.original]||(this.loadedImages[e.original]=!0,!1)}},{key:"handleImageLoaded",value:function(e,t){var n=this.props.onImageLoad;!this.loadedImages[t]&&n&&(this.loadedImages[t]=!0,n(e))}},{key:"renderItem",value:function(e){var t=this.state.isFullscreen,n=this.props.onImageError||this.handleImageError;return r().createElement(ee,{description:e.description,fullscreen:e.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:t,onImageError:n,original:e.original,originalAlt:e.originalAlt,originalHeight:e.originalHeight,originalWidth:e.originalWidth,originalTitle:e.originalTitle,sizes:e.sizes,loading:e.loading,srcSet:e.srcSet})}},{key:"renderThumbInner",value:function(e){var t=this.props.onThumbnailError||this.handleImageError;return r().createElement("span",{className:"image-gallery-thumbn
4ail-inner"},r().createElement("img",{className:"image-gallery-thumbnail-image",src:e.thumbnail,height:e.thumbnailHeight,width:e.thumbnailWidth,alt:e.thumbnailAlt,title:e.thumbnailTitle,loading:e.thumbnailLoading,onError:t}),e.thumbnailLabel&&r().createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))}},{key:"render",value:function(){var t=this.state,n=t.currentIndex,a=t.isFullscreen,o=t.modalFullscreen,i=t.isPlaying,s=this.props,l=s.additionalClass,u=s.disableThumbnailSwipe,c=s.indexSeparator,d=s.isRTL,p=s.items,m=s.thumbnailPosition,f=s.renderFullscreenButton,h=s.renderCustomControls,g=s.renderLeftNav,y=s.renderRightNav,v=s.showBullets,b=s.showFullscreenButton,D=s.showIndex,E=s.showThumbnails,_=s.showNav,w=s.showPlayButton,x=s.renderPlayPauseButton,C=this.getThumbnailStyle(),k=this.getSlideItems(),S=k.slides,M=k.thumbnails,T=k.bullets,O=e("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(m),{"image-gallery-rtl":d}),A=r().createElement("div",{ref:this.imageGallerySlideWrapper,className:O},h&&h(),this.canSlide()?r().createElement(r().Fragment,null,_&&r().createElement(r().Fragment,null,g(this.slideLeft,!this.canSlideLeft()),y(this.slideRight,!this.canSlideRight())),r().createElement(el,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},r().createElement("div",{className:"image-gallery-slides"},S))):r().createElement("div",{className:"image-gallery-slides"},S),w&&x(this.togglePlay,i),v&&r().createElement("div",{className:"image-gallery-bullets"},r().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},T)),b&&f(this.toggleFullScreen,a),D&&r().createElement("div",{className:"image-gallery-index"},r().createElement("span",{className:"image-gallery-index-current"},n+1),r().createElement("span",{className:"image-gallery-index-separator"},c),r().createElement("span",{className:"image-gallery-index-total"},p.length))),P=e("image-gallery",l,{"fullscreen-modal":o}),F=e("image-gallery-content",this.getThumbnailPositionClassName(m),{fullscreen:a}),L=e("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(m),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&d},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!u},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!u});return r().createElement("div",{ref:this.imageGallery,className:P,"aria-live":"polite"},r().createElement("div",{className:F},("bottom"===m||"right"===m)&&A,E&&M.length>0?r().createElement(el,{className:L,delta:0,onSwiping:!u&&this.handleThumbnailSwiping,onSwiped:!u&&this.handleOnThumbnailSwiped},r().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},r().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:C,"aria-label":"Thumbnail Navigation"},M))):null,("top"===m||"left"===m)&&A))}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(i.prototype,n),i}(r().Component);ev.propTypes={flickThreshold:J.number,items:(0,J.arrayOf)((0,J.shape)({bulletClass:J.string,bulletOnClick:J.func,description:J.string,original:J.string,originalHeight:J.number,originalWidth:J.number,loading:J.string,thumbnailHeight:J.number,thumbnailWidth:J.number,thumbnailLoading:J.string,fullscreen:J.string,originalAlt:J.string,originalTitle:J.string,thumbnail:J.string,thumbnailAlt:J.string,thumbnailLabel:J.string,thumbnailTitle:J.string,originalClass:J.string,thumbnailClass:J.string,renderItem:J.func,renderThumbInner:J.func,imageSet:eg,srcSet:J.string,sizes:J.string})).isRequired,showNav:J.bool,autoPlay:J.bool,lazyLoad:J.bool,infinite:J.bool,showIndex:J.bool,showBullets:J.bool,showThumbnails:J.bool,showPlayButton:J.bool,showFullscreenButton:J.bool,disableThumbnailScroll:J.bool,disableKeyDown:J.bool,disableSwipe:J.bool,disableThumbnailSwipe:J.bool,useBrowserFullscreen:J.bool,onErrorImageURL:J.string,indexSeparator:J.string,thumbnailPosition:(0,J.oneOf)(["top","bottom","left","right"]),startIndex:J.number,slideDuration:J.number,slideInterval:J.number,slideOnThumbnailOver:J.bool,swipeThreshold:J.number,swipingTransitionDuration:J.number,swipingThumbnailTransitionDuration:J.number,onSlide:J.func,onBeforeSlide:J.func,onScreenChange:J.func,onPause:J.func,onPlay:J.func,onClick:J.func,onImageLoad:J.func,onImageError:J.func,onTouchMove:J.func,onTouchEnd:J.func,onTouchStart:J.func,onMouseOver:J.func,onMouseLeave:J.func,onThumbnailError:J.func,onThumbnailClick:J.func,renderCustomControls:J.func,renderLeftNav:J.func,renderRightNav:J.func,renderPlayPauseButton:J.func,renderFullscreenButton:J.func,renderItem:J.func,renderThumbInner:J.func,stopPropagation:J.bool,additionalClass:J.string,useTranslate3D:J.bool,isRTL:J.bool,useWindowKeyDown:J.bool},ev.defaultProps={onErrorImageURL:"",additionalClass:"",showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,show
4FullscreenButton:!0,disableThumbnailScroll:!1,disableKeyDown:!1,disableSwipe:!1,disableThumbnailSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,swipingThumbnailTransitionDuration:0,onSlide:null,onBeforeSlide:null,onScreenChange:null,onPause:null,onPlay:null,onClick:null,onImageLoad:null,onImageError:null,onTouchMove:null,onTouchEnd:null,onTouchStart:null,onMouseOver:null,onMouseLeave:null,onThumbnailError:null,onThumbnailClick:null,renderCustomControls:null,renderThumbInner:null,renderItem:null,slideInterval:3e3,slideOnThumbnailOver:!1,swipeThreshold:30,renderLeftNav:function(e,t){return r().createElement(ea,{onClick:e,disabled:t})},renderRightNav:function(e,t){return r().createElement(eo,{onClick:e,disabled:t})},renderPlayPauseButton:function(e,t){return r().createElement(ei,{onClick:e,isPlaying:t})},renderFullscreenButton:function(e,t){return r().createElement(er,{onClick:e,isFullscreen:t})},useWindowKeyDown:!0};let eb=ev})(),o}(n(14232))},34941:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(14232),a=n(69241),o=n(54973);let i=(0,r.forwardRef)(function({...e},t){let{className:n,onError:i}=e,[s,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>()=>{l(!1)},[e.src]),r.createElement(r.Fragment,null,r.createElement("img",{"data-testid":"str-chat__base-image",...e,className:(0,a.A)(n,"str-chat__base-image",{"str-chat__base-image--load-failed":s}),onError:e=>{l(!0),i?.(e)},ref:t}),s&&r.createElement(o.f,{assetUrl:e.src}))})},35235:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(14232),a=n(69241),o=n(76844);let i=r.memo(e=>{let{children:t,thread:n}=e,{thread:i}=(0,o.BX)("Window");return r.createElement("div",{className:(0,a.A)("str-chat__main-panel",{"str-chat__main-panel--thread-open":i||n})},t)})},35327:(e,t,n)=>{"use strict";n.d(t,{G:()=>x});var r=n(14232),a=n(46512),o=n(76844),i=n(9854),s=n(55661),l=n(8795),u=n(7970),c=n(27475),d=n(80609);let p=e=>e.type.startsWith("image/")&&!e.type.endsWith(".photoshop"),m=e=>{if((0,s.R2)(e))return e;let{localMetadata:t,...n}=e;return{localMetadata:{...t??{},id:t?.id||(0,a.Ak)()},...n}};var f=n(97970),h=n(39149),g=n.n(h),y=n(63441),v=n(84989),b=n(10358),D=n(6055);let E=()=>({attachments:[],linkPreviews:new Map,mentioned_users:[],setText:()=>null,text:""}),_=e=>{if(!e)return E();let t=e.attachments?.reduce((e,t)=>(t.og_scrape_url&&e.set(t.og_scrape_url,{...t,state:y.m.LOADED}),e),new Map)??new Map;return{attachments:e.attachments?.filter(({og_scrape_url:e})=>!e).map(e=>({...e,localMetadata:{id:(0,a.Ak)()}}))||[],linkPreviews:t,mentioned_users:e.mentioned_users||[],setText:()=>null,text:e.text||""}},w=(e,t)=>{switch(t.type){case"setText":return{...e,text:t.getNewText(e.text)};case"clear":return E();case"upsertAttachments":{let n=[...e.attachments];return t.attachments.forEach(t=>{let r=e.attachments.findIndex(e=>e.localMetadata?.id&&e.localMetadata?.id===t.localMetadata?.id);if(-1===r)n.push(t);else{let a=(0,D.D)(e.attachments[r]??{},t);n.splice(r,1,a)}}),{...e,attachments:n}}case"removeAttachments":return{...e,attachments:e.attachments.filter(e=>!t.ids.includes(e.localMetadata?.id))};case"setLinkPreviews":{let n=new Map(e.linkPreviews);return t.mode===y.S.REMOVE?Array.from(t.linkPreviews.keys()).forEach(e=>{n.delete(e)}):(Array.from(t.linkPreviews.values()).reduce((e,t)=>{let n=e.get(t.og_scrape_url),r=t.state===y.m.QUEUED&&n?.state!==y.m.FAILED;return n&&r||e.set(t.og_scrape_url,t),e},n),t.mode===y.S.SET&&Array.from(e.linkPreviews.keys()).forEach(e=>{t.linkPreviews.get(e)||n.delete(e)})),{...e,linkPreviews:n}}case"addMentionedUser":return{...e,mentioned_users:e.mentioned_users.concat(t.user)};default:return e}},x=e=>{var t;let{additionalTextareaProps:n,asyncMessagesMultiSendEnabled:h,audioRecordingConfig:D,audioRecordingEnabled:E,getDefaultValue:x,message:C,urlEnrichmentConfig:k}=e,{channelCapabilities:S={},enrichURLForPreview:M}=(0,o.BX)("useMessageInputState"),T=x?.()||n?.defaultValue,O=C||(Array.isArray(T)?{text:T.join("")}:{text:T?.toString()}),[A,P]=(0,r.useReducer)(w,O,_),F=(({debounceURLEnrichmentMs:e,dispatch:t,enrichURLForPreview:n=!1,findURLFn:a,linkPreviews:i,onLinkPreviewDismissed:s})=>{let{client:l}=(0,u.vd)(),{channelConfig:c,debounceURLEnrichmentMs:d,findURLFn:p,onLinkPreviewDismissed:m}=(0,o.BX)(),h=(0,r.useRef)(!1),v=a??p,b=s??m,D=e??d??1500,E=(0,r.useCallback)(e=>{b?.(e);let n=new Map;e.state=y.m.DISMISSED,n.set(e.og_scrape_url,e),t({linkPreviews:n,mode:y.S.UPSERT,type:"setLinkPreviews"})},[b]),_=(0,r.useCallback)(g()((e,n=y.S.SET)=>{let r=v?v(e):(0,f.I6)(e,"url").reduce((e,t)=>
4(t.isLink&&e.push(t.href),e),[]);h.current=0===r.length,t({linkPreviews:r.reduce((e,t)=>(e.set(t,{og_scrape_url:t,state:y.m.QUEUED}),e),new Map),mode:n,type:"setLinkPreviews"})},D,{leading:!1,trailing:!0}),[D,h,v]),w=(0,r.useCallback)(()=>{_.cancel(),_(""),_.flush()},[_]);return(0,r.useEffect)(()=>{let e=Array.from(i.values()).reduce((e,t)=>{if("queued"===t.state){let n={...t,state:y.m.LOADING};e.set(t.og_scrape_url,n)}return e},new Map);e.size&&(t({linkPreviews:e,mode:y.S.UPSERT,type:"setLinkPreviews"}),e.forEach(e=>{l.enrichURL(e.og_scrape_url).then(({duration:n,...r})=>{if(h.current)return;let a=new Map;a.set(e.og_scrape_url,{...r,state:y.m.LOADED}),t({linkPreviews:a,mode:y.S.UPSERT,type:"setLinkPreviews"})}).catch(()=>{let n=new Map;n.set(e.og_scrape_url,{...e,state:y.m.FAILED}),t({linkPreviews:n,mode:y.S.UPSERT,type:"setLinkPreviews"})})}))},[h,i]),{cancelURLEnrichment:w,dismissLinkPreview:E,findAndEnqueueURLsToEnrich:c?.url_enrichment&&n?_:void 0}})({dispatch:P,linkPreviews:A.linkPreviews,...k,enrichURLForPreview:k?.enrichURLForPreview??M}),{handleChange:L,insertText:R,textareaRef:j}=((e,t,n,a)=>{let{channel:i}=(0,o.BX)("useMessageInputText"),{additionalTextareaProps:s,focus:l,parent:u,publishTypingEvent:c=!0}=e,{text:d}=t,p=(0,r.useRef)(void 0);(0,r.useEffect)(()=>{l&&p.current&&p.current.focus()},[l]);let m=(0,r.useRef)(void 0),f=(0,r.useCallback)(e=>{let{maxLength:t}=s||{};if(!p.current)return n({getNewText:n=>{let r=n+e;return t&&r.length>t?r.slice(0,t):r},type:"setText"});let{selectionEnd:r,selectionStart:a}=p.current;m.current=a+e.length,n({getNewText:n=>{let o=n.slice(0,a)+e+n.slice(r);return t&&o.length>t?o.slice(0,t):o},type:"setText"})},[s,m,p]);return(0,r.useEffect)(()=>{let e=p.current;e&&void 0!==m.current&&(e.selectionStart=m.current,e.selectionEnd=m.current,m.current=void 0)},[d,m]),{handleChange:(0,r.useCallback)(e=>{if(e.preventDefault(),!e||!e.target)return;let t=e.target.value;n({getNewText:()=>t,type:"setText"}),a?.(t),c&&t&&i&&(0,v.aT)(i.keystroke(u?.id),"start typing event")},[i,a,u,c]),insertText:f,textareaRef:p}})(e,A,P,F.findAndEnqueueURLsToEnrich),[N,I]=(0,r.useState)(!1),[B,z]=(0,r.useState)(!1),{maxFilesLeft:H,numberOfUploads:U,removeAttachments:V,uploadAttachment:W,uploadNewFiles:$,upsertAttachments:q}=((e,t,n,f)=>{let{doFileUploadRequest:h,doImageUploadRequest:g,errorHandler:y,noFiles:v}=e,{getAppSettings:b}=(0,u.vd)("useAttachments"),{t:D}=(0,c.WR)("useAttachments"),{addNotification:E}=(0,d.KS)("useAttachments"),{channel:_,maxNumberOfFiles:w,multipleUploads:x}=(0,o.BX)("useAttachments"),C=Object.values(t.attachments).filter(({localMetadata:e})=>e.uploadState&&"failed"!==e.uploadState).length,k=(x?w||10:1)-C,S=(0,r.useCallback)(e=>{e.length&&n({ids:e,type:"removeAttachments"})},[n]),M=(0,r.useCallback)(e=>{e.length&&n({attachments:e.map(m),type:"upsertAttachments"})},[n]),T=(0,r.useCallback)(async e=>{var t;let n,{localMetadata:r,...o}=e;if(!r?.file)return e;let{file:l}=r,u=p(l);if(v&&!u||!await (0,i.CZ)({addNotification:E,file:l,getAppSettings:b,t:D,uploadType:u?"image":"file"}))return e;r.id=r?.id??(0,a.Ak)();let c={type:(t=l.type).startsWith("image/")&&!t.endsWith(".photoshop")?"image":t.includes("video/")?"video":t.includes("audio/")?"audio":"file"};u?(r.previewUri=URL.createObjectURL?.(l),l instanceof File&&(c.fallback=l.name)):(c.file_size=l.size,c.mime_type=l.type,l instanceof File&&(c.title=l.name)),Object.assign(c,o),M([{...c,localMetadata:{...r,uploadState:"uploading"}}]);try{let e=u?g:h;n=e?await e(l,_):await _[u?"sendImage":"sendFile"](l)}catch(n){let e={message:D("Error uploading attachment"),name:"Error"};"string"==typeof n.message?e=n:"object"==typeof n&&(e=Object.assign(e,n)),console.error(e),E(e.message,"error");let t={...c,localMetadata:{...r,uploadState:"failed"}};return M([t]),y&&y(e,"upload-attachment",{...l,id:r.id}),t}if(!n)return void S([r.id]);let d={...c,localMetadata:{...r,uploadState:"finished"}};return(0,s.Ux)(d)?(d.localMetadata.previewUri&&(URL.revokeObjectURL(d.localMetadata.previewUri),delete d.localMetadata.previewUri),d.image_url=n.file):d.asset_url=n.file,n.thumb_url&&(d.thumb_url=n.thumb_url),M([d]),d},[E,_,h,g,y,b,v,S,D,M]),O=(0,r.useCallback)(e=>
4{(v?Array.from(e).filter(p):Array.from(e)).slice(0,k).forEach(e=>{T({localMetadata:{file:(0,l.Ko)(e)?(0,l.pc)({blobsArray:[e],fileName:(0,l.hP)(e.type),mimeType:e.type}):e,id:(0,a.Ak)()}})}),f.current?.focus()},[k,v,f,T]);return{maxFilesLeft:k,numberOfUploads:C,removeAttachments:S,uploadAttachment:T,uploadNewFiles:O,upsertAttachments:M}})(e,A,P,j),{handleSubmit:Y}=((e,t,n,a,i)=>{let{clearEditingState:s,message:l,overrideSubmitHandler:u,parent:p,publishTypingEvent:m}=e,{attachments:f,linkPreviews:h,mentioned_users:g,text:v}=t,{cancelURLEnrichment:b,findAndEnqueueURLsToEnrich:D}=i,{channel:E}=(0,o.BX)("useSubmitHandler"),{addNotification:_,editMessage:w,sendMessage:x}=(0,d.KS)("useSubmitHandler"),{t:C}=(0,c.WR)("useSubmitHandler"),k=(0,r.useRef)({hasChanged:!1,initialText:v});return(0,r.useEffect)(()=>{if(!k.current.initialText.length){k.current.initialText=v;return}k.current.hasChanged=v!==k.current.initialText},[v]),{handleSubmit:async(e,t,r)=>{e?.preventDefault();let o=v.trim();if((""===o||">"===o||"``````"===o||"``"===o||"**"===o||"____"===o||"__"===o||"****"===o)&&0===a&&0===f.length&&!t?.poll_id)return;if(f.some(e=>e.localMetadata?.uploadState==="uploading"))return _(C("Wait until all attachments have uploaded"),"error");let i=f.filter(e=>{let t=e.localMetadata?.uploadState==="finished",n=!e.localMetadata?.uploadState;return!e.og_scrape_url&&(t||n)}).map(e=>{let{localMetadata:t,...n}=e;return n}),c={...r},d=[];if(D){b();let e=Array.from(h.values()).some(e=>[y.m.QUEUED,y.m.LOADING].includes(e.state)),t=Array.from(h.values()).some(e=>e.state===y.m.DISMISSED);d=e?[]:Array.from(h.values()).filter(e=>e.state===y.m.LOADED).map(({state:e,...t})=>t),c.skip_enrich_url=!e&&d.length>0||t}let k=[...i,...d],S=Array.from(new Set(g.filter(({id:e,name:t})=>v.includes(`@${e}`)||v.includes(`@${t}`)))),M={attachments:k,mentioned_users:S,text:v};if(l&&"error"!==l.type){delete l.i18n;try{await w({...l,...M,...t},c),s?.(),n({type:"clear"})}catch(e){_(C("Edit message request failed"),"error")}}else try{n({type:"clear"}),u?await u({...M,parent:p},E.cid,t,c):await x({...M,parent:p},t,c),m&&await E.stopTyping()}catch(e){n({getNewText:()=>v,type:"setText"}),S?.forEach(e=>{n({type:"addMentionedUser",user:e})}),_(C("Send message request failed"),"error")}}}})(e,A,P,U,F),K=(({asyncMessagesMultiSendEnabled:e,enabled:t,generateRecordingTitle:n,handleSubmit:a,recordingConfig:o,uploadAttachment:i})=>{let{t:s}=(0,c.WR)("useMediaRecorder"),[l,u]=(0,r.useState)(),[d,p]=(0,r.useState)(),[m,f]=(0,r.useState)(),[h,g]=(0,r.useState)(!1),y=(0,r.useMemo)(()=>t?new b.nr({config:o??{},generateRecordingTitle:n,t:s}):void 0,[o,t,n,s]),v=(0,r.useCallback)(async()=>{if(!y)return;let t=await y.stop();t&&(await i(t),e||g(!0),y.cleanUp())},[e,y,i]);return(0,r.useEffect)(()=>{h&&(a(),g(!1))},[a,h]),(0,r.useEffect)(()=>{if(!y)return;y.permission.watch();let e=y.recording.subscribe(u),t=y.recordingState.subscribe(p),n=y.permission.state.subscribe(f);return()=>{y.cancel(),y.permission.unwatch(),e.unsubscribe(),t.unsubscribe(),n.unsubscribe()}},[y]),{completeRecording:v,permissionState:m,recorder:y,recording:l,recordingState:d}})({asyncMessagesMultiSendEnabled:h,enabled:!!E,handleSubmit:Y,recordingConfig:D,uploadAttachment:W}),G=!!S["upload-file"],{onPaste:Z}=(t=F.findAndEnqueueURLsToEnrich,{onPaste:(0,r.useCallback)(e=>{(async e=>{let n,{items:r}=e.clipboardData;e.preventDefault();for(let e=0;e<r.length;e++){let t=r[e];if("string"===t.kind&&"text/plain"===t.type){n=new Promise(e=>{t.getAsString(t=>{e(t)})});break}}let a=await (0,l.oY)(Array.from(r));if(n){let e=await n;R(e),t?.(e,y.S.UPSERT),t?.flush()}else if(a.length&&G)return $(a)})(e)},[t,R,G,$])}),X=(0,r.useCallback)(e=>{P({type:"addMentionedUser",user:e})},[]),Q=(0,r.useCallback)(e=>{P({getNewText:()=>e,type:"setText"})},[]);return{...A,...F,closeCommandsList:()=>I(!1),closeMentionsList:()=>z(!1),handleChange:L,handleSubmit:Y,insertText:R,isUploadEnabled:G,maxFilesLeft:H,numberOfUploads:U,onPaste:Z,onSelectUser:X,openCommandsList:()=>{P({getNewText:()=>"/",type:"setText"}),I(!0)},openMentionsList:()=>{P({getNewText:e=>e+"@",type:"setText"}),z(!0)},recordingController:K,removeAttachments:V,setText:Q,showCommandsList:N,showMentionsList:B,textareaRef:j,uploadAttachment:W,uploadNewFiles:$,upsertAttachments:q}}},36771:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(14232),a=n(98477);let o=({children:e,getPortalDestination:t,isOpen:n})=>{let[o,i]=(0,r.useState)(null);return((0,r.useLayoutEffect)(()=>{let e=t();e&&n&&i(e)},[t,n]),o)?(0,a.createPortal)(e,o):null}}
4,37574:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(14232)),o=n(24657),i=n(95824);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");m.prototype=Object.create(e&&e.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),e&&u(m,e);var t,n,s=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=d(m);return a=t?Reflect.construct(o,arguments,d(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:c(e)});function m(){var e;if(!(this instanceof m))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(c(e=s.call.apply(s,[this].concat(n))),"callPlayer",o.callPlayer),p(c(e),"mute",function(){e.setVolume(0)}),p(c(e),"unmute",function(){null!==e.props.volume&&e.setVolume(e.props.volume)}),p(c(e),"ref",function(t){e.container=t}),e}return n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this,n=this.props,r=n.playing,a=n.config,s=n.onError,u=n.onDuration,c=e&&e.match(i.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,o.getSDK)("https://play.vidyard.com/embed/v4.js","VidyardV4","onVidyardAPI").then(function(e){t.container&&(e.api.addReadyListener(function(e,n){t.player||(t.player=n,t.player.on("ready",t.props.onReady),t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seek",t.props.onSeek),t.player.on("playerComplete",t.props.onEnded))},c),e.api.renderPlayer(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({uuid:c,container:t.container,autoplay:+!!r},a.options)),e.api.getPlayerMetadata(c).then(function(e){t.duration=e.length_in_seconds,u(e.length_in_seconds)}))},s)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){window.VidyardV4.api.destroyPlayer(this.player)}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackSpeed",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.callPlayer("currentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props.display;return a.default.createElement("div",{style:{width:"100%",height:"100%",display:e}},a.default.createElement("div",{ref:this.ref}))}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(m.prototype,n),m}(a.Component);t.default=m,p(m,"displayName","Vidyard"),p(m,"canPlay",i.canPlay.vidyard)},38106:(e,t,n)=>{"use strict";n.d(t,{E$:()=>i,Sv:()=>o,s3:()=>a});var r=n(14232);let a=({className:e})=>r.createElement("svg",{className:e,"data-testid":"download",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}
4,r.createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4C9.11 4 6.6 5.64 5.35 8.04C2.34 8.36 0 10.91 0 14C0 17.31 2.69 20 6 20H19C21.76 20 24 17.76 24 15C24 12.36 21.95 10.22 19.35 10.04ZM19 18H6C3.79 18 2 16.21 2 14C2 11.95 3.53 10.24 5.56 10.03L6.63 9.92L7.13 8.97C8.08 7.14 9.94 6 12 6C14.62 6 16.88 7.86 17.39 10.43L17.69 11.93L19.22 12.04C20.78 12.14 22 13.45 22 15C22 16.65 20.65 18 19 18ZM13.45 10H10.55V13H8L12 17L16 13H13.45V10Z",fill:"black"})),o=()=>r.createElement("svg",{fill:"none",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M0.5 0V14L11.5 7L0.5 0Z",fill:"#080707"})),i=()=>r.createElement("svg",{fill:"none",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M0 14H4V0H0V14ZM8 0V14H12V0H8Z",fill:"#080707"}))},38333:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function a(e,t){if(e.length!==t.length)return!1;for(var n,a,o=0;o<e.length;o++)if(!((n=e[o])===(a=t[o])||r(n)&&r(a))&&1)return!1;return!0}let o=function(e,t){void 0===t&&(t=a);var n,r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}},39149:(e,t,n)=>{var r=0/0,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),p=Object.prototype.toString,m=Math.max,f=Math.min,h=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==p.call(t))return r;if(g(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=g(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var u=i.test(e);return u||s.test(e)?l(e.slice(2),u?2:8):o.test(e)?r:+e}e.exports=function(e,t,n){var r,a,o,i,s,l,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var n=r,o=a;return r=a=void 0,u=t,i=e.apply(o,n)}function b(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||d&&r>=o}function D(){var e,n,r,a=h();if(b(a))return E(a);s=setTimeout(D,(e=a-l,n=a-u,r=t-e,d?f(r,o-n):r))}function E(e){return(s=void 0,p&&r)?v(e):(r=a=void 0,i)}function _(){var e,n=h(),o=b(n);if(r=arguments,a=this,l=n,o){if(void 0===s)return u=e=l,s=setTimeout(D,t),c?v(e):i;if(d)return s=setTimeout(D,t),v(l)}return void 0===s&&(s=setTimeout(D,t)),i}return t=y(t)||0,g(n)&&(c=!!n.leading,o=(d="maxWait"in n)?m(y(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=a=s=void 0},_.flush=function(){return void 0===s?i:E(h())},_}},39223:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(14232),a=n(5355),o=n(27475);let i=r.memo(e=>{let{children:t,className:n,download:i,href:s,rel:l,target:u}=e,{t:c}=(0,o.WR)("SafeAnchor");if(!s)return null;let d=(0,a.Jf)(s);return r.createElement("a",{"aria-label":c("aria/Attachment"),className:n,download:i,href:d,rel:l,target:u},t)})},39268:(e,t,n)=>{"use strict";n.d(t,{y:()=>r});class r{constructor(e){this.closed=!1,this._unsubscribe=e}unsubscribe(){this.closed=!0,this._unsubscribe?.()}}},40921:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(14232),a=n(43653),o=n(27475),i=n(86195);let s=r.memo(e=>{let{Avatar:t=a.e,calendar:n,calendarFormats:s,format:l,message:u}=e,{t:c,tDateTimeParser:d}=(0,o.WR)("EventComponent"),{created_at:p="",event:m,text:f,type:h}=u,g={messageCreatedAt:p.toString(),tDateTimeParser:d};if("system"===h)return r.createElement("div",{className:"str-chat__message--system","data-testid":"message-system"},r.createElement("div",{className:"str-chat__message--system__text"},r.createElement("div",{className:"str-chat__message--system__line"}),r.createElement("p",null,f),r.createElement("div",{className:"str-chat__message--system__line"})),r.createElement("div",{className:"str-chat__message--system__date"},r.createElement("strong",null,(0,i.sq)({...g,calendar:n,calendarFormats:s,format:l,t:c,timestampTranslationKey:"timestamp/SystemMessage"}))));if(m?.type==="member.removed"||m?.type==="member.added"){let e=m.user?.name||m.user?.id,n=`${e} ${"member.added"===m.type?"has joined the chat":"was removed from the chat"}`;return r.createElement("div",{className:"str-chat__event-component__channel-event"},r.createElement(t,{image:m.user?.image,name:e,user:m.user}),r.createElement("div",{className:"str-chat__event-component__channel-event__content"},r.createElement("em",{className:"str-chat__event-component__channel-event__sentence"},n),r.createElement("div",{className:"str-chat__event-component__channel-event__date"},(0,i.sq)({...g,format:"LT"}))))}return null})},41218:e=>{"use strict";e.exports="object"==typeof self?self.FormData:window.FormData},42170:(e,t,n)=>{"use strict";
4Object.defineProperty(t,"__esModule",{value:!0}),t.createReactPlayer=void 0;var r=_(n(14232)),a=c(n(94410)),o=c(n(38333)),i=c(n(51161)),s=n(64242),l=n(24657),u=c(n(54461));function c(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){D(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("u">typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return g(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return E=function(){return e},e}function _(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=E();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}var w=(0,r.lazy)(function(){return Promise.resolve().then(function(){return _(n(8856))})}),x="u">typeof window&&window.document,C=void 0!==n.g&&n.g.window&&n.g.window.document,k=Object.keys(s.propTypes),S=x||C?r.Suspense:function(){return null},M=[];t.createReactPlayer=function(e,t){var n,c;return c=n=function(n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");E.prototype=Object.create(n&&n.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),n&&y(E,n);var c,p,g=(c=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t,n,r=b(E);return n=c?Reflect.construct(r,arguments,b(this).constructor):r.apply(this,arguments),e=this,(t=n)&&("object"===d(t)||"function"==typeof t)?t:v(e)});function E(){var n;if(!(this instanceof E))throw TypeError("Cannot call a class as a function");for(var i=arguments.length,c=Array(i),d=0;d<i;d++)c[d]=arguments[d];return D(v(n=g.call.apply(g,[this].concat(c))),"state",{showPreview:!!n.props.light}),D(v(n),"references",{wrapper:function(e){n.wrapper=e},player:function(e){n.player=e}}),D(v(n),"handleClickPreview",function(e){n.setState({showPreview:!1}),n.props.onClickPreview(e)}),D(v(n),"showPreview",function(){n.setState({showPreview:!0})}),D(v(n),"getDuration",function(){return n.player?n.player.getDuration():null}),D(v(n),"getCurrentTime",function(){return n.player?n.player.getCurrentTime():null}),D(v(n),"getSecondsLoaded",function(){return n.player?n.player.getSecondsLoaded():null}),D(v(n),"getInternalPlayer",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player";return n.player?n.player.getInternalPlayer(e):null}),D(v(n),"seekTo",function(e,t){if(!n.player)return null;n.player.seekTo(e,t)}),D(v(n),"handleReady",function(){n.props.onReady(v(n))}),D(v(n),"getActivePlayer",(0,o.default)(function(n){for(var r=0,a=[].concat(M,h(e));r<a.length;r++){var o=a[r];
4if(o.canPlay(n))return o}return t||null})),D(v(n),"getConfig",(0,o.default)(function(e,t){var r=n.props.config;return a.default.all([s.defaultProps.config,s.defaultProps.config[t]||{},r,r[t]||{}])})),D(v(n),"getAttributes",(0,o.default)(function(e){return(0,l.omit)(n.props,k)})),D(v(n),"renderActivePlayer",function(e){if(!e)return null;var t=n.getActivePlayer(e);if(!t)return null;var a=n.getConfig(e,t.key);return r.default.createElement(u.default,f({},n.props,{key:t.key,ref:n.references.player,config:a,activePlayer:t.lazyPlayer||t,onReady:n.handleReady}))}),n}return p=[{key:"shouldComponentUpdate",value:function(e,t){return!(0,i.default)(this.props,e)||!(0,i.default)(this.state,t)}},{key:"componentDidUpdate",value:function(e){var t=this.props.light;!e.light&&t&&this.setState({showPreview:!0}),e.light&&!t&&this.setState({showPreview:!1})}},{key:"renderPreview",value:function(e){if(!e)return null;var t=this.props,n=t.light,a=t.playIcon,o=t.previewTabIndex,i=t.oEmbedUrl;return r.default.createElement(w,{url:e,light:n,playIcon:a,previewTabIndex:o,oEmbedUrl:i,onClick:this.handleClickPreview})}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.style,a=e.width,o=e.height,i=e.fallback,s=e.wrapper,l=this.state.showPreview,u=this.getAttributes(t);return r.default.createElement(s,f({ref:this.references.wrapper,style:m(m({},n),{},{width:a,height:o})},u),r.default.createElement(S,{fallback:i},l?this.renderPreview(t):this.renderActivePlayer(t)))}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(E.prototype,p),E}(r.Component),D(n,"displayName","ReactPlayer"),D(n,"propTypes",s.propTypes),D(n,"defaultProps",s.defaultProps),D(n,"addCustomPlayer",function(e){M.push(e)}),D(n,"removeCustomPlayers",function(){M.length=0}),D(n,"canPlay",function(t){for(var n=0,r=[].concat(M,h(e));n<r.length;n++)if(r[n].canPlay(t))return!0;return!1}),D(n,"canEnablePIP",function(t){for(var n=0,r=[].concat(M,h(e));n<r.length;n++){var a=r[n];if(a.canEnablePIP&&a.canEnablePIP(t))return!0}return!1}),c}},43081:(e,t,n)=>{var r=n(84096)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},43653:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});var r=n(69241),a=n(14232);let o=e=>a.createElement("svg",{className:"str-chat__icon str-chat__icon--user",fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M8 2C9.1 2 10 2.9 10 4C10 5.1 9.1 6 8 6C6.9 6 6 5.1 6 4C6 2.9 6.9 2 8 2ZM8 12C10.7 12 13.8 13.29 14 14H2C2.23 13.28 5.31 12 8 12ZM8 0C5.79 0 4 1.79 4 4C4 6.21 5.79 8 8 8C10.21 8 12 6.21 12 4C12 1.79 10.21 0 8 0ZM8 10C5.33 10 0 11.34 0 14V16H16V14C16 11.34 10.67 10 8 10Z",fill:"currentColor"})),i=e=>{let{className:t,image:n,name:i,onClick:s=()=>void 0,onMouseOver:l=()=>void 0}=e,[u,c]=(0,a.useState)(!1);(0,a.useEffect)(()=>{c(!1)},[n]);let d=(e=>{let t=e.charCodeAt(0);if(Number.isNaN(t))return"";if(t<55296||t>57343)return e.charAt(0);if(55296<=t&&t<=56319){if(e.length<=1)throw"High surrogate without following low surrogate";let t=e.charCodeAt(1);if(56320>t||t>57343)throw"High surrogate without following low surrogate";return e.charAt(0)+e.charAt(1)}throw"Low surrogate without preceding high surrogate"})(i?.toString()||""),p=n&&!u;return a.createElement("div",{className:(0,r.A)("str-chat__avatar str-chat__message-sender-avatar",t,{"str-chat__avatar--multiple-letters":d.length>1,"str-chat__avatar--no-letters":!d.length,"str-chat__avatar--one-letter":1===d.length}),"data-testid":"avatar",onClick:s,onMouseOver:l,role:"button",title:i},p?a.createElement("img",{alt:d,className:"str-chat__avatar-image","data-testid":"avatar-img",onError:()=>c(!0),src:n}):a.createElement(a.Fragment,null,!!d.length&&a.createElement("div",{className:(0,r.A)("str-chat__avatar-fallback"),"data-testid":"avatar-fallback"},d),!d.length&&a.createElement(o,null)))}},43937:(e,t,n)=>{"use strict";n.d(t,{N:()=>l,v:()=>s});var r=n(14232),a=n(26373),o=n(36771),i=n(46984);let s=()=>{let{dialogManager:e}=(0,i.P)(),t=(0,a.Yn)();return r.createElement("div",{className:"str-chat__dialog-overlay","data-str-chat__portal-id":e.id,"data-testid":"str-chat__dialog-overlay",onClick:()=>e.closeAll(),style:{"--str-chat__dialog-overlay-height":t>
40?"100%":"0"}})},l=({children:e,dialogId:t})=>{let{dialogManager:n}=(0,i.P)(),s=(0,a.mC)(t),l=(0,r.useCallback)(()=>document.querySelector(`div[data-str-chat__portal-id="${n.id}"]`),[n.id]);return r.createElement(o.Z,{getPortalDestination:l,isOpen:s},e)}},44212:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(10810);function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(0,r.A)(a.key),a)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},45064:(e,t,n)=>{"use strict";n.d(t,{$S:()=>l,h8:()=>a,nm:()=>o,tE:()=>s,ys:()=>i});var r=n(14232);let a=({className:e=""})=>r.createElement("svg",{className:e,height:"4",viewBox:"0 0 11 4",width:"11",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M1.5 3a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm4 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm4 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z",fillRule:"nonzero"})),o=({className:e=""})=>r.createElement("svg",{className:e,height:"12",viewBox:"0 0 12 12",width:"12",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{clipRule:"evenodd",fillRule:"evenodd"},r.createElement("path",{d:"M6 1.2C3.3 1.2 1.2 3.3 1.2 6c0 2.7 2.1 4.8 4.8 4.8 2.7 0 4.8-2.1 4.8-4.8 0-2.7-2.1-4.8-4.8-4.8zM0 6c0-3.3 2.7-6 6-6s6 2.7 6 6-2.7 6-6 6-6-2.7-6-6z"}),r.createElement("path",{d:"M5.4 4.5c0 .5-.4.9-.9.9s-.9-.4-.9-.9.4-.9.9-.9.9.4.9.9zM8.4 4.5c0 .5-.4.9-.9.9s-.9-.4-.9-.9.4-.9.9-.9.9.4.9.9zM3.3 6.7c.3-.2.6-.1.8.1.3.4.8.9 1.5 1 .6.2 1.4.1 2.4-1 .2-.2.6-.3.8 0 .2.2.3.6 0 .8-1.1 1.3-2.4 1.7-3.5 1.5-1-.2-1.8-.9-2.2-1.5-.2-.3-.1-.7.2-.9z"}))),i=({className:e=""})=>r.createElement("svg",{className:e,height:"10",width:"14",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M8.516 3c4.78 0 4.972 6.5 4.972 6.5-1.6-2.906-2.847-3.184-4.972-3.184v2.872L3.772 4.994 8.516.5V3zM.484 5l4.5-4.237v1.78L2.416 5l2.568 2.125v1.828L.484 5z",fillRule:"evenodd"})),s=()=>r.createElement("svg",{"data-testid":"delivered-icon",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{clipRule:"evenodd",d:"M8.9999 16.2L4.7999 12L3.3999 13.4L8.9999 19L20.9999 6.99998L19.5999 5.59998L8.9999 16.2Z",fill:"black",fillRule:"evenodd"})),l=()=>r.createElement("div",{className:"str-chat__message-error-icon"},r.createElement("svg",{"data-testid":"error",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2Z",fill:"black",id:"background"}),r.createElement("path",{d:"M13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"white"})))},45066:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});var r=n(14232),a=n(7970),o=n(76844);let i=()=>{let{client:e,latestMessageDatesByChannels:t}=(0,a.vd)("useCooldownTimer"),{channel:n,messages:i=[]}=(0,o.BX)("useCooldownTimer"),[s,l]=(0,r.useState)(),{cooldown:u=0,own_capabilities:c}=n.data||{},d=c?.includes("skip-slow-mode"),p=(0,r.useMemo)(()=>t[n.cid]??[...i].sort((e,t)=>t.created_at?.getTime()-e.created_at?.getTime()).find(t=>
4t.user?.id===e.user?.id)?.created_at,[i,e.user?.id,t,n.cid]);return(0,r.useEffect)(()=>{let e=p?Math.max(0,(new Date().getTime()-p.getTime())/1e3):void 0,t=!d&&void 0!==e&&u>e?Math.round(u-e):0;if(l(t),!t)return;let n=setTimeout(()=>{l(0)},1e3*t);return()=>{clearTimeout(n)}},[u,p,d]),{cooldownInterval:u,cooldownRemaining:s,setCooldownRemaining:l}}},45103:(e,t,n)=>{"use strict";n.d(t,{tG:()=>a});var r=n(55661);let a=(e,t)=>e.length===t?e:e.length>t?function(e,t){let n,r,a;if(e.length<=t||0===t)return e;if(1===t)return[s(e)];let u=[],c=(e.length-2)/(t-2),d=0;u.push(e[d]);for(let s=1;s<t-1;s++){let t=e[d],p=l(e,s,c),m=Math.floor((s-1)*c)+1,f=Math.floor(s*c)+1,h=1+f-m;r=a=-1;for(let s=m;s<f;s++){let l=Math.abs(s-m)+1,u=h-l,c=e[s];(a=o(i(Math.abs(t-c),l),i(Math.abs(c-p),u),i(Math.abs(t-p),h)))>r&&(r=a,n=e[s],d=s)}void 0!==n&&u.push(n)}return u.push(e[e.length-1]),u}(e,t):u(e,t),o=(e,t,n)=>{let r=(e+t+n)/2;return Math.sqrt(r*(r-e)*(r-t)*(r-n))},i=(e,t)=>Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),s=e=>e.reduce((e,t)=>e+t,0)/e.length,l=(e,t,n)=>{let r=Math.floor(t*n)+1,a=Math.floor((t+1)*n)+1;return a=a<e.length?a:e.length,s(e.slice(r,a))},u=(e,t)=>{if(!e.length)return console.warn("Cannot extend empty array of amplitudes."),e;if(e.length>t)return console.warn("Requested to extend the waveformData that is longer than the target list size"),e;if(t===e.length)return e;let[n,a]=(0,r.ui)(t,e.length),o=[];for(let t=0;t<e.length;t++){let r=a&&a--?1:0;o.push(...Array(n+r).fill(e[t]))}return o}},45737:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});var r=n(12146),a=n(84782);function o(e,t,n){let o=(0,a.b)(e,t)/1e3;return(0,r.u)(n?.roundingMethod)(o)}},46512:(e,t,n)=>{"use strict";n.d(t,{Ak:()=>r});let r=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"")},46968:(e,t,n)=>{var r=n(94147);function a(){var t,n,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function l(e,a,o,i){var s=Object.create((a&&a.prototype instanceof c?a:c).prototype);return r(s,"_invoke",function(e,r,a){var o,i,s,l=0,c=a||[],d=!1,p={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(e,n){return o=e,i=0,s=t,p.n=n,u}};function m(e,r){for(i=e,s=r,n=0;!d&&l&&!a&&n<c.length;n++){var a,o=c[n],m=p.p,f=o[2];e>3?(a=f===r)&&(s=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=t):o[0]<=m&&((a=e<2&&m<o[1])?(i=0,p.v=r,p.n=o[1]):m<f&&(a=e<3||o[0]>r||r>f)&&(o[4]=e,o[5]=r,p.n=f,i=0))}if(a||e>1)return u;throw d=!0,r}return function(a,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&m(c,f),i=c,s=f;(n=i<2?t:s)||!d;){o||(i?i<3?(i>1&&(p.n=-1),m(i,s)):p.n=s:p.v=s);try{if(l=2,o){if(i||(a="next"),n=o[a]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,i<2&&(i=0)}else 1===i&&(n=o.return)&&n.call(o),i<2&&(s=TypeError("The iterator does not provide a '"+a+"' method"),i=1);o=t}else if((n=(d=p.n<0)?s:e.call(r,p))!==u)break}catch(e){o=t,i=1,s=e}finally{l=1}}return{value:n,done:d}}}(e,o,i),!0),s}var u={};function c(){}function d(){}function p(){}n=Object.getPrototypeOf;var m=p.prototype=c.prototype=Object.create([][i]?n(n([][i]())):(r(n={},i,function(){return this}),n));function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,r(e,s,"GeneratorFunction")),e.prototype=Object.create(m),e}return d.prototype=p,r(m,"constructor",p),r(p,"constructor",d),d.displayName="GeneratorFunction",r(p,s,"GeneratorFunction"),r(m),r(m,s,"Generator"),r(m,i,function(){return this}),r(m,"toString",function(){return"[object Generator]"}),(e.exports=a=function(){return{w:l,m:f}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},46984:(e,t,n)=>{"use strict";n.d(t,{X:()=>u,P:()=>c});var r=n(14232),a=n(46512),o=n(84989);class i{constructor({id:e}={}){this.state=new o.fy({dialogsById:{}}),this.id=e??(0,a.Ak)()}get openDialogCount(){return Object.values(this.state.getLatestValue().dialogsById).reduce((e,t)=>t.isOpen?e+1:e,0)}getOrCreate({id:e}){let t=this.state.getLatestValue().dialogsById[e];return t||(t={close:()=>{this.close(e)},id:e,isOpen:!1,open:()=>{this.open({id:e})},removalTimeout:void 0,remove:()=>{this.remove(e)},toggle:(t=!1)=>{this.toggle({id:e},t)}},this.state.next(n=>({...n,...{dialogsById:{...n.dialogsById,[e]:t}}}))),t.removalTimeout&&(clearTimeout(t.removalTimeout),this.state.next(n=>({...n,...{dialogsById:{...n.dialogsById,[e]:{...t,removalTimeout:void 0}}}}))),t}open(e,t){let n=this.getOrCreate(e);n.isOpen||(t&&this.closeAll(),this.state.next(e=>({...e,dialogsById:{...e.dialogsById,[n.id]:{...n,isOpen:!0}}})))}close(e){let t=this.state.getLatestValue().dialogsById[e];t?.isOpen&&this.state.next(e=>({...e,dialogsById:{...e.dialogsById,[t.id]:{...t,isOpen:!1}}}))}closeAll(){Object.values(this.state.getLatestValue().dialogsById).forEac
4h(e=>e.close())}toggle(e,t=!1){this.state.getLatestValue().dialogsById[e.id]?.isOpen?this.close(e.id):this.open(e,t)}remove(e){let t=this.state.getLatestValue().dialogsById[e];t&&(t.removalTimeout&&clearTimeout(t.removalTimeout),this.state.next(t=>{let n={...t.dialogsById};return delete n[e],{...t,dialogsById:n}}))}markForRemoval(e){let t=this.state.getLatestValue().dialogsById[e];t&&this.state.next(n=>({...n,dialogsById:{...n.dialogsById,[e]:{...t,removalTimeout:setTimeout(()=>{this.remove(e)},16)}}}))}}var s=n(43937);let l=r.createContext(void 0),u=({children:e,id:t})=>{let[n]=(0,r.useState)(()=>new i({id:t}));return r.createElement(l.Provider,{value:{dialogManager:n}},e,r.createElement(s.v,null))},c=()=>(0,r.useContext)(l)},47455:(e,t,n)=>{"use strict";n.d(t,{c1:()=>p,eV:()=>d,fx:()=>m,lT:()=>h,mk:()=>u,ow:()=>s,pj:()=>f,vd:()=>c});var r=n(46512),a=n(55067),o=n(30199),i=n(86195);let s=e=>{let t,{messages:n,reviewProcessedMessage:r,setGiphyPreviewMessage:o,...s}=e,{enableDateSeparator:u,hideDeletedMessages:c,hideNewMessageSeparator:d,lastRead:p,userId:m}=s,f=!1,h=!1,g=[];for(let e=0;e<n.length;e+=1){let y=n[e];if(c&&"deleted"===y.type)continue;
4if(o&&"ephemeral"===y.type&&"giphy"===y.command){h=!0,o(y);continue}let v=[],b=y.created_at&&(0,i.$P)(y.created_at)&&y.created_at.toDateString()||"",D=n[e-1],E=b;u&&D?.created_at&&(0,i.$P)(D.created_at)&&(E=D.created_at.toDateString()),!f&&!d&&(f=p&&y.created_at&&new Date(p)<y.created_at||!1,u&&f&&y.user?.id!==m&&v.push({customType:a.F.date,date:y.created_at,id:l(y.created_at),unread:f})),u&&(0===e||b!==E||c&&D?.type==="deleted"&&t!==b)&&v[v.length-1]?.customType!==a.F.date?(t=b,v.push({customType:a.F.date,date:y.created_at,id:l(y.created_at)},y)):v.push(y),g.push(...r?.({changes:v,context:s,index:e,messages:n,processedMessages:g})||v)}return o&&!h&&o(void 0),g},l=e=>{let t;try{t=e?e instanceof Date?e.toISOString():e:(0,r.Ak)()}catch(e){t=(0,r.Ak)()}return`${a.F.date}-${t}`},u=e=>{for(let t=e.length-1;t>0;t-=1)if("received"===e[t].status)return e[t].id;return null},c=(e,t={},n)=>{let r={};return Object.values(t).forEach(t=>{let a;t.last_read&&(e.forEach(e=>{e.created_at&&e.created_at<t.last_read&&(a=e.id,n&&(r[a]||(r[a]=[]),r[a].push(t.user)))}),a&&!n&&(r[a]||(r[a]=[]),r[a].push(t.user)))}),r},d=(e,t)=>{let n={customType:a.F.intro};if(!t||!e.length)return e.unshift(n),e;for(let r=0;r<e.length;r+=1){let o=e[r],s=o.created_at&&(0,i.$P)(o.created_at)?o.created_at.getTime():null,l=e[r+1],u=l.created_at&&(0,i.$P)(l.created_at)?l.created_at.getTime():null;if(s&&s<t)if(u&&u<t){if(e[r+1]&&e[r+1].customType===a.F.date)continue;if(!u){e.push(n);break}}else{e.splice(r+1,0,n);break}}return e},p=(e,t,n,r,i)=>{if(e.customType===a.F.date||e.customType===a.F.intro)return"";if(r||e.attachments?.length!==0)return"single";let s=!t||t.customType===a.F.intro||t.customType===a.F.date||"system"===t.type||"error"===t.type||t.attachments?.length!==0||e.user?.id!==t.user?.id||t.deleted_at||e.reaction_groups&&Object.keys(e.reaction_groups).length>0||(0,o.NY)(t)||void 0!==i&&t.created_at&&e.created_at&&new Date(e.created_at).getTime()-new Date(t.created_at).getTime()>i,l=!n||n.customType===a.F.intro||n.customType===a.F.date||"system"===n.type||"error"===n.type||n.attachments?.length!==0||e.user?.id!==n.user?.id||n.deleted_at||n.reaction_groups&&Object.keys(n.reaction_groups).length>0||(0,o.NY)(e)||void 0!==i&&n.created_at&&e.created_at&&new Date(n.created_at).getTime()-new Date(e.created_at).getTime()>i;return s||l?l?s||e.deleted_at||"error"===e.type?"single":"bottom":s?"top":"":e.deleted_at||"error"===e.type?"single":"middle"},m=(e,t)=>
4e>=t;function f(e){return e.customType===a.F.date&&!!e.date&&(0,i.$P)(e.date)}let h=({firstUnreadMessageId:e,isFirstMessage:t,lastReadDate:n,lastReadMessageId:r,message:a,previousMessage:o,unreadMessageCount:i=0})=>{if(a.parent_id)return!1;let s=a.created_at&&new Date(a.created_at).getTime(),l=n?.getTime(),u=!!r&&r===o?.id;return e===a.id||!!i&&!!s&&!!l&&s>l&&(t||u)}},48344:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(14232)),o=n(24657),i=n(95824);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("u">typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,y=/user\/([a-zA-Z0-9_-]+)\/?/,v=/youtube-nocookie\.com/,b=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");l.prototype=Object.create(e&&e.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),e&&p(l,e);var t,n,s=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=f(l);return a=t?Reflect.construct(o,arguments,f(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:m(e)});function l(){var e;if(!(this instanceof l))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(m(e=s.call.apply(s,[this].concat(n))),"callPlayer",o.callPlayer),h(m(e),"parsePlaylist",function(t){return t instanceof Array?{listType:"playlist",playlist:t.map(e.getID).join(",")}:g.test(t)?{listType:"playlist",list:c(t.match(g),2)[1].replace(/^UC/,"UU")}:y.test(t)?{listType:"user_uploads",list:c(t.match(y),2)[1]}:{}}),h(m(e),"onStateChange",function(t){var n=t.data,r=e.props,a=r.onPlay,o=r.onPause,i=r.onBuffer,s=r.onBufferEnd,l=r.onEnded,u=r.onReady,c=r.loop,d=r.config,p=d.playerVars,m=d.onUnstarted,f=window.YT.PlayerState,h=f.UNSTARTED,g=f.PLAYING,y=f.PAUSED,v=f.BUFFERING,b
4=f.ENDED,D=f.CUED;if(n===h&&m(),n===g&&(a(),s()),n===y&&o(),n===v&&i(),n===b){var E=!!e.callPlayer("getPlaylist");c&&!E&&(p.start?e.seekTo(p.start):e.play()),l()}n===D&&u()}),h(m(e),"mute",function(){e.callPlayer("mute")}),h(m(e),"unmute",function(){e.callPlayer("unMute")}),h(m(e),"ref",function(t){e.container=t}),e}return n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"getID",value:function(e){return!e||e instanceof Array||g.test(e)?null:e.match(i.MATCH_URL_YOUTUBE)[1]}},{key:"load",value:function(e,t){var n=this,r=this.props,a=r.playing,i=r.muted,s=r.playsinline,l=r.controls,c=r.loop,d=r.config,p=r.onError,m=d.playerVars,f=d.embedOptions,h=this.getID(e);t?g.test(e)||y.test(e)||e instanceof Array?this.player.loadPlaylist(this.parsePlaylist(e)):this.player.cueVideoById({videoId:h,startSeconds:(0,o.parseStartTime)(e)||m.start,endSeconds:(0,o.parseEndTime)(e)||m.end}):((0,o.getSDK)("https://www.youtube.com/iframe_api","YT","onYouTubeIframeAPIReady",function(e){return e.loaded}).then(function(t){n.container&&(n.player=new t.Player(n.container,u({width:"100%",height:"100%",videoId:h,playerVars:u(u({autoplay:+!!a,mute:+!!i,controls:+!!l,start:(0,o.parseStartTime)(e),end:(0,o.parseEndTime)(e),origin:window.location.origin,playsinline:+!!s},n.parsePlaylist(e)),m),events:{onReady:function(){c&&n.player.setLoop(!0),n.props.onReady()},onPlaybackRateChange:function(e){return n.props.onPlaybackRateChange(e.data)},onStateChange:n.onStateChange,onError:function(e){return p(e.data)}},host:v.test(e)?"https://www.youtube-nocookie.com":void 0},f)))},p),f.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayerâs callback props instead, eg onReady, onPlay, onPause"))}},{key:"play",value:function(){this.callPlayer("playVideo")}},{key:"pause",value:function(){this.callPlayer("pauseVideo")}},{key:"stop",value:function(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}},{key:"seekTo",value:function(e){this.callPlayer("seekTo",e),this.props.playing||this.pause()}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackRate",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var e=this.props.display;return a.default.createElement("div",{style:{width:"100%",height:"100%",display:e}},a.default.createElement("div",{ref:this.ref}))}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(l.prototype,n),l}(a.Component);t.default=b,h(b,"displayName","YouTube"),h(b,"canPlay",i.canPlay.youtube)},48792:function(e,t,n){e.exports=function(e){"use strict";var t={name:"it",weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"\xba"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t}(n(56557))},50466:(e,t,n)=>{var r=n(46968),a=n(56202);e.exports=function(e,t,n,o,i){return new a(r().w(e,t,n,o),i||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},51161:e=>{var t="u">typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,i){if(o===i)return!0;
4if(o&&i&&"object"==typeof o&&"object"==typeof i){var s,l,u,c;if(o.constructor!==i.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=i.length)return!1;for(l=s;0!=l--;)if(!e(o[l],i[l]))return!1;return!0}if(n&&o instanceof Map&&i instanceof Map){if(o.size!==i.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!i.has(l.value[0]))return!1;for(c=o.entries();!(l=c.next()).done;)if(!e(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&o instanceof Set&&i instanceof Set){if(o.size!==i.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(i)){if((s=o.length)!=i.length)return!1;for(l=s;0!=l--;)if(o[l]!==i[l])return!1;return!0}if(o.constructor===RegExp)return o.source===i.source&&o.flags===i.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof i.valueOf)return o.valueOf()===i.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof i.toString)return o.toString()===i.toString();if((s=(u=Object.keys(o)).length)!==Object.keys(i).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(i,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],i[u[l]]))return!1;return!0}return o!=o&&i!=i}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},51757:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(14232)),o=n(24657),i=n(95824);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),e&&u(s,e);var t,n,i=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=d(s);return a=t?Reflect.construct(o,arguments,d(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:c(e)});function s(){var e;if(!(this instanceof s))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(c(e=i.call.apply(i,[this].concat(n))),"callPlayer",o.callPlayer),p(c(e),"duration",null),p(c(e),"currentTime",null),p(c(e),"secondsLoaded",null),p(c(e),"mute",function(){e.setVolume(0)}),p(c(e),"unmute",function(){null!==e.props.volume&&e.setVolume(e.props.volume)}),p(c(e),"ref",function(t){e.container=t}),e}return n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;this.duration=null,(0,o.getSDK)("https://player.vimeo.com/api/player.js","Vimeo").then(function(n){if(t.container){var r=t.props.config,a=r.playerOptions,o=r.title;t.player=new n.Player(t.container,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
4t%2?l(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({url:e,autoplay:t.props.playing,muted:t.props.muted,loop:t.props.loop,playsinline:t.props.playsinline,controls:t.props.controls},a)),t.player.ready().then(function(){var e=t.container.querySelector("iframe");e.style.width="100%",e.style.height="100%",o&&(e.title=o)}).catch(t.props.onError),t.player.on("loaded",function(){t.props.onReady(),t.refreshDuration()}),t.player.on("play",function(){t.props.onPlay(),t.refreshDuration()}),t.player.on("pause",t.props.onPause),t.player.on("seeked",function(e){return t.props.onSeek(e.seconds)}),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",function(e){t.currentTime=e.seconds}),t.player.on("progress",function(e){t.secondsLoaded=e.seconds}),t.player.on("bufferstart",t.props.onBuffer),t.player.on("bufferend",t.props.onBufferEnd)}},this.props.onError)}},{key:"refreshDuration",value:function(){var e=this;this.player.getDuration().then(function(t){e.duration=t})}},{key:"play",value:function(){var e=this.callPlayer("play");e&&e.catch(this.props.onError)}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("unload")}},{key:"seekTo",value:function(e){this.callPlayer("setCurrentTime",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("setPlaybackRate",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var e=this.props.display;return a.default.createElement("div",{key:this.props.url,ref:this.ref,style:{width:"100%",height:"100%",overflow:"hidden",display:e}})}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(s.prototype,n),s}(a.Component);t.default=m,p(m,"displayName","Vimeo"),p(m,"canPlay",i.canPlay.vimeo),p(m,"forceLoad",!0)},52204:function(e,t,n){e.exports=function(e){"use strict";var t="ÑнваÑÑ_ÑевÑалÑ_маÑÑа_апÑелÑ_маÑ_иÑнÑ_иÑлÑ_авгÑÑÑа_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_"),n="ÑнваÑÑ_ÑевÑалÑ_маÑÑ_апÑелÑ_май_иÑнÑ_иÑлÑ_авгÑÑÑ_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_"),r="Ñнв._ÑевÑ._маÑ._апÑ._маÑ_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.".split("_"),a="Ñнв._ÑевÑ._маÑÑ_апÑ._май_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.".split("_"),o=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function i(e,t,n){var r,a;return"m"===n?t?"минÑÑа":"минÑÑÑ":e+" "+(r=+e,a=({mm:t?"минÑÑа_минÑÑÑ_минÑÑ":"минÑÑÑ_минÑÑÑ_минÑÑ",hh:"ÑаÑ_ÑаÑа_ÑаÑов",dd:"денÑ_днÑ_дней",MM:"меÑÑÑ_меÑÑÑа_меÑÑÑев",yy:"год_года_леÑ"})[n].split("_"),r%10==1&&r%100!=11?a[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?a[1]:a[2])}var s=function(e,r){return o.test(r)?t[e.month()]:n[e.month()]};s.s=n,s.f=t;var l=function(e,t){return o.test(t)?r[e.month()]:a[e.month()]};l.s=a,l.f=r;var u={name:"ru",weekdays:"воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑеда_ÑеÑвеÑг_пÑÑниÑа_ÑÑббоÑа".split("_"),weekdaysShort:"вÑк_пнд_вÑÑ_ÑÑд_ÑÑв_пÑн_ÑбÑ".split("_"),weekdaysMin:"вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),months:s,monthsShort:l,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"ÑеÑез %s",past:"%s назад",s:"неÑколÑко ÑекÑнд",m:i,mm:i,h:"ÑаÑ",hh:i,d:"денÑ",dd:i,M:"меÑÑÑ",MM:i,y:"год",yy:i},ordinal:function(e){return e},meridiem:function(e){return e<4?"ноÑи":e<12?"ÑÑÑа":e<17?"днÑ":"веÑеÑа"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(u,null,!0),u}(n(56557))}
4,53248:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(61371),a=n(74767),o=n(65862);function i(e){var t="function"==typeof Map?new Map:void 0;return(i=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return(0,o.A)(e,arguments,(0,r.A)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,a.A)(n,e)})(e)}},54030:(e,t,n)=>{"use strict";n.d(t,{k:()=>u});var r=n(77170),a=n.n(r),o=n(14232),i=n(80609),s=n(27475);let l=[1,1.5,2],u=({durationSeconds:e,mimeType:t,playbackRates:n=l}={})=>{let{addNotification:r}=(0,i.KS)("useAudioController"),{t:u}=(0,s.WR)("useAudioController"),[c,d]=(0,o.useState)(!1),[p,m]=(0,o.useState)(),[f,h]=(0,o.useState)(!0),[g,y]=(0,o.useState)(0),[v,b]=(0,o.useState)(0),D=(0,o.useRef)(void 0),E=(0,o.useRef)(null),_=(0,o.useCallback)(e=>{console.error("[AUDIO PLAYER]",e),m(e),r(e.message,"error")},[r]),w=(0,o.useCallback)(async()=>{if(E.current){let e;if(clearTimeout(D.current),D.current=void 0,t&&!E.current.canPlayType(t)){_(Error(u("Recording format is not supported and cannot be reproduced"))),h(!1);return}if((e=E.current)&&!(e.paused||e.ended))E.current.pause(),d(!1);else{D.current=setTimeout(()=>{if(E.current)try{E.current.pause(),d(!1)}catch(e){_(Error(u("Failed to play the recording")))}},2e3);try{await E.current.play(),d(!0)}catch(e){_(e),d(!1)}finally{clearTimeout(D.current),D.current=void 0}}}},[t,_,u]),x=(0,o.useMemo)(()=>a()(({clientX:e,currentTarget:t})=>{let n;if(!(t&&E.current))return;if((n=E.current).duration===1/0||isNaN(n.duration))return void _(Error(u("Cannot seek in the recording")));let{width:r,x:a}=t.getBoundingClientRect(),o=(e-a)/r;if(o>1||o<0)return;let i=o*E.current.duration;y(i),E.current.currentTime=i},16),[_,u]);return(0,o.useEffect)(()=>{if(!E.current)return;let t=E.current,n=()=>{y(t?.duration??e??0),d(!1)};t.addEventListener("ended",n);let a=()=>{r(u("Error reproducing the recording"),"error"),d(!1)};t.addEventListener("error",a);let o=()=>{y(t?.currentTime)};return t.addEventListener("timeupdate",o),()=>{t.pause(),t.removeEventListener("ended",n),t.removeEventListener("error",a),t.removeEventListener("timeupdate",o)}},[r,e,u]),{audioRef:E,canPlayRecord:f,increasePlaybackRate:()=>{b(e=>{if(!E.current)return e;let t=e===n.length-1?0:e+1;return E.current.playbackRate=n[t],t})},isPlaying:c,playbackError:p,playbackRate:n[v],progress:E.current&&g?g/E.current.duration*100:0,secondsElapsed:g,seek:x,togglePlay:w}}},54421:(e,t,n)=>{"use strict";n.d(t,{h:()=>a});var r=n(14232);let a=r.memo(e=>{let{entity:t}=e;return r.createElement("div",{className:"str-chat__slash-command"},r.createElement("span",{className:"str-chat__slash-command-header"},r.createElement("strong",null,t.name)," ",t.args),r.createElement("br",null),r.createElement("span",{className:"str-chat__slash-command-description"},t.description))})},54461:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(14232)),i=(a=n(51161))&&a.__esModule?a:{default:a},s=n(64242),l=n(24657);function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}
4function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),e&&d(s,e);var t,n,a=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=m(s);return a=t?Reflect.construct(o,arguments,m(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:p(e)});function s(){var e;if(!(this instanceof s))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return f(p(e=a.call.apply(a,[this].concat(n))),"mounted",!1),f(p(e),"isReady",!1),f(p(e),"isPlaying",!1),f(p(e),"isLoading",!0),f(p(e),"loadOnReady",null),f(p(e),"startOnPlay",!0),f(p(e),"seekOnPlay",null),f(p(e),"onDurationCalled",!1),f(p(e),"handlePlayerMount",function(t){e.player||(e.player=t,e.player.load(e.props.url),e.progress())}),f(p(e),"getInternalPlayer",function(t){return e.player?e.player[t]:null}),f(p(e),"progress",function(){if(e.props.url&&e.player&&e.isReady){var t=e.getCurrentTime()||0,n=e.getSecondsLoaded(),r=e.getDuration();if(r){var a={playedSeconds:t,played:t/r};null!==n&&(a.loadedSeconds=n,a.loaded=n/r),(a.playedSeconds!==e.prevPlayed||a.loadedSeconds!==e.prevLoaded)&&e.props.onProgress(a),e.prevPlayed=a.playedSeconds,e.prevLoaded=a.loadedSeconds}}e.progressTimeout=setTimeout(e.progress,e.props.progressFrequency||e.props.progressInterval)}),f(p(e),"handleReady",function(){if(e.mounted){e.isReady=!0,e.isLoading=!1;var t=e.props,n=t.onReady,r=t.playing,a=t.volume,o=t.muted;n(),o||null===a||e.player.setVolume(a),e.loadOnReady?(e.player.load(e.loadOnReady,!0),e.loadOnReady=null):r&&e.player.play(),e.handleDurationCheck()}}),f(p(e),"handlePlay",function(){e.isPlaying=!0,e.isLoading=!1;var t=e.props,n=t.onStart,r=t.onPlay,a=t.playbackRate;e.startOnPlay&&(e.player.setPlaybackRate&&1!==a&&e.player.setPlaybackRate(a),n(),e.startOnPlay=!1),r(),e.seekOnPlay&&(e.seekTo(e.seekOnPlay),e.seekOnPlay=null),e.handleDurationCheck()}),f(p(e),"handlePause",function(t){e.isPlaying=!1,e.isLoading||e.props.onPause(t)}),f(p(e),"handleEnded",function(){var t=e.props,n=t.activePlayer,r=t.loop,a=t.onEnded;n.loopOnEnded&&r&&e.seekTo(0),r||(e.isPlaying=!1,a())}),f(p(e),"handleError",function(){var t;e.isLoading=!1,(t=e.props).onError.apply(t,arguments)}),f(p(e),"handleDurationCheck",function(){clearTimeout(e.durationCheckTimeout);var t=e.getDuration();t?e.onDurationCalled||(e.props.onDuration(t),e.onDurationCalled=!0):e.durationCheckTimeout=setTimeout(e.handleDurationCheck,100)}),f(p(e),"handleLoaded",function(){e.isLoading=!1}),e}return n=[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}},{key:"componentDidUpdate",value:function(e){var t=this;if(this.player){var n=this.props,r=n.url,a=n.playing,o=n.volume,s=n.muted,u=n.playbackRate,c=n.pip,d=n.loop,p=n.activePlayer,m=n.disableDeferredLoading;if(!(0,i.default)(e.url,r)){if(this.isLoading&&!p.forceLoad&&!m&&!(0,l.isMediaStream)(r)){console.warn("ReactPlayer: the attempt to load ".concat(r," is being deferred until the player has loaded")),this.loadOnReady=r;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}e.playing||!a||this.isPlaying||this.player.play(),e.playing&&!a&&this.isPlaying&&this.player.pause(),!e.pip&&c&&this.player.enablePIP&&this.player.enablePIP(
4),e.pip&&!c&&this.player.disablePIP&&this.player.disablePIP(),e.volume!==o&&null!==o&&this.player.setVolume(o),e.muted!==s&&(s?this.player.mute():(this.player.unmute(),null!==o&&setTimeout(function(){return t.player.setVolume(o)}))),e.playbackRate!==u&&this.player.setPlaybackRate&&this.player.setPlaybackRate(u),e.loop!==d&&this.player.setLoop&&this.player.setLoop(d)}}},{key:"getDuration",value:function(){return this.isReady?this.player.getDuration():null}},{key:"getCurrentTime",value:function(){return this.isReady?this.player.getCurrentTime():null}},{key:"getSecondsLoaded",value:function(){return this.isReady?this.player.getSecondsLoaded():null}},{key:"seekTo",value:function(e,t){var n=this;if(!this.isReady){0!==e&&(this.seekOnPlay=e,setTimeout(function(){n.seekOnPlay=null},5e3));return}if(t?"fraction"===t:e>0&&e<1){var r=this.player.getDuration();return r?void this.player.seekTo(r*e):void console.warn("ReactPlayer: could not seek using fraction â\xa0duration not yet available")}this.player.seekTo(e)}},{key:"render",value:function(){var e=this.props.activePlayer;return e?o.default.createElement(e,c({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(s.prototype,n),s}(o.Component);t.default=h,f(h,"displayName","Player"),f(h,"propTypes",s.propTypes),f(h,"defaultProps",s.defaultProps)},54819:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var r=n(14232),a=n(38106);let o=({isPlaying:e,onClick:t})=>r.createElement("button",{className:"str-chat__message-attachment-audio-widget--play-button","data-testid":e?"pause-audio":"play-audio",onClick:t},e?r.createElement(a.E$,null):r.createElement(a.Sv,null))},54945:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{A:()=>r})},54973:(e,t,n)=>{"use strict";n.d(t,{f:()=>i});var r=n(14232),a=n(38106),o=n(39223);let i=({assetUrl:e})=>r.createElement(o.Z,{className:"str-chat__message-attachment-file--item-download",download:!0,href:e,target:"_blank"},r.createElement(a.s3,{className:"str-chat__message-attachment-download-icon"}))},55067:(e,t,n)=>{"use strict";n.d(t,{F:()=>r});let r={date:"message.date",intro:"channel.intro"}},55661:(e,t,n)=>{"use strict";n.d(t,{Ak:()=>i,FQ:()=>g,GV:()=>h,Gk:()=>p,H5:()=>d,Oc:()=>u,Oq:()=>l,QZ:()=>o,R2:()=>a,Ux:()=>s,Vv:()=>c,Zw:()=>b,by:()=>f,ee:()=>y,iJ:()=>m,ui:()=>v});let r=["video/mp4","video/ogg","video/webm","video/quicktime"],a=e=>!!e.localMetadata?.id,o=e=>e.og_scrape_url||e.title_link,i=e=>"image"===e.type&&!o(e),s=e=>i(e)&&a(e),l=e=>Array.isArray(e.images),u=e=>"audio"===e.type,c=e=>u(e)&&a(e),d=e=>"voiceRecording"===e.type,p=e=>d(e)&&a(e),m=e=>"file"===e.type||!!(e.mime_type&&-1===r.indexOf(e.mime_type)&&"video"!==e.type),f=e=>m(e)&&a(e),h=e=>e.mime_type&&-1!==r.indexOf(e.mime_type)||"video"===e.type,g=e=>h(e)&&a(e),y=e=>(e.fallback||"").toLowerCase().endsWith(".svg"),v=(e,t)=>[Math.floor(e/t),e%t],b=e=>{if(!e||e<0)return"00:00";let[t,n]=v(e,3600),[r,a]=v(n,60),o=Math.ceil(a),i=1===t.toString().length?"0":"",s=1===r.toString().length?"0":"",l=1===o.toString().length?"0":"",u=`${s}${r}:${l}${o}`;return t?`${i}${t}:`+u:u}},56202:(e,t,n)=>{var r=n(66713),a=n(94147);e.exports=function e(t,n){var o;this.next||(a(e.prototype),a(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),a(this,"_invoke",function(e,a,i){function s(){return new n(function(a,o){!function e(a,o,i,s){try{var l=t[a](o),u=l.value;return u instanceof r?n.resolve(u.v).then(function(t){e("next",t,i,s)},function(t){e("throw",t,i,s)}):n.resolve(u).then(function(e){l.value=e,i(l)},function(t){return e("throw",t,i,s)})}catch(e){s(e)}}(e,i,a,o)})}return o=o?o.then(s,s):s()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports}
4,56428:(e,t,n)=>{"use strict";n.d(t,{E:()=>i,l:()=>o});var r=n(14232),a=n(27475);let o="str-chat__unread-messages-separator",i=({showCount:e,unreadCount:t})=>{let{t:n}=(0,a.WR)("UnreadMessagesSeparator");return r.createElement("div",{className:o,"data-testid":"unread-messages-separator"},t&&e?n("unreadMessagesSeparatorText",{count:t}):n("Unread messages"))}},56551:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(14232)),o=n(24657),i=n(95824);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");p.prototype=Object.create(e&&e.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),e&&l(p,e);var t,n,s=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=c(p);return a=t?Reflect.construct(o,arguments,c(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:u(e)});function p(){var e;if(!(this instanceof p))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(u(e=s.call.apply(s,[this].concat(n))),"callPlayer",o.callPlayer),d(u(e),"duration",null),d(u(e),"currentTime",null),d(u(e),"secondsLoaded",null),d(u(e),"mute",function(){e.callPlayer("mute")}),d(u(e),"unmute",function(){e.callPlayer("unmute")}),d(u(e),"ref",function(t){e.iframe=t}),e}return n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this;(0,o.getSDK)("https://cdn.embed.ly/player-0.1.0.min.js","playerjs").then(function(e){t.iframe&&(t.player=new e.Player(t.iframe),t.player.setLoop(t.props.loop),t.player.on("ready",t.props.onReady),t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seeked",t.props.onSeek),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",function(e){var n=e.duration,r=e.seconds;t.duration=n,t.currentTime=r}),t.player.on("buffered",function(e){var n=e.percent;t.duration&&(t.secondsLoaded=t.duration*n)}),t.props.muted&&t.player.mute())},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("setCurrentTime",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",100*e)}},{key:"setLoop",value:function(e){this.callPlayer("setLoop",e)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var e=this.props.url.match(i.MATCH_URL_STREAMABLE)[1];return a.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(e),frameBorder:"0",scrolling:"no",style:{width:"100%",height:"100%"},allow:"encrypted-media; autoplay; fullscreen;"})}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(p.prototype,n),p}(a.Component);t.default=p,d(p,"displayName","Streamable"),d(p,"canPlay",i.canPlay.streamable)},56557:function(e){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",a="week",o="month",i="quarter",s="year",l="date",u="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
4|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},m="en",f={};f[m]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}};var h="$isDayjsObject",g=function(e){return e instanceof D||!(!e||!e[h])},y=function e(t,n,r){var a;if(!t)return m;if("string"==typeof t){var o=t.toLowerCase();f[o]&&(a=o),n&&(f[o]=n,a=o);var i=t.split("-");if(!a&&i.length>1)return e(i[0])}else{var s=t.name;f[s]=t,a=s}return!r&&a&&(m=a),a||!r&&m},v=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new D(n)},b={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+p(Math.floor(n/60),2,"0")+":"+p(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),a=t.clone().add(r,o),i=n-a<0,s=t.clone().add(r+(i?-1:1),o);return+(-(r+(n-a)/(i?a-s:s-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(u){return({M:o,y:s,w:a,d:"day",D:l,h:r,m:n,s:t,ms:e,Q:i})[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};b.l=y,b.i=g,b.w=function(e,t){return v(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function p(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[h]=!0}var m=p.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(c);if(r){var a=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return this.$d.toString()!==u},m.isSame=function(e,t){var n=v(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return v(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<v(e)},m.$g=function(e,t,n){return b.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,i){var u=this,c=!!b.u(i)||i,d=b.p(e),p=function(e,t){var n=b.w(u.$u?Date.UTC(u.$y,t,e):new Date(u.$y,t,e),u);return c?n:n.endOf("day")},m=function(e,t){return b.w(u.toDate()[e].apply(u.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),u)},f=this.$W,h=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case s:return c?p(1,0):p(31,11);case o:return c?p(1,h):p(0,h+1);case a:var v=this.$locale().weekStart||0,D=(f<v?f+7:f)-v;return p(c?g-D:g+(6-D),h);case"day":case l:return m(y+"Hours",0);case r:return m(y+"Minutes",1);case n:return m(y+"Seconds",2);case t:return m(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(a,i){var u,c=b.p(a),d="set"+(this.$u?"UTC":""),p=((u={}).day=d+"Date",u[l]=d+"Date",u[o]=d+"Month",u[s]=d+"FullYear",u[r]=d+"Hours",u[n]=d+"Minutes",u[t]=d+"Seconds",u[e]=d+"Milliseconds",u)[c],m="day"===c?this.$D+(i-this.$W):i;if(c===o||c===s){var f=this.clone().set(l,1);f.$d[p](m),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[b.p(e)]()},m.add=function(e,i){var l,u=this;e=Number(e);var c=b.p(i),d=function(t){var n=v(u);return b.w(n.date(n.date()+Math.round(t*e)),u)};if(c===o)return this.set(o,this.$M+e);if(c===s)return this.set(s,this.$y+e);if("day"===c)return d(1);if(c===a)return d(7);var p=((l={})[n]=6e4,l[r]=36e5,l[t]=1e3,l)[c]||1,m=this.$d.getTime()+e*p;return b.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||u;var r=e||"YYYY-MM-DDTHH:mm:ssZ",a=b.z(this),o=this.$H,i=this.$m,s=this.$M,l=n.weekdays,c=n.months,p=n.meridiem,m=function(e,n,a,o){return e&&(e[
4n]||e(t,r))||a[n].slice(0,o)},f=function(e){return b.s(o%12||12,e,"0")},h=p||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(d,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return b.s(t.$y,4,"0");case"M":return s+1;case"MM":return b.s(s+1,2,"0");case"MMM":return m(n.monthsShort,s,c,3);case"MMMM":return m(c,s);case"D":return t.$D;case"DD":return b.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return m(n.weekdaysMin,t.$W,l,2);case"ddd":return m(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return b.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return h(o,i,!0);case"A":return h(o,i,!1);case"m":return String(i);case"mm":return b.s(i,2,"0");case"s":return String(t.$s);case"ss":return b.s(t.$s,2,"0");case"SSS":return b.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")})},m.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},m.diff=function(e,l,u){var c,d=this,p=b.p(l),m=v(e),f=(m.utcOffset()-this.utcOffset())*6e4,h=this-m,g=function(){return b.m(d,m)};switch(p){case s:c=g()/12;break;case o:c=g();break;case i:c=g()/3;break;case a:c=(h-f)/6048e5;break;case"day":c=(h-f)/864e5;break;case r:c=h/36e5;break;case n:c=h/6e4;break;case t:c=h/1e3;break;default:c=h}return u?c:b.a(c)},m.daysInMonth=function(){return this.endOf(o).$D},m.$locale=function(){return f[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=y(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},p}(),E=D.prototype;return v.prototype=E,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",o],["$y",s],["$D",l]].forEach(function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),v.extend=function(e,t){return e.$i||(e(t,D,v),e.$i=!0),v},v.locale=y,v.isDayjs=g,v.unix=function(e){return v(1e3*e)},v.en=f[m],v.Ls=f,v.p={},v}()},57041:(e,t,n)=>{"use strict";n.d(t,{g:()=>o});var r=n(14232),a=n(65258);let o=({children:e,offset:t=[0,10],placement:n="top",referenceElement:o,visible:i=!1})=>{let[s,l]=(0,r.useState)(null),{attributes:u,styles:c}=(0,a.E)(o,s,{modifiers:[{name:"offset",options:{offset:t}}],placement:n});return i?r.createElement("div",{className:"str-chat__tooltip",ref:l,style:c.popper,...u.popper},e):null}},57321:(e,t,n)=>{"use strict";function r(e){return e.replace(/[-[\]{}()*+?.,/\\^$|#]/g,"\\$&")}n.d(t,{Mf:()=>i,NP:()=>o,Nt:()=>r,ko:()=>a});let a=/(http(s?):\/\/)?(www\.)?/,o=e=>e.match(/```[a-z]*\n[\s\S]*?\n```|`[a-z]*[\s\S]*?`/gm)||[],i=e=>{let t=e.match(/\[([^[]+)\](\(.*\))/gm),n=/\[([^[]+)\]\((.*)\)/;return(t?t.map(e=>{let t=n.exec(e);return t&&[t[1],t[2]]}):[]).flat()}},59524:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},59696:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},59761:function(e,t,n){e.exports=function(e){"use strict";var t={name:"pt",weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_Sa".split("_"),months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"\xba"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t}(n(56557))},61330:(e,t,n)=>{e=n.nmd(e);var r,a,o,i="__lodash_hash_undefined__",s=1/0,l="[object Arguments]",u="[object Array]",c="[object Boolean]",d="[object Date]",p="[object Error]",m="[object Function]",f="[object Map]",h="[object Number]",g="[object Object]",y="[object Promise]",v="[object RegExp]",b="[object Set]",D="[object String]",E="[object Symbol]",_="[object WeakMap]",w="[object ArrayBuffer]",x="[object DataView]",C=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k=/^\w*$/,S=/^\./,M=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,T=/\\(\\)?/g,O=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,P={};
4P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[l]=P[u]=P[w]=P[c]=P[x]=P[d]=P[p]=P[m]=P[f]=P[h]=P[g]=P[v]=P[b]=P[D]=P[_]=!1;var F="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,L="object"==typeof self&&self&&self.Object===Object&&self,R=F||L||Function("return this")(),j=t&&!t.nodeType&&t,N=j&&e&&!e.nodeType&&e,I=N&&N.exports===j&&F.process,B=function(){try{return I&&I.binding("util")}catch(e){}}(),z=B&&B.isTypedArray;function H(e,t){return!!(e?e.length:0)&&function(e,t){if(t!=t){for(var n=U,r=e.length,a=-1;++a<r;)if(n(e[a],a,e))return a;return -1}for(var o=-1,i=e.length;++o<i;)if(e[o]===t)return o;return -1}(e,t)>-1}function U(e){return e!=e}function V(e,t){return e.has(t)}function W(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function $(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function q(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Y=Array.prototype,K=Function.prototype,G=Object.prototype,Z=R["__core-js_shared__"],X=(r=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Q=K.toString,J=G.hasOwnProperty,ee=G.toString,et=RegExp("^"+Q.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),en=R.Symbol,er=R.Uint8Array,ea=G.propertyIsEnumerable,eo=Y.splice,ei=(a=Object.keys,o=Object,function(e){return a(o(e))}),es=eF(R,"DataView"),el=eF(R,"Map"),eu=eF(R,"Promise"),ec=eF(R,"Set"),ed=eF(R,"WeakMap"),ep=eF(Object,"create"),em=ez(es),ef=ez(el),eh=ez(eu),eg=ez(ec),ey=ez(ed),ev=en?en.prototype:void 0,eb=ev?ev.valueOf:void 0,eD=ev?ev.toString:void 0;function eE(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function e_(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ew(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ex(e){var t=-1,n=e?e.length:0;for(this.__data__=new ew;++t<n;)this.add(e[t])}function eC(e){this.__data__=new e_(e)}function ek(e,t){for(var n=e.length;n--;)if(eU(e[n][0],t))return n;return -1}function eS(e,t){var n;t=ej(t,e)?[t]:eW(n=t)?n:eI(n);for(var r=0,a=t.length;null!=e&&r<a;)e=e[eB(t[r++])];return r&&r==a?e:void 0}function eM(e,t){return null!=e&&t in Object(e)}function eT(e,t,n,r,a){return e===t||(null!=e&&null!=t&&(eK(e)||eG(t))?function(e,t,n,r,a,o){var i=eW(e),s=eW(t),m=u,y=u;i||(m=(m=eL(e))==l?g:m),s||(y=(y=eL(t))==l?g:y);var _=m==g&&!W(e),C=y==g&&!W(t),k=m==y;if(k&&!_)return o||(o=new eC),i||eX(e)?eA(e,t,n,r,a,o):function(e,t,n,r,a,o,i){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case w:if(e.byteLength!=t.byteLength||!r(new er(e),new er(t)))break;return!0;case c:case d:case h:return eU(+e,+t);case p:return e.name==t.name&&e.message==t.message;case v:case D:return e==t+"";case f:var s=$;case b:var l=2&o;if(s||(s=q),e.size!=t.size&&!l)break;var u=i.get(e);if(u)return u==t;o|=1,i.set(e,t);var m=eA(s(e),s(t),r,a,o,i);return i.delete(e),m;case E:if(eb)return eb.call(e)==eb.call(t)}return!1}(e,t,m,n,r,a,o);if(!(2&a)){var S=_&&J.call(e,"__wrapped__"),M=C&&J.call(t,"__wrapped__");
4if(S||M){var T=S?e.value():e,O=M?t.value():t;return o||(o=new eC),n(T,O,r,a,o)}}return!!k&&(o||(o=new eC),function(e,t,n,r,a,o){var i=2&a,s=eQ(e),l=s.length;if(l!=eQ(t).length&&!i)return!1;for(var u=l;u--;){var c=s[u];if(!(i?c in t:J.call(t,c)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var p=!0;o.set(e,t),o.set(t,e);for(var m=i;++u<l;){var f=e[c=s[u]],h=t[c];if(r)var g=i?r(h,f,c,t,e,o):r(f,h,c,e,t,o);if(!(void 0===g?f===h||n(f,h,r,a,o):g)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var y=e.constructor,v=t.constructor;y!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,a,o))}(e,t,eT,n,r,a):e!=e&&t!=t)}eE.prototype.clear=function(){this.__data__=ep?ep(null):{}},eE.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},eE.prototype.get=function(e){var t=this.__data__;if(ep){var n=t[e];return n===i?void 0:n}return J.call(t,e)?t[e]:void 0},eE.prototype.has=function(e){var t=this.__data__;return ep?void 0!==t[e]:J.call(t,e)},eE.prototype.set=function(e,t){return this.__data__[e]=ep&&void 0===t?i:t,this},e_.prototype.clear=function(){this.__data__=[]},e_.prototype.delete=function(e){var t=this.__data__,n=ek(t,e);return!(n<0)&&(n==t.length-1?t.pop():eo.call(t,n,1),!0)},e_.prototype.get=function(e){var t=this.__data__,n=ek(t,e);return n<0?void 0:t[n][1]},e_.prototype.has=function(e){return ek(this.__data__,e)>-1},e_.prototype.set=function(e,t){var n=this.__data__,r=ek(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ew.prototype.clear=function(){this.__data__={hash:new eE,map:new(el||e_),string:new eE}},ew.prototype.delete=function(e){return eP(this,e).delete(e)},ew.prototype.get=function(e){return eP(this,e).get(e)},ew.prototype.has=function(e){return eP(this,e).has(e)},ew.prototype.set=function(e,t){return eP(this,e).set(e,t),this},ex.prototype.add=ex.prototype.push=function(e){return this.__data__.set(e,i),this},ex.prototype.has=function(e){return this.__data__.has(e)},eC.prototype.clear=function(){this.__data__=new e_},eC.prototype.delete=function(e){return this.__data__.delete(e)},eC.prototype.get=function(e){return this.__data__.get(e)},eC.prototype.has=function(e){return this.__data__.has(e)},eC.prototype.set=function(e,t){var n=this.__data__;if(n instanceof e_){var r=n.__data__;if(!el||r.length<199)return r.push([e,t]),this;n=this.__data__=new ew(r)}return n.set(e,t),this};var eO=ec&&1/q(new ec([,-0]))[1]==s?function(e){return new ec(e)}:function(){};function eA(e,t,n,r,a,o){var i=2&a,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,d=!0,p=1&a?new ex:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var m=e[c],f=t[c];if(r)var h=i?r(f,m,c,t,e,o):r(m,f,c,e,t,o);if(void 0!==h){if(h)continue;d=!1;break}if(p){if(!function(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}(t,function(e,t){if(!p.has(t)&&(m===e||n(m,e,r,a,o)))return p.add(t)})){d=!1;break}}else if(!(m===f||n(m,f,r,a,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function eP(e,t){var n,r,a=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function eF(e,t){var n,r=null==e?void 0:e[t];return!(!eK(r)||(n=r,X&&X in n))&&(eq(r)||W(r)?et:O).test(ez(r))?r:void 0}var eL=function(e){return ee.call(e)};function eR(e,t){return!!(t=null==t?0x1fffffffffffff:t)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<t}function ej(e,t){if(eW(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||eZ(e))||k.test(e)||!C.test(e)||null!=t&&e in Object(t)}(es&&eL(new es(new ArrayBuffer(1)))!=x||el&&eL(new el)!=f||eu&&eL(eu.resolve())!=y||ec&&eL(new ec)!=b||ed&&eL(new ed)!=_)&&(eL=function(e){var t=ee.call(e),n=t==g?e.constructor:void 0,r=n?ez(n):void 0;if(r)switch(r){case em:return x;case ef:return f;case eh:return y;case eg:return b;case ey:return _}return t});function eN(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}
4var eI=eH(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(eZ(e))return eD?eD.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}(t);var t,n=[];return S.test(e)&&n.push(""),e.replace(M,function(e,t,r,a){n.push(r?a.replace(T,"$1"):t||e)}),n});function eB(e){if("string"==typeof e||eZ(e))return e;var t=e+"";return"0"==t&&1/e==-s?"-0":t}function ez(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eH(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i),i};return n.cache=new(eH.Cache||ew),n}function eU(e,t){return e===t||e!=e&&t!=t}function eV(e){var t;return eG(t=e)&&e$(t)&&J.call(e,"callee")&&(!ea.call(e,"callee")||ee.call(e)==l)}eH.Cache=ew;var eW=Array.isArray;function e$(e){return null!=e&&eY(e.length)&&!eq(e)}function eq(e){var t=eK(e)?ee.call(e):"";return t==m||"[object GeneratorFunction]"==t}function eY(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eK(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eG(e){return!!e&&"object"==typeof e}function eZ(e){return"symbol"==typeof e||eG(e)&&ee.call(e)==E}var eX=z?function(e){return z(e)}:function(e){return eG(e)&&eY(e.length)&&!!P[ee.call(e)]};function eQ(e){return e$(e)?function(e){var t=eW(e)||eV(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],n=t.length,r=!!n;for(var a in e)J.call(e,a)&&!(r&&("length"==a||eR(a,n)))&&t.push(a);return t}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||G))return ei(e);var t,n,r=[];for(var a in Object(e))J.call(e,a)&&"constructor"!=a&&r.push(a);return r}(e)}function eJ(e){return e}e.exports=function(e,t){var n,r,a,o,i;return e&&e.length?function(e,t){var n=-1,r=H,a=e.length,o=!0,i=[],s=i;if(a>=200){var l=t?null:eO(e);if(l)return q(l);o=!1,r=V,s=new ex}else s=t?[]:i;e:for(;++n<a;){var u=e[n],c=t?t(u):u;if(u=0!==u?u:0,o&&c==c){for(var d=s.length;d--;)if(s[d]===c)continue e;t&&s.push(c),i.push(u)}else r(s,c,void 0)||(s!==i&&s.push(c),i.push(u))}return i}(e,"function"==typeof t?t:null==t?eJ:"object"==typeof t?eW(t)?(n=t[0],r=t[1],ej(n)&&(a=r)==a&&!eK(a)?eN(eB(n),r):function(e){var t,a,o,i,s,l=(t=e,a=n,void 0===(o=null==t?void 0:eS(t,a))?void 0:o);return void 0===l&&l===r?(i=e,s=n,null!=i&&function(e,t,n){t=ej(t,e)?[t]:eW(r=t)?r:eI(r);for(var r,a,o=-1,i=t.length;++o<i;){var s=eB(t[o]);if(!(a=null!=e&&n(e,s)))break;e=e[s]}if(a)return a;var i=e?e.length:0;return!!i&&eY(i)&&eR(s,i)&&(eW(e)||eV(e))}(i,s,eM)):eT(r,l,void 0,3)}):1==(i=function(e){for(var t=eQ(e),n=t.length;n--;){var r,a=t[n],o=e[a];t[n]=[a,o,(r=o)==r&&!eK(r)]}return t}(o=t)).length&&i[0][2]?eN(i[0][0],i[0][1]):function(e){return e===o||function(e,t){var n=t.length,r=n;if(null==e)return!r;for(e=Object(e);n--;){var a=t[n];if((0,a[2])?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++n<r;){var o=(a=t[n])[0],i=e[o],s=a[1];if(0,a[2]){if(void 0===i&&!(o in e))return!1}else{var l,u=new eC;if(!(void 0===l?eT(s,i,void 0,3,u):l))return!1}}return!0}(e,i)}:function(e){var t;return ej(e)?(t=eB(e),function(e){return null==e?void 0:e[t]}):function(t){return eS(t,e)}}(t)):[]}},61371:(e,t,n)=>{"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,{A:()=>r})},62417:(e,t,n)=>{"use strict";n.d(t,{h:()=>o});var r=n(76844),a=n(7970);let o=(e,t,n)=>{let{channel:o,channelCapabilities:i={}}=(0,r.BX)("useUserRole"),{client:s}=(0,a.vd)("useUserRole"),l=s.user?.role==="admin"||"admin"===o.state.membership.role,u="owner"===o.state.membership.role,c=s.user?.role==="channel_moderator"||"channel_moderator"===o.state.membership.role||"moderator"===o.state.membership.role||!0===o.state.membership.is_moderator||"channel_moderator"===o.state.membership.channel_role,d=s.userID===e.user?.id,p=!e.poll&&(!t&&i["update-any-message"]||d&&i["update-own-message"]),m=i["delete-any-message"]||d&&i["delete-own-message"],f=!d&&i["flag-message"],h=i["read-events"],g=!d&&i["mute-channel"],y=!n&&i["quote-message"];return{canDelete:m,canEdit:p,canFlag:f,canMarkUnread:h,canMute:g,canQuote:y,canReact:i["send-reaction"],canReply:i["send-reply"],isAdmin:l,isModerator:c,isMyMessage:d,isOwner:u}}},63159:(e,t,n)=>{"use strict";n.d(t,{s:()=>ev});var r=n(14232),a=n(69241),o=n(27475);let i=r.createContext(void 0),s=({children:e,poll:t})=>t?r.createElement(i.Provider,{value:{poll:t}},e):null,l=()=>(0,r.useContext)(i);var u=n(31383);let c=e=>({enforce_unique_vote:e.enforce_unique_vote,is_closed:e.is_closed,max_votes_allowed:e.max_votes_allowed,name:e.name,options:e.options}),d=()=>{let{t:e}=(0,o.WR)("PollHeader"),{poll:t}=l(),{enforce_unique_vote:n,is_closed:a,max_votes_allowed:i,name:s,options:d}=(0,u.q)(t.state,c),p=(0,r.useMemo)(()=>a?e("Vote ended"):n||1===d.length?e("Select one"):i?e("Select up to {{count}}",{count:i>d.length?d.length:i}):d.length>1?e("Select one or more"):"",[a,n,i,d.length,e]);if(s)return r.createElement("div",{className:"str-chat__poll-header"},r.createElement("div",{className:"str-chat__poll-title"},s),r.createElement("div",{className:"str-chat__poll-subtitle"},p))};var p=n(79674);let m=({buttonText:e,children:t,closeModal:n,modalClassName:a,modalIsOpen:o,openModal:i})=>r.createElement(r.Fragment,null,r.createElement("button",{className:"str-chat__poll-action",onClick:i},e),r.createElement(p.a,{className:a,onClose:n,open:o},t));var f=n(64099);let h=({className:e,close:t,fields:n,onSubmit:i,shouldDisableSubmitButton:s,title:l})=>{let{t:u}=(0,o.WR)(),[c,d]=(0,r.useState)({}),[p,m]=(0,r.useState)(()=>{let e={};for(let[t,r]of Object.entries(n))e={...e,[t]:r.props.value};return e}),h=(0,r.useCallback)(e=>{let t=e.target.id,r=n[t];if(!r)return;let a=r.validator?.(e.target.value);a?d(e=>({[t]:a,...e})):d(e=>(delete e[t],e)),m(n=>({...n,[t]:e.target.value})),r.props.onChange&&("input"===r.element?r.props.onChange(e):"textarea"===r.element&&r.props.onChange(e))},[n]),g=async()=>
4{if(!Object.keys(p).length)return;let e={};for(let[t,r]of Object.entries(p)){let a=n[t].validator?.(r);a&&(e[t]=a)}Object.keys(e).length?d(e):(await i(p),t())};return r.createElement("div",{className:(0,a.A)("str-chat__dialog str-chat__dialog--form",e)},r.createElement("div",{className:"str-chat__dialog__body"},l&&r.createElement("div",{className:"str-chat__dialog__title"},l),r.createElement("form",{autoComplete:"off",onSubmit:e=>{e.preventDefault(),g()}},Object.entries(n).map(([e,t])=>r.createElement("div",{className:"str-chat__dialog__field",key:`dialog-field-${e}`},t.label&&r.createElement("label",{className:(0,a.A)(`str-chat__dialog__title str-chat__dialog__title--${e}`),htmlFor:e},t.label),r.createElement(t.element,{id:e,...t.props,onChange:h,value:p[e]}),r.createElement(f.b,{text:c[e]?.message}))),r.createElement("div",{className:"str-chat__dialog__controls"},r.createElement("button",{className:"str-chat__dialog__controls-button str-chat__dialog__controls-button--cancel",onClick:t},u("Cancel")),r.createElement("button",{className:"str-chat__dialog__controls-button str-chat__dialog__controls-button--submit",disabled:Object.keys(c).length>0||s?.(p),type:"submit"},u("Send"))))))},g=e=>({ownAnswer:e.ownAnswer}),y=({close:e,messageId:t})=>{let{t:n}=(0,o.WR)("AddCommentForm"),{poll:a}=l(),{ownAnswer:i}=(0,u.q)(a.state,g);return r.createElement(h,{className:"str-chat__prompt-dialog str-chat__modal__poll-add-comment",close:e,fields:{comment:{element:"input",props:{id:"comment",name:"comment",required:!0,type:"text",value:i?.answer_text??""}}},onSubmit:async e=>{await a.addAnswer(e.comment,t)},shouldDisableSubmitButton:e=>!e.comment||e.comment===i?.answer_text,title:n(i?"Update your comment":"Add a comment")})};var v=n(7970);let b=e=>({options:e.options}),D=({close:e,messageId:t})=>{let{client:n}=(0,v.vd)("SuggestPollOptionForm"),{t:a}=(0,o.WR)("SuggestPollOptionForm"),{poll:i}=l(),{options:s}=(0,u.q)(i.state,b);return r.createElement(h,{className:"str-chat__prompt-dialog str-chat__modal__suggest-poll-option",close:e,fields:{optionText:{element:"input",props:{id:"optionText",name:"optionText",required:!0,type:"text",value:""},validator:e=>{if(e&&s.find(t=>t.text===e.trim()))return Error(a("Option already exists"))}}},onSubmit:async e=>{let{poll_option:r}=await n.createPollOption(i.id,{text:e.optionText});i.castVote(r.id,t)},shouldDisableSubmitButton:e=>!e.optionText,title:a("Suggest an option")})},E=({actions:e,className:t,prompt:n,title:o})=>r.createElement("div",{className:(0,a.A)("str-chat__dialog str-chat__dialog--prompt",t)},r.createElement("div",{className:"str-chat__dialog__body"},o&&r.createElement("div",{className:"str-chat__dialog__title"},o),r.createElement("div",{className:"str-chat__dialog__prompt"},n)),r.createElement("div",{className:"str-chat__dialog__controls"},e.map(({className:e,...t},n)=>r.createElement("button",{className:(0,a.A)("str-chat__dialog__controls-button",e),key:`prompt-dialog__controls-button--${n}`,...t})))),_=({close:e})=>{let{t}=(0,o.WR)("SuggestPollOptionForm"),{poll:n}=l();return r.createElement(E,{actions:[{children:t("Cancel"),className:"str-chat__dialog__controls-button--cancel",onClick:e},{children:t("End"),className:".str-chat__dialog__controls-button--submit str-chat__dialog__controls-button--end-poll",onClick:n.close}],className:"str-chat__modal__end-vote",prompt:t("Nobody will be able to vote in this poll anymore."),title:t("End vote")})};var w=n(11084),x=n(43653),C=n(57041),k=n(92774);let S=({timestamp:e})=>{let{t}=(0,o.WR)(),{handleEnter:n,handleLeave:a,tooltipVisible:i}=(0,k.U)(),[s,l]=(0,r.useState)(null),u=new Date(e);return r.createElement("div",{className:"str-chat__poll-vote__timestamp",onMouseEnter:n,onMouseLeave:a,ref:l},t("timestamp/PollVote",{timestamp:u}),r.createElement(C.g,{offset:[0,5],placement:"bottom",referenceElement:s,visible:i},t("timestamp/PollVoteTooltip",{timestamp:u})))},M=({vote:e})=>{let{t}=(0,o.WR)(),{client:n}=(0,v.vd)(),{handleEnter:a,handleLeave:i,tooltipVisible:s}=(0,k.U)(),[l,u]=(0,r.useState)(null),c=n.user?.id&&n.user.id===e.user?.id?t("You"):e.user?.name||t("Anonymous");return r.createElement("div",{className:"str-chat__poll-vote__author",onMouseEnter:a,onMouseLeave:i,ref:u},e.user&&r.createElement(x.e,{className:"str-chat__avatar--poll-vote-author",image:e.user.image,key:`poll-vote-${e.id}-avatar-${e.user.id}`,name:e.user.name}),r.createElement("div",{className:"str-chat__poll-vote__author__name"},c),r.createElement(C.g,{offset:[0,5],placement:"bottom",referenceElement:l,visible:s},c))},T=({vote:e})=>r.createElement("div",{className:"str-chat__poll-vote"},r.createElement(M,{vote:e}),r.createElement(S,{timestamp:e.created_at})),O=({votes:e})=>r.createElement("div",{className:"str-chat__poll-vote-listing"},e.map(e=>r.createElement(T,{key:`poll-vote-${e.id}`,vote:e})));var A=n(84989);function P(e,t,n){let{client:a}=(0,v.vd)(),[o,i]=(0,r.useState)(t?.getLatestValue().items??[]);return(0,r.useEffect)(()=>t?.subscribeWithSelector(e=>[e.latestPageItems],([e])=>i(t=>[...t,...e])),[t]),(0,r.useEffect)(()=>{let t=t=>{if(!t.poll_vote)return;let r=(0,A.ZV)(t.poll_vote);("answer"!==e||r)&&("vote"!==e||!r&&t.poll_vote.option_id===n)&&("poll.vote_removed"===t.type&&i(e=>t.poll_vote?e.filter(e=>e.id!==t.poll_vote.id):e),"poll.vote_changed"===t.type&&i(e=>t.poll_vote?e.filter(e=>e.id!==t.poll_vote.id):e),["poll.vote_casted","poll.vote_changed"].includes(t.type)&&i(e=>t.poll_vote?[t.poll_vote,...e]:e))},r=a.on("poll.vote_casted",t),o=a.on("poll.vote_removed",t),s=a.on("poll.vote_changed",t);return()=>{r.unsubscribe(),o.unsubscribe(),s.unsubscribe()}},[a,n,e]),o}var F=n(61330),L=n.n(F);let R=(e,t)=>{let n=(0,r.useMemo)(()=>new A.fy({hasNextPage:!0,items:[],latestPageItems:[],loading:!1}),[]),a=(0,r.useCallback)(async()=>{let{loading:t,next:r}=n.getLatestValue();if(null!==r&&!t){n.partialNext({loading:!0});try{let{items:t,next:a}=await e(r);n.next(e=>({...e,hasNextPage:!!a,items:L()(e.items.concat(t),"id"),latestPageItems:t,next:a||null}))}catch(e){n.partialNext({error:e})}n.partialNext({loading:!1})}},[n,e]);return(0,r.useEffect)(()=>{let{items:e}=n.getLatestValue();t&&!e.length&&a()},[n,t,a]),{cursorPaginatorState:n,loadMore:a}},j=e=>[e.error,e.hasNextPage,e.loading];var N=n(39149),I=n.n(N),B=n(98723);let z=e=>{e instanceof WheelEvent&&1===e.deltaY&&e.preventDefault()},H=e=>{let{children:t,className:n,listenToScroll:o,loadNextDebounceMs:i=500,loadNextOnScrollToBottom:s,loadNextOnScrollToTop:l,threshold:u=B.Vq,useCapture:c=!1,...d}=e,p=(0,r.useRef)(null),m=(0,r.useRef)(null),f=(0,r.useMemo)(()=>I()(()=>{let e=p.current,t=m.current;if(!e||null===e.offsetParent||!t)return;let n=t.scrollHeight-e.scrollTop-e.clientHeight,r=e.scrollTop;o&&o(n,r,u),r<Number(u)&&l?.(),n<Number(u)&&s?.()},i),[o,i,s,l,u]);return(0,r.useEffect)(()=>{let e=p.current;if(e)return e.addEventListener("scroll",f,c),()=>{e.removeEventListener("scroll",f,c)}},[f,c]),(0,r.useEffect)(()=>{let e=p.current;if(!e||"u"<typeof ResizeObserver||!f)return;let t=new ResizeObserver(f);return t.observe(e),()=>{t.disconnect()}},[f]),(0,r.useEffect)(()=>{let e=p.current;return e&&e.addEventListener("wheel",z,{passive:!1}),()=>{e&&e.removeEventListener("wheel",z,c)}},[c]),r.createElement("div",{...d,className:(0,a.A)("str-chat__infinite-scroll-paginator",n),ref:p},r.createElement("div",{className:"str-chat__infinite-scroll-paginator__content",ref:m},t))};var U=n(2106);let V=e=>({is_closed:e.is_closed,ownAnswer:e.ownAnswer}),W=({close:e,onUpdateOwnAnswerClick:t})=>{let{t:n}=(0,o.WR)(),{poll:a}=l(),{is_closed:i,ownAnswer:s}=(0,u.q)(a.state,V),{answers:c,error:d,hasNextPage:p,loading:m,loadMore:f}=(({paginationParams:e}={})=>{let{poll:t}=l(),{cursorPaginatorState:n,loadMore:a}=R((0,r.useCallback)(async n=>{let{next:r,votes:a}=await t.queryAnswers({filter:e?.filter,options:n?{...e?.options,next:n}:e?.options,sort:{created_at:-1,...e?.sort}});return{items:a,next:r}},[e,t]),!0),o=P("answer",n),[i,s,c]=(0,u.q)(n,j);return{answers:o,error:i,hasNextPage:s,loading:c,loadMore:a}})();return r.createElement("div",{className:"str-chat__modal__poll-answer-list"},r.createElement(w.r,{close:e,title:n("Poll comments")}),r.createElement("div",{className:"str-chat__modal__poll-answer-list__body"},r.createElement(H,{loadNextOnScrollToBottom:f,threshold:40},r.createElement("div",{className:"str-chat__poll-answer-list"},c.map(e=>r.createElement("div",{className:"str-chat__poll-answer",key:`comment-${e.id}`},e.answer_text&&r.createElement("p",{className:"str-chat__poll-answer__text"},e.answer_text),r.createElement(T,{key:`poll-vote-${e.id}`,vote:e})))),p&&r.createElement("div",{className:"str-chat__loading-indicator-placeholder"},m&&r.createElement(U.I,null))),d?.message&&r.createElement("div",null,d?.message)),c.length>0&&!i&&r.createElement("button",{className:"str-chat__poll-action",onClick:t},n(s?"Update your comment":"Add a comment")))};var $=n(76844),q=n(70251);let Y=({amount:e,className:t})=>r.createElement("div",{className:(0,a.A)("str-chat__amount-bar",t),"data-testid":"amount-bar",role:"progressbar",style:{"--str-chat__amount-bar-fulfillment":e+"%"}}),K=({checked:e})=>r.createElement("div",{className:(0,a.A)("str-chat__checkmark",{"str-chat__checkmark--checked":e})}),G=e=>({is_closed:e.is_closed,latest_votes_by_option:e.latest_votes_by_option,maxVotedOptionIds:e.maxVotedOptionIds,ownVotesByOptionId:e.ownVotesByOptionId,vote_counts_by_option:e.vote_counts_by_option,voting_visibility:e.voting_visibility}),Z=({displayAvatarCount:e,option:t,voteCountVerbose:n})=>{let{t:i}=(0,o.WR)(),{channelCapabilities:s={}}=(0,$.BX)("PollOptionsShortlist"),{message:c}=(0,q.m7)(),{poll:d}
4=l(),{is_closed:p,latest_votes_by_option:m,maxVotedOptionIds:f,ownVotesByOptionId:h,vote_counts_by_option:g,voting_visibility:y}=(0,u.q)(d.state,G),v=s["cast-poll-vote"]&&!p,b=f[0]?g[f[0]]:0,D=(0,r.useMemo)(()=>I()(()=>{if(v)return h[t.id]?d.removeVote(h[t.id].id,c.id):d.castVote(t.id,c.id)},100),[v,c.id,t.id,h,d]);return r.createElement("div",{className:(0,a.A)("str-chat__poll-option",{"str-chat__poll-option--votable":v}),key:`base-poll-option-${t.id}`,onClick:D},v&&r.createElement(K,{checked:!!h[t.id]}),r.createElement("div",{className:"str-chat__poll-option-data"},r.createElement("p",{className:"str-chat__poll-option-text"},t.text),e&&"public"===y&&r.createElement("div",{className:"str-chat__poll-option-voters"},m?.[t.id]&&m[t.id].filter(e=>!!e.user&&!(0,A.ZV)(e)).slice(0,e).map(({user:e})=>r.createElement(x.e,{image:e?.image,key:`poll-option-${t.id}-avatar-${e?.id}`,name:e?.name}))),r.createElement("div",{className:"str-chat__poll-option-vote-count"},n?i("{{count}} votes",{count:g[t.id]??0}):g[t.id]??0)),r.createElement(Y,{amount:100*(b&&(g[t.id]??0)/b),className:(0,a.A)("str-chat__poll-option__votes-bar",{"str-chat__poll-option__votes-bar--winner":p&&1===f.length&&f[0]===t.id})}))};var X=n(10623);let Q=e=>({options:e.options}),J=({optionsDisplayCount:e})=>{let{PollOptionSelector:t=Z}=(0,X.aD)(),{poll:n}=l(),{options:o}=(0,u.q)(n.state,Q);return r.createElement("div",{className:(0,a.A)("str-chat__poll-option-list",{"str-chat__poll-option-list--full":void 0===e})},o.slice(0,e??o.length).map(e=>r.createElement(t,{displayAvatarCount:3,key:`poll-option-${e.id}`,option:e})))},ee=e=>({name:e.name}),et=({close:e})=>{let{t}=(0,o.WR)(),{poll:n}=l(),{name:a}=(0,u.q)(n.state,ee);return r.createElement("div",{className:"str-chat__modal__poll-option-list"},r.createElement(w.r,{close:e,title:t("Poll options")}),r.createElement("div",{className:"str-chat__modal__poll-option-list__body"},r.createElement("div",{className:"str-chat__modal__poll-option-list__title"},a),r.createElement(J,null)))},en=e=>[e.error,e.hasNextPage,e.loading],er=e=>({maxVotedOptionIds:e.maxVotedOptionIds,vote_counts_by_option:e.vote_counts_by_option}),ea=({optionId:e})=>{let{t}=(0,o.WR)(),{poll:n}=l(),{maxVotedOptionIds:a,vote_counts_by_option:i}=(0,u.q)(n.state,er);return r.createElement("div",{className:"str-chat__poll-result-option-vote-counter"},1===a.length&&a[0]===e&&r.createElement("div",{className:"str-chat__poll-result-winning-option-icon"}),r.createElement("span",{className:"str-chat__poll-result-option-vote-count"},t("{{count}} votes",{count:i[e]??0})))},eo=({option:e})=>r.createElement("div",{className:"str-chat__poll-option__header"},r.createElement("div",{className:"str-chat__poll-option__option-text"},e.text),r.createElement(ea,{optionId:e.id})),ei=({option:e})=>{let{error:t,hasNextPage:n,loading:a,loadMore:o,votes:i}=(({paginationParams:e})=>{let{poll:t}=l(),{cursorPaginatorState:n,loadMore:a}=R((0,r.useCallback)(async n=>{let{next:r,votes:a}=await t.queryOptionVotes({filter:e.filter,options:n?{...e?.options,next:n}:e?.options,sort:{created_at:-1,...e?.sort}});return{items:a,next:r}},[e,t]),!0),o=P("vote",n,e.filter.option_id),[i,s,c]=(0,u.q)(n,en);return{error:i,hasNextPage:s,loading:c,loadMore:a,votes:o}})({paginationParams:(0,r.useMemo)(()=>({filter:{option_id:e.id}}),[e.id])});return r.createElement("div",{className:"str-chat__poll-option str-chat__poll-option--full-vote-list"},r.createElement(eo,{option:e}),r.createElement(H,{loadNextOnScrollToBottom:o,threshold:40},r.createElement(O,{votes:i}),n&&r.createElement("div",{className:"str-chat__loading-indicator-placeholder"},a&&r.createElement(U.I,null))),t&&t.message)},es=e=>({latest_votes_by_option:e.latest_votes_by_option}),el=({countVotesPreview:e=5,option:t,showAllVotes:n})=>{let{t:a}=(0,o.WR)(),{channelCapabilities:i={}}=(0,$.BX)("PollOptionWithLatestVotes"),{poll:s}=l(),{latest_votes_by_option:c}=(0,u.q)(s.state,es),d=c&&c[t.id];return r.createElement("div",{className:"str-chat__poll-option"},r.createElement(eo,{option:t}),d&&r.createElement(O,{votes:d.slice(0,e)}),i["query-poll-votes"]&&n&&d?.length>e&&r.createElement("button",{className:"str-chat__poll-option__show-all-votes-button",onClick:n},a("Show all")))},eu=e=>({name:e.name,options:[...e.options],vote_counts_by_option:e.vote_counts_by_option}),ec=({close:e})=>{let{t}=(0,o.WR)(),{poll:n}=l(),{name:i,options:s,vote_counts_by_option:c}=(0,u.q)(n.state,eu),[d,p]=(0,r.useState)(),m=(0,r.useCallback)(()=>p(void 0),[]);return r.createElement("div",{className:(0,a.A)("str-chat__modal__poll-results",{"str-chat__modal__poll-results--option-detail":d})},d?r.createElement(r.Fragment,null,r.createElement(w.r,{close:e,goBack:m,title:d.text}),r.createElement("div",{className:"str-chat__modal__poll-results__body"},r.createElement(ei,{key:`poll-option-detail-${d.id}`,option:d}))):r.createElement(r.Fragment,null,r.createElement(w.r,{close:e,title:t("Poll results")}),r.createElement("div",{className:"str-chat__modal__poll-results__body"},r.createElement("div",{className:"str-chat__modal__poll-results__title"},i),r.createElement("div",{className:"str-chat__modal__poll-results__option-list"},s.sort((e,t)=>
4(c[t.id]??0)>=(c[e.id]??0)?1:-1).map(e=>r.createElement(el,{key:`poll-option-${e.id}`,option:e,showAllVotes:()=>p(e)}))))))};var ed=n(85017);let ep=e=>({allow_answers:e.allow_answers,allow_user_suggested_options:e.allow_user_suggested_options,answers_count:e.answers_count,created_by_id:e.created_by_id,is_closed:e.is_closed,options:e.options,ownAnswer:e.ownAnswer}),em=({AddCommentForm:e=y,EndPollDialog:t=_,PollAnswerList:n=W,PollOptionsFullList:a=et,PollResults:i=ec,SuggestPollOptionForm:s=D})=>{let{client:c}=(0,v.vd)(),{t:d}=(0,o.WR)("PollActions"),{channelCapabilities:p={}}=(0,$.BX)("PollActions"),{message:f}=(0,q.m7)("PollActions"),{poll:h}=l(),{allow_answers:g,allow_user_suggested_options:b,answers_count:E,created_by_id:w,is_closed:x,options:C,ownAnswer:k}=(0,u.q)(h.state,ep),[S,M]=(0,r.useState)(),T=(0,r.useCallback)(()=>M(void 0),[]),O=(0,r.useCallback)(()=>M("add-comment"),[]);return r.createElement("div",{className:"str-chat__poll-actions"},C.length>ed.E$&&r.createElement(m,{buttonText:d("See all options ({{count}})",{count:C.length}),closeModal:T,modalIsOpen:"view-all-options"===S,openModal:()=>M("view-all-options")},r.createElement(a,{close:T})),!x&&b&&C.length<ed.y9&&r.createElement(m,{buttonText:d("Suggest an option"),closeModal:T,modalClassName:"str-chat__suggest-poll-option-modal",modalIsOpen:"suggest-option"===S,openModal:()=>M("suggest-option")},r.createElement(s,{close:T,messageId:f.id})),!x&&g&&r.createElement(m,{buttonText:d(k?"Update your comment":"Add a comment"),closeModal:T,modalClassName:"str-chat__add-poll-answer-modal",modalIsOpen:"add-comment"===S,openModal:()=>M("add-comment")},r.createElement(e,{close:T,messageId:f.id})),E>0&&p["query-poll-votes"]&&r.createElement(m,{buttonText:d("View {{count}} comments",{count:E}),closeModal:T,modalClassName:"str-chat__poll-answer-list-modal",modalIsOpen:"view-comments"===S,openModal:()=>M("view-comments")},r.createElement(n,{close:T,onUpdateOwnAnswerClick:O})),r.createElement(m,{buttonText:d("View results"),closeModal:T,modalClassName:"str-chat__poll-results-modal",modalIsOpen:"view-results"===S,openModal:()=>M("view-results")},r.createElement(i,{close:T})),!x&&w===c.user?.id&&r.createElement(m,{buttonText:d("End vote"),closeModal:T,modalClassName:"str-chat__end-poll-modal",modalIsOpen:"end-vote"===S,openModal:()=>M("end-vote")},r.createElement(t,{close:T})))},ef=e=>({is_closed:e.is_closed}),eh=()=>{let{PollActions:e=em,PollHeader:t=d}=(0,X.aD)(),{poll:n}=l(),{is_closed:o}=(0,u.q)(n.state,ef);return r.createElement("div",{className:(0,a.A)("str-chat__poll",{"str-chat__poll--closed":o})},r.createElement(t,null),r.createElement(J,{optionsDisplayCount:ed.E$}),r.createElement(e,null))},eg=e=>({is_closed:e.is_closed,name:e.name}),ey=()=>{let{poll:e}=l(),{is_closed:t,name:n}=(0,u.q)(e.state,eg);return r.createElement("div",{className:(0,a.A)("str-chat__quoted-poll-preview",{"str-chat__quoted-poll-preview--closed":t})},r.createElement("div",{className:"str-chat__quoted-poll-preview__icon"},"\uD83D\uDCCA"),r.createElement("div",{className:"str-chat__quoted-poll-preview__name"},n))},ev=({isQuoted:e,poll:t})=>{let{PollContent:n=eh,QuotedPoll:a=ey}=(0,X.aD)();return t?r.createElement(s,{poll:t},e?r.createElement(a,null):r.createElement(n,null)):null}},63441:(e,t,n)=>{"use strict";var r,a,o,i;n.d(t,{S:()=>a,m:()=>r}),(o=r||(r={})).DISMISSED="dismissed",o.FAILED="failed",o.LOADED="loaded",o.LOADING="loading",o.QUEUED="queued",(i=a||(a={}))[i.UPSERT=0]="UPSERT",i[i.SET=1]="SET",i[i.REMOVE=2]="REMOVE"},64099:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});var r=n(69241),a=n(14232);let o=({className:e,text:t,...n})=>a.createElement("div",{...n,className:(0,r.A)("str-chat__form-field-error",e)},t)},64242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=t.propTypes=void 0;var r,a=(r=n(95062))&&r.__esModule?r:{default:r},o=a.default.string,i=a.default.bool,s=a.default.number,l=a.default.array,u=a.default.oneOfType,c=a.default.shape,d=a.default.object,p=a.default.func,m=a.default.node;t.propTypes={url:u([o,l,d]),playing:i,loop:i,controls:i,volume:s,muted:i,playbackRate:s,width:u([o,s]),height:u([o,s]),style:d,progressInterval:s,playsinline:i,pip:i,stopOnUnmount:i,light:u([i,o]),playIcon:m,previewTabIndex:s,fallback:m,oEmbedUrl:o,wrapper:u([o,p,c({render:p.isRequired})]),config:c({soundcloud:c({options:d}),youtube:c({playerVars:d,embedOptions:d,onUnstarted:p}),facebook:c({appId:o,version:o,playerId:o,attributes:d}),dailymotion:c({params:d}),vimeo:c({playerOptions:d,title:o}),file:c({attributes:d,tracks:l,forceVideo:i,forceAudio:i,forceHLS:i,forceDASH:i,forceFLV:i,hlsOptions:d,hlsVersion:o,dashVersion:o,flvVersion:o}),wistia:c({options:d,playerId:o,customControls:l}),mixcloud:c({options:d}),twitch:c({options:d,playerId:o}),vidyard:c({options:d})}
4),onReady:p,onStart:p,onPlay:p,onPause:p,onBuffer:p,onBufferEnd:p,onEnded:p,onError:p,onDuration:p,onSeek:p,onPlaybackRateChange:p,onProgress:p,onClickPreview:p,onEnablePIP:p,onDisablePIP:p};var f=function(){};t.defaultProps={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:f},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0"},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:f,onStart:f,onPlay:f,onPause:f,onBuffer:f,onBufferEnd:f,onEnded:f,onError:f,onDuration:f,onSeek:f,onPlaybackRateChange:f,onProgress:f,onClickPreview:f,onEnablePIP:f,onDisablePIP:f}},64301:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,a){var o,i=function(e,n,r){void 0===r&&(r={});var a,o,i,s,l=new Date(e);return(void 0===(a=r)&&(a={}),(s=t[i=n+"|"+(o=a.timeZoneName||"short")])||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:o}),t[i]=s),s).formatToParts(l)},s=function(t,n){for(var r=i(t,n),o=[],s=0;s<r.length;s+=1){var l=r[s],u=l.type,c=l.value,d=e[u];d>=0&&(o[d]=parseInt(c,10))}var p=o[3],m=o[0]+"-"+o[1]+"-"+o[2]+" "+(24===p?0:p)+":"+o[4]+":"+o[5]+":000",f=+t;return(a.utc(m).valueOf()-(f-=f%1e3))/6e4},l=r.prototype;l.tz=function(e,t){void 0===e&&(e=o);var n,r=this.utcOffset(),i=this.toDate(),s=i.toLocaleString("en-US",{timeZone:e}),l=Math.round((i-new Date(s))/1e3/60),u=-(15*Math.round(i.getTimezoneOffset()/15))-l;if(Number(u)){if(n=a(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),t){var c=n.utcOffset();n=n.add(r-c,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},l.offsetName=function(e){var t=this.$x.$timezone||a.tz.guess(),n=i(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return n&&n.value};var u=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var n=a(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(n,e,t).tz(this.$x.$timezone,!0)},a.tz=function(e,t,n){var r=n&&t,i=n||t||o,l=s(+a(),i);if("string"!=typeof e)return a(e).tz(i);var u=function(e,t,n){var r=e-60*t*1e3,a=s(r,n);if(t===a)return[r,t];var o=s(r-=60*(a-t)*1e3,n);return a===o?[r,a]:[e-60*Math.min(a,o)*1e3,Math.max(a,o)]}(a.utc(e,r).valueOf(),l,i),c=u[0],d=u[1],p=a(c).utcOffset(d);return p.$x.$timezone=i,p},a.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},a.tz.setDefault=function(e){o=e}}}()},65258:(e,t,n)=>{"use strict";n.d(t,{E:()=>ey});var r,a,o,i,s,l=n(14232),u=n(98477);function c(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function d(e){var t=c(e).Element;return e instanceof t||e instanceof Element}function p(e){var t=c(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function m(e){if("u"<typeof ShadowRoot)return!1;var t=c(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var f=Math.max,h=Math.min,g=Math.round;function y(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function v(){return!/^((?!chrome|android).)*safari/i.test(y())}function b(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&p(e)&&(a=e.offsetWidth>0&&g(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&g(r.height)/e.offsetHeight||1);
vendor: 14,933 bytes, line 4
4var i=(d(e)?c(e):window).visualViewport,s=!v()&&n,l=(r.left+(s&&i?i.offsetLeft:0))/a,u=(r.top+(s&&i?i.offsetTop:0))/o,m=r.width/a,f=r.height/o;return{width:m,height:f,top:u,right:l+m,bottom:u+f,left:l,x:l,y:u}}function D(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function E(e){return e?(e.nodeName||"").toLowerCase():null}function _(e){return((d(e)?e.ownerDocument:e.document)||window.document).documentElement}function w(e){return b(_(e)).left+D(e).scrollLeft}function x(e){return c(e).getComputedStyle(e)}function C(e){var t=x(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function k(e){var t=b(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function S(e){return"html"===E(e)?e:e.assignedSlot||e.parentNode||(m(e)?e.host:null)||_(e)}function M(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(E(t))>=0?t.ownerDocument.body:p(t)&&C(t)?t:e(S(t))}(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=c(r),i=a?[o].concat(o.visualViewport||[],C(r)?r:[]):r,s=t.concat(i);return a?s:s.concat(M(S(i)))}function T(e){return p(e)&&"fixed"!==x(e).position?e.offsetParent:null}function O(e){for(var t=c(e),n=T(e);n&&["table","td","th"].indexOf(E(n))>=0&&"static"===x(n).position;)n=T(n);return n&&("html"===E(n)||"body"===E(n)&&"static"===x(n).position)?t:n||function(e){var t=/firefox/i.test(y());if(/Trident/i.test(y())&&p(e)&&"fixed"===x(e).position)return null;var n=S(e);for(m(n)&&(n=n.host);p(n)&&0>["html","body"].indexOf(E(n));){var r=x(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var A="bottom",P="right",F="left",L="auto",R=["top",A,P,F],j="start",N="viewport",I="popper",B=R.reduce(function(e,t){return e.concat([t+"-"+j,t+"-end"])},[]),z=[].concat(R,[L]).reduce(function(e,t){return e.concat([t,t+"-"+j,t+"-end"])},[]),H=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],U={placement:"bottom",modifiers:[],strategy:"absolute"};function V(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var W={passive:!0};function $(e){return e.split("-")[0]}function q(e){return e.split("-")[1]}function Y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e){var t,n=e.reference,r=e.element,a=e.placement,o=a?$(a):null,i=a?q(a):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:s,y:n.y-r.height};break;case A:t={x:s,y:n.y+n.height};break;case P:t={x:n.x+n.width,y:l};break;case F:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?Y(o):null;if(null!=u){var c="y"===u?"height":"width";switch(i){case j:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z(e){var t,n,r,a,o,i,s,l=e.popper,u=e.popperRect,d=e.placement,p=e.variation,m=e.offsets,f=e.position,h=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,b=e.isFixed,D=m.x,E=void 0===D?0:D,w=m.y,C=void 0===w?0:w,k="function"==typeof v?v({x:E,y:C}):{x:E,y:C};E=k.x,C=k.y;var S=m.hasOwnProperty("x"),M=m.hasOwnProperty("y"),T=F,L="top",R=window;if(y){var j=O(l),N="clientHeight",I="clientWidth";j===c(l)&&"static"!==x(j=_(l)).position&&"absolute"===f&&(N="scrollHeight",I="scrollWidth"),("top"===d||(d===F||d===P)&&"end"===p)&&(L=A,C-=(b&&j===R&&R.visualViewport?R.visualViewport.height:j[N])-u.height,C*=h?1:-1),(d===F||("top"===d||d===A)&&"end"===p)&&(T=P,E-=(b&&j===R&&R.visualViewport?R.visualViewport.width:j[I])-u.width,E*=h?1:-1)}var B=Object.assign({position:f},y&&G),z=!0===v?(t={x:E,y:C},n=c(l),r=t.x,a=t.y,{x:g(r*(o=n.devicePixelRatio||1))/o||0,y:g(a*o)/o||0}):{x:E,y:C};return(E=z.x,C=z.y,h)?Object.assign({},B,((s={})[L]=M?"0":"",s[T]=S?"0":"",s.transform=1>=(R.devicePixelRatio||1)?"translate("+E+"px, "+C+"px)":"translate3d("+E+"px, "+C+"px, 0)",s)):Object.assign({},B,((i={})[L]=M?C+"px":"",i[T]=S?E+"px":"",i.transform="",i))}var X={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,function(e){return X[e]})}var J={start:"end",end:"start"};function ee(e){return e.replace(/start|end/g,function(e){return J[e]})}function et(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&m(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function en(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function er(e,t,n){var r,a,o,i,s,l,u,p,m,h;return t===N?en(function(e,t){var n=c(e),r=_(e),a=n.visualViewport,o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;var u=v();(u||!u&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s+w(e),y:l}}(e,n)):d(t)?((r=b(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):en((a=_(e),i=_(a),s=D(a),l=null==(o=a.ownerDocument)?void 0:o.body,u=f(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),p=f(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),m=-s.scrollLeft+w(a),h=-s.scrollTop,"rtl"===x(l||i).direction&&(m+=f(i.clientWidth,l?l.clientWidth:0)-u),{width:u,height:p,x:m,y:h}))}function ea(){return{top:0,right:0,bottom:0,left:0}}function eo(e){return Object.assign({},ea(),e)}function ei(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function es(e,t){void 0===t&&(t={});var n,r,a,o,i,s,l,u,c=t,m=c.placement,g=void 0===m?e.placement:m,y=c.strategy,v=void 0===y?e.strategy:y,D=c.boundary,w=c.rootBoundary,C=c.elementContext,k=void 0===C?I:C,T=c.altBoundary,F=c.padding,L=void 0===F?0:F,j=eo("number"!=typeof L?L:ei(L,R)),B=e.rects.popper,z=e.elements[void 0!==T&&T?k===I?"reference":I:k],H=(n=d(z)?z:z.contextElement||_(e.elements.popper),r=void 0===D?"clippingParents":D,a=void 0===w?N:w,l=(s=[].concat("clippingParents"===r?(o=M(S(n)),!d(i=["absolute","fixed"].indexOf(x(n).position)>=0&&p(n)?O(n):n)?[]:o.filter(function(e){return d(e)&&et(e,i)&&"body"!==E(e)})):[].concat(r),[a]))[0],(u=s.reduce(function(e,t){var r=er(n,t,v);return e.top=f(r.top,e.top),e.right=h(r.right,e.right),e.bottom=h(r.bottom,e.bottom),e.left=f(r.left,e.left),e},er(n,l,v))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),U=b(e.elements.reference),V=K({reference:U,element:B,strategy:"absolute",placement:g}),W=en(Object.assign({},B,V)),$=k===I?W:U,q={top:H.top-$.top+j.top,bottom:$.bottom-H.bottom+j.bottom,left:H.left-$.left+j.left,right:$.right-H.right+j.right},Y=e.modifiersData.offset;if(k===I&&Y){var G=Y[g];Object.keys(q).forEach(function(e){var t=[P,A].indexOf(e)>=0?1:-1,n=["top",A].indexOf(e)>=0?"y":"x";q[e]+=G[n]*t})}return q}function el(e,t,n){return f(e,h(t,n))}function eu(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ec(e){return["top",P,A,F].some(function(t){return e[t]>=0})}var ed=(o=void 0===(a=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=void 0===a||a,i=r.resize,s=void 0===i||i,l=c(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",n.update,W)}),s&&l.addEventListener("resize",n.update,W),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",n.update,W)}),s&&l.removeEventListener("resize",n.update,W)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=n.adaptive,o=n.roundOffsets,i=void 0===o||o,s={placement:$(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Z(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===a||a,roundOffsets:i})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Z(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},a=t.elements[e];p(a)&&E(a)&&(Object.assign(a.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],a=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});p(r)&&E(r)&&(Object.assign(r.style,o),Object.keys(a).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=void 0===a?[0,0]:a,i=z.reduce(function(e,n){var r,a,i,s,l,u;return e[n]=(r=t.rects,i=[F,"top"].indexOf(a=$(n))>=0?-1:1,l=(s="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],u=s[1],l=l||0,u=(u||0)*i,[F,P].indexOf(a)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),s=i[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=void 0===a||a,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,f=void 0===m||m,h=n.allowedAutoPlacements,g=t.options.placement,y=$(g)===g,v=l||(y||!f?[Q(g)]:function(e){if($(e)===L)return[];var t=Q(e);return[ee(e),t,ee(t)]}(g)),b=[g].concat(v).reduce(function(e,n){var r,a,o,i,s,l,p,m,g,y,v,b;return e.concat($(n)===L?(a=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:h}).placement,o=r.boundary,i=r.rootBoundary,s=r.padding,l=r.flipVariations,m=void 0===(p=r.allowedAutoPlacements)?z:p,0===(v=(y=(g=q(a))?l?B:B.filter(function(e){return q(e)===g}):R).filter(function(e){return m.indexOf(e)>=0})).length&&(v=y),Object.keys(b=v.reduce(function(e,n){return e[n]=es(t,{placement:n,boundary:o,rootBoundary:i,padding:s})[$(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),D=t.rects.reference,E=t.rects.popper,_=new Map,w=!0,x=b[0],C=0;C<b.length;C++){var k=b[C],S=$(k),M=q(k)===j,T=["top",A].indexOf(S)>=0,O=T?"width":"height",N=es(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),I=T?M?P:F:M?A:"top";D[O]>E[O]&&(I=Q(I));var H=Q(I),U=[];if(o&&U.push(N[S]<=0),s&&U.push(N[I]<=0,N[H]<=0),U.every(function(e){return e})){x=k,w=!1;break}_.set(k,U)}if(w)for(var V=f?3:1,W=function(e){var t=b.find(function(t){var n=_.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},Y=V;Y>0&&"break"!==W(Y);Y--);t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=n.altAxis,i=n.boundary,s=n.rootBoundary,l=n.altBoundary,u=n.padding,c=n.tether,d=void 0===c||c,p=n.tetherOffset,m=void 0===p?0:p,g=es(t,{boundary:i,rootBoundary:s,padding:u,altBoundary:l}),y=$(t.placement),v=q(t.placement),b=!v,D=Y(y),E="x"===D?"y":"x",_=t.modifiersData.popperOffsets,w=t.rects.reference,x=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,S="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(_){if(void 0===a||a){var L,R="y"===D?"top":F,N="y"===D?A:P,I="y"===D?"height":"width",B=_[D],z=B+g[R],H=B-g[N],U=d?-x[I]/2:0,V=v===j?w[I]:x[I],W=v===j?-x[I]:-w[I],K=t.elements.arrow,G=d&&K?k(K):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ea(),X=Z[R],Q=Z[N],J=el(0,w[I],G[I]),ee=b?w[I]/2-U-J-X-S.mainAxis:V-J-X-S.mainAxis,et=b?-w[I]/2+U+J+Q+S.mainAxis:W+J+Q+S.mainAxis,en=t.elements.arrow&&O(t.elements.arrow),er=en?"y"===D?en.clientTop||0:en.clientLeft||0:0,eo=null!=(L=null==M?void 0:M[D])?L:0,ei=el(d?h(z,B+ee-eo-er):z,B,d?f(H,B+et-eo):H);_[D]=ei,T[D]=ei-B}if(void 0!==o&&o){var eu,ec,ed="x"===D?"top":F,ep="x"===D?A:P,em=_[E],ef="y"===E?"height":"width",eh=em+g[ed],eg=em-g[ep],ey=-1!==["top",F].indexOf(y),ev=null!=(ec=null==M?void 0:M[E])?ec:0,eb=ey?eh:em-w[ef]-x[ef]-ev+S.altAxis,eD=ey?em+w[ef]+x[ef]-ev-S.altAxis:eg,eE=d&&ey?(eu=el(eb,em,eD))>eD?eD:eu:el(d?eb:eh,em,d?eD:eg);_[E]=eE,T[E]=eE-em}t.modifiersData[r]=T}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,s=$(n.placement),l=Y(s),u=[F,P].indexOf(s)>=0?"height":"width";if(o&&i){var c,d=(c=a.padding,eo("number"!=typeof(c="function"==typeof c?c(Object.assign({},n.rects,{placement:n.placement})):c)?c:ei(c,R))),p=k(o),m="y"===l?"top":F,f="y"===l?A:P,h=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],g=i[l]-n.rects.reference[l],y=O(o),v=y?"y"===l?y.clientHeight||0:y.clientWidth||0:0,b=d[m],D=v-p[u]-d[f],E=v/2-p[u]/2+(h/2-g/2),_=el(b,E,D);n.modifiersData[r]=((t={})[l]=_,t.centerOffset=_-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null==r||("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&et(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.re
4cts.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=es(t,{elementContext:"reference"}),s=es(t,{altBoundary:!0}),l=eu(i,r),u=eu(s,a,o),c=ec(l),d=ec(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:a,s=void 0===(i=r.defaultOptions)?U:i,function(e,t,n){void 0===n&&(n=s);var r,a,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},U,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,m={state:i,setOptions:function(n){var r,a,u,c,p,h,g="function"==typeof n?n(i.options):n;f(),i.options=Object.assign({},s,i.options,g),i.scrollParents={reference:d(e)?M(e):e.contextElement?M(e.contextElement):[],popper:M(t)};var y=(a=Object.keys(r=[].concat(o,i.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),u=new Map,c=new Set,p=[],a.forEach(function(e){u.set(e.name,e)}),a.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var n=u.get(t);n&&e(n)}}),p.push(t)}(e)}),h=p,H.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return i.orderedModifiers=y.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var a=r({state:i,name:t,instance:m,options:void 0===n?{}:n});l.push(a||function(){})}}),m.update()},forceUpdate:function(){if(!u){var e=i.elements,t=e.reference,n=e.popper;if(V(t,n)){i.rects={reference:(r=O(n),a="fixed"===i.options.strategy,o=p(r),f=p(r)&&(l=g((s=r.getBoundingClientRect()).width)/r.offsetWidth||1,d=g(s.height)/r.offsetHeight||1,1!==l||1!==d),h=_(r),y=b(t,f,a),v={scrollLeft:0,scrollTop:0},x={x:0,y:0},(o||!o&&!a)&&(("body"!==E(r)||C(h))&&(v=function(e){return e!==c(e)&&p(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:D(e)}(r)),p(r)?(x=b(r,!0),x.x+=r.clientLeft,x.y+=r.clientTop):h&&(x.x=w(h))),{x:y.left+v.scrollLeft-x.x,y:y.top+v.scrollTop-x.y,width:y.width,height:y.height}),popper:k(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r,a,o,s,l,d,f,h,y,v,x,S=0;S<i.orderedModifiers.length;S++){if(!0===i.reset){i.reset=!1,S=-1;continue}var M=i.orderedModifiers[S],T=M.fn,A=M.options,P=void 0===A?{}:A,F=M.name;"function"==typeof T&&(i=T({state:i,options:P,name:F,instance:m})||i)}}}},update:(r=function(){return new Promise(function(e){m.forceUpdate(),e(i)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(r())})})),a}),destroy:function(){f(),u=!0}};if(!V(e,t))return m;function f(){l.forEach(function(e){return e()}),l=[]}return m.setOptions(n).then(function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)}),m}),ep=n(51161),em=n.n(ep),ef=function(e){return e.reduce(function(e,t){var n=t[0],r=t[1];return e[n]=r,e},{})},eh="u">typeof window&&window.document&&window.document.createElement?l.useLayoutEffect:l.useEffect,eg=[],ey=function(e,t,n){void 0===n&&(n={});var r=l.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||eg},o=l.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=o[0],s=o[1],c=l.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);u.flushSync(function(){s({styles:ef(n.map(function(e){return[e,t.styles[e]||{}]})),attributes:ef(n.map(function(e){return[e,t.attributes[e]]}))})})},requires:["computeStyles"]}},[]),d=l.useMemo(function(){var e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[c,{name:"applyStyles",enabled:!1}])};return em()(r.current,e)?r.current||e:(r.current=e,e)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,c]),p=l.useRef();return eh(function(){p.current&&p.current.setOptions(d)},[d]),eh(function(){if(null!=e&&null!=t){var r=(n.createPopper||ed)(e,t,d);return p.current=r,function(){r.destroy(),p.current=null}}},[e,t,n.createPopper]),{state:p.current?p.current.state:null,styles:i.styles,attributes:i.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}}}
4,65723:(e,t,n)=>{"use strict";n.d(t,{E:()=>x});var r=n(14232),a=n(54421),o=n(76844),i=n(27475);let s=r.memo(e=>{let{entity:t}=e,n=Object.keys(t).length,a=t?.itemNameParts;return r.createElement("div",{className:"str-chat__emoji-item"},r.createElement("span",{className:"str-chat__emoji-item--entity"},t.native),r.createElement("span",{className:"str-chat__emoji-item--name"},n?n&&a.parts.map((e,t)=>e.toLowerCase()===a.match.toLowerCase()?r.createElement("span",{className:"str-chat__emoji-item--highlight",key:`part-${t}`},e):r.createElement("span",{className:"str-chat__emoji-item--part",key:`part-${t}`},e)):null))});var l=n(77170),u=n.n(l),c=n(9854),d=n(87863),p=n(7970),m=n(10111);let f=({children:e})=>{let t,n=(0,m.Oy)("DefaultTriggerProvider"),l={"/":(()=>{let{channelConfig:e}=(0,o.BX)("useCommandTrigger"),{t}=(0,i.WR)("useCommandTrigger"),n=e?.commands;return{component:a.h,dataProvider:(e,r,a)=>{if(0!==r.indexOf("/")||!n)return[];let o=n.filter(t=>t.name?.indexOf(e)!==-1);o.sort((t,n)=>{let r=t.name?.toLowerCase(),a=n.name?.toLowerCase();if(r?.indexOf(e)===0&&(r=`0${r}`),a?.indexOf(e)===0&&(a=`0${a}`),null!=r&&null!=a){if(r<a)return -1;if(r>a)return 1}return 0});let i=o.slice(0,5);return a&&a(i.filter(e=>void 0!==e.name).map(e=>{let n={name:e.name};return e.args&&(n.args=t(`${e.name}-command-args`,{defaultValue:e.args})),e.description&&(n.description=t(`${e.name}-command-description`,{defaultValue:e.description})),n}),e),i},output:e=>({caretPosition:"next",key:e.name,text:`/${e.name}`})}})(),":":(t=n.emojiSearchIndex,{component:s,dataProvider:async(e,n,r)=>{if(0===e.length||e.charAt(0).match(/[^a-zA-Z0-9+-]/))return r([],e);let a=(await t?.search(e)??[]).filter(Boolean).slice(0,7).map(({id:e,name:t,native:n,skins:r=[]})=>{let[a]=r;return{id:e,name:t,native:n??a.native}});r&&r(a,e)},output:e=>({caretPosition:"next",key:e.id,text:`${"native"in e?e.native:""}`})}),"@":(e=>{let{disableMentions:t,mentionAllAppUsers:n,mentionQueryParams:a={},onSelectUser:i,useMentionsTransliteration:s}=e,[l,m]=(0,r.useState)(!1),{client:f,mutes:h}=(0,p.vd)("useUserTrigger"),{channel:g}=(0,o.BX)("useUserTrigger"),{members:y}=g.state,{watchers:v}=g.state,b=(0,r.useCallback)(()=>{let e=[...y?Object.values(y).map(({user:e})=>e):[],...v?Object.values(v):[]],t={};return e.forEach(e=>{e&&!t[e.id]&&(t[e.id]=e)}),Object.values(t)},[y,v]),D=(0,r.useCallback)(u()(async(e,t)=>{try{let n=(await g.queryMembers({name:{$autocomplete:e}})).members.map(e=>e.user);t&&n.length?t(n):t([])}catch(e){console.log({error:e})}},200),[g]),E=async(e,t)=>{if(e&&!l){m(!0);try{let{users:n}=await f.queryUsers({$or:[{id:{$autocomplete:e}},{name:{$autocomplete:e}}],..."function"==typeof a.filters?a.filters(e):a.filters},Array.isArray(a.sort)?[{id:1},...a.sort]:{id:1,...a.sort},{limit:10,...a.options});t&&n.length?t(n):t([])}catch(e){console.log({error:e})}m(!1)}},_=u()(E,200);return{callback:e=>i(e),component:d.D,dataProvider:(e,r,o)=>{if(t)return;let i=e=>r.includes("/unmute")&&!h.length?[]:h.length?r.includes("/unmute")?e.filter(e=>h.some(t=>t.target.id===e.id)):e.filter(e=>h.every(t=>t.target.id!==e.id)):e;if(n)return _(e,t=>{o&&o(i(t),e)});if(!e||Object.values(y||{}).length<100){let t=b(),n={ownUserId:f.userID,query:e,text:r,useMentionsTransliteration:s,users:t},l=(0,c.a6)(n),u=a.options?.limit??7,d=l.slice(0,u);return o&&o(i(d),e),d}return D(e,t=>{o&&o(i(t),e)})},output:e=>({caretPosition:"next",key:e.id,text:`@${e.name||e.id}`})}})({disableMentions:n.disableMentions,mentionAllAppUsers:n.mentionAllAppUsers,mentionQueryParams:n.mentionQueryParams,onSelectUser:n.onSelectUser,useMentionsTransliteration:n.useMentionsTransliteration})},f={...n,autocompleteTriggers:l};return r.createElement(m.KF,{value:f},e)};var h=n(96815),g=n(45066),y=n(71831),v=n(35327),b=n(10623),D=n(46984),E=n(96679),_=n(2768);let w=e=>{let t=(0,g.e)(),n=(0,v.G)(e),{emojiSearchIndex:a}=(0,b.aD)("MessageInput"),o=(0,y.I)({...t,...n,...e,emojiSearchIndex:e.emojiSearchIndex??a});return(0,E.FE)(o),r.createElement(m.KF,{value:o},e.children)},x=r.memo(e=>{let{Input:t}=e,{dragAndDropWindow:n}=(0,o.BX)(),{Input:a,TriggerProvider:i=f}=(0,b.aD)("MessageInput"),s=(0,_.Y)(),l=t||a||h.h,u=e.isThreadInput?`message-input-dialog-manager-thread-${s}`:`message-input-dialog-manager-${s}`;return n?r.createElement(D.X,{id:u},r.createElement(i,null,r.createElement(l,null))):r.createElement(D.X,{id:u},r.createElement(w,{...e},r.createElement(i,null,r.createElement(l,null))))})}
4,65862:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>o});var a=n(74767);function o(e,t,n){if(r())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var i=new(e.bind.apply(e,o));return n&&(0,a.A)(i,n.prototype),i}},66315:function(e){e.exports=function(e,t,n){e=e||{};var r=t.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,a){return r.fromToBase(e,t,n,a)}n.en.relativeTime=a,r.fromToBase=function(t,r,o,i,s){for(var l,u,c,d=o.$locale().relativeTime||a,p=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=p.length,f=0;f<m;f+=1){var h=p[f];h.d&&(l=i?n(t).diff(o,h.d,!0):o.diff(t,h.d,!0));var g=(e.rounding||Math.round)(Math.abs(l));if(c=l>0,g<=h.r||!h.r){g<=1&&f>0&&(h=p[f-1]);var y=d[h.l];s&&(g=s(""+g)),u="string"==typeof y?y.replace("%d",g):y(g,r,h.l,c);break}}if(r)return u;var v=c?d.future:d.past;return"function"==typeof v?v(u):v.replace("%s",u)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var i=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(i(this),e)},r.fromNow=function(e){return this.from(i(this),e)}}},66479:function(e,t,n){e.exports=function(e){"use strict";var t={name:"tr",weekdays:"Pazar_Pazartesi_Salı_\xc7arÅamba_PerÅembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),months:"Ocak_Åubat_Mart_Nisan_Mayıs_Haziran_Temmuz_AÄustos_Eyl\xfcl_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Åub_Mar_Nis_May_Haz_Tem_AÄu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e){return e+"."}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t}(n(56557))},66713:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},66788:e=>{e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},69241:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=function e(t){var n,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r);return a}(e))&&(r&&(r+=" "),r+=t);return r}},69776:function(e,t,n){e.exports=function(e){"use strict";var t={name:"ja",weekdays:"æ¥ææ¥_æææ¥_ç«ææ¥_æ°´ææ¥_æ¨ææ¥_éææ¥_åææ¥".split("_"),weekdaysShort:"æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"),weekdaysMin:"æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"),months:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),ordinal:function(e){return e+"æ¥"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥ dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥(ddd) HH:mm"},meridiem:function(e){return e<12?"åå":"åå¾"},relativeTime:{future:"%så¾",past:"%så",s:"æ°ç§",m:"1å",mm:"%då",h:"1æé",hh:"%dæé",d:"1æ¥",dd:"%dæ¥",M:"1ã¶æ",MM:"%dã¶æ",y:"1å¹´",yy:"%då¹´"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t}(n(56557))},70251:(e,t,n)=>{"use strict";n.d(t,{m7:()=>i,p2:()=>
4o});var r=n(14232);let a=r.createContext(void 0),o=({children:e,value:t})=>r.createElement(a.Provider,{value:t},e),i=e=>{let t=(0,r.useContext)(a);return t||{}}},71326:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,a.default)(e),o="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:a}=e;o?t(r,a,e):a&&((n=n||{})[r]=a)}),n};let a=r(n(79437))},71576:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,a,o){var i=a.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new a(t)},i.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=i.utcOffset;i.utcOffset=function(r,a){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var a=(""+r[0]).match(n)||["-",0,0],o=a[0],i=60*a[1]+ +a[2];return 0===i?0:"+"===o?i:-i}(r)))return this;var i=16>=Math.abs(r)?60*r:r;if(0===i)return this.utc(a);var s=this.clone();if(a)return s.$offset=i,s.$u=!1,s;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(i+l,e)).$offset=i,s.$x.$localOffset=l,s};var c=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=i.diff;i.diff=function(e,t,n){if(e&&this.$u===e.$u)return p.call(this,e,t,n);var r=this.local(),a=o(e).local();return p.call(r,a,t,n)}}}()},71831:(e,t,n)=>{"use strict";n.d(t,{I:()=>a});var r=n(14232);let a=e=>{let{additionalTextareaProps:t,asyncMessagesMultiSendEnabled:n,attachments:a,audioRecordingEnabled:o,autocompleteTriggers:i,cancelURLEnrichment:s,clearEditingState:l,closeCommandsList:u,closeMentionsList:c,cooldownInterval:d,cooldownRemaining:p,disabled:m,disableMentions:f,dismissLinkPreview:h,doFileUploadRequest:g,doImageUploadRequest:y,emojiSearchIndex:v,errorHandler:b,findAndEnqueueURLsToEnrich:D,focus:E,grow:_,handleChange:w,handleSubmit:x,hideSendButton:C,insertText:k,isThreadInput:S,isUploadEnabled:M,linkPreviews:T,maxFilesLeft:O,maxRows:A,mentionAllAppUsers:P,mentioned_users:F,mentionQueryParams:L,message:R,minRows:j,noFiles:N,numberOfUploads:I,onPaste:B,onSelectUser:z,openCommandsList:H,openMentionsList:U,overrideSubmitHandler:V,parent:W,publishTypingEvent:$,recordingController:q,removeAttachments:Y,setCooldownRemaining:K,setText:G,shouldSubmit:Z,showCommandsList:X,showMentionsList:Q,text:J,textareaRef:ee,uploadAttachment:et,uploadNewFiles:en,upsertAttachments:er,useMentionsTransliteration:ea}=e,eo=R?.editing,ei=Array.from(T.values()).join(),es=F.length,el=W?.id;return(0,r.useMemo)(()=>({additionalTextareaProps:t,asyncMessagesMultiSendEnabled:n,attachments:a,audioRecordingEnabled:o,autocompleteTriggers:i,cancelURLEnrichment:s,clearEditingState:l,closeCommandsList:u,closeMentionsList:c,cooldownInterval:d,cooldownRemaining:p,disabled:m,disableMentions:f,dismissLinkPreview:h,doFileUploadRequest:g,doImageUploadRequest:y,emojiSearchIndex:v,errorHandler:b,findAndEnqueueURLsToEnrich:D,focus:E,grow:_,handleChange:w,handleSubmit:x,hideSendButton:C,insertText:k,isThreadInput:S,isUploadEnabled:M,linkPreviews:T,maxFilesLeft:O,maxRows:A,mentionAllAppUsers:P,mentioned_users:F,mentionQueryParams:L,message:R,minRows:j,noFiles:N,numberOfUploads:I,onPaste:B,onSelectUser:z,openCommandsList:H,openMentionsList:U,overrideSubmitHandler:V,parent:W,publishTypingEvent:$,recordingController:q,removeAttachments:Y,setCooldownRemaining:K,setText:G,shouldSubmit:Z,showCommandsList:X,showMentionsList:Q,text:J,textareaRef:ee,uploadAttachment:et,uploadNewFiles:en,upsertAttachments:er,useMentionsTransliteration:ea}),[n,a,o,s,d,p,h,eo,v,D,x,C,M,S,ei,es,j,el,$,q,Y,X,Q,J,et,er])}},74767:(e,t,n)=>{"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{A:()=>r})},75815:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(13921);function a(e){return(0,r.w)(e,Date.now())}},75866:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
4Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(14232)),o=n(24657),i=n(95824);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");m.prototype=Object.create(e&&e.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),e&&u(m,e);var t,n,s=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=d(m);return a=t?Reflect.construct(o,arguments,d(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:c(e)});function m(){var e;if(!(this instanceof m))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(c(e=s.call.apply(s,[this].concat(n))),"callPlayer",o.callPlayer),p(c(e),"playerID",e.props.config.playerId||"".concat("wistia-player-").concat((0,o.randomString)())),p(c(e),"onPlay",function(){var t;return(t=e.props).onPlay.apply(t,arguments)}),p(c(e),"onPause",function(){var t;return(t=e.props).onPause.apply(t,arguments)}),p(c(e),"onSeek",function(){var t;return(t=e.props).onSeek.apply(t,arguments)}),p(c(e),"onEnded",function(){var t;return(t=e.props).onEnded.apply(t,arguments)}),p(c(e),"onPlaybackRateChange",function(){var t;return(t=e.props).onPlaybackRateChange.apply(t,arguments)}),p(c(e),"mute",function(){e.callPlayer("mute")}),p(c(e),"unmute",function(){e.callPlayer("unmute")}),e}return n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t=this,n=this.props,r=n.playing,a=n.muted,i=n.controls,s=n.onReady,u=n.config,c=n.onError;(0,o.getSDK)("https://fast.wistia.com/assets/external/E-v1.js","Wistia").then(function(e){u.customControls&&u.customControls.forEach(function(t){return e.defineControl(t)}),window._wq=window._wq||[],window._wq.push({id:t.playerID,options:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({autoPlay:r,silentAutoPlay:"allow",muted:a,controlsVisibleOnLoad:i,fullscreenButton:i,playbar:i,playbackRateControl:i,qual
4ityControl:i,volumeControl:i,settingsControl:i,smallPlayButton:i},u.options),onReady:function(e){t.player=e,t.unbind(),t.player.bind("play",t.onPlay),t.player.bind("pause",t.onPause),t.player.bind("seek",t.onSeek),t.player.bind("end",t.onEnded),t.player.bind("playbackratechange",t.onPlaybackRateChange),s()}})},c)}},{key:"unbind",value:function(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.unbind(),this.callPlayer("remove")}},{key:"seekTo",value:function(e){this.callPlayer("time",e)}},{key:"setVolume",value:function(e){this.callPlayer("volume",e)}},{key:"setPlaybackRate",value:function(e){this.callPlayer("playbackRate",e)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props.url,t=e&&e.match(i.MATCH_URL_WISTIA)[1],n="wistia_embed wistia_async_".concat(t);return a.default.createElement("div",{id:this.playerID,key:t,className:n,style:{width:"100%",height:"100%"}})}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(m.prototype,n),m}(a.Component);t.default=m,p(m,"displayName","Wistia"),p(m,"canPlay",i.canPlay.wistia),p(m,"loopOnEnded",!0)},76292:(e,t,n)=>{"use strict";n.d(t,{c:()=>ee});var r=n(14232),a=n(39149),o=n.n(a),i=n(77170),s=n.n(i),l=n(46512),u=n(69241);let c={error:null,hasMore:!0,hasMoreNewer:!1,loading:!0,loadingMore:!1,members:{},messages:[],pinnedMessages:[],read:{},suppressAutoscroll:!1,thread:null,threadHasMore:!0,threadLoadingMore:!1,threadMessages:[],threadSuppressAutoscroll:!1,typing:{},watcherCount:0,watchers:{}};var d=n(86195),p=n(7970),m=n(27475);let f=r.memo(({error:e})=>{let{t}=(0,m.WR)("LoadingErrorIndicator");return e?r.createElement("div",null,t("Error: {{ errorMessage }}",{errorMessage:e.message})):null},(e,t)=>e.error?.message===t.error?.message),h=()=>r.createElement("div",{className:"str-chat__loading-channel-message"},r.createElement("div",{className:"str-chat__loading-channel-message-avatar"}),r.createElement("div",{className:"str-chat__loading-channel-message-end"},r.createElement("div",{className:"str-chat__loading-channel-message-sender"}),r.createElement("div",{className:"str-chat__loading-channel-message-last-row"},r.createElement("div",{className:"str-chat__loading-channel-message-text"}),r.createElement("div",{className:"str-chat__loading-channel-message-date"})))),g=()=>r.createElement("div",{className:"str-chat__loading-channel-message-input-row"},r.createElement("div",{className:"str-chat__loading-channel-message-input"}),r.createElement("div",{className:"str-chat__loading-channel-message-send"})),y=()=>r.createElement("div",{className:"str-chat__loading-channel-header"},r.createElement("div",{className:"str-chat__loading-channel-header-avatar"}),r.createElement("div",{className:"str-chat__loading-channel-header-end"},r.createElement("div",{className:"str-chat__loading-channel-header-name"}),r.createElement("div",{className:"str-chat__loading-channel-header-info"}))),v=()=>r.createElement("div",{className:"str-chat__loading-channel"},r.createElement(y,null),r.createElement("div",{className:"str-chat__loading-channel-message-list"},Array.from([,,,]).map((e,t)=>r.createElement(h,{key:`loading-message-${t}`}))),r.createElement(g,null));var b=n(30236);let D=({accept:e=[],children:t,disabled:n,handleFiles:a,maxNumberOfFiles:o,multiple:i})=>{let{t:s}=(0,m.WR)("ImageDropzone"),l=(0,r.useCallback)(e=>{a&&e&&e.length&&a(e)},[a]),c=(0,r.useMemo)(()=>("string"==typeof e?e.split(","):e).reduce((e,t)=>(e[t]??(e[t]=[]),e),{}),[e]),{getRootProps:d,isDragAccept:p,isDragReject:f}=(0,b.VB)({accept:c,disabled:n,maxFiles:o,multiple:i,noClick:!0,onDrop:l});return r.createElement("div",{...d({className:(0,u.A)("rfu-dropzone",{"rfu-dropzone--accept":p,"rfu-dropzone--reject":f}),style:{position:"relative"}}
4),tabIndex:-1},r.createElement("div",{className:"rfu-dropzone__notifier"},r.createElement("div",{className:"rfu-dropzone__inner"},r.createElement("svg",{height:"41",viewBox:"0 0 41 41",width:"41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M40.517 28.002V3.997c0-2.197-1.808-3.992-4.005-3.992H12.507a4.004 4.004 0 0 0-3.992 3.993v24.004a4.004 4.004 0 0 0 3.992 3.993h24.005c2.197 0 4.005-1.795 4.005-3.993zm-22.002-7.997l4.062 5.42 5.937-7.423 7.998 10H12.507l6.008-7.997zM.517 8.003V36c0 2.198 1.795 4.005 3.993 4.005h27.997V36H4.51V8.002H.517z",fill:"#000",fillRule:"nonzero"})),r.createElement("p",null,s("Drag your files here to add to your post")))),t)};var E=n(45066),_=n(71831),w=n(35327),x=n(76844),C=n(10111);let k=({children:e})=>{let{acceptedFiles:t,multipleUploads:n}=(0,x.BX)("DropzoneProvider"),{cooldownRemaining:a,isUploadEnabled:o,maxFilesLeft:i,uploadNewFiles:s}=(0,C.Oy)("DropzoneProvider");return r.createElement(D,{accept:t,disabled:!o||0===i||!!a,handleFiles:s,maxNumberOfFiles:i,multiple:n},e)},S=e=>{let t=(0,E.e)(),n=(0,w.G)(e),a=(0,_.I)({...t,...n,...e});return r.createElement(C.KF,{value:a},r.createElement(k,null,e.children))};var M=n(80609),T=n(10623);function O({children:e,overrides:t}){let n={...(0,r.useContext)(T.zq),...t};return r.createElement(T.zq.Provider,{value:n},e)}var A=n(99253),P=n(30371),F=n(98723),L=n(47455);let R=()=>{let{useImageFlagEmojisOnWindows:e}=(0,p.vd)("Channel");return e&&navigator.userAgent.match(/Win/)?"str-chat--windows-flags":""},j=(e,t)=>{for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.id===e)return{index:n,target:r}}return{index:-1}},N=(e,t,n=!1)=>{let r=e.getTime(),a=0,o=0,i=t.length-1;for(;a<=i;){let e=new Date(t[o=Math.floor((i+a)/2)].created_at).getTime(),n=t[o-1]?.created_at&&new Date(t[o-1].created_at).getTime(),s=t[o+1]?.created_at&&new Date(t[o+1].created_at).getTime();if(e===r||n&&s&&n<r&&r<s)return{index:o,target:t[o]};e<r?a=o+1:i=o-1}return n&&new Date(t[a].created_at).getTime()!==r?{index:-1}:{index:a,target:t[a]}};var I=n(26707);let B={},z=async({channel:e,client:t,id:n,members:r,options:a,type:o})=>{if(!e&&!o)throw Error("Channel or channel type have to be provided to query a channel.");let i=e||t.channel(o,n,{members:r}),s=i?.id?i.cid:r&&r.length?H(i.type,r):void 0;if(!s)throw Error("Channel ID or channel members array have to be provided to query a channel.");let l=B[s];if(l)await l;else try{B[s]=i.watch(a),await B[s]}finally{delete B[s]}return i},H=(e,t)=>{if(!t)return;let n=[...t].sort().join(",");return`${e}:!members-${n}`};var U=n(97970);let V=(e,t)=>{let n,r=e.image_url||e.thumb_url||"";if(U.t6(r,"url")){let e=new URL(r),a=$(e,t);a&&(a.height*=2,a.width*=2,G(a,e)),n=e.href}return{url:n||""}},W=(e,t,n)=>{let r;if(e.thumb_url&&n&&U.t6(e.thumb_url,"url")){let n=new URL(e.thumb_url),a=$(n,t);a&&(a.height*=2,a.width*=2,G(a,n)),r=n.href}return{thumbUrl:r,url:e.asset_url||""}},$=(e,t)=>{let n=e.searchParams,r=Number(n.get("oh"))||1,a=Number(n.get("ow"))||1,o=Y(t);return(o.maxHeight||o.height)&&o.maxWidth?q(r,a,o.maxHeight||o.height,o.maxWidth):void 0},q=(e,t,n,r)=>({height:Math.round(Math.max(n,r/t*e)),width:Math.round(Math.max(n,r/e*t))}),Y=e=>{let t=getComputedStyle(e),n=K(t.getPropertyValue("height")),r=K(t.getPropertyValue("max-height")),a=K(t.getPropertyValue("max-width"));return(n||r)&&a||console.warn("Invalid value set for height/max-height and/or max-width for HTML element, this can cause scrolling issues inside the message list, more info https://getstream.io/chat/docs/sdk/react/message-components/attachment/#image-and-video-sizing"),{height:n,maxHeight:r,maxWidth:a}},K=e=>{if(!e.endsWith("px"))return;let t=parseFloat(e);return isNaN(t)?void 0:t},G=(e,t)=>{t.searchParams.set("h",e.height.toString()),t.searchParams.set("w",e.width.toString())};var Z=n(31383);let X=e=>({focusedMessage:e.focusedMessage}),Q=({children:e,className:t,...n})=>{let{customClasses:a,theme:o}=(0,p.vd)("Channel"),{channelClass:i,chatClass:s}=(({customClasses:e})=>{let t=R();return{channelClass:e?.channel??"str-chat__channel",chatClass:e?.chat??"str-chat",chatContainerClass:e?.chatContainer??"str-chat__container",windowsEmojiClass:t}})({customClasses:a}),l=(0,u.A)(s,o,i,t);return r.createElement("div",{id:P._,...n,className:l},e)},J=e=>
4{let t,{acceptedFiles:n,activeUnreadHandler:a,channel:i,channelQueryOptions:u,children:h,doDeleteMessageRequest:g,doMarkReadRequest:y,doSendMessageRequest:b,doUpdateMessageRequest:D,dragAndDropWindow:E=!1,enrichURLForPreviewConfig:_,initializeOnMount:w=!0,LoadingErrorIndicator:C=f,LoadingIndicator:k=v,markReadOnMount:T=!0,maxNumberOfFiles:P,multipleUploads:B=!0,onMentionsClick:H,onMentionsHover:U,optionalMessageInputProps:$={},skipMessageDataMemoization:q}=e,{client:Y,customClasses:K,latestMessageDatesByChannels:G,mutes:J,searchController:ee}=(0,p.vd)("Channel"),{t:et}=(0,m.WR)("Channel"),en=K?.chatContainer??"str-chat__container",er=R(),ea=(0,I.xH)(),[eo,ei]=(0,r.useState)(i.getConfig()),[es,el]=(0,r.useState)([]),[eu,ec]=(0,r.useState)(),[ed,ep]=(0,r.useState)(),em=(0,r.useRef)([]),ef=(0,r.useMemo)(()=>(e,t)=>{switch(t.type){case"closeThread":return{...e,thread:null,threadLoadingMore:!1,threadMessages:[]};case"copyMessagesFromChannel":{let{channel:n,parentId:r}=t;return{...e,messages:[...n.state.messages],pinnedMessages:[...n.state.pinnedMessages],suppressAutoscroll:!1,threadMessages:r?({...n.state.threads})[r]||[]:e.threadMessages}}case"copyStateFromChannelOnEvent":{let{channel:n}=t;return{...e,members:{...n.state.members},messages:[...n.state.messages],pinnedMessages:[...n.state.pinnedMessages],read:{...n.state.read},watcherCount:n.state.watcher_count,watchers:{...n.state.watchers}}}case"initStateFromChannel":{let{channel:n,hasMore:r}=t;return{...e,hasMore:r,loading:!1,members:{...n.state.members},messages:[...n.state.messages],pinnedMessages:[...n.state.pinnedMessages],read:{...n.state.read},watcherCount:n.state.watcher_count,watchers:{...n.state.watchers}}}case"jumpToLatestMessage":return{...e,hasMoreNewer:!1,highlightedMessageId:void 0,loading:!1,suppressAutoscroll:!1};case"jumpToMessageFinished":return{...e,hasMoreNewer:t.channel.state.messagePagination.hasNext,highlightedMessageId:t.highlightedMessageId,messages:t.channel.state.messages};case"clearHighlightedMessage":return{...e,highlightedMessageId:void 0};case"loadMoreFinished":{let{hasMore:n,messages:r}=t;return{...e,hasMore:n,loadingMore:!1,messages:r,suppressAutoscroll:!1}}case"loadMoreNewerFinished":{let{hasMoreNewer:n,messages:r}=t;return{...e,hasMoreNewer:n,loadingMoreNewer:!1,messages:r}}case"loadMoreThreadFinished":{let{threadHasMore:n,threadMessages:r}=t;return{...e,threadHasMore:n,threadLoadingMore:!1,threadMessages:r}}case"openThread":{let{channel:n,message:r}=t;return{...e,thread:r,threadHasMore:!0,threadMessages:r.id&&({...n.state.threads})[r.id]||[],threadSuppressAutoscroll:!1}}case"setError":{let{error:n}=t;return{...e,error:n}}case"setLoadingMore":{let{loadingMore:n}=t;return{...e,loadingMore:n,suppressAutoscroll:n}}case"setLoadingMoreNewer":{let{loadingMoreNewer:n}=t;return{...e,loadingMoreNewer:n}}case"setThread":{let{message:n}=t;return{...e,thread:n}}case"setTyping":{let{channel:n}=t;return{...e,typing:{...n.state.typing}}}case"startLoadingThread":return{...e,threadLoadingMore:!0,threadSuppressAutoscroll:!0};case"updateThreadOnEvent":{let{channel:n,message:r}=t;if(!e.thread)return e;return{...e,thread:r?.id===e.thread.id?n.state.formatMessage(r):e.thread,threadMessages:e.thread?.id&&({...n.state.threads})[e.thread.id]||[]}}default:return e}},[]),[eh,eg]=(0,r.useReducer)(ef,{...c,hasMore:i.state.messagePagination.hasPrev,loading:!i.initialized,messages:i.state.messages}),ey=(()=>{let{searchController:e}=(0,p.vd)("Channel"),{focusedMessage:t}=(0,Z.q)(e._internalState,X);return t})(),ev=(t=(0,r.useRef)(!1),(0,r.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),t),eb=(0,r.useRef)(""),eD=(0,r.useRef)(void 0),eE=(0,r.useRef)(!0),e_=(0,r.useRef)(null),ew=i.data?.own_capabilities,ex=s()(()=>eg({channel:i,type:"copyStateFromChannelOnEvent"}),500,{leading:!0,trailing:!0}),eC=(0,r.useMemo)(()=>s()(ep,200,{leading:!0,trailing:!1}),[]),ek=(0,r.useMemo)(()=>s()(async e=>{let{updateChannelUiUnreadState:t=!0}=e??{};if(!i.disconnected&&eo?.read_events){eD.current=new Date;try{if(y)y(i,t?eC:void 0);else{let e=await i.markRead();t&&e&&ep({last_read:eD.current,last_read_message_id:e.event.last_read_message_id,unread_messages:0})}a?a(0,eb.current):eb.current&&(document.title=eb.current)}catch(e){console.error(et("Failed to mark channel as read"))}}},500,{leading:!0,trailing:!1}),[a,i,eo,y,eC,et]),eS=async e=>{if(e.message&&eg({channel:i,message:e.message,type:"updateThreadOnEvent"}),"user.watching.start"!==e.type&&"user.watching.stop"!==e.type){if("typing.start"===e.type||"typing.stop"===e.type)return eg({channel:i,type:"setTyping"});if("connection.changed"===e.type&&"boolean"==typeof e.online&&(eE.current=e.online),"message.new"===e.type){if((!e.message?.parent_id||e.message?.show_in_channel)&&document.hidden&&eo?.read_events&&!i.muteStatus().muted){let e=i.countUnread(eD.current);a?a(e,eb.current):document.title=`(${e}) ${eb.current}`}if(e.message?.user?.id===Y.userID&&e?.message?.created_at&&e?.message?.cid){let t=new Date(e.message.created_at),n=e.message.cid;(!G[n]||G[n].getTime()<t.getTime())&&(G[n]=t)}}if("user.deleted"===e.type){let e=i.state?.messages?.[0]?.id;await i.query({messages:{id_lt:e,limit:F.k3},watchers:{limit:F.k3}})}"notification.mark_unread"===e.type&&ep(t=>e.last_read_at&&e.user?{first_unread_message_id:e.first_unread_message_id,last_read:new Date(e.last_read_at),last_read_message_id:e.last_read_message_id,unread_messages:e.unread_messages??0}:t),"channel.truncated"===e.type&&e.cid===i.cid&&ep(void 0),ex()}};(0,r.useLayoutEffect)(()=>{let e=!1,t=!1;(async()=>
4{if(!i.initialized&&w)try{let e=[];if(!i.id&&i.data?.members)for(let t of i.data.members){let n;if("string"==typeof t)n=t;else if("object"==typeof t){let{user:e,user_id:r}=t;n=r||e?.id}n&&e.push(n)}await z({channel:i,client:Y,members:e,options:u});let t=i.getConfig();ei(t)}catch(t){eg({error:t,type:"setError"}),e=!0}if(t=!0,eb.current=document.title,!e){if(eg({channel:i,hasMore:i.state.messagePagination.hasPrev,type:"initStateFromChannel"}),Y.user?.id&&i.state.read[Y.user.id]){let{user:e,...t}=i.state.read[Y.user.id];ep(t)}i.countUnread()>0&&T&&ek({updateChannelUiUnreadState:!1}),Y.on("connection.changed",eS),Y.on("connection.recovered",eS),Y.on("user.updated",eS),Y.on("user.deleted",eS),i.on(eS)}})();let n=em.current;return()=>{!e&&t&&(i?.off(eS),Y.off("connection.changed",eS),Y.off("connection.recovered",eS),Y.off("user.deleted",eS),n.forEach(clearTimeout))}},[i.cid,u,y,eo?.read_events,w]),(0,r.useEffect)(()=>{if(!eh.thread)return;let e=eh.messages?.find(e=>e.id===eh.thread?.id);e&&eg({message:e,type:"setThread"})},[eh.messages,eh.thread]);let eM=(0,r.useCallback)(({highlightDuration:e,highlightedMessageId:t})=>{eg({channel:i,highlightedMessageId:t,type:"jumpToMessageFinished"}),e_.current&&clearTimeout(e_.current),e_.current=setTimeout(()=>{ee._internalState.getLatestValue().focusedMessage&&ee._internalState.partialNext({focusedMessage:void 0}),e_.current=null,eg({type:"clearHighlightedMessage"})},e??F.mf)},[i,ee]);(0,r.useEffect)(()=>{ey?.id&&eM({highlightedMessageId:ey.id})},[ey,eM]);let eT=(0,r.useMemo)(()=>{let e;return e=em.current,(t,n)=>{if("string"!=typeof t||"success"!==n&&"error"!==n)return;let r=(0,l.Ak)();el(e=>[...e,{id:r,text:t,type:n}]);let a=setTimeout(()=>el(e=>e.filter(e=>e.id!==r)),5e3);e.push(a)}},[]),eO=(0,r.useCallback)(o()((e,t)=>{ev.current&&eg({hasMore:e,messages:t,type:"loadMoreFinished"})},2e3,{leading:!0,trailing:!0}),[]),eA=async(e=F.k3)=>{let t;if(!eE.current||!window.navigator.onLine||!i.state.messagePagination.hasPrev)return 0;let n=eh?.messages?.[0];if(eh.loadingMore||eh.loadingMoreNewer||n?.status!=="received")return 0;eg({loadingMore:!0,type:"setLoadingMore"});let r=n?.id;try{t=await i.query({messages:{id_lt:r,limit:e},watchers:{limit:e}})}catch(e){return console.warn("message pagination request failed with error",e),eg({loadingMore:!1,type:"setLoadingMore"}),0}return eO(i.state.messagePagination.hasPrev,i.state.messages),t.messages.length},eP=async(e=F.k3)=>{let t;if(!eE.current||!window.navigator.onLine||!i.state.messagePagination.hasNext)return 0;let n=eh?.messages?.[eh?.messages?.length-1];if(eh.loadingMore||eh.loadingMoreNewer)return 0;eg({loadingMoreNewer:!0,type:"setLoadingMoreNewer"});let r=n?.id;try{t=await i.query({messages:{id_gt:r,limit:e},watchers:{limit:e}})}catch(e){return console.warn("message pagination request failed with error",e),eg({loadingMoreNewer:!1,type:"setLoadingMoreNewer"}),0}return eg({hasMoreNewer:i.state.messagePagination.hasNext,messages:i.state.messages,type:"loadMoreNewerFinished"}),t.messages.length},eF=(0,r.useCallback)(async(e,t=F.vk,n=F.mf)=>{eg({loadingMore:!0,type:"setLoadingMore"}),await i.state.loadMessageIntoState(e,void 0,t),eO(i.state.messagePagination.hasPrev,i.state.messages),eM({highlightDuration:n,highlightedMessageId:e})},[i,eM,eO]),eL=(0,r.useCallback)(async()=>{await i.state.loadMessageIntoState("latest"),eO(i.state.messagePagination.hasPrev,i.state.messages),eg({type:"jumpToLatestMessage"})},[i,eO]),eR=(0,r.useCallback)(async(e=F.vk,t=F.mf)=>{if(!ed?.unread_messages)return;let n=ed?.last_read_message_id,r=ed?.first_unread_message_id,a=!1;if(r)a=-1!==j(r,i.state.messages).index;else if(n){let e=j(n,i.state.messages);a=!!e.target,r=e.index>-1?i.state.messages[e.index+1]?.id:void 0}else{let t=ed.last_read.getTime(),{index:o,target:s}=N(ed.last_read,i.state.messages,!0);if(s)a=!!(r=i.state.messages[o+1]?.id),n=s.id;else{let a;eg({loadingMore:!0,type:"setLoadingMore"});try{a=(await i.query({messages:{created_at_around:ed.last_read.toISOString(),limit:e}},"new")).messages}catch(e){eT(et("Failed to jump to the first unread message"),"error"),eO(i.state.messagePagination.hasPrev,i.state.messages);return}let o=a.find(e=>e.created_at);if(!o){eT(et("Failed to jump to the first unread message"),"error"),eO(i.state.messagePagination.hasPrev,i.state.messages);return}if(t<new Date(o.created_at).getTime())r=o.id;else{let e=N(ed.last_read,a);n=e.target?.id}eO(i.state.messagePagination.hasPrev,i.state.messages)}}if(!r&&!n)return void eT(et("Failed to jump to the first unread message"),"error");
4if(!a){eg({loadingMore:!0,type:"setLoadingMore"});try{let t=r??n;await i.state.loadMessageIntoState(t,void 0,e);let a=i.state.messages.findIndex(e=>e.id===t);eO(i.state.messagePagination.hasPrev,i.state.messages),r=r??i.state.messages[a+1]?.id}catch(e){eT(et("Failed to jump to the first unread message"),"error"),eO(i.state.messagePagination.hasPrev,i.state.messages);return}}r?(ed.first_unread_message_id||ep({...ed,first_unread_message_id:r,last_read_message_id:n}),eM({highlightDuration:t,highlightedMessageId:r})):eT(et("Failed to jump to the first unread message"),"error")},[eT,i,eM,eO,et,ed]),ej=(0,r.useCallback)(async e=>{if(!e?.id)throw Error("Cannot delete a message - missing message ID.");return g?await g(e):(await Y.deleteMessage(e.id)).message},[Y,g]),eN=e=>{i.state.addMessageSorted(e,!0),eg({channel:i,parentId:eh.thread&&e.parent_id,type:"copyMessagesFromChannel"})},eI=async(e,t,n)=>{let{attachments:r,id:a,mentioned_users:o=[],parent_id:s,text:l}=e,u={attachments:r,id:a,mentioned_users:o[0]?.id!=null?o.map(({id:e})=>e):o,parent_id:s,quoted_message_id:s===eu?.parent_id?eu?.id:void 0,text:l,...t};try{let e,t;e=b?await b(i,u,n):await i.sendMessage(u,n);for(let e=i.state.messages.length-1;e>=0;e--){let n=i.state.messages[e];if(n.id&&n.id===u.id){t=n;break}}let r=new Date(e?.message?.updated_at||0).getTime(),a=t?.updated_at?.getTime()||0;e?.message&&(r>a||t?.status==="sending")&&eN({...e.message,status:"received"}),eu&&s===eu?.parent_id&&ec(void 0)}catch(r){let t=JSON.stringify(r),n=t?JSON.parse(t):{};4===n.code&&r instanceof Error&&r.message.includes("already exists")?eN({...e,status:"received"}):(eN({...e,error:n,errorStatusCode:n.status||void 0,status:"failed"}),ea?.upsertReplyLocally({message:{...e,error:n,errorStatusCode:n.status||void 0,status:"failed"}}))}},eB=async({attachments:e=[],mentioned_users:t=[],parent:n,text:r=""},a,o)=>{i.state.filterErrorMessages();let s={attachments:e,created_at:new Date,html:r,id:a?.id??`${Y.userID}-${(0,l.Ak)()}`,mentioned_users:t,parent_id:n?.id,reactions:[],status:"sending",text:r,type:"regular",user:Y.user};ea?.upsertReplyLocally({message:s}),eN(s),await eI(s,a,o)},ez=async e=>{eN({...e,errorStatusCode:void 0,status:"sending"}),e.attachments&&(e.attachments=e.attachments.filter(e=>!e.og_scrape_url)),await eI(e)},eH=e=>{i.state.removeMessage(e),eg({channel:i,parentId:eh.thread&&e.parent_id,type:"copyMessagesFromChannel"})},eU=(e,t)=>{t?.preventDefault(),ec(t=>{if(t?.parent_id===e?.parent_id)return t}),eg({channel:i,message:e,type:"openThread"})},eV=e=>{e?.preventDefault(),eg({type:"closeThread"})},eW=(0,r.useCallback)(o()((e,t)=>{eg({threadHasMore:e,threadMessages:t,type:"loadMoreThreadFinished"})},2e3,{leading:!0,trailing:!0}),[]),e$=async(e=F.f5)=>{if(eh.threadLoadingMore||!eh.thread||!eh.threadHasMore)return;eg({type:"startLoadingThread"});let t=eh.thread.id;if(!t)return eg({type:"closeThread"});let n=i.state.threads[t]||[],r=n[0]?.id;try{let n=await i.getReplies(t,{id_lt:r,limit:e}),a=(0,L.fx)(n.messages.length,e),o=i.state.threads[t]||[];eW(a,o)}catch(e){eW(!1,n)}},eq=(0,r.useCallback)((e,t)=>{if(!U&&!H||!(e.target instanceof HTMLElement))return;let n=e.target.innerHTML.replace("*","");if("@"===n[0]){let r=n.replace("@",""),a=t?.find(({id:e,name:t})=>t===r||e===r);U&&"function"==typeof U&&"mouseover"===e.type&&U(e,a),H&&"click"===e.type&&"function"==typeof H&&H(e,a)}},[H,U]),eY=(e=>{let{channel:t,client:n}=(0,p.vd)("useEditMessageHandler");return(r,a)=>e&&t?Promise.resolve(e(t.cid,r,a)):n.updateMessage(r,void 0,a)})(D),{typing:eK,...eG}=eh,eZ=(e=>{let{acceptedFiles:t,channel:n,channelCapabilitiesArray:a=[],channelConfig:o,channelUnreadUiState:i,debounceURLEnrichmentMs:s,dragAndDropWindow:l,enrichURLForPreview:u,error:c,findURLFn:p,giphyVersion:m,hasMore:f,hasMoreNewer:h,highlightedMessageId:g,imageAttachmentSizeHandler:y,loading:v,loadingMore:b,maxNumberOfFiles:D,members:E,messages:_=[],multipleUploads:w,mutes:x,notifications:C,onLinkPreviewDismissed:k,pinnedMessages:S,quotedMessage:M,read:T={},shouldGenerateVideoThumbnail:O,skipMessageDataMemoization:A,suppressAutoscroll:P,thread:F,threadHasMore:L,threadLoadingMore:R,threadMessages:j=[],videoAttachmentSizeHandler:N,watcher_count:I,watcherCount:B,watchers:z}=e,H=n.cid,U=n.initialized&&n.lastRead()?.getTime(),V=Object.keys(E||[]).length,W=C.length,$=Object.values(T),q=$.length,Y=$.map(({last_read:e})=>e.toISOString()).join(),K=j?.length,G={};
4a.forEach(e=>{G[e]=!0});let Z=A?_:_.map(({deleted_at:e,latest_reactions:t,pinned:n,reply_count:r,status:a,updated_at:o,user:i})=>`${e}${t?t.map(({type:e})=>e).join():""}${n}${r}${a}${o&&((0,d.gt)(o)||(0,d.$P)(o))?o.toISOString():o||""}${i?.updated_at}`).join(),X=j.map(({deleted_at:e,latest_reactions:t,pinned:n,status:r,updated_at:a,user:o})=>`${e}${t?t.map(({type:e})=>e).join():""}${n}${r}${a&&((0,d.gt)(a)||(0,d.$P)(a))?a.toISOString():a||""}${o?.updated_at}`).join();return(0,r.useMemo)(()=>({acceptedFiles:t,channel:n,channelCapabilities:G,channelConfig:o,channelUnreadUiState:i,debounceURLEnrichmentMs:s,dragAndDropWindow:l,enrichURLForPreview:u,error:c,findURLFn:p,giphyVersion:m,hasMore:f,hasMoreNewer:h,highlightedMessageId:g,imageAttachmentSizeHandler:y,loading:v,loadingMore:b,maxNumberOfFiles:D,members:E,messages:_,multipleUploads:w,mutes:x,notifications:C,onLinkPreviewDismissed:k,pinnedMessages:S,quotedMessage:M,read:T,shouldGenerateVideoThumbnail:O,suppressAutoscroll:P,thread:F,threadHasMore:L,threadLoadingMore:R,threadMessages:j,videoAttachmentSizeHandler:N,watcher_count:I,watcherCount:B,watchers:z}),[n.data?.name,H,i,s,u,c,p,f,h,g,U,v,b,V,Z,X,W,k,M,q,Y,O,A,P,F,L,R,K,B])})({...eG,acceptedFiles:n,channel:i,channelCapabilitiesArray:ew,channelConfig:eo,channelUnreadUiState:ed,debounceURLEnrichmentMs:_?.debounceURLEnrichmentMs,dragAndDropWindow:E,enrichURLForPreview:e.enrichURLForPreview,findURLFn:_?.findURLFn,giphyVersion:e.giphyVersion||"fixed_height",imageAttachmentSizeHandler:e.imageAttachmentSizeHandler||V,maxNumberOfFiles:P,multipleUploads:B,mutes:J,notifications:es,onLinkPreviewDismissed:_?.onLinkPreviewDismissed,quotedMessage:eu,shouldGenerateVideoThumbnail:e.shouldGenerateVideoThumbnail||!0,videoAttachmentSizeHandler:e.videoAttachmentSizeHandler||W,watcher_count:eh.watcherCount}),eX=(0,r.useMemo)(()=>({addNotification:eT,closeThread:eV,deleteMessage:ej,dispatch:eg,editMessage:eY,jumpToFirstUnreadMessage:eR,jumpToLatestMessage:eL,jumpToMessage:eF,loadMore:eA,loadMoreNewer:eP,loadMoreThread:e$,markRead:ek,onMentionsClick:eq,onMentionsHover:eq,openThread:eU,removeMessage:eH,retrySendMessage:ez,sendMessage:eB,setChannelUnreadUiState:eC,setQuotedMessage:ec,skipMessageDataMemoization:q,updateMessage:eN}),[i.cid,ej,_?.findURLFn,_?.onLinkPreviewDismissed,eA,eP,ek,eu,eR,eF,eL,eC]),eQ=(0,r.useMemo)(()=>({Attachment:e.Attachment,AttachmentPreviewList:e.AttachmentPreviewList,AttachmentSelector:e.AttachmentSelector,AttachmentSelectorInitiationButtonContents:e.AttachmentSelectorInitiationButtonContents,AudioRecorder:e.AudioRecorder,AutocompleteSuggestionItem:e.AutocompleteSuggestionItem,AutocompleteSuggestionList:e.AutocompleteSuggestionList,Avatar:e.Avatar,BaseImage:e.BaseImage,CooldownTimer:e.CooldownTimer,CustomMessageActionsList:e.CustomMessageActionsList,DateSeparator:e.DateSeparator,EditMessageInput:e.EditMessageInput,EmojiPicker:e.EmojiPicker,emojiSearchIndex:e.emojiSearchIndex,EmptyStateIndicator:e.EmptyStateIndicator,FileUploadIcon:e.FileUploadIcon,GiphyPreviewMessage:e.GiphyPreviewMessage,HeaderComponent:e.HeaderComponent,Input:e.Input,LinkPreviewList:e.LinkPreviewList,LoadingIndicator:e.LoadingIndicator,Message:e.Message,MessageActions:e.MessageActions,MessageBlocked:e.MessageBlocked,MessageBouncePrompt:e.MessageBouncePrompt,MessageDeleted:e.MessageDeleted,MessageListNotifications:e.MessageListNotifications,MessageNotification:e.MessageNotification,MessageOptions:e.MessageOptions,MessageRepliesCountButton:e.MessageRepliesCountButton,MessageStatus:e.MessageStatus,MessageSystem:e.MessageSystem,MessageTimestamp:e.MessageTimestamp,ModalGallery:e.ModalGallery,PinIndicator:e.PinIndicator,PollActions:e.PollActions,PollContent:e.PollContent,PollCreationDialog:e.PollCreationDialog,PollHeader:e.PollHeader,PollOptionSelector:e.PollOptionSelector,QuotedMessage:e.QuotedMessage,QuotedMessagePreview:e.QuotedMessagePreview,QuotedPoll:e.QuotedPoll,reactionOptions:e.reactionOptions,ReactionSelector:e.ReactionSelector,ReactionsList:e.ReactionsList,ReactionsListModal:e.ReactionsListModal,SendButton:e.SendButton,StartRecordingAudioButton:e.StartRecordingAudioButton,StopAIGenerationButton:e.StopAIGenerationButton,StreamedMessageText:e.StreamedMessageText,ThreadHead:e.ThreadHead,ThreadHeader:e.ThreadHeader,ThreadStart:e.ThreadStart,Timestamp:e.Timestamp,TriggerProvider:e.TriggerProvider,TypingIndicator:e.TypingIndicator,UnreadMessagesNotification:e.UnreadMessagesNotification,UnreadMessagesSeparator:e.UnreadMessagesSeparator,VirtualMessage:e.VirtualMessage}),[e.Attachment,e.AttachmentPreviewList,e.AttachmentSelector,e.AttachmentSelectorInitiationButtonContents,e.AudioRecorder,e.AutocompleteSuggestionItem,e.AutocompleteSuggestionList,e.Avatar,e.BaseImage,e.CooldownTimer,e.CustomMessageActionsList,e.DateSeparator,e.EditMessageInput,e.EmojiPicker,e.emojiSearchIndex,e.EmptyStateIndicator,e.FileUploadIcon,e.GiphyPreviewMessage,e.HeaderComponent,e.Input,e.LinkPreviewList,e.LoadingIndicator,e.Message,e.MessageActions,e.MessageBlocked,e.MessageBouncePrompt,e.MessageDeleted,e.MessageListNotifications,e.MessageNotification,e.MessageOptions,e.MessageRepliesCountButton,e.MessageStatus,e.MessageSystem,e.MessageTimestamp,e.ModalGallery,e.PinIndicator,e.PollActions,e.PollContent,e.PollCreationDialog,e.PollHeader,e.PollOptionSelector,e.QuotedMessage,e.QuotedMessagePreview,e.QuotedPoll,e.reactionOptions,e.ReactionSelector,e.ReactionsList,e.ReactionsListModal,e.SendButton,e.StartRecordingAudioButton,e.StopAIGenerationButton,e.StreamedMessageText,e.ThreadHead,e.ThreadHeader,e.ThreadStart,e.Timestamp,e.TriggerProvider,e.TypingIndicator,e.UnreadMessagesNotification,e.UnreadMessagesSeparator,e.VirtualMessage]),eJ=(e=>{let{typing:t}=e,n=Object.keys(t||{}).join();return(0,r.useMemo)(()=>({typing:t}),[n])})({typing:eK});return eh.error?r.createElement(Q,null,r.createElement(C,{error:eh.error})):eh.loading?r.createElement(Q,null,r.createElement(k,null)):i.watch?r.createElement(Q,{className:er},r.createElement(x.Om,{value:eZ},r.createElement(M.vo,{value:eX},r.createElement(O,{overrides:eQ},r.createElement(A.r0,{value:eJ},r.createElement("div",{className:`${en}`},E&&r.createElement(S,{...$},h),!E&&r.createElement(r.Fragment,null,h))))))):r.createElement(Q,null,r.createElement("div",null,et("Channel Missing")))},ee=r.memo(e=>
4{let{channel:t,EmptyPlaceholder:n=null,LoadingErrorIndicator:a,LoadingIndicator:o=v}=e,{channel:i,channelsQueryState:s}=(0,p.vd)("Channel"),l=t||i;return"reload"===s.queryInProgress&&o?r.createElement(Q,null,r.createElement(o,null)):s.error&&a?r.createElement(Q,null,r.createElement(a,{error:s.error})):l?.cid?r.createElement(J,{...e,channel:l,key:l.cid}):r.createElement(Q,null,n)})},76700:(e,t,n)=>{e=n.nmd(e);var r,a,o,i,s,l,u,c,d,p,m,f="__lodash_hash_undefined__",h="[object Arguments]",g="[object Function]",y="[object Object]",v=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D[h]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object Boolean]"]=D["[object DataView]"]=D["[object Date]"]=D["[object Error]"]=D[g]=D["[object Map]"]=D["[object Number]"]=D[y]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object WeakMap]"]=!1;var E="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,_="object"==typeof self&&self&&self.Object===Object&&self,w=E||_||Function("return this")(),x=t&&!t.nodeType&&t,C=x&&e&&!e.nodeType&&e,k=C&&C.exports===x,S=k&&E.process,M=function(){try{var e=C&&C.require&&C.require("util").types;if(e)return e;return S&&S.binding&&S.binding("util")}catch(e){}}(),T=M&&M.isTypedArray,O=Array.prototype,A=Function.prototype,P=Object.prototype,F=w["__core-js_shared__"],L=A.toString,R=P.hasOwnProperty,j=(u=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",N=P.toString,I=L.call(Object),B=RegExp("^"+L.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=k?w.Buffer:void 0,H=w.Symbol,U=w.Uint8Array,V=z?z.allocUnsafe:void 0,W=(c=Object.getPrototypeOf,d=Object,function(e){return c(d(e))}),$=Object.create,q=P.propertyIsEnumerable,Y=O.splice,K=H?H.toStringTag:void 0,G=function(){try{var e=em(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Z=z?z.isBuffer:void 0,X=Math.max,Q=Date.now,J=em(w,"Map"),ee=em(Object,"create"),et=function(){function e(){}return function(t){if(!eC(t))return{};if($)return $(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function en(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function er(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ea(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eo(e){var t=this.__data__=new er(e);this.size=t.size}function ei(e,t,n){(void 0===n||ev(e[t],n))&&(void 0!==n||t in e)||el(e,t,n)}function es(e,t){for(var n=e.length;n--;)if(ev(e[n][0],t))return n;return -1}function el(e,t,n){"__proto__"==t&&G?G(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}en.prototype.clear=function(){this.__data__=ee?ee(null):{},this.size=0},en.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},en.prototype.get=function(e){var t=this.__data__;if(ee){var n=t[e];return n===f?void 0:n}return R.call(t,e)?t[e]:void 0},en.prototype.has=function(e){var t=this.__data__;return ee?void 0!==t[e]:R.call(t,e)},en.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=ee&&void 0===t?f:t,this},er.prototype.clear=function(){this.__data__=[],this.size=0},er.prototype.delete=function(e){var t=this.__data__,n=es(t,e);return!(n<0)&&(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,!0)},er.prototype.get=function(e){var t=this.__data__,n=es(t,e);return n<0?void 0:t[n][1]},er.prototype.has=function(e){return es(this.__data__,e)>-1},er.prototype.set=function(e,t){var n=this.__data__,r=es(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ea.prototype.clear=function(){this.size=0,this.__data__={hash:new en,map:new(J||er),string:new en}},ea.prototype.delete=function(e){var t=ep(this,e).delete(e);return this.size-=!!t,t},ea.prototype.get=function(e){return ep(this,e).get(e)},ea.prototype.has=function(e){return ep(this,e).has(e)},ea.prototype.set=function(e,t){var n=ep(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},eo.prototype.clear=function(){this.__data__=new er,this.size=0},eo.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},eo.prototype.get=function(e){return this.__data__.get(e)},eo.prototype.has=function(e){return this.__data__.has(e)},eo.prototype.set=function(e,t){var n=this.__data__;if(n instanceof er){var r=n.__data__;if(!J||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ea(r)}return n.set(e,t),this.size=n.size,this};var eu=function(e,t,n){for(var r=-1,a=Object(e),o=n(e),i=o.length;i--;){var s=o[++r];if(!1===t(a[s],s,a))break}return e};function ec(e){var t;
4return null==e?void 0===e?"[object Undefined]":"[object Null]":K&&K in Object(e)?function(e){var t=R.call(e,K),n=e[K];try{e[K]=void 0;var r=!0}catch(e){}var a=N.call(e);return r&&(t?e[K]=n:delete e[K]),a}(e):(t=e,N.call(t))}function ed(e){return ek(e)&&ec(e)==h}function ep(e,t){var n,r,a=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function em(e,t){var n,r=null==e?void 0:e[t];return!(!eC(r)||(n=r,j&&j in n))&&(ew(r)?B:v).test(function(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(r))?r:void 0}function ef(e,t){var n=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&b.test(e))&&e>-1&&e%1==0&&e<t}function eh(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||P)}function eg(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ey=(r=G?function(e,t){var n;return G(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0})}:eO,a=0,o=0,function(){var e=Q(),t=16-(e-o);if(o=e,t>0){if(++a>=800)return arguments[0]}else a=0;return r.apply(void 0,arguments)});function ev(e,t){return e===t||e!=e&&t!=t}var eb=ed(function(){return arguments}())?ed:function(e){return ek(e)&&R.call(e,"callee")&&!q.call(e,"callee")},eD=Array.isArray;function eE(e){return null!=e&&ex(e.length)&&!ew(e)}var e_=Z||function(){return!1};function ew(e){if(!eC(e))return!1;var t=ec(e);return t==g||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ex(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eC(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ek(e){return null!=e&&"object"==typeof e}var eS=T?function(e){return T(e)}:function(e){return ek(e)&&ex(e.length)&&!!D[ec(e)]};function eM(e){return eE(e)?function(e,t){var n=eD(e),r=!n&&eb(e),a=!n&&!r&&e_(e),o=!n&&!r&&!a&&eS(e),i=n||r||a||o,s=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)(t||R.call(e,u))&&!(i&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ef(u,l)))&&s.push(u);return s}(e,!0):function(e){if(!eC(e)){var t=e,n=[];if(null!=t)for(var r in Object(t))n.push(r);return n}var a=eh(e),o=[];for(var i in e)"constructor"==i&&(a||!R.call(e,i))||o.push(i);return o}(e)}var eT=(p=function(e,t,n,r){!function e(t,n,r,a,o){t!==n&&eu(n,function(i,s){if(o||(o=new eo),eC(i))!function(e,t,n,r,a,o,i){var s=eg(e,n),l=eg(t,n),u=i.get(l);if(u)return ei(e,n,u);var c=o?o(s,l,n+"",e,t,i):void 0,d=void 0===c;if(d){var p,m,f,h,g,v,b,D=eD(l),E=!D&&e_(l),_=!D&&!E&&eS(l);c=l,D||E||_?eD(s)?c=s:ek(p=s)&&eE(p)?c=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(s):E?(d=!1,c=function(e,t){if(t)return e.slice();var n=e.length,r=V?V(n):new e.constructor(n);return e.copy(r),r}(l,!0)):_?(d=!1,m=l,g=(new U(h=new(f=m.buffer).constructor(f.byteLength)).set(new U(f)),h),c=new m.constructor(g,m.byteOffset,m.length)):c=[]:function(e){if(!ek(e)||ec(e)!=y)return!1;var t=W(e);if(null===t)return!0;var n=R.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&L.call(n)==I}(l)||eb(l)?(c=s,eb(s)?c=function(e,t,n){var r=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var i=t[a],s=void 0;void 0===s&&(s=e[i]),r?el(n,i,s):function(e,t,n){var r=e[t];R.call(e,t)&&ev(r,n)&&(void 0!==n||t in e)||el(e,t,n)}(n,i,s)}return n}(v=s,eM(v)):(!eC(s)||ew(s))&&(c="function"!=typeof(b=l).constructor||eh(b)?{}:et(W(b)))):d=!1}d&&(i.set(l,c),a(c,l,r,o,i),i.delete(l)),ei(e,n,c)}(t,n,s,r,e,a,o);else{var l=a?a(eg(t,s),i,s+"",t,n,o):void 0;void 0===l&&(l=i),ei(t,s,l)}},eM)}(e,t,n,r)},ey((i=m=function(e,t){var n=-1,r=t.length,a=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(a=p.length>3&&"function"==typeof a?(r--,a):void 0,o&&function(e,t,n){if(!eC(n))return!1;var r=typeof t;return("number"==r?!!(eE(n)&&ef(t,n.length)):"string"==r&&t in n)&&ev(n[t],e)}(t[0],t[1],o)&&(a=r<3?void 0:a,r=1),e=Object(e);++n<r;){var i=t[n];i&&p(e,i,n,a)}return e},s=void 0,l=eO,s=X(void 0===s?i.length-1:s,0),function(){for(var e=arguments,t=-1,n=X(e.length-s,0),r=Array(n);++t<n;)r[t]=e[s+t];t=-1;for(var a=Array(s+1);++t<s;)a[t]=e[t];a[s]=l(r);switch(a.length){case 0:return i.call(this);case 1:return i.call(this,a[0]);case 2:return i.call(this,a[0],a[1]);case 3:return i.call(this,a[0],a[1],a[2])}return i.apply(this,a)}),m+""));function eO(e){return e}e.exports=eT},76844:(e,t,n)=>{"use strict";n.d(t,{BX:()=>i,Om:()=>o});var r=n(14232);let a=r.createContext(void 0),o=({children:e,value:t})=>r.createElement(a.Provider,{value:t},e),i=e=>{let t=(0,r.useContext)(a);return t||(console.warn(`The useChannelStateContext hook was called outside of the ChannelStateContext provider. Make sure this hook is called within a child of the Channel component. The errored call is located in the ${e} component.`),{})}},77018:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(14232),a=n(27475);let o=()=>r.createElement("svg",{"data-testid":"chat-bubble",fill:"none",height:"96",viewBox:"0 0 136 136",width:"96",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M106 24.5H30C24.775 24.5 20.5 28.775 20.5 34V119.5L39.5 100.5H106C111.225 100.5 115.5 96.225 115.5 91V34C115.5 28.775 111.225 24.5 106 24.5ZM106 91H39.5L30 100.5V34H106V91Z",fill:"#B4B7BB"})),i=r.memo(e=>{let{listType:t}=e,{t:n}=(0,a.WR)("EmptyStateIndicator");if("thread"===t)return null;if("channel"===t){let e=n("You have no channels currently");return r.createElement(r.Fragment,null,r.createElement("div",{className:"str-chat__channel-list-empty"},r.createElement(o,null),r.createElement("p",{role:"listitem"},e)))}if("message"===t){let e=n("No chats here yetâ¦");return r.createElement("div",{className:"str-chat__empty-channel"},r.createElement(o,null),r.createElement("p",{className:"str-chat__empty-channel-text",role:"listitem"},e))}return r.createElement("p",null,"No items exist")})},77044:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
4Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(14232)),o=n(24657),i=n(95824);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m="u">typeof navigator,f=m&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,h=m&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||f)&&!window.MSStream,g=/www\.dropbox\.com\/.+/,y=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,v=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");m.prototype=Object.create(e&&e.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),e&&u(m,e);var t,n,s=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=d(m);return a=t?Reflect.construct(o,arguments,d(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:c(e)});function m(){var e;if(!(this instanceof m))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(c(e=s.call.apply(s,[this].concat(n))),"onReady",function(){var t;return(t=e.props).onReady.apply(t,arguments)}),p(c(e),"onPlay",function(){var t;return(t=e.props).onPlay.apply(t,arguments)}),p(c(e),"onBuffer",function(){var t;return(t=e.props).onBuffer.apply(t,arguments)}),p(c(e),"onBufferEnd",function(){var t;return(t=e.props).onBufferEnd.apply(t,arguments)}),p(c(e),"onPause",function(){var t;return(t=e.props).onPause.apply(t,arguments)}),p(c(e),"onEnded",function(){var t;return(t=e.props).onEnded.apply(t,arguments)}),p(c(e),"onError",function(){var t;return(t=e.props).onError.apply(t,arguments)}),p(c(e),"onPlayBackRateChange",function(t){return e.props.onPlaybackRateChange(t.target.playbackRate)}),p(c(e),"onEnablePIP",function(){var t;return(t=e.props).onEnablePIP.apply(t,arguments)}),p(c(e),"onDisablePIP",function(t){var n=e.props,r=n.onDisablePIP,a=n.playing;r(t),a&&e.play()}),p(c(e),"onPresentationModeChange",function(t){if(e.player&&(0,o.supportsWebKitPresentationMode)(e.player)){var n=e.player.webkitPresentationMode;"picture-in-picture"===n?e.onEnablePIP(t):"inline"===n&&e.onDisablePIP(t)}}),p(c(e),"onSeek",function(t){e.props.onSeek(t.target.currentTime)}),p(c(e),"mute",function(){e.player.muted=!0}),p(c(e),"unmute",function(){e.player.muted=!1}),p(c(e),"renderSourceElement",function(e,t){return"string"==typeof e?a.default.createElement("source",{key:t,src:e}):a.default.createElement("source",l({key:t},e))}),p(c(e),"renderTrack",function(e,t){return a.default.createElement("track",l({key:t},e))}),p(c(e),"ref",function(t){e.player&&(e.prevPlayer=e.player),e.player=t}),e}return n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player),h&&this.player.load()}},{key:"componentDidUpdate",value:function(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url===e.url||(0,o.isMediaStream)(this.props.url)||(this.player.srcObject=null)}},{key:"componentWillUnmount",value:function(){this.removeListeners(this.player),this.hls&&this.hls.destroy()}},{key:"addListeners",value:function(e){var t=this.props,n=t.url,r=t.playsinline;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(n)||e.addEventListener("canplay",this.onReady),r&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}},{key:"removeListeners",value:function(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}},{key:"shouldUseAudio",value:function(e){return!e.config.forceVideo&&!e.config.attributes.poster&&(i.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio)}},{key:"shouldUseHLS",value:function(e){return!!this.props.config.forceHLS||!h&&(i.HLS_EXTENSIONS.test(e)||y.test(e))}},{key:"shouldUseDASH",value:function(e){return i.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}},{key:"shouldUseFLV",value:function(e){return i.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}},{key:"load",value:function(e){var t=this,n=this.props.config,r=n.hlsVersion,a=n.hlsOptions,i=n.dashVersion,s=n.flvVersion;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,o.getSDK)("https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js".replace("VERSION",r),"Hls").then(function(n){if(t.hls=new n(a),t.hls.on(n.Events.MANIFEST_PARSED,function(){t.props.onReady()}),t.hls.on(n.Events.ERROR,function(e,r){t.props.onError(e,r,t.hls,n)}),y.test(e)){var r=e.match(y)[1];t.hls.loadSource("https://videodelivery.net/{id}/manifest/video.m3u8".replace("{id}",r))}else t.hls.loadSource(e);t.hls.attachMedia(t.player),t.props.onLoaded()}),this.shouldUseDASH(e)&&(0,o.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js".replace("VERSION",i),"dashjs").then(function(n){t.dash=n.MediaPlayer().create(),t.dash.initialize(t.player,e,t.props.playing),t.dash.on("error",t.props.onError),3>
4parseInt(i)?t.dash.getDebug().setLogToBrowserConsole(!1):t.dash.updateSettings({debug:{logLevel:n.Debug.LOG_LEVEL_NONE}}),t.props.onLoaded()}),this.shouldUseFLV(e)&&(0,o.getSDK)("https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js".replace("VERSION",s),"flvjs").then(function(n){t.flv=n.createPlayer({type:"flv",url:e}),t.flv.attachMediaElement(t.player),t.flv.on(n.Events.ERROR,function(e,r){t.props.onError(e,r,t.flv,n)}),t.flv.load(),t.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,o.isMediaStream)(e))try{this.player.srcObject=e}catch(t){this.player.src=window.URL.createObjectURL(e)}}},{key:"play",value:function(){var e=this.player.play();e&&e.catch(this.props.onError)}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}},{key:"seekTo",value:function(e){this.player.currentTime=e}},{key:"setVolume",value:function(e){this.player.volume=e}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,o.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,o.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(e){try{this.player.playbackRate=e}catch(e){this.props.onError(e)}}},{key:"getDuration",value:function(){if(!this.player)return null;var e=this.player,t=e.duration,n=e.seekable;return t===1/0&&n.length>0?n.end(n.length-1):t}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var e=this.player.buffered;if(0===e.length)return 0;var t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}},{key:"getSource",value:function(e){var t=this.shouldUseHLS(e),n=this.shouldUseDASH(e),r=this.shouldUseFLV(e);if(!(e instanceof Array||(0,o.isMediaStream)(e))&&!t&&!n&&!r)return g.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.playing,r=e.loop,o=e.controls,i=e.muted,s=e.config,u=e.width,c=e.height,d=this.shouldUseAudio(this.props);return a.default.createElement(d?"audio":"video",l({ref:this.ref,src:this.getSource(t),style:{width:"auto"===u?u:"100%",height:"auto"===c?c:"100%"},preload:"auto",autoPlay:n||void 0,controls:o,muted:i,loop:r},s.attributes),t instanceof Array&&t.map(this.renderSourceElement),s.tracks.map(this.renderTrack))}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(m.prototype,n),m}(a.Component);t.default=v,p(v,"displayName","FilePlayer"),p(v,"canPlay",i.canPlay.file)},77170:(e,t,n)=>{var r="Expected a function",a=0/0,o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,p=c||d||Function("return this")(),m=Object.prototype.toString,f=Math.max,h=Math.min,g=function(){return p.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==m.call(t))return a;if(y(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=y(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var r=s.test(e);return r||l.test(e)?u(e.slice(2),r?2:8):i.test(e)?a:+e}e.exports=function(e,t,n){var a=!0,o=!0;if("function"!=typeof e)throw TypeError(r);return y(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),function(e,t,n){var a,o,i,s,l,u,c=0,d=!1,p=!1,m=!0;if("function"!=typeof e)throw TypeError(r);function b(t){var n=a,r=o;return a=o=void 0,c=t,s=e.apply(r,n)}function D(e){var n=e-u,r=e-c;return void 0===u||n>=t||n<0||p&&r>=i}function E(){var e,n,r,a=g();if(D(a))return _(a);l=setTimeout(E,(e=a-u,n=a-c,r=t-e,p?h(r,i-n):r))}function _(e){return(l=void 0,m&&a)?b(e):(a=o=void 0,s)}function w(){var e,n=g(),r=D(n);if(a=arguments,o=this,u=n,r){if(void 0===l)return c=e=u,l=setTimeout(E,t),d?b(e):s;if(p)return l=setTimeout(E,t),b(u)}return void 0===l&&(l=setTimeout(E,t)),s}return t=v(t)||0,y(n)&&(d=!!n.leading,i=(p="maxWait"in n)?f(v(n.maxWait)||0,t):i,m="trailing"in n?!!n.trailing:m),w.cancel=function(){void 0!==l&&clearTimeout(l),c=0,a=u=o=l=void 0},w.flush=function(){return void 0===l?s:_(g())},w}(e,t,{leading:a,maxWait:t,trailing:o})}},79437:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;
4\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function p(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function m(){var e={line:c,column:d};return function(t){return t.position=new f(e),g(r),t}}function f(e){this.start=e,this.end={line:c,column:d},this.source=l.source}function h(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=m();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return h("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}f.prototype.content=e,g(r);var b,D=[];for(y(D);b=function(){var e=m(),n=g(a);if(n){if(v(),!g(o))return h("property missing ':'");var r=g(i),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return g(s),l}}();)!1!==b&&(D.push(b),y(D));return D}},79674:(e,t,n)=>{"use strict";n.d(t,{a:()=>l});var r=n(69241),a=n(14232),o=n(95248);let i=()=>a.createElement("svg",{"data-testid":"close-icon-round",fill:"none",height:"28",viewBox:"0 0 28 28",width:"28",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{fill:"#72767E",height:"28",rx:"14",width:"28"}),a.createElement("circle",{cx:"14",cy:"14",fill:"#72767E",r:"12"}),a.createElement("path",{clipRule:"evenodd",d:"M28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14ZM26 14C26 20.6274 20.6274 26 14 26C7.37258 26 2 20.6274 2 14C2 7.37258 7.37258 2 14 2C20.6274 2 26 7.37258 26 14ZM19.59 7L21 8.41L15.41 14L21 19.59L19.59 21L14 15.41L8.41 21L7 19.59L12.59 14L7 8.41L8.41 7L14 12.59L19.59 7Z",fill:"white",fillRule:"evenodd"}));var s=n(27475);let l=({children:e,className:t,onClose:n,open:l})=>{let{t:u}=(0,s.WR)("Modal"),c=(0,a.useRef)(null),d=(0,a.useRef)(null);return((0,a.useEffect)(()=>{if(!l)return;let e=e=>{"Escape"===e.key&&n?.(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n,l]),l)?a.createElement("div",{className:(0,r.A)("str-chat__modal str-chat__modal--open",t),onClick:e=>{let t=e.target;c.current&&d.current&&(!c.current.contains(t)||d.current.contains(t))&&n?.(e)}},a.createElement(o.n1,{autoFocus:!0,contain:!0},a.createElement("button",{className:"str-chat__modal__close-button",ref:d,title:u("Close")},a.createElement(i,null)),a.createElement("div",{className:"str-chat__modal__inner str-chat-react__modal__inner",ref:c},e))):null}},80502:(e,t,n)=>{"use strict";function r(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(a,o){var i=e.apply(t,n);function s(e){r(i,a,o,s,l,"next",e)}function l(e){r(i,a,o,s,l,"throw",e)}s(void 0)})}}n.d(t,{A:()=>a})},80609:(e,t,n)=>{"use strict";n.d(t,{KS:()=>i,vo:()=>o});var r=n(14232);let a=r.createContext(void 0),o=({children:e,value:t})=>r.createElement(a.Provider,{value:t},e),i=e=>{let t=(0,r.useContext)(a);return t||(console.warn(`The useChannelActionContext hook was called outside of the ChannelActionContext provider. Make sure this hook is called within a child of the Channel component. The errored call is located in the ${e} component.`),{})}},82908:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var a=n.prototype,o=a.format;r.en.formats=e,a.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n,r,a=this.$locale().formats,i=(n=t,r=void 0===a?{}:a,n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,a){var o=a&&a.toUpperCase();return n||r[a]||e[a]||r[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}));return o.call(this,i)}}}()},83195:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
4Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(14232)),o=n(24657),i=n(95824);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m="https://connect.facebook.net/en_US/sdk.js",f="fbAsyncInit",h=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),e&&u(s,e);var t,n,i=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=d(s);return a=t?Reflect.construct(o,arguments,d(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:c(e)});function s(){var e;if(!(this instanceof s))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(c(e=i.call.apply(i,[this].concat(n))),"callPlayer",o.callPlayer),p(c(e),"playerID",e.props.config.playerId||"".concat("facebook-player-").concat((0,o.randomString)())),p(c(e),"mute",function(){e.callPlayer("mute")}),p(c(e),"unmute",function(){e.callPlayer("unmute")}),e}return n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e,t){var n=this;t?(0,o.getSDK)(m,"FB",f).then(function(e){return e.XFBML.parse()}):(0,o.getSDK)(m,"FB",f).then(function(e){e.init({appId:n.props.config.appId,xfbml:!0,version:n.props.config.version}),e.Event.subscribe("xfbml.render",function(e){n.props.onLoaded()}),e.Event.subscribe("xfbml.ready",function(e){"video"===e.type&&e.id===n.playerID&&(n.player=e.instance,n.player.subscribe("startedPlaying",n.props.onPlay),n.player.subscribe("paused",n.props.onPause),n.player.subscribe("finishedPlaying",n.props.onEnded),n.player.subscribe("startedBuffering",n.props.onBuffer),n.player.subscribe("finishedBuffering",n.props.onBufferEnd),n.player.subscribe("error",n.props.onError),n.props.muted?n.callPlayer("mute"):n.callPlayer("unmute"),n.props.onReady(),document.getElementById(n.playerID).querySelector("iframe").style.visibility="visible")})})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var e=this.props.config.attributes;return a.default.createElement("div",l({style:{width:"100%",height:"100%"},id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false"},e))}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(s.prototype,n),s}(a.Component);t.default=h,p(h,"displayName","Facebook"),p(h,"canPlay",i.canPlay.facebook),p(h,"loopOnEnded",!0)},83784:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},83811:function(e,t,n){e.exports=function(e){"use strict";var t={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(e){return"["+e+(1===e||8===e||e>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t}(n(56557))},83833:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esMo
4dule?e:{default:e}})(n(71326)),a=n(24181);function o(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,a.camelCase)(e,t)]=r)}),n}o.default=o,e.exports=o},84096:(e,t,n)=>{var r=n(66713),a=n(46968),o=n(33468),i=n(50466),s=n(56202),l=n(66788),u=n(85318);function c(){"use strict";var t=a(),n=t.m(c),d=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function p(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var m={throw:1,return:2,break:3,continue:3};function f(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,m[e],t)},delegateYield:function(e,a,o){return t.resultName=a,n(r.d,u(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,a){r.p=t.prev,r.n=t.next;try{return e(n,a)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,n,r,a){return t.w(f(e),n,r,a&&a.reverse())},isGeneratorFunction:p,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,a){return(p(t)?i:o)(f(e),t,n,r,a)},keys:l,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},84721:(e,t,n)=>{"use strict";n.d(t,{B:()=>i});var r=n(3171),a=n(39268);class o{constructor(e){this._closed=!1,e&&(this._producer=e)}get closed(){return this._closed}subscribe(e){let t=(0,r.r)(e);return this.closed||this._producer?.(t),new a.y(()=>{this._closed=!0})}}class i extends o{constructor(){super(),this._observers=new Map,this._observerCounter=0}get observers(){return Array.from(this._observers.values())}next(e){if(this.closed)return;let t=this.observers;for(let n=0;n<t.length;n++)t[n].next(e)}error(e){if(this.closed)return;this.thrownError=e;let{observers:t}=this;for(let n=0;n<t.length;n++)t[n].error?.(e);this._observers.clear()}complete(){if(this.closed)return;this._closed=!0;let{observers:e}=this;for(let t=0;t<e.length;t++)e[t].complete?.();this._observers.clear()}subscribe(e){let t=(0,r.r)(e);if(this.thrownError||this.closed){let e=new a.y;return e.closed=!0,e}let n=this._observerCounter++;return this._observers.set(n,t),new a.y(()=>{this._observers.delete(n)})}unsubscribe(){this._closed=!0,this._observers.clear()}}},84782:(e,t,n)=>{"use strict";n.d(t,{b:()=>a});var r=n(78333);function a(e,t){return(0,r.a)(e)-(0,r.a)(t)}},85017:(e,t,n)=>{"use strict";n.d(t,{E$:()=>o,QH:()=>a,y9:()=>r});let r=100,a=/^([2-9]|10)$/,o=10},85171:(e,t,n)=>{"use strict";n.d(t,{S5:()=>ac});var r={};n.r(r),n.d(r,{boolean:()=>y,booleanish:()=>v,commaOrSpaceSeparated:()=>w,commaSeparated:()=>_,number:()=>D,overloadedBoolean:()=>b,spaceSeparated:()=>E});var a={};n.r(a),n.d(a,{attentionMarkers:()=>tO,contentInitial:()=>tx,disable:()=>tA,document:()=>tw,flow:()=>tk,flowInitial:()=>tC,insideSpan:()=>tT,string:()=>tS,text:()=>tM});var o=n(14232);let i=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l={};function u(e,t){return((t||l).jsx?s:i).test(e)}let c=/[ \t\n\f\r]/g;function d(e){return""===e.replace(c,"")}class p{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function m(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new p(n,r,t)}function f(e){return e.toLowerCase()}p.prototype.normal={},p.prototype.property={},p.prototype.space=void 0;class h{constructor(e,t){this.attribute=t,this.property=e}}h.prototype.attribute="",h.prototype.booleanish=!1,h.prototype.boolean=!1,h.prototype.commaOrSpaceSeparated=!1,h.prototype.commaSeparated=!1,h.prototype.defined=!1,h.prototype.mustUseProperty=!1,h.prototype.number=!1,h.prototype.overloadedBoolean=!1,h.prototype.property="",h.prototype.spaceSeparated=!1,h.prototype.space=void 0;let g=0,y=x(),v=x(),b=x(),D=x(),E=x(),_=x(),w=x();function x(){return 2**++g}let C=Object.keys(r);class k extends h{constructor(e,t,n,a){let o=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",a),"number"==typeof n)for(;++o<C.length;){const e=C[o];!function(e,t,n){n&&(e[t]=n)}(this,C[o],(n&r[e])===r[e])}}}function S(e){let t={},n={};for(let[r,a]of Object.entries(e.properties)){let o=new k(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[f(r)]=r,n[f(o.attribute)]=r}return new p(t,n,e.space)}k.prototype.defined=!0;let M=S({properties:{ariaActiveDescendant:null,ariaAtomic:v,ariaAutoComplete:null,ariaBusy:v,ariaChecked:v,ariaColCount:D,ariaColIndex:D,ariaColSpan:D,ariaControl
4s:E,ariaCurrent:null,ariaDescribedBy:E,ariaDetails:null,ariaDisabled:v,ariaDropEffect:E,ariaErrorMessage:null,ariaExpanded:v,ariaFlowTo:E,ariaGrabbed:v,ariaHasPopup:null,ariaHidden:v,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:E,ariaLevel:D,ariaLive:null,ariaModal:v,ariaMultiLine:v,ariaMultiSelectable:v,ariaOrientation:null,ariaOwns:E,ariaPlaceholder:null,ariaPosInSet:D,ariaPressed:v,ariaReadOnly:v,ariaRelevant:null,ariaRequired:v,ariaRoleDescription:E,ariaRowCount:D,ariaRowIndex:D,ariaRowSpan:D,ariaSelected:v,ariaSetSize:D,ariaSort:null,ariaValueMax:D,ariaValueMin:D,ariaValueNow:D,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function T(e,t){return t in e?e[t]:t}function O(e,t){return T(e,t.toLowerCase())}let A=S({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_,acceptCharset:E,accessKey:E,action:null,allow:null,allowFullScreen:y,allowPaymentRequest:y,allowUserMedia:y,alpha:y,alt:null,as:null,async:y,autoCapitalize:null,autoComplete:E,autoFocus:y,autoPlay:y,blocking:E,capture:null,charSet:null,checked:y,cite:null,className:E,closedBy:null,colorSpace:null,cols:D,colSpan:D,command:null,commandFor:null,content:null,contentEditable:v,controls:y,controlsList:E,coords:D|_,crossOrigin:null,data:null,dateTime:null,decoding:null,default:y,defer:y,dir:null,dirName:null,disabled:y,download:b,draggable:v,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:y,formTarget:null,headers:E,height:D,hidden:b,high:D,href:null,hrefLang:null,htmlFor:E,httpEquiv:E,id:null,imageSizes:null,imageSrcSet:null,inert:y,inputMode:null,integrity:null,is:null,isMap:y,itemId:null,itemProp:E,itemRef:E,itemScope:y,itemType:E,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:y,low:D,manifest:null,max:null,maxLength:D,media:null,method:null,min:null,minLength:D,multiple:y,muted:y,name:null,nonce:null,noModule:y,noValidate:y,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:y,optimum:D,pattern:null,ping:E,placeholder:null,playsInline:y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:y,referrerPolicy:null,rel:E,required:y,reversed:y,rows:D,rowSpan:D,sandbox:E,scope:null,scoped:y,seamless:y,selected:y,shadowRootClonable:y,shadowRootCustomElementRegistry:y,shadowRootDelegatesFocus:y,shadowRootMode:null,shadowRootSerializable:y,shape:null,size:D,sizes:null,slot:null,span:D,spellCheck:v,src:null,srcDoc:null,srcLang:null,srcSet:null,start:D,step:null,style:null,tabIndex:D,target:null,title:null,translate:null,type:null,typeMustMatch:y,useMap:null,value:v,width:D,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:E,axis:null,background:null,bgColor:null,border:D,borderColor:null,bottomMargin:D,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:y,declare:y,event:null,face:null,frame:null,frameBorder:null,hSpace:D,leftMargin:D,link:null,longDesc:null,lowSrc:null,marginHeight:D,marginWidth:D,noResize:y,noHref:y,noShade:y,noWrap:y,object:null,profile:null,prompt:null,rev:null,rightMargin:D,rules:null,scheme:null,scrolling:v,standby:null,summary:null,text:null,topMargin:D,valueType:null,version:null,vAlign:null,vLink:null,vSpace:D,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:y,disablePictureInPicture:y,disableRemotePlayback:y,exportParts:_,part:E,prefix:null,property:null,results:D,security:null,unselectable:null},space:"html",transform:O}),P=S({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
4dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
4-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:w,accentHeight:D,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:D,amplitude:D,arabicForm:null,ascent:D,attributeName:null,attributeType:null,azimuth:D,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:D,by:null,calcMode:null,capHeight:D,className:E,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:D,diffuseConstant:D,direction:null,display:null,dur:null,divisor:D,dominantBaseline:null,download:y,dx:null,dy:null,edgeMode:null,editable:null,elevation:D,enableBackground:null,end:null,event:null,exponent:D,externalResourcesRequired:null,fill:null,fillOpacity:D,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:_,g2:_,glyphName:_,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:D,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:D,horizOriginX:D,horizOriginY:D,id:null,ideographic:D,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:D,k:D,k1:D,k2:D,k3:D,k4:D,kernelMatrix:w,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:D,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:D,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
4Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:D,overlineThickness:D,paintOrder:null,panose1:null,path:null,pathLength:D,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:E,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:D,pointsAtY:D,pointsAtZ:D,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:w,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:w,rev:w,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:w,requiredFeatures:w,requiredFonts:w,requiredFormats:w,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:D,specularExponent:D,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:D,strikethroughThickness:D,string:null,stroke:null,strokeDashArray:w,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:D,strokeOpacity:D,strokeWidth:null,style:null,surfaceScale:D,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:w,tabIndex:D,tableValues:null,target:null,targetX:D,targetY:D,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:w,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:D,underlineThickness:D,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:D,values:null,vAlphabetic:D,vMathematical:D,vectorEffect:null,vHanging:D,vIdeographic:D,version:null,vertAdvY:D,vertOriginX:D,vertOriginY:D,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:D,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:T}),F=S({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),L=S({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:O}),R=S({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),j=m([M,A,F,L,R],"html"),N=m([M,P,F,L,R],"svg"),I=/[A-Z]/g,B=/-[a-z]/g,z=/^data[-\w.:]+$/i;function H(e){return"-"+e.toLowerCase()}function U(e){return e.charAt(1).toUpperCase()}let V={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var W=n(83833);let $=Y("end"),q=Y("start");function Y(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function K(e){return e&&"object"==typeof e?"position"in e||"type"in e?Z(e.position):"start"in e||"end"in e?Z(e):"line"in e||"column"in e?G(e):"":""}function G(e){return X(e&&e.line)+":"+X(e&&e.column)}function Z(e){return G(e&&e.start)+"-"+G(e&&e.end)}function X(e){return e&&"number"==typeof e?e:1}class Q extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},o=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(o=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const i=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=i?i.line:void 0,this.name=K(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Q.prototype.file="",Q.prototype.name="",Q.prototype.reason="",Q.prototype.message="",Q.prototype.stack="",Q.prototype.column=void 0,Q.prototype.line=void 0,Q.prototype.ancestors=void 0,Q.prototype.cause=void 0,Q.prototype.fatal=void 0,Q.prototype.place=void 0,Q.prototype.ruleId=void 0,Q.prototype.source=void 0;let J={}.hasOwnProperty,ee=new Map,et=/[A-Z]/g,en=new Set(["table","tbody","thead","tfoot","tr"]),er=new Set(["td","th"]),ea="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function eo(e,t,n){var r,a,o,i,s,l,u,c,p;let m,g,y,v,b,D,E,_,w,x,C;return"element"===t.type?(r=e,a=t,o=n,g=m=r.schema,"svg"===a.tagName.toLowerCase()&&"html"===m.space&&(r.schema=N),r.ancestors.push(a),y=eu(r,a.tagName,!1),v=function(e,t){let n,r,a={};for(r in t.properties)if("children"!==r&&J.call(t.properties,r)){let o=function(e,t,n){let r=function(e,t){let n=f(t),r=t,a=h;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&z.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(B,U);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!B.test(e)){let n=e.replace(I,H);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=k}return new a(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var a;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(a=n)[a.length-1]?[...a,""]:a).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return W(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new Q("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});
4throw t.file=e.filePath||void 0,t.url=ea+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)J.call(e,t)&&(n[function(e){let t=e.replace(et,ed);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?V[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(o){let[r,i]=o;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof i&&er.has(t.tagName)?n=i:a[r]=i}}return n&&((a.style||(a.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),a}(r,a),b=el(r,a),en.has(a.tagName)&&(b=b.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&d(e.value):d(e))})),ei(r,v,y,a),es(v,b),r.ancestors.pop(),r.schema=m,r.create(a,y,v,o)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}ec(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(i=e,s=t,l=n,E=D=i.schema,"svg"===s.name&&"html"===D.space&&(i.schema=N),i.ancestors.push(s),_=null===s.name?i.Fragment:eu(i,s.name,!0),w=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let a=t.expression;a.type;let o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else ec(e,t.position);else{let a,o=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else ec(e,t.position);else a=null===r.value||r.value;n[o]=a}return n}(i,s),x=el(i,s),ei(i,w,_,s),es(w,x),i.ancestors.pop(),i.schema=D,i.create(s,_,w,l)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ec(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,p=n,es(C={},el(u,c)),u.create(c,u.Fragment,C,p)):"text"===t.type?t.value:void 0}function ei(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function es(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function el(e,t){let n=[],r=-1,a=e.passKeys?new Map:ee;for(;++r<t.children.length;){let o,i=t.children[r];if(e.passKeys){let e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){let t=a.get(e)||0;o=e+"-"+t,a.set(e,t+1)}}let s=eo(e,i,o);void 0!==s&&n.push(s)}return n}function eu(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),a=-1;for(;++a<n.length;){let t=u(n[a])?{type:"Identifier",name:n[a]}:{type:"Literal",value:n[a]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(a&&"Literal"===t.type),optional:!1}:t}r=e}else r=u(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return J.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);ec(e)}function ec(e,t){let n=new Q("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ea+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ed(e){return"-"+e.toLowerCase()}let ep={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var em=n(37876);let ef={};function eh(e,t){let n=t||ef;return eg(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function eg(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ey(e.children,t,n)}
4return Array.isArray(e)?ey(e,t,n):""}function ey(e,t,n){let r=[],a=-1;for(;++a<e.length;)r[a]=eg(e[a],t,n);return r.join("")}function ev(e,t,n,r){let a,o=e.length,i=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(a=Array.from(r)).unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);i<r.length;)(a=r.slice(i,i+1e4)).unshift(t,0),e.splice(...a),i+=1e4,t+=1e4}function eb(e,t){return e.length>0?(ev(e,e.length,0,t),e):t}class eD{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&eE(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),eE(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eE(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);eE(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);eE(this.left,t.reverse())}}}function eE(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function e_(e){let t,n,r,a,o,i,s,l={},u=-1,c=new eD(e);for(;++u<c.length;){for(;u in l;)u=l[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(i=t[1]._tokenizer.events).length&&"lineEndingBlank"===i[r][1].type&&(r+=2),r<i.length&&"content"===i[r][1].type))for(;++r<i.length&&"content"!==i[r][1].type;)"chunkText"===i[r][1].type&&(i[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,a=e.get(t)[1],o=e.get(t)[2],i=t-1,s=[],l=a._tokenizer;!l&&(l=o.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let u=l.events,c=[],d={},p=-1,m=a,f=0,h=0,g=[0];for(;m;){for(;e.get(++i)[1]!==m;);s.push(i),!m._tokenizer&&(n=o.sliceStream(m),m.next||n.push(null),r&&l.defineSkip(m.start),m._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),m._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=m,m=m.next}for(m=a;++p<u.length;)"exit"===u[p][0]&&"enter"===u[p-1][0]&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(h=p+1,g.push(h),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(l.events=[],m?(m._tokenizer=void 0,m.previous=void 0):g.pop(),p=g.length;p--;){let t=u.slice(g[p],g[p+1]),n=s.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),p=-1;++p<c.length;)d[f+c[p][0]]=f+c[p][1],f+=c[p][1]-c[p][0]-1;return d}(c,u)),u=l[u],s=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(a=c.get(r))[1].type||"lineEndingBlank"===a[1].type)"enter"===a[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),a[1].type="lineEnding",n=r);else if("linePrefix"===a[1].type||"listItemIndent"===a[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(o=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,o))}}return ev(e,0,1/0,c.slice(0)),!s}let ew={}.hasOwnProperty;function ex(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,a=(ew.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(r in o){ew.call(a,r)||(a[r]=[]);let e=o[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);ev(e,0,0,r)}(a[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let eC=eN(/[A-Za-z]/),ek=eN(/[\dA-Za-z]/),eS=eN(/[#-'*+\--9=?A-Z^-~]/);function eM(e){return null!==e&&(e<32||127===e)}let eT=eN(/\d/),eO=eN(/[\dA-Fa-f]/),eA=eN(/[!-/:-@[-`{-~]/);function eP(e){return null!==e&&e<-2}function eF(e){return null!==e&&(e<0||32===e)}function eL(e){return -2===e||-1===e||32===e}let eR=eN(/\p{P}|\p{S}/u),ej=eN(/\s/);function eN(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function eI(e,t,n,r){let a=r?r-1:1/0,o=0;return function(r){return eL(r)?(e.enter(n),function r(i){return eL(i)&&o++<a?(e.consume(i),r):(e.exit(n),t(i))}(r)):t(r)}}let eB={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eI(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let a=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=a),t=a,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return eP(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},ez={tokenize:function(e){let t,n,r,a=this,o=[],i=0;return s;function s(t){if(i<o.length){let n=o[i];return a.containerState=n[1],e.attempt(n[0].continuation,l,u)(t)}return u(t)}function l(e){if(i++,a.containerState._closeFlow){let n;a.containerState._closeFlow=void 0,t&&y();let r=a.events.length,o=r;for(;o--;)if("exit"===a.events[o][0]&&"chunkFlow"===a.events[o][1].type){n=a.events[o][1].end;break}g(i);let s=r;for(;s<a.events.length;)a.events[s][1].end={...n},s++;return ev(a.events,o+1,0,a.events.slice(r)),a.events.length=s,u(e)}return s(e)}function u(n){if(i===o.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return f(n);a.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return a.containerState={},e.check(eH,c,d)(n)}function c(e){return t&&y(),g(i),p(e)}function d(e){return a.parser.lazy[a.now().line]=i!==o.length,r=a.now().offset,f(e)}function p(t){return a.containerState={},e.attempt(eH,m,f)(t)}function m(e){return i++,o.push([a.currentConstruct,a.containerState]),p(e)}function f(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||a.parser.flow(a.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){h(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return eP(n)?(e.consume(n),h(e.exit("chunkFlow")),i=0,a.interrupt=void 0,s):(e.consume(n),t)}(r)}function h(e,o){let s=a.sliceStream(e);
4if(o&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),a.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let s=a.events.length,l=s;for(;l--;)if("exit"===a.events[l][0]&&"chunkFlow"===a.events[l][1].type){if(e){n=a.events[l][1].end;break}e=!0}for(g(i),o=s;o<a.events.length;)a.events[o][1].end={...n},o++;ev(a.events,l+1,0,a.events.slice(s)),a.events.length=o}}function g(t){let n=o.length;for(;n-- >t;){let t=o[n];a.containerState=t[1],t[0].exit.call(a,e)}o.length=t}function y(){t.write([null]),n=void 0,t=void 0,a.containerState._closeFlow=void 0}}},eH={tokenize:function(e,t,n){return eI(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},eU={partial:!0,tokenize:function(e,t,n){return function(t){return eL(t)?eI(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eP(e)?t(e):n(e)}}},eV={resolve:function(e){return e_(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):eP(t)?e.check(eW,o,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eW={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eI(e,a,"linePrefix")};function a(a){if(null===a||eP(a))return n(a);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}},e$={tokenize:function(e){let t=this,n=e.attempt(eU,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,eI(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eV,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},eq={resolveAll:eZ()},eY=eG("string"),eK=eG("text");function eG(e){return{resolveAll:eZ("text"===e?eX:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],a=t.attempt(r,o,i);return o;function o(e){return l(e)?a(e):i(e)}function i(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],a=-1;if(t)for(;++a<t.length;){let e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function eZ(e){return function(t,n){let r,a=-1;for(;++a<=t.length;)void 0===r?t[a]&&"data"===t[a][1].type&&(r=a,a++):t[a]&&"data"===t[a][1].type||(a!==r+2&&(t[r][1].end=t[a-1][1].end,t.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(t,n):t}}function eX(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,a=e[n-1][1],o=t.sliceStream(a),i=o.length,s=-1,l=0;for(;i--;){let e=o[i];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let o={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:a.start._bufferIndex+s,_index:a.start._index+i,line:a.end.line,column:a.end.column-l,offset:a.end.offset-l},end:{...a.end}};a.end={...o.start},a.start.offset===a.end.offset?Object.assign(a,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}let eQ={name:"thematicBreak",tokenize:function(e,t,n){let r,a=0;return function(o){var i;return e.enter("thematicBreak"),r=i=o,function o(i){return i===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),a++,t):(e.exit("thematicBreakSequence"),eL(n)?eI(e,o,"whitespace")(n):o(n))}(i)):a>=3&&(null===i||eP(i))?(e.exit("thematicBreak"),t(i)):n(i)}(i)}}},eJ={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(eU,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eI(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eL(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
4=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(e1,t,a)(n))});function a(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,eI(e,e.attempt(eJ,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,a=r.events[r.events.length-1],o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,i=0;return function(t){let a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:eT(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(eQ,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(a){return eT(a)&&++i<10?(e.consume(a),t):(!r.interrupt||i<2)&&(r.containerState.marker?a===r.containerState.marker:41===a||46===a)?(e.exit("listItemValue"),s(a)):n(a)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(eU,r.interrupt?n:l,e.attempt(e0,c,u))}
4function l(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return eL(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},e0={partial:!0,tokenize:function(e,t,n){let r=this;return eI(e,function(e){let a=r.events[r.events.length-1];return!eL(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},e1={partial:!0,tokenize:function(e,t,n){let r=this;return eI(e,function(e){let a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},e2={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eL(t)?eI(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)};function a(r){return e.attempt(e2,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return eL(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e3(e,t,n,r,a,o,i,s,l){let u=l||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(a),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||eM(t)?n(t):(e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||eP(t)?n(t):(e.consume(t),92===t?m:p)}function m(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(a){return!c&&(null===a||41===a||eF(a))?(e.exit("chunkString"),e.exit(s),e.exit(i),e.exit(r),t(a)):c<u&&40===a?(e.consume(a),c++,f):41===a?(e.consume(a),c--,f):null===a||32===a||40===a||eM(a)?n(a):(e.consume(a),92===a?h:f)}function h(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function e4(e,t,n,r,a,o){let i,s=this,l=0;return function(t){return e.enter(r),e.enter(a),e.consume(t),e.exit(a),e.enter(o),u};function u(d){return l>999||null===d||91===d||93===d&&!i||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(o),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):eP(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||eP(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),i||(i=!eL(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function e5(e,t,n,r,a,o){let i;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(a),e.consume(t),e.exit(a),i=40===t?41:t,s):n(t)};function s(n){return n===i?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===i?(e.exit(o),s(i)):null===t?n(t):eP(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eI(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===i||null===t||eP(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===i||92===t?(e.consume(t),u):u(t)}}function e6(e,t){let n;return function r(a){return eP(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):eL(a)?eI(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}function e8(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let e9={partial:!0,tokenize:function(e,t,n){return function(t){return eF(t)?e6(e,r)(t):n(t)};function r(t){return e5(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return eL(t)?eI(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eP(e)?t(e):n(e)}}},e7={name:"codeIndented",tokenize:function(e,t,n){let r=this;
4return function(t){return e.enter("codeIndented"),eI(e,a,"linePrefix",5)(t)};function a(t){let a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?function t(n){return null===n?o(n):eP(n)?e.attempt(te,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eP(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},te={partial:!0,tokenize:function(e,t,n){let r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):eP(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):eI(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eP(e)?a(e):n(e)}}},tt={name:"setextUnderline",resolveTo:function(e,t){let n,r,a,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),a||"definition"!==e[o][1].type||(a=o);let i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",i,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=i,e.push(["exit",i,t]),e},tokenize:function(e,t,n){let r,a=this;return function(t){var i;let s,l=a.events.length;for(;l--;)if("lineEnding"!==a.events[l][1].type&&"linePrefix"!==a.events[l][1].type&&"content"!==a.events[l][1].type){s="paragraph"===a.events[l][1].type;break}return!a.parser.lazy[a.now().line]&&(a.interrupt||s)?(e.enter("setextHeadingLine"),r=t,i=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eL(n)?eI(e,o,"lineSuffix")(n):o(n))}(i)):n(t)};function o(r){return null===r||eP(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},tn=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],tr=["pre","script","style","textarea"],ta={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(eU,t,n)}}},to={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eP(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ti={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},ts={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,a=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(t){return e.enter("codeFencedFence"),eL(t)?eI(e,l,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(a){return a===r?(o++,e.consume(a),t):o>=s?(e.exit("codeFencedFenceSequence"),eL(a)?eI(e,u,"whitespace")(a):u(a)):n(a)}(t)):n(t)}function u(r){return null===r||eP(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},i=0,s=0;return function(t){var o;let u;return o=t,i=(u=a.events[a.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=o,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(a){return a===r?(s++,e.consume(a),t):s<3?n(a):(e.exit("codeFencedFenceSequence"),eL(a)?eI(e,l,"whitespace")(a):l(a))}(o)};function l(o){return null===o||eP(o)?(e.exit("codeFencedFence"),a.interrupt?t(o):e.check(ti,c,f)(o)):(e.enter("co
4deFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(a){return null===a||eP(a)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(a)):eL(a)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eI(e,u,"whitespace")(a)):96===a&&a===r?n(a):(e.consume(a),t)}(o))}function u(t){return null===t||eP(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(a){return null===a||eP(a)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(a)):96===a&&a===r?n(a):(e.consume(a),t)}(t))}function c(t){return e.attempt(o,f,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return i>0&&eL(t)?eI(e,m,"linePrefix",i+1)(t):m(t)}function m(t){return null===t||eP(t)?e.check(ti,c,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eP(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}}},tl=document.createElement("i");function tu(e){let t="&"+e+";";tl.innerHTML=t;let n=tl.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let tc={name:"characterReference",tokenize:function(e,t,n){let r,a,o=this,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,a=ek,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,a=eO,u):(e.enter("characterReferenceValue"),r=7,a=eT,u(t))}function u(s){if(59===s&&i){let r=e.exit("characterReferenceValue");return a!==ek||tu(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return a(s)&&i++<r?(e.consume(s),u):n(s)}}},td={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return eA(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},tp={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),eI(e,t,"linePrefix")}}};function tm(e,t,n){let r=[],a=-1;for(;++a<e.length;){let o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}let tf={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&ev(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,a,o,i=e.length,s=0;for(;i--;)if(n=e[i][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[i][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[i][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=i,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(a=i);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[a][1].end}},c={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[a-2][1].start}};return o=eb(o=[["enter",l,t],["enter",u,t]],e.slice(r+1,r+s+3)),o=eb(o,[["enter",c,t]]),o=eb(o,tm(t.parser.constructs.insideSpan.null,e.slice(r+s+4,a-3),t)),o=eb(o,[["exit",c,t],e[a-2],e[a-1],["exit",u,t]]),o=eb(o,e.slice(a+1)),o=eb(o,[["exit",l,t]]),ev(e,r,e.length,o),e},tokenize:function(e,t,n){let r,a,o=this,i=o.events.length;for(;i--;)if(("labelImage"===o.events[i][1].type||"labelLink"===o.events[i][1].type)&&!o.events[i][1]._balanced){r=o.events[i][1];break}return function(t){return r?r._inactive?c(t):(a=o.parser.defined.includes(e8(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(th,u,a?u:c)(t):91===t?e.attempt(tg,u,a?l:c)(t):a?u(t):c(t)}function l(t){return e.attempt(ty,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},th={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return eF(t)?e6(e,a)(t):a(t)}function a(t){return 41===t?u(t):e3(e,o,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return eF(t)?e6(e,s)(t):u(t)}function i(e){return n(e)}function s(t){return 34===t||39===t||40===t?e5(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return eF(t)?e6(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tg={tokenize:function(e,t,n){let r=this;return function(t){return e4.call(r,e,a,o,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(e8(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},ty={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tv={name:"labelStartImage",resolveAll:tf.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function tb(e){return null===e||eF(e)||ej(e)?1:eR(e)?2:void 0}let tD={name:"attention",resolveAll:function(e,t){let n,r,a,o,i,s,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
4n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[c][1].start};tE(d,-s),tE(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},i={type:s>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},a={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...i.end}},e[n][1].end={...o.start},e[c][1].start={...i.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=eb(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=eb(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",a,t]]),l=eb(l,tm(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=eb(l,[["exit",a,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=eb(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,ev(e,n-1,c-n+3,l),c=n+l.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,a=this.previous,o=tb(a);return function(i){return n=i,e.enter("attentionSequence"),function i(s){if(s===n)return e.consume(s),i;let l=e.exit("attentionSequence"),u=tb(s),c=!u||2===u&&o||r.includes(s),d=!o||2===o&&u||r.includes(a);return l._open=!!(42===n?c:c&&(o||!d)),l._close=!!(42===n?d:d&&(u||!c)),t(s)}(i)}}};function tE(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let t_={name:"labelStartLink",resolveAll:tf.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tw={42:eJ,43:eJ,45:eJ,48:eJ,49:eJ,50:eJ,51:eJ,52:eJ,53:eJ,54:eJ,55:eJ,56:eJ,57:eJ,62:e2},tx={91:{name:"definition",tokenize:function(e,t,n){let r,a=this;return function(t){var r;return e.enter("definition"),r=t,e4.call(a,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function o(t){return(r=e8(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return eF(t)?e6(e,s)(t):s(t)}function s(t){return e3(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(e9,u,u)(t)}function u(t){return eL(t)?eI(e,c,"whitespace")(t):c(t)}function c(o){return null===o||eP(o)?(e.exit("definition"),a.parser.defined.push(r),t(o)):n(o)}}}},tC={[-2]:e7,[-1]:e7,32:e7},tk={35:{name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),a-2>o&&"whitespace"===e[a][1].type&&(a-=2),"atxHeadingSequence"===e[a][1].type&&(o===a-1||a-4>o&&"whitespace"===e[a-2][1].type)&&(a-=o+1===a?2:4),a>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[a][1].end},r={type:"chunkText",start:e[o][1].start,end:e[a][1].end,contentType:"text"},ev(e,o,a-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(a){var o;return e.enter("atxHeading"),o=a,e.enter("atxHeadingSequence"),function a(o){return 35===o&&r++<6?(e.consume(o),a):null===o||eF(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eP(r)?(e.exit("atxHeading"),t(r)):eL(r)?eI(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eF(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(o)}}},42:eQ,45:[tt,eQ],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,a,o,i,s,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(i){return 33===i?(e.consume(i),c):47===i?(e.consume(i),a=!0,m):63===i?(e.consume(i),r=3,l.interrupt?t:P):eC(i)?(e.consume(i),o=String.fromCharCode(i),f):n(i)}function c(a){return 45===a?(e.consume(a),r=2,d):91===a?(e.consume(a),r=5,i=0,p):eC(a)?(e.consume(a),r=4,l.interrupt?t:P):n(a)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:P):n(r)}function p(r){let a="CDATA[";
4return r===a.charCodeAt(i++)?(e.consume(r),i===a.length)?l.interrupt?t:x:p:n(r)}function m(t){return eC(t)?(e.consume(t),o=String.fromCharCode(t),f):n(t)}function f(i){if(null===i||47===i||62===i||eF(i)){let s=47===i,u=o.toLowerCase();return!s&&!a&&tr.includes(u)?(r=1,l.interrupt?t(i):x(i)):tn.includes(o.toLowerCase())?(r=6,s)?(e.consume(i),h):l.interrupt?t(i):x(i):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(i):a?function t(n){return eL(n)?(e.consume(n),t):_(n)}(i):g(i))}return 45===i||ek(i)?(e.consume(i),o+=String.fromCharCode(i),f):n(i)}function h(r){return 62===r?(e.consume(r),l.interrupt?t:x):n(r)}function g(t){return 47===t?(e.consume(t),_):58===t||95===t||eC(t)?(e.consume(t),y):eL(t)?(e.consume(t),g):_(t)}function y(t){return 45===t||46===t||58===t||95===t||ek(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),b):eL(t)?(e.consume(t),v):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,D):eL(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eF(n)?v(n):(e.consume(n),t)}(t)}function D(t){return t===s?(e.consume(t),s=null,E):null===t||eP(t)?n(t):(e.consume(t),D)}function E(e){return 47===e||62===e||eL(e)?g(e):n(e)}function _(t){return 62===t?(e.consume(t),w):n(t)}function w(t){return null===t||eP(t)?x(t):eL(t)?(e.consume(t),w):n(t)}function x(t){return 45===t&&2===r?(e.consume(t),M):60===t&&1===r?(e.consume(t),T):62===t&&4===r?(e.consume(t),F):63===t&&3===r?(e.consume(t),P):93===t&&5===r?(e.consume(t),A):eP(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(ta,L,C)(t)):null===t||eP(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),x)}function C(t){return e.check(to,k,L)(t)}function k(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),S}function S(t){return null===t||eP(t)?C(t):(e.enter("htmlFlowData"),x(t))}function M(t){return 45===t?(e.consume(t),P):x(t)}function T(t){return 47===t?(e.consume(t),o="",O):x(t)}function O(t){if(62===t){let n=o.toLowerCase();return tr.includes(n)?(e.consume(t),F):x(t)}return eC(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),O):x(t)}function A(t){return 93===t?(e.consume(t),P):x(t)}function P(t){return 62===t?(e.consume(t),F):45===t&&2===r?(e.consume(t),P):x(t)}function F(t){return null===t||eP(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),F)}function L(n){return e.exit("htmlFlow"),t(n)}}},61:tt,95:eQ,96:ts,126:ts},tS={38:tc,92:td},tM={[-5]:tp,[-4]:tp,[-3]:tp,33:tv,38:tc,42:tD,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return eC(t)?(e.consume(t),o):64===t?n(t):s(t)}function o(t){return 43===t||45===t||46===t||ek(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,i):(43===n||45===n||46===n||ek(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function i(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eM(r)?n(r):(e.consume(r),i)}function s(t){return 64===t?(e.consume(t),l):eS(t)?(e.consume(t),s):n(t)}function l(a){return ek(a)?function a(o){return 46===o?(e.consume(o),r=0,l):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||ek(o))&&r++<63){let n=45===o?t:a;return e.consume(o),n}return n(o)}(o)}(a):n(a)}}},{name:"htmlText",tokenize:function(e,t,n){let r,a,o,i=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),D):63===t?(e.consume(t),v):eC(t)?(e.consume(t),_):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),a=0,m):eC(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):eP(t)?(o=c,O(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?T(e):45===e?d(e):c(e)}function m(t){let r="CDATA[";return t===r.charCodeAt(a++)?(e.consume(t),a===r.length?f:m):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),h):eP(t)?(o=f,O(t)):(e.consume(t),f)}function h(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?T(t):93===t?(e.consume(t),g):f(t)}function y(t){return null===t||62===t?T(t):eP(t)?(o=y,O(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):eP(t)?(o=v,O(t)):(e.consume(t),v)}function b(e){return 62===e?T(e):v(e)}function D(t){return eC(t)?(e.consume(t),E):n(t)}function E(t){return 45===t||ek(t)?(e.consume(t),E):function t(n){return eP(n)?(o=t,O(n)):eL(n)?(e.consume(n),t):T(n)}(t)}function _(t){return 45===t||ek(t)?(e.consume(t),_):47===t||62===t||eF(t)?
4w(t):n(t)}function w(t){return 47===t?(e.consume(t),T):58===t||95===t||eC(t)?(e.consume(t),x):eP(t)?(o=w,O(t)):eL(t)?(e.consume(t),w):T(t)}function x(t){return 45===t||46===t||58===t||95===t||ek(t)?(e.consume(t),x):function t(n){return 61===n?(e.consume(n),C):eP(n)?(o=t,O(n)):eL(n)?(e.consume(n),t):w(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,k):eP(t)?(o=C,O(t)):eL(t)?(e.consume(t),C):(e.consume(t),S)}function k(t){return t===r?(e.consume(t),r=void 0,M):null===t?n(t):eP(t)?(o=k,O(t)):(e.consume(t),k)}function S(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eF(t)?w(t):(e.consume(t),S)}function M(e){return 47===e||62===e||eF(e)?w(e):n(e)}function T(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return eL(t)?eI(e,P,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),o(t)}}}],91:t_,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eP(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},td],93:tf,95:tD,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,a=3;if(("lineEnding"===e[3][1].type||"space"===e[a][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=a;++t<r;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}}for(t=a-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,a,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),i(n))}(t)};function i(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),i):96===l?(a=e.enter("codeTextSequence"),r=0,function n(i){return 96===i?(e.consume(i),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(i)):(a.type="codeTextData",s(i))}(l)):eP(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||eP(t)?(e.exit("codeTextData"),i(t)):(e.consume(t),s)}}}},tT={null:[tD,eq]},tO={null:[42,95]},tA={null:[]},tP=/[\0\t\n\r]/g;function tF(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tR(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tF(n.slice(t?2:1),t?16:10)}return tu(n)||e}let tj={}.hasOwnProperty;function tN(e){return{line:e.line,column:e.column,offset:e.offset}}function tI(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+K({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+K({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+K({start:t.start,end:t.end})+") is still open")}function tB(e){let t=this;t.parser=function(n){var r,o;let i,s,l,u;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(o=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(f),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(m),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:r(m,a),codeText:r(function(){return{type:"inlineCode",value:""}},a),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(h),hardBreakTrailing:r(h),htmlFlow:r(g,a),htmlFlowData:u,htmlText:r(g,a),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:r(f),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:i(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:i(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:i(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tF(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=tu(n);let a=this.stack[this.stack.length-1];a.value+=t},characterReference:function(e){this.stack.pop().position.end=tN(e.end)},codeFenced:i(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:i(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:i(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:i(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e8(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:i(),hardBreakEscape:i(d),hardBreakTrailing:i(d),htmlFlow:i(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:i(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:i(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tL,tR),n.identifier=e8(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tN(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
4ype)&&(u.call(this,e),c.call(this,e))},link:i(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:i(),listOrdered:i(),listUnordered:i(),paragraph:i(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e8(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:i(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:i(),thematicBreak:i()}};!function e(t,n){let r=-1;for(;++r<n.length;){let a=n[r];Array.isArray(a)?e(t,a):function(e,t){let n;for(n in t)if(tj.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,a)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},i={stack:[r],tokenStack:[],config:t,enter:o,exit:s,buffer:a,resume:l,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,a,o,i,s=t-1,l=-1,u=!1;for(;++s<=n;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,i=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||i||l||o||(o=s),i=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:i=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let i=s;for(a=void 0;i--;){let t=e[i];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",a=i}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!a||o<a)&&(r._spread=!0),r.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){let a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=a,e.splice(s,0,["enter",a,t[2]]),s++,n++,o=void 0,i=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];tj.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},i),e[c][1])}if(i.tokenStack.length>0){let e=i.tokenStack[i.tokenStack.length-1];(e[1]||tI).call(i,void 0,e[0])}for(r.position={start:tN(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tN(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tN(t.start),end:void 0}}function i(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tI).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+K({start:e.start,end:e.end})+"): itâs not open");n.position.end=tN(e.end)}function l(){return eh(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tN(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tN(e.end)}function d(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function m(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function h(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(o)(function(e){for(;!e_(e););return e}((function(e){let t={constructs:ex([a,...(e||{}).extensions||[]]),content:n(eB),defined:[],document:n(ez),flow:n(e$),lazy:{}
4,string:n(eY),text:n(eK)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},a={},o=[],i=[],s=[],l={attempt:f(function(e,t){h(e,t.from)}),check:f(m),consume:function(e){eP(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===i[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=p(),u.events.push(["exit",t,u]),t},interrupt:f(m,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,a=[];for(;++r<e.length;){let o,i=e[r];if("string"==typeof i)o=i;else switch(i){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":" ";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(i)}n=-2===i,a.push(o)}return a.join("")}(d(e),t)},sliceStream:d,write:function(e){return(i=eb(i,e),function(){let e;for(;r._index<i.length;){let n=i[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==i[i.length-1])?[]:(h(t,0),u.events=tm(o,u.events,u),u.events)}},c=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,a=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;if(r===o)n=[e[r].slice(a,i)];else{if(n=e.slice(r,o),a>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(a):n.shift()}i>0&&n.push(e[o].slice(0,i))}return n}(i,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:a,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:a,offset:o}}function m(e,t){t.restore()}function f(e,t){return function(n,a,o){var i;let c,d,m,f;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):(i=n,function(e){let t=null!==e&&i[e],n=null!==e&&i.null;return h([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function h(e){return(c=e,d=0,0===e.length)?o:y(e[d])}function y(e){return function(n){let a,o,i,c,d;return(a=p(),o=u.previous,i=u.currentConstruct,c=u.events.length,d=Array.from(s),f={from:c,restore:function(){r=a,u.previous=o,u.currentConstruct=i,u.events.length=c,s=d,g()}},m=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?b(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,v,b)(n)}}function v(t){return e(m,f),a}function b(e){return(f.restore(),++d<c.length)?y(c[d]):o}}}function h(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&ev(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}(t,e,n)}}})(o).document().write((s=1,l="",u=!0,function(e,t,n){let r,a,o,c,d,p=[];for(e=l+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),o=0,l="",u&&(65279===e.charCodeAt(0)&&o++,u=void 0);o<e.length;){if(tP.lastIndex=o,c=(r=tP.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){l=e.slice(o);break}if(10===d&&o===c&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),o<c&&(p.push(e.slice(o,c)),s+=c-o),d){case 0:p.push(65533),s++;break;case 9:for(a=4*Math.ceil(s/4),p.push(-2);s++<a;)p.push(-1);break;case 10:p.push(-4),s=1;break;default:i=!0,s=1}o=c+1}return n&&(i&&p.push(-5),l&&p.push(l),p.push(null)),p})(n,r,!0))))}}let tz="object"==typeof self?self:globalThis,tH=(e,t)=>
4{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new tz[e](t)},tU=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=a=>{if(t.has(a))return t.get(a);let[o,i]=e[a];switch(o){case 0:case -1:return n(i,a);case 1:{let e=n([],a);for(let t of i)e.push(r(t));return e}case 2:{let e=n({},a);for(let[t,n]of i)e[r(t)]=r(n);return e}case 3:return n(new Date(i),a);case 4:{let{source:e,flags:t}=i;return n(new RegExp(e,t),a)}case 5:{let e=n(new Map,a);for(let[t,n]of i)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,a);for(let t of i)e.add(r(t));return e}case 7:{let{name:e,message:t}=i;return n(tH(e,t),a)}case 8:return n(BigInt(i),a);case"BigInt":return n(Object(BigInt(i)),a);case"ArrayBuffer":return n(new Uint8Array(i).buffer,i);case"DataView":{let{buffer:e}=new Uint8Array(i);return n(new DataView(e),i)}}return n(tH(o,i),a)})(0)},{toString:tV}={},{keys:tW}=Object,t$=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tV.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tq=([e,t])=>0===e&&("function"===t||"symbol"===t),tY=(e,{json:t,lossy:n}={})=>{var r,a,o;let i,s,l=[];return(r=!(t||n),a=!!t,o=new Map,i=(e,t)=>{let n=l.push(e)-1;return o.set(t,n),n},s=e=>{if(o.has(e))return o.get(e);let[t,n]=t$(e);switch(t){case 0:{let a=e;switch(n){case"bigint":t=8,a=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);a=null;break;case"undefined":return i([-1],e)}return i([t,a],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),i([n,[...t]],e)}let r=[],a=i([t,r],e);for(let t of e)r.push(s(t));return a}case 2:{if(n)switch(n){case"BigInt":return i([n,e.toString()],e);case"Boolean":case"Number":case"String":return i([n,e.valueOf()],e)}if(a&&"toJSON"in e)return s(e.toJSON());let o=[],l=i([t,o],e);for(let t of tW(e))(r||!tq(t$(e[t])))&&o.push([s(t),s(e[t])]);return l}case 3:return i([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return i([t,{source:n,flags:r}],e)}case 5:{let n=[],a=i([t,n],e);for(let[t,a]of e)(r||!(tq(t$(t))||tq(t$(a))))&&n.push([s(t),s(a)]);return a}case 6:{let n=[],a=i([t,n],e);for(let t of e)(r||!tq(t$(t)))&&n.push(s(t));return a}}let{message:l}=e;return i([t,{name:n,message:l}],e)})(e),l},tK="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tU(tY(e,t)):structuredClone(e):(e,t)=>tU(tY(e,t));function tG(e){let t=[],n=-1,r=0,a=0;for(;++n<e.length;){let o=e.charCodeAt(n),i="";if(37===o&&ek(e.charCodeAt(n+1))&&ek(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(i=String.fromCharCode(o,t),a=1):i="�"}else i=String.fromCharCode(o);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+a+1,i=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function tZ(e,t){let n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tX(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tQ=function(e){var t,n;if(null==e)return t0;if("function"==typeof e)return tJ(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tQ(e[n]);return tJ(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,tJ(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,tJ(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function tJ(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function t0(){return!0}let t1=[];function t2(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;let o=tQ(a),i=r?-1:1;(function e(a,s,l){let u=a&&"object"==typeof a?a:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;
4let c,d,p,m=t1;if((!t||o(a,s,l[l.length-1]||void 0))&&!1===(m=Array.isArray(u=n(a,l))?u:"number"==typeof u?[!0,u]:null==u?t1:[u])[0])return m;if("children"in a&&a.children&&a.children&&"skip"!==m[0])for(d=(r?a.children.length:-1)+i,p=l.concat(a);d>-1&&d<a.children.length;){if(!1===(c=e(a.children[d],d,p)())[0])return c;d="number"==typeof c[1]?c[1]:d+i}return m}})(e,void 0,[])()}function t3(e,t,n,r){let a,o,i;"function"==typeof t&&"function"!=typeof n?(o=void 0,i=t,a=n):(o=t,i=n,a=r),t2(e,o,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return i(e,r,n)},a)}function t4(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let a=e.all(t),o=a[0];o&&"text"===o.type?o.value="["+o.value:a.unshift({type:"text",value:"["});let i=a[a.length-1];return i&&"text"===i.type?i.value+=r:a.push({type:"text",value:r}),a}function t5(e){let t=e.spread;return null==t?e.children.length>1:t}function t6(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}let t8={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),o=tG(a.toLowerCase()),i=e.footnoteOrder.indexOf(a),s=e.footnoteCounts.get(a);void 0===s?(s=0,e.footnoteOrder.push(a),n=e.footnoteOrder.length):n=i+1,s+=1,e.footnoteCounts.set(a,s);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t4(e,t);let a={src:tG(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);let o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tG(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t4(e,t);let a={href:tG(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);let o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tG(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=t5(n[r])}return t}(n):t5(t),o={},i=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){let e=r[s];(a||0!==s||"element"!==e.type||"p"!==e.tagName)&&i.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?i.push(e):i.push(...e.children)}let l=r[r.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&i.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:i};
4return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<r.length;){let e=r[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),a=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=q(t.children[1]),i=$(t.children[t.children.length-1]);o&&i&&(r.position={start:o,end:i}),a.push(r)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,i=o?o.length:t.children.length,s=-1,l=[];for(;++s<i;){let n=t.children[s],r={},i=o?o[s]:void 0;i&&(r.align=i);let u={type:"element",tagName:a,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),a=0,o=[];for(;r;)o.push(t6(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(t6(t.slice(a),a>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t9,yaml:t9,definition:t9,footnoteDefinition:t9};function t9(){}let t7={}.hasOwnProperty,ne={};function nt(e,t){e.position&&(t.position=function(e){let t=q(e),n=$(e);if(t&&n)return{start:t,end:n}}(e))}function nn(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&a&&Object.assign(n.properties,tK(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nr(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function na(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function no(e,t){let n,r,a,o,i=(n=t||ne,r=new Map,a=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let a=o.one(n[r],e);if(a){if(r&&"break"===n[r-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=na(a.value)),!Array.isArray(a)&&"element"===a.type)){let e=a.children[0];e&&"text"===e.type&&(e.value=na(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:nn,definitionById:r,footnoteById:a,footnoteCounts:new Map,footnoteOrder:[],handlers:{...t8,...n.handlers},one:function(e,t){let n=e.type,r=o.handlers[n];if(t7.call(o.handlers,n)&&r)return r(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tK(n);return r.children=o.all(e),r}return tK(e)}return(o.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(t7.call(n,"hProperties")||t7.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(o,e,t)},options:n,patch:nt,wrap:nr},t3(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}
4),o),s=i.one(e,void 0),l=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tZ,r=e.options.footnoteBackLabel||tX,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;let o=e.all(a),i=String(a.identifier).toUpperCase(),u=tG(i.toLowerCase()),c=0,d=[],p=e.footnoteCounts.get(i);for(;void 0!==p&&++c<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let m=o[o.length-1];if(m&&"element"===m.type&&"p"===m.tagName){let e=m.children[m.children.length-1];e&&"text"===e.type?e.value+=" ":m.children.push({type:"text",value:" "}),m.children.push(...d)}else o.push(...d);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(a,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tK(i),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(i),u=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return l&&u.children.push({type:"text",value:"\n"},l),u}function ni(e,t){return e&&"run"in e?async function(n,r){let a=no(n,{file:r,...t});await e.run(a,r)}:function(n,r){return no(n,{file:r,...e||t})}}function ns(e){if(e)throw e}var nl=n(99735);function nu(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let nc=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');nf(e);let r=0,a=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let i=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(a=o):(s=-1,a=i));return r===a?a=i:a<0&&(a=e.length),e.slice(r,a)},nd=function(e){let t;if(nf(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},np=function(e){let t;nf(e);let n=e.length,r=-1,a=0,o=-1,i=0;for(;n--;){let s=e.codePointAt(n);if(47===s){if(t){a=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==i&&(i=1):o>-1&&(i=-1)}return o<0||r<0||0===i||1===i&&o===r-1&&o===a+1?"":e.slice(o,r)},nm=function(...e){var t;let n,r,a,o=-1;for(;++o<e.length;)nf(e[o]),e[o]&&(a=void 0===a?e[o]:a+"/"+e[o]);return void 0===a?".":(nf(t=a),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,a="",o=0,i=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(i===l-1||1===s);else if(i!==l-1&&2===s){if(a.length<2||2!==o||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2)){if(a.length>2){if((r=a.lastIndexOf("/"))!==a.length-1){r<0?(a="",o=0):o=(a=a.slice(0,r)).length-1-a.lastIndexOf("/"),i=l,s=0;continue}}else if(a.length>0){a="",o=0,i=l,s=0;continue}}t&&(a=a.length>0?a+"/..":"..",o=2)}else a.length>0?a+="/"+e.slice(i+1,l):a=e.slice(i+1,l),o=l-i-1;i=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function nf(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function nh(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let ng=["history","path","basename","stem","extname","dirname"];class ny{constructor(e){let t,n;t=e?nh(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ng.length;){const e=ng[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)ng.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?nc(this.path):void 0}
4set basename(e){nb(e,"basename"),nv(e,"basename"),this.path=nm(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?nd(this.path):void 0}set dirname(e){nD(this.basename,"dirname"),this.path=nm(e||"",this.basename)}get extname(){return"string"==typeof this.path?np(this.path):void 0}set extname(e){if(nv(e,"extname"),nD(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=nm(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nh(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!nh(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),nb(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?nc(this.path,this.extname):void 0}set stem(e){nb(e,"stem"),nv(e,"stem"),this.path=nm(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Q(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nv(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function nb(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nD(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nE=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},n_={}.hasOwnProperty;class nw extends nE{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function a(o,...i){let s=e[++n],l=-1;if(o)return void r(o);for(;++l<t.length;)(null===i[l]||void 0===i[l])&&(i[l]=t[l]);t=i,s?(function(e,t){let n;return function(...t){let o,i=e.length>t.length;i&&t.push(r);try{o=e.apply(this,t)}catch(e){if(i&&n)throw e;return r(e)}i||(o&&o.then&&"function"==typeof o.then?o.then(a,r):o instanceof Error?r(o):a(o))};function r(e,...a){n||(n=!0,t(e,...a))}function a(e){r(null,e)}})(s,a)(...i):r(null,...i)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nw,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(nl(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nS("data",this.frozen),this.namespace[e]=t,this):n_.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nS("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=nO(e),n=this.parser||this.Parser;return nC("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),nC("process",this.parser||this.Parser),nk("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){let o=nO(e),i=n.parse(o);function s(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(i,o,function(e,t,r){var a,o;if(e||!t||!r)return s(e);let i=n.stringify(t,r);"string"==typeof(a=i)||(o=a)&&"object"==typeof o&&"byteLength"in o&&"byteOffset"in o?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),nC("processSync",this.parser||this.Parser),nk("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,ns(e),t=r}),nT("processSync","process",n),t}
4run(e,t,n){nM(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,o){let i=nO(t);r.run(e,i,function(t,r,i){let s=r||e;t?o(t):a?a(s):n(void 0,s,i)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){ns(e),n=t,r=!0}),nT("runSync","run",r),n}stringify(e,t){this.freeze();let n=nO(t),r=this.compiler||this.Compiler;return nk("stringify",r),nM(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nS("use",this.frozen),null==e);else if("function"==typeof e)i(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function a(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=nl(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)i(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;i(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function i(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,i=n[a][1];nu(i)&&nu(r)&&(r=nl(!0,i,r)),n[a]=[e,r,...o]}}}}let nx=new nw().freeze();function nC(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nk(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nS(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nM(e){if(!nu(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nT(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nO(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new ny(e)}let nA=[],nP={allowDangerousHtml:!0},nF=/^(https?|ircs?|mailto|xmpp)$/i,nL=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nR(e){var t;let n,r,a,o,i,s=(n=(t=e).rehypePlugins||nA,r=t.remarkPlugins||nA,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...nP}:nP,nx().use(tB).use(r).use(ni,a).use(n)),l=(o=e.children||"",i=new ny,"string"==typeof o&&(i.value=o),i);return function(e,t){let n=t.allowedElements,r=t.allowElement,a=t.components,o=t.disallowedElements,i=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||nj;for(let e of nL)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:"root"===e.type?e.children:[e]}),t3(e,function(e,t,a){if("raw"===e.type&&a&&"number"==typeof t)return i?a.children.splice(t,1):a.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ep)if(Object.hasOwn(ep,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ep[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let i=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!i&&r&&"number"==typeof t&&(i=!r(e,t,a)),i&&a&&"number"==typeof t)return s&&e.children?a.children.splice(t,1,...e.children):a.children.splice(t,1),t}}),function(e,t){var n,r,a,o;let i;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=s,r=t.jsxDEV,i=function(e,t,a,o){let i=Array.isArray(a.children),s=q(e);return r(t,a,o,i,{columnNumber:s?s.column-1:void 0,fileName:n,lineNumber:s?s.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
4if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");a=t.jsx,o=t.jsxs,i=function(e,t,n,r){let i=Array.isArray(n.children)?o:a;return r?i(t,n,r):i(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?N:j,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=eo(l,e,void 0);return u&&"string"!=typeof u?u:l.create(e,l.Fragment,{children:u||void 0},void 0)}(e,{Fragment:em.Fragment,components:a,ignoreInvalidStyle:!0,jsx:em.jsx,jsxs:em.jsxs,passKeys:!0,passNode:!0})}(s.runSync(s.parse(l),l),e)}function nj(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return -1===t||-1!==a&&t>a||-1!==n&&t>n||-1!==r&&t>r||nF.test(e.slice(0,t))?e:""}var nN=n(97970),nI=n(61330),nB=n.n(nI);function nz(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}let nH="phrasing",nU=["autolink","link","image","label"];function nV(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function nW(e){this.config.enter.autolinkProtocol.call(this,e)}function n$(e){this.config.exit.autolinkProtocol.call(this,e)}function nq(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function nY(e){this.config.exit.autolinkEmail.call(this,e)}function nK(e){this.exit(e)}function nG(e){!function(e,t,n){let r=tQ((n||{}).ignore||[]),a=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var a;let e=n[r];t.push(["string"==typeof(a=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(a),"g"):a,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),o=-1;for(;++o<a.length;)t2(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){let e=t[i],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=a[o][0],i=a[o][1],s=0,l=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,a={index:d.index,input:d.input,stack:[...t,e]},o=i(...d,a);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&c.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?c.push(...o):o&&c.push(o),s=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(s<e.value.length&&c.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...c)):c=[e],l+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,nZ],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,nX]],{ignore:["link","linkReference"]})}function nZ(e,t,n,r,a){let o,i="";if(!nQ(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),(o=n.split(".")).length<2||o[o.length-1]&&(/_/.test(o[o.length-1])||!/[a-zA-Z\d]/.test(o[o.length-1]))||o[o.length-2]&&(/_/.test(o[o.length-2])||!/[a-zA-Z\d]/.test(o[o.length-2])))return!1;let s=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),a=nz(e,"("),o=nz(e,")");for(;-1!==r&&a>o;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),o++;return[e,n]}(n+r);if(!s[0])return!1;let l={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function nX(e,t,n,r){return!(!nQ(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function nQ(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||ej(n)||eR(n))&&(!t||47!==n)}function nJ(){this.buffer()}function n0(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function n1(){this.buffer()}function n2(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function n3(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=e8(this.sliceSerialize(e)).toLowerCase(),n.label=t}function n4(e){this.exit(e)}function n5(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=e8(this.sliceSerialize(e)).toLowerCase(),n.label=t}function n6(e){this.exit(e)}function n8(e,t,n,r){let a=n.createTracker(r),o=a.move("[^"),i=n.enter("footnoteReference"),s=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),i(),o+=a.move("]")}function n9(e,t,n){return 0===t?e:n7(e,t,n)}
4function n7(e,t,n){return(n?"":" ")+e}n8.peek=function(){return"["};let re=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function rt(e){this.enter({type:"delete",children:[]},e)}function rn(e){this.exit(e)}function rr(e,t,n,r){let a=n.createTracker(r),o=n.enter("strikethrough"),i=a.move("~~");return i+=n.containerPhrasing(e,{...a.current(),before:i,after:"~"}),i+=a.move("~~"),o(),i}function ra(e){return e.length}function ro(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}rr.peek=function(){return"~"};function ri(e,t,n){let r=e.value||"",a="`",o=-1;for(;RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){let e,t=n.unsafe[o],a=n.compilePattern(t);if(t.atBreak)for(;e=a.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return a+r+a}ri.peek=function(){return"`"};tQ(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let rs=function(e,t,n,r){let a=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),o=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let i=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));let s=n.createTracker(r);s.move(o+" ".repeat(i-o.length)),s.shift(i);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(i))+e:(n?o:o+" ".repeat(i-o.length))+e});return l(),u};function rl(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function ru(e){this.exit(e),this.data.inTable=void 0}function rc(e){this.enter({type:"tableRow",children:[]},e)}function rd(e){this.exit(e)}function rp(e){this.enter({type:"tableCell",children:[]},e)}function rm(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rf));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function rf(e,t){return"|"===t?t:e}function rh(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function rg(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let r,a=t.children,o=-1;for(;++o<a.length;){let e=a[o];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function ry(e,t,n,r){let a=e.children[0],o="boolean"==typeof e.checked&&a&&"paragraph"===a.type,i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(i);let l=rs(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+i})),l}let rv={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),a):n(o)};function a(e){return null===e?n(e):t(e)}},partial:!0},rb={tokenize:function(e,t,n){let r,a,o;return i;function i(t){return 46===t||95===t?e.check(rE,l,s)(t):null===t||eF(t)||ej(t)||45!==t&&eR(t)?l(t):(o=!0,e.consume(t),i)}function s(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),i}function l(e){return a||r||!o?n(e):t(e)}},partial:!0},rD={tokenize:function(e,t){let n=0,r=0;return a;function a(i){return 40===i?(n++,e.consume(i),a):41===i&&r<n?o(i):33===i||34===i||38===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||60===i||63===i||93===i||95===i||126===i?e.check(rE,t,o)(i):null===i||eF(i)||ej(i)?t(i):(e.consume(i),a)}function o(t){return 41===t&&r++,e.consume(t),a}},partial:!0},rE={tokenize:function(e,t,n){return r;function r(i){return 33===i||34===i||39===i||41===i||42===i||44===i||46===i||58===i||59===i||63===i||95===i||126===i?(e.consume(i),r):38===i?(e.consume(i),o):93===i?(e.consume(i),a):60===i||null===i||eF(i)||ej(i)?t(i):n(i)}function a(e){return null===e||40===e||91===e||eF(e)||ej(e)?t(e):r(e)}function o(t){return eC(t)?function t(a){return 59===a?(e.consume(a),r):eC(a)?(e.consume(a),t):n(a)}(t):n(t)}},partial:!0},r_={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return ek(e)?n(e):t(e)}},partial:!0},rw={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!rM.call(r,r.previous)||rP(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rv,e.attempt(rb,e.attempt(rD,a),n),n)(t))};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:rM},rx={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,a="",o=!1;return function(t){return(72===t||104===t)&&rT.call(r,r.previous)&&!rP(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),i):n(t)};function i(t){if(eC(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),i;if(58===t){let n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o)?l:(o=!0,s):n(t)}function l(t){return null===t||eM(t)||eF(t)||ej(t)||eR(t)?n(t):e.attempt(rb,e.attempt(rD,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:rT},rC={name:"emailAutolink",tokenize:function(e,t,n){let r,a,o=this;return function(t){return!rA(t)||!rO.call(o,o.previous)||rP(o.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return rA(r)?(e.consume(r),t):64===r?(e.consume(r),i):n(r)}(t))};function i(t){return 46===t?e.check(r_,l,s)(t):45===t||95===t||ek(t)?(a=!0,e.consume(t),i):l(t)}function s(t){return e.consume(t),r=!0,i}function l(i){return a&&r&&eC(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(i)):n(i)}},previous:rO},rk={},rS=48;for(;rS<123;)rk[rS]=rC,58==++rS?rS=65:91===rS&&(rS=97);function rM(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||eF(e)}function rT(e){return!eC(e)}function rO(e){return!(47===e||rA(e))}function rA(e){return 43===e||45===e||46===e||95===e||ek(e)}function rP(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}rk[43]=rC,rk[45]=rC,rk[46]=rC,rk[95]=rC,rk[72]=[rC,rx],rk[104]=[rC,rx],rk[87]=[rC,rw],rk[119]=[rC,rw];let rF={tokenize:function(e,t,n){let r=this;return eI(e,function(e){let a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function rL(e,t,n){let r,a=this,o=a.events.length,i=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);for(;o--;){let e=a.events[o][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}
4return function(o){if(!r||!r._balanced)return n(o);let s=e8(a.sliceSerialize({start:r.end,end:a.now()}));return 94===s.codePointAt(0)&&i.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function rR(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function rj(e,t,n){let r,a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(i>999||93===s&&!r||null===s||91===s||eF(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return o.includes(e8(a.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return eF(s)||(r=!0),i++,e.consume(s),92===s?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),i++,l):l(t)}}function rN(e,t,n){let r,a,o=this,i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(s>999||93===t&&!a||null===t||91===t||eF(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=e8(o.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return eF(t)||(a=!0),s++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(r)||i.push(r),eI(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function rI(e,t,n){return e.check(eU,t,e.attempt(rF,t,n))}function rB(e){e.exit("gfmFootnoteDefinition")}class rz{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0!==n||0!==r.length){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function rH(e,t,n){let r,a=this,o=0,i=0;return function(e){let t=a.events.length-1;for(;t>-1;){let e=a.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?a.events[t][1].type:null,o="tableHead"===r||"tableRow"===r?v:s;return o===v&&a.parser.lazy[a.now().line]?n(e):o(e)};function s(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,i+=1),l(n)}function l(t){return null===t?n(t):eP(t)?i>1?(i=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):eL(t)?eI(e,l,"whitespace")(t):(i+=1,r&&(r=!1,o+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),u(t))}function u(t){return null===t||124===t||eF(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(a.interrupt=!1,a.parser.lazy[a.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,eL(t))?eI(e,p,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?f(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),m):n(t)}function m(t){return eL(t)?eI(e,f,"whitespace")(t):f(t)}
4function f(t){return 58===t?(i+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),h):45===t?(i+=1,h(t)):null===t||eP(t)?y(t):n(t)}function h(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return eL(t)?eI(e,y,"whitespace")(t):y(t)}function y(a){if(124===a)return p(a);if(null===a||eP(a))return r&&o===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(a)):n(a);return n(a)}function v(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||eP(n)?(e.exit("tableRow"),t(n)):eL(n)?eI(e,b,"whitespace")(n):(e.enter("data"),D(n))}function D(t){return null===t||124===t||eF(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?E:D)}function E(t){return 92===t||124===t?(e.consume(t),D):D(t)}}function rU(e,t){let n,r,a,o=-1,i=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,p=new rz;for(;++o<e.length;){let m=e[o],f=m[1];"enter"===m[0]?"tableHead"===f.type?(c=!1,0!==d&&(rW(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(i=!0,a=void 0,l=[0,0,0,0],u=[0,o+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):s&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(i=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],a=rV(p,t,l,s,void 0,a),l=[0,0,0,0]),u[2]=o)):"tableCellDivider"===f.type&&(i?i=!1:(0!==l[1]&&(u[0]=u[1],a=rV(p,t,l,s,void 0,a)),u=[(l=u)[1],o,0,0])):"tableHead"===f.type?(c=!0,d=o):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=o,0!==l[1]?(u[0]=u[1],a=rV(p,t,l,s,o,a)):0!==u[1]&&(a=rV(p,t,u,s,o,a)),s=0):s&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(u[3]=o)}for(0!==d&&rW(p,t,d,n,r),p.consume(t.events),o=-1;++o<t.events.length;){let e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}(t.events,o))}return e}function rV(e,t,n,r,a,o){0!==n[0]&&(o.end=Object.assign({},r$(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));let i=r$(t.events,n[1]);if(o={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},i),end:Object.assign({},i)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){let a=r$(t.events,n[2]),o=r$(t.events,n[3]),i={type:"tableContent",start:Object.assign({},a),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",i,t]]),2!==r){let r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",i,t]])}return void 0!==a&&(o.end=Object.assign({},r$(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function rW(e,t,n,r,a){let o=[],i=r$(t.events,n);a&&(a.end=Object.assign({},i),o.push(["exit",a,t])),r.end=Object.assign({},i),o.push(["exit",r,t]),e.add(n+1,0,o)}function r$(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let rq={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a):n(t)};function a(t){return eF(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return eP(r)?t(r):eL(r)?e.check({tokenize:rY},t,n)(r):n(r)}}};function rY(e,t,n){return eI(e,function(e){return null===e?n(e):t(e)},"whitespace")}let rK={};function rG(e){let t,n,r,a=e||rK,o=this.data(),i=o.micromarkExtensions||(o.micromarkExtensions=[]),s=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),l=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);i.push(ex([{text:rk},{document:{91:{name:"gfmFootnoteDefinition",tokenize:rN,continuation:{tokenize:rI},exit:rB}},text:{91:{name:"gfmFootnoteCall",tokenize:rj},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:rL,resolveTo:rR}}},(t=(a||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let a=this.previous,o=this.events,i=0;return function(s){return 126===a&&"characterEscape"!==o[o.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function o(s){let l=tb(a);if(126===s)return i>1?r(s):(e.consume(s),i++,o);if(i<2&&!t)return r(s);let u=e.exit("strikethroughSequenceTemporary"),c=tb(s);return u._open=!c||2===c&&!!l,u._close=!l||2===l&&!!c,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&ev(i,i.length,0,tm(s,e.slice(r+1,n),t)),ev(i,i.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]
4),ev(e,r-1,n-r+3,i),n=r+i.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:rH,resolveAll:rU}}},{text:{91:rq}}])),s.push([{transforms:[nG],enter:{literalAutolink:nV,literalAutolinkEmail:nW,literalAutolinkHttp:nW,literalAutolinkWww:nW},exit:{literalAutolink:nK,literalAutolinkEmail:nY,literalAutolinkHttp:n$,literalAutolinkWww:nq}},{enter:{gfmFootnoteCallString:nJ,gfmFootnoteCall:n0,gfmFootnoteDefinitionLabelString:n1,gfmFootnoteDefinition:n2},exit:{gfmFootnoteCallString:n3,gfmFootnoteCall:n4,gfmFootnoteDefinitionLabelString:n5,gfmFootnoteDefinition:n6}},{canContainEols:["delete"],enter:{strikethrough:rt},exit:{strikethrough:rn}},{enter:{table:rl,tableData:rp,tableHeader:rp,tableRow:rc},exit:{codeText:rm,table:ru,tableData:rd,tableHeader:rd,tableRow:rd}},{exit:{taskListCheckValueChecked:rh,taskListCheckValueUnchecked:rh,paragraph:rg}}]),l.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:nH,notInConstruct:nU},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:nH,notInConstruct:nU},{character:":",before:"[ps]",after:"\\/",inConstruct:nH,notInConstruct:nU}]},(r=!1,a&&a.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,a){let o=n.createTracker(a),i=o.move("[^"),s=n.enter("footnoteDefinition"),l=n.enter("label");return i+=o.move(n.safe(n.associationId(e),{before:i,after:"]"})),l(),i+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),i+=o.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,o.current()),r?n7:n9))),s(),i},footnoteReference:n8},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:re}],handlers:{delete:rr}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=ri(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){let r=e.children,a=-1,o=[],i=t.enter("table");for(;++a<r.length;)o[a]=l(r[a],t,n);return i(),o}(e,n,r),e.align)},tableCell:i,tableRow:function(e,t,n,r){let a=s([l(e,n,r)]);return a.slice(0,a.indexOf("\n"))}}};function i(e,t,n,r){let a=n.enter("tableCell"),i=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return i(),a(),s}function s(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),a=n.stringLength||ra,o=[],i=[],s=[],l=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],o=-1;for(e[c].length>u&&(u=e[c].length);++o<e[c].length;){var d;let i=null==(d=e[c][o])?"":String(d);if(!1!==n.alignDelimiters){let e=a(i);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(i)}i[c]=t,s[c]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++p<u;)o[p]=ro(r[p]);else{let e=ro(r);for(;++p<u;)o[p]=e}p=-1;let m=[],f=[];for(;++p<u;){let e=o[p],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length),i=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&((a=t.length+a+r.length)>l[p]&&(l[p]=a),f[p]=a),m[p]=i}i.splice(1,0,m),s.splice(1,0,f),c=-1;let h=[];for(;++c<i.length;){let e=i[c],t=s[c];p=-1;let r=[];for(;++p<u;){let a=e[p]||"",i="",s="";if(!1!==n.alignDelimiters){let e=l[p]-(t[p]||0),n=o[p];114===n?i=" ".repeat(e):99===n?e%2?(i=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=i=" ".repeat(e/2):s=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==a)&&(!1!==n.delimiterStart||p)&&r.push(" "),!1!==n.alignDelimiters&&r.push(i),r.push(a),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||p!==u-1)&&r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){let r=e.children,a=-1,o=[],s=t.enter("tableRow");for(;++a<r.length;)o[a]=i(r[a],e,t,n);return s(),o}}(a),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ry}}]})}var rZ=n(69241),rX=n(57321);let rQ=function(e){if(null==e)return r0;if("string"==typeof e){var t;return t=e,rJ(function(e){return e.tagName===t})}if("object"==typeof e){var n=e;let t=[],r=-1;for(;++r<n.length;)t[r]=rQ(n[r]);return rJ(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}if("function"==typeof e)return rJ(e);throw Error("Expected function, string, or array as `test`")};function rJ(e){return function(t,n,r){var a;return!!(null!==(a=t)&&"object"==typeof a&&"type"in a&&"tagName"in a&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function r0(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let r1={},r2=["math","script","style","svg","title"];function r3(e,t,n){let r=rQ((n||r1).ignore||r2),a=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var a;let e=n[r];t.push(["string"==typeof(a=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(a),"g"):a,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),o=-1;for(;++o<a.length;)t2(e,"text",i);function i(e,t){let n,i=-1;for(;++i<t.length;){let e=t[i],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=a[o][0],i=a[o][1],s=0,l=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,a={index:d.index,input:d.input,stack:[...t,e]},o=i(...d,a);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(s!==n&&c.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(o)?c.push(...o):o&&c.push(o),s=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(s<e.value.length&&c.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...c)):c=[e],l+c.length}(e,t)}}function r4(e,t,n){let r={type:String(e)};return null==n&&("string"==typeof t||Array.isArray(t))?n=t:Object.assign(r,t),Array.isArray(n)?r.children=n:null!=n&&(r.value=String(n)),r}var r5=n(3307),r6=n.n(r5);let r8=()=>{let e=e=>r4("element",{properties:{},tagName:"emoji"},[r4("text",e)]);return t=>r3(t,[r6()(),e])},r9=e=>{"html"===e.type&&(e.type="text")},r7=e=>{t3(e,r9)},ae=()=>
4r7,at=(e,t,n)=>{if(!(t&&n&&e.position))return;let r=n.children.at(t-1);if(!r?.position||e.position.start.line===r.position.start.line)return;let a=e.position.start.line-r.position.end.line-1;if(a<1)return;let o=Array.from({length:a},()=>r4("break",{tagName:"br"}));n.children=[...n.children.slice(0,t),...o,...n.children.slice(t)]},an=e=>{t3(e,at)},ar=()=>an;class aa extends o.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e,t)}render(){return this.state.hasError?this.props.fallback:this.props.children}}let ao=["html","text","br","p","em","strong","a","ol","ul","li","code","pre","blockquote","del","table","thead","tbody","th","tr","td","tfoot","emoji","mention"];function ai(e){try{return encodeURI(decodeURIComponent(e))}catch(t){return e}}let as=e=>e.startsWith("app://")?e:nj(e),al=e=>e,au={a:({children:e,href:t})=>{let n=t?.startsWith("mailto:"),r=t?.startsWith("http");return t&&(n||r)?o.createElement("a",{className:(0,rZ.A)({"str-chat__message-url-link":r}),href:t,rel:"nofollow noreferrer noopener",target:"_blank"},e):o.createElement(o.Fragment,null,e)},emoji:({children:e})=>o.createElement("span",{className:"inline-text-emoji","data-testid":"inline-text-emoji"},e),mention:({children:e,node:{mentionedUser:t}})=>o.createElement("span",{className:"str-chat__message-mention","data-user-id":t.id},e)},ac=(e,t,{allowedTagNames:n=ao,customMarkDownRenderers:r,getRehypePlugins:a=al,getRemarkPlugins:i=al}={})=>{if(!e)return null;if(1===e.trim().length)return o.createElement(o.Fragment,null,e);let s=e,l=(0,rX.Mf)(s),u=(0,rX.NP)(s);nB()([...(0,nN.I6)(s,"email"),...(0,nN.I6)(s,"url")],"value").forEach(({href:e,type:n,value:r})=>{let a=u.some(e=>e?.includes(r));if(!((l&&l.filter(t=>{let n=e?.replace(rX.ko,""),r=t?.replace(rX.ko,"");return!!n&&!!r&&(n.includes(r)||r.includes(n))})).length>0)&&!a)try{if("email"===n&&t&&t.some(e=>e.name===r)){s=s.replace(RegExp((0,rX.Nt)(r),"g"),(t,n)=>"@"===s.charAt(n-1)?t:`[${t}](${ai(e)})`);return}let a="email"===n?r:function(e){try{return decodeURIComponent(e).replace(rX.ko,"")}catch(t){return e}}(e);
4s=s.replace(RegExp((0,rX.Nt)(r),"g"),`[${a}](${ai(e)})`)}catch(e){}});let c=[r8];return t?.length&&c.push(()=>{let e=t.map(e=>e.name||e.id).filter(Boolean).map(rX.Nt),n=RegExp(e.map(e=>`@${e}`).join("|"),"g"),r=e=>{let n=e.replace("@","");return r4("element",{mentionedUser:t.find(({id:e,name:t})=>t===n||e===n),properties:{},tagName:"mention"},[r4("text",e)])};return t=>{e.length&&(t3(t,(e,t,n)=>{if(void 0===t||!n)return;let r=n.children.at(t+1),a=r?.properties?.href;if("text"===e.type&&/.?\s?@$|^@$/.test(e.value)&&a?.startsWith("mailto:")){let r=e.value.replace(/@$/,""),o=a.replace("mailto:","");n.children[t]=r4("text",r),n.children[t+1]=r4("text",`@${o}`)}}),r3(t,[n,r]))}}),o.createElement(aa,{fallback:o.createElement(o.Fragment,null,e)},o.createElement(nR,{allowedElements:n,components:{...au,...r},rehypePlugins:a(c),remarkPlugins:i([ae,ar,[rG,{singleTilde:!1}]]),skipHtml:!0,unwrapDisallowed:!0,urlTransform:as},s))}},85190:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(10810);function a(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},85318:(e,t,n)=>{var r=n(12883).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},85421:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(14232),a=n(69241);let o=r.memo(e=>{let{active:t,children:n,className:o,type:i}=e;return t?r.createElement("div",{"aria-live":"polite",className:(0,a.A)(`str-chat__custom-notification notification-${i}`,"str-chat__notification","str-chat-react__notification",o),"data-testid":"custom-notification"},n):null});var i=n(7970),s=n(27475);let l=r.memo(()=>{let{client:e}=(0,i.vd)("ConnectionStatus"),{t}=(0,s.WR)("ConnectionStatus"),[n,a]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{let t=({online:e=!1})=>{n!==e&&a(e)};return e.on("connection.changed",t),()=>e.off("connection.changed",t)},[e,n]),r.createElement(o,{active:!n,className:"str-chat__connection-status-notification",type:"error"},t("Connection failure, reconnecting now..."))}),u=e=>{let{hasNewMessages:t,isMessageListScrolledToBottom:n,isNotAtLatestMessageSet:a,MessageNotification:i,notifications:u,scrollToBottom:c,threadList:d,unreadCount:p}=e,{t:m}=(0,s.WR)("MessageListNotifications");return r.createElement("div",{className:"str-chat__list-notifications"},u.map(e=>r.createElement(o,{active:!0,key:e.id,type:e.type},e.text)),r.createElement(l,null),r.createElement(i,{isMessageListScrolledToBottom:n,onClick:c,showNotification:t||a,threadList:d,unreadCount:p},m(a?"Latest Messages":"New Messages!")))}},86153:(e,t,n)=>{"use strict";n.d(t,{Y:()=>i});var r=n(14232),a=n(27475),o=n(86195);let i=r.memo(e=>{let{calendar:t,date:n,formatDate:i,position:s="right",unread:l,...u}=e,{t:c,tDateTimeParser:d}=(0,a.WR)("DateSeparator"),p=(0,o.sq)({calendar:t,...u,formatDate:i,messageCreatedAt:n,t:c,tDateTimeParser:d,timestampTranslationKey:"timestamp/DateSeparator"});return r.createElement("div",{className:"str-chat__date-separator","data-testid":"date-separator"},("right"===s||"center"===s)&&r.createElement("hr",{className:"str-chat__date-separator-line"}),r.createElement("div",{className:"str-chat__date-separator-date"},l?`${c("New")} - ${p}`:p),("left"===s||"center"===s)&&r.createElement("hr",{className:"str-chat__date-separator-line"}))})},86195:(e,t,n)=>{"use strict";n.d(t,{$P:()=>i,Ir:()=>l,Ou:()=>u,Rh:()=>d,gt:()=>o,sq:()=>s,uu:()=>c});var r=n(56557),a=n.n(r);let o=e=>!!e?.isSame,i=e=>!!e?.getMonth;function s({calendar:e,calendarFormats:t,format:n,formatDate:r,messageCreatedAt:a,t:l,tDateTimeParser:u,timestampTranslationKey:c}){if(!a||"string"==typeof a&&!Date.parse(a))return console.warn("MessageTimestamp was called without a message, or message has invalid created_at date."),null;if("function"==typeof r)return r(new Date(a));if(l&&c){let r={};null!=e&&(r.calendar=e),null!=t&&(r.calendarFormats=t),null!=n&&(r.format=n);let o=l(c,{...r,timestamp:new Date(a)});if(c!==o)return o}if(!u)return console.warn("MessageTimestamp was called but there is no datetime parsing function available"),null;let d=u(a);return o(d)?e&&d.calendar?d.calendar(void 0,t||void 0):d.format(n||void 0):i(d)?d.toDateString():"string"==typeof d||"number"==typeof d?d:null}let l={timestampFormatter:e=>(t,n,{calendarFormats:r,...a})=>{let o;try{a.calendar?"string"==typeof r?o=JSON.parse(r):"object"==typeof r&&(o=r):o={}}catch(e){console.error("[TIMESTAMP FORMATTER]",e)}let i=s({...a,calendarFormats:o,messageCreatedAt:t,tDateTimeParser:e.tDateTimeParser});return i&&"number"!=typeof i?i:JSON.stringify(t)}},u=e=>e,c=e=>a()(e),d=e=>["de","en","es","fr","hi","it","ja","ko","nl","pt","ru","tr"].some(t=>e===t)},86300:(e,t,n)=>{"use strict";n.d(t,{o:()=>Q});var r=n(14232),a=n(55661),o=n(14568),i=n(69241),s=n(97970),l=n(27475);let u=r.memo(e=>{let{actionHandler:t,actions:n,id:a,text:o}=e,{t:i}=(0,l.WR)("UnMemoizedAttachmentActions");return r.createElement("div",{className:"str-chat__message-attachment-actions"},r.createElement("div",{className:"str-chat__message-attachment-actions-form"},r.createElement("span",null,o),n.map(e=>r.createElement("button",{className:`str-chat__message-attachment-actions-button str-chat__message-attachment-actions-button--${e.style}`,"data-testid":`${e.name}`,"data-value":e.value,key:`${a}-${e.value}`,onClick:n=>{let r,a;return r=e.name,a=e.value,t?.(r,a,n)}},e.text?i(e.text):null))))});var c=n(54819),d=n(54973),p=n(9854);let m=({fileSize:e,maximumFractionDigits:t})=>e&&Number.isFinite(Number(e))?r.createElement("span",{className:"str-chat__message-attachment-file--item-size","data-testid":"file-size-indicator"},(0,p.d3)(e,t)):null,f=({className:e,onClick:t,progress:n})=>r.createElement("div",{className:(0,i.A)("str-chat__message-attachment-audio-widget--progress-track",e),"data-progress":n,"data-testid":"audio-progress",onClick:t,role:"progressbar",style:{"--str-chat__message-attachment-audio-widget-progress":n+"%"}},r.createElement("div",{className:"str-chat__message-attachment-audio-widget--progress-slider",style:{left:`${n}px`}}));var h=n(54030);let g=r.memo(e=>{let{og:{asset_url:t,file_size:n,mime_type:a,title:o}}=e,{audioRef:i,isPlaying:s,progress:l,seek:u,togglePlay:p}=(0,h.k)({mimeType:a});return t?r.createElement("div",{className:"str-chat__message-attachment-audio-widget","data-testid":"audio-widget"},r.createElement("audio",{ref:i},r.createElement("source",{"data-testid":"audio-source",src:t,type:"audio/mp3"})),r.createElement("div",{className:"str-chat__message-attachment-audio-widget--play-controls"},r.createElement(c.D,{isPlaying:s,onClick:p}
4)),r.createElement("div",{className:"str-chat__message-attachment-audio-widget--text"},r.createElement("div",{className:"str-chat__message-attachment-audio-widget--text-first-row"},r.createElement("div",{className:"str-chat__message-attachment-audio-widget--title"},o),r.createElement(d.f,{assetUrl:t})),r.createElement("div",{className:"str-chat__message-attachment-audio-widget--text-second-row"},r.createElement(m,{fileSize:n}),r.createElement(f,{onClick:u,progress:l})))):null});var y=n(29464);let v=({children:e,onClick:t})=>r.createElement("button",{className:"str-chat__message_attachment__playback-rate-button","data-testid":"playback-rate-button",onClick:t},e);var b=n(27190);let D="str-chat__message-attachment__voice-recording-widget",E=({attachment:e,playbackRates:t})=>{let{t:n}=(0,l.WR)("VoiceRecordingPlayer"),{asset_url:o,duration:i=0,mime_type:s,title:u=n("Voice message"),waveform_data:d}=e,{audioRef:p,increasePlaybackRate:f,isPlaying:g,playbackRate:E,progress:_,secondsElapsed:w,seek:x,togglePlay:C}=(0,h.k)({durationSeconds:i??0,mimeType:s,playbackRates:t});if(!o)return null;let k=w||i;return r.createElement("div",{className:D,"data-testid":"voice-recording-widget"},r.createElement("audio",{ref:p},r.createElement("source",{"data-testid":"audio-source",src:o,type:s})),r.createElement(c.D,{isPlaying:g,onClick:C}),r.createElement("div",{className:"str-chat__message-attachment__voice-recording-widget__metadata"},r.createElement("div",{className:"str-chat__message-attachment__voice-recording-widget__title","data-testid":"voice-recording-title",title:u},u),r.createElement("div",{className:"str-chat__message-attachment__voice-recording-widget__audio-state"},r.createElement("div",{className:"str-chat__message-attachment__voice-recording-widget__timer"},e.duration?(0,a.Zw)(k):r.createElement(m,{fileSize:e.file_size,maximumFractionDigits:0})),r.createElement(y.u,{progress:_,seek:x,waveformData:d||[]}))),r.createElement("div",{className:"str-chat__message-attachment__voice-recording-widget__right-section"},g?r.createElement(v,{disabled:!p.current,onClick:f},E.toFixed(1),"x"):r.createElement(b.o,{big:!0,mimeType:s,size:40})))},_=({attachment:e})=>{let{t}=(0,l.WR)(),n=e.title||t("Voice message");return r.createElement("div",{className:D,"data-testid":"quoted-voice-recording-widget"},r.createElement("div",{className:"str-chat__message-attachment__voice-recording-widget__metadata"},n&&r.createElement("div",{className:"str-chat__message-attachment__voice-recording-widget__title","data-testid":"voice-recording-title",title:n},n),r.createElement("div",{className:"str-chat__message-attachment__voice-recording-widget__audio-state"},r.createElement("div",{className:"str-chat__message-attachment__voice-recording-widget__timer"},e.duration?(0,a.Zw)(e.duration):r.createElement(m,{fileSize:e.file_size,maximumFractionDigits:0})))),r.createElement(b.o,{big:!0,mimeType:e.mime_type,size:34}))},w=({attachment:e,isQuoted:t})=>t?r.createElement(_,{attachment:e}):r.createElement(E,{attachment:e});var x=n(5355),C=n(34941),k=n(79674),S=n(34550),M=n.n(S);let T=e=>{e.target.alt=""},O=({original:e,originalAlt:t})=>r.createElement(C.d,{alt:t,className:"image-gallery-image",onError:T,src:e}),A=e=>{let{images:t,index:n}=e,{t:a}=(0,l.WR)("ModalGallery"),o=(0,r.useMemo)(()=>t.map(e=>{let t=e.image_url||e.thumb_url||"";return{original:t,originalAlt:a("User uploaded content"),source:t}}),[t,a]);return r.createElement(M(),{items:o,renderItem:O,showIndex:!0,showPlayButton:!1,showThumbnails:!1,startIndex:n})};var P=n(10623);let F=r.memo(e=>{let{images:t,innerRefs:n}=e,[a,o]=(0,r.useState)(0),[s,u]=(0,r.useState)(!1),{BaseImage:c=C.d,ModalGallery:d=A}=(0,P.aD)("Gallery"),{t:p}=(0,l.WR)("Gallery"),m=p("User uploaded content"),f=e=>{s?u(!1):(o(e),u(!0))},h=t.slice(0,4).map((e,a)=>3===a&&t.length>4?r.createElement("button",{className:"str-chat__gallery-placeholder","data-testid":"gallery-image-last",key:`gallery-image-${a}`,onClick:()=>f(a),style:{backgroundImage:`url(${t[3].previewUrl||t[3].image_url||t[3].thumb_url})`,...e.style},...n?.current&&{ref:e=>{n.current[a]=e}}},r.createElement("p",null,p("{{ imageCount }} more",{imageCount:t.length-4}))):r.createElement("button",{className:"str-chat__gallery-image","data-testid":"gallery-image",key:`gallery-image-${a}`,onClick:()=>f(a)},r.createElement(c,{alt:e?.fallback||m,src:(0,x.Jf)(e.previewUrl||e.image_url||e.thumb_url),style:e.style,title:e?.fallback||m,...n?.current&&{ref:e=>{n.current[a]=e}}}))),g=(0,i.A)("str-chat__gallery",{"str-chat__gallery--square":t.length>3,"str-chat__gallery-two-rows":t.length>2});return r.createElement("div",{className:g},h,r.createElement(k.a,{className:"str-chat__gallery-modal",onClose:()=>u(e=>!e),open:s},r.createElement(d,{images:t,index:a})))}),L=e=>{let{dimensions:t={},fallback:n,image_url:a,innerRef:o,previewUrl:i,style:s,thumb_url:l}=e,[u,c]=(0,r.useState)(!1),{BaseImage:d=C.d,ModalGallery:p=A}=(0,P.aD)("ImageComponent"),m=(0,x.Jf)(i||a||l),f=()=>c(e=>!e);return r.createElement(r.Fragment,null,r.createElement(d,{alt:n,className:"str-chat__message-attachment--img","data-testid":"image-test",onClick:f,src:m,style:s,tabIndex:0,title:n,...t,...o&&{ref:o}}),r.createElement(k.a,{className:"str-chat__image-modal",onClose:f,open:u},r.createElement(p,{images:[e],index:0})))};var R=n(39223),j=n(76844);let N=({type:e})=>{let{t}=(0,l.WR)("Card");return r.createElement("div",{className:(0,i.A)("str-chat__message-attachment-card",{[`str-chat__message-attachment-card--${e}`]:e})},r.createElement("div",{className:"str-chat__message-attachment-card--content"},r.createElement("div",{className:"str-chat__message-attachment-card--text"},t("this content could not be displayed"))))},I=({author_name:e,url:t})=>r.createElement("div",{className:"str-chat__message-attachment-card--source-link","data-testid":"card-source-link"},r.createElement(R.Z,{className:"str-chat__message-attachment-card--url",href:t,rel:"noopener noreferrer",target:"_blank"},e||(e=>{if(null!=e){let[t]=e.replace(/^(?:https?:\/\/)?(?:www\.)?/i,"").split("/");return t}return null})(t))),B=e=>{let{asset_url:t,dimensions:n,image:a,image_url:i,thumb_url:s,title:l,type:u}=e,c=null;return t&&"video"===u?c=r.createElement(o.A,{className:"react-player",controls:!0,height:"100%",url:t,width:"100%"}):a&&(c=r.createElement(L,{dimensions:n,fallback:l||a,image_url:i,thumb_url:s})),c?r.createElement("div",{className:"str-chat__message-attachment-card--header str-chat__message-attachment-card-react--header","data-testid":"card-header"},c):null},z=e=>{let{author_name:t,og_scrape_url:n,text:a,title:o,title_link:i,type:s}=e,l=i||n;return r.createElement("div",{className:"str-chat__message-attachment-card--content"},"audio"===s?r.createElement(H,{og:e}):r.createElement("div",{className:"str-chat__message-attachment-card--flex"},l&&r.createElement(I,{author_name:t,url:l}),o&&r.createElement("div",{className:"str-chat__message-attachment-card--title"},o),a&&r.createElement("div",{className:"str-chat__message-attachment-card--text"},a)))},H=({og:{asset_url:e,author_name:t,mime_type:n,og_scrape_url:a,text:o,title:i,title_link:s}})=>{let{audioRef:l,isPlaying:u,progress:d,seek:p,togglePlay:m}=(0,h.k)({mimeType:n}),g=s||a;return r.createElement("div",{className:"str-chat__message-attachment-card-audio-widget","data-testid":"card-audio-widget"},e&&r.createElement(r.Fragment,null,r.createElement("audio",{ref:l},r.createElement("source",{"data-testid":"audio-source",src:e,type:"audio/mp3"})),r.createElement("div",{className:"str-chat__message-attachment-card-audio-widget--first-row"},r.createElement("div",{className:"str-chat__message-attachment-audio-widget--play-controls"},r.createElement(c.D,{isPlaying:u,onClick:m})),r.createElement(f,{onClick:p,progress:d}))),r.createElement("div",{className:"str-chat__message-attachment-audio-widget--second-row"},g&&r.createElement(I,{author_name:t,url:g}),i&&r.createElement("div",{className:"str-chat__message-attachment-audio-widget--title"},i),o&&r.createElement("div",{className:"str-chat__message-attachment-audio-widget--description"},o)))},U=r.memo(e=>{let{asset_url:t,giphy:n,image_url:a,thumb_url:o,title:i,title_link:s,type:l}=e,{giphyVersion:u}=(0,j.BX)("CardHeader"),c=o||a,d={};if("giphy"===l&&void 0!==n){let e=n[u];c=e.url,d.height=e.height,d.width=e.width}return i||s||t||c?r.createElement("div",{className:`str-chat__message-attachment-card str-chat__message-attachment-card--${l}`},r.createElement(B,{...e,dimensions:d,image:c}),r.createElement(z,{...e})):r.createElement(N,null)}),V=r.memo(({attachment:e})=>r.createElement("div",{className:"str-chat__message-attachment-file--item","data-testid":"attachment-file"},r.createElement(b.o,{className:"str-chat__file-icon",mimeType:e.mime_type}),r.createElement("div",{className:"str-chat__message-attachment-file--item-text"},r.createElement("div",{className:"str-chat__message-attachment-file--item-first-row"},r.createElement("div",{className:"str-chat__message-attachment-file--item-name","data-testid":"file-title"},e.title),r.createElement(d.f,{assetUrl:e.asset_url})),r.createElement(m,{fileSize:e.file_size})))),W=({attachment:e})=>{let{t}=(0,l.WR)("UnsupportedAttachment");return r.createElement("div",{className:"str-chat__message-attachment-unsupported","data-testid":"attachment-unsupported"},r.createElement(b.o,{className:"str-chat__file-icon"}),r.createElement("div",{className:"str-chat__message-attachment-unsupported__metadata"},r.createElement("div",{className:"str-chat__message-attachment-unsupported__title","data-testid":"unsupported-attachment-title"},e.title||t("Unsupported attachment"))))},$=({attachment:e,children:t,componentType:n})=>{let o=(0,a.Oq)(e),s="";o||(s="card"!==n||e?.image_url||e?.thumb_url?e?.actions?.length?"actions":"":"no-image");let l=(0,i.A)("str-chat__message-attachment str-chat__message-attachment-dynamic-size",{[`str-chat__message-attachment--${n}`]:n,[`str-chat__message-attachment--${e?.type}`]:e?.type,[`str-chat__message-attachment--${n}--${s}`]:n&&s,"str-chat__message-attachment--svg-image":(0,a.ee)(e),"str-chat__message-attachment-with-actions":"actions"===s});return r.createElement("div",{className:l},t)},q=({actionHandler:e,attachment:t,AttachmentActions:n=u})=>t.actions?.length?r.createElement(n,{...t,actionHandler:e,actions:t.actions,id:t.id||"",text:t.text||""}):null;function Y(e){let t={"--original-height":1e6,"--original-width":1e6};if(s.t6(e,"url")){let n=new URL(e).searchParams,r=Number(n.get("oh")),a=Number(n.get("ow"));t["--original-width"]=a>1?a:1e6,t["--original-height"]=r>1?r:1e6}return t}let K=({attachment:e,Gallery:t=F})=>{let n=(0,r.useRef)([]),{imageAttachmentSizeHandler:a}=(0,j.BX)(),[o,i]=(0,r.useState)([]);(0,r.useLayoutEffect)(()=>
4{if(n.current&&n.current.every(e=>!!e)&&a){let t=[];n.current.forEach((n,r)=>{let o=a(e.images[r],n);t.push(o)}),i(t)}},[n,a,e]);let s=e.images.map((t,n)=>({...t,previewUrl:o[n]?.url||"about:blank",style:Y(e.images[n]?.image_url||e.images[n]?.thumb_url||"")}));return r.createElement($,{attachment:e,componentType:"gallery"},r.createElement(t,{images:s||[],innerRefs:n,key:"gallery"}))},G=e=>{let{attachment:t,Image:n=L}=e,a="image",o=(0,r.useRef)(null),{imageAttachmentSizeHandler:i}=(0,j.BX)(),[s,l]=(0,r.useState)(void 0);(0,r.useLayoutEffect)(()=>{o.current&&i&&l(i(t,o.current))},[o,i,t]);let u={...t,previewUrl:s?.url||"about:blank",style:Y(t.image_url||t.thumb_url||"")};return t.actions&&t.actions.length?r.createElement($,{attachment:t,componentType:a},r.createElement("div",{className:"str-chat__attachment"},r.createElement(n,{...u,innerRef:o}),r.createElement(q,{...e}))):r.createElement($,{attachment:t,componentType:a},r.createElement(n,{...u,innerRef:o}))},Z={audio:({attachment:e,Audio:t=g})=>r.createElement($,{attachment:e,componentType:"audio"},r.createElement("div",{className:"str-chat__attachment"},r.createElement(t,{og:e}))),card:e=>{let{attachment:t,Card:n=U}=e,a="card";return t.actions&&t.actions.length?r.createElement($,{attachment:t,componentType:a},r.createElement("div",{className:"str-chat__attachment"},r.createElement(n,{...t}),r.createElement(q,{...e}))):r.createElement($,{attachment:t,componentType:a},r.createElement(n,{...t}))},file:({attachment:e,File:t=V})=>e.asset_url?r.createElement($,{attachment:e,componentType:"file"},r.createElement(t,{attachment:e})):null,media:e=>{let{attachment:t,Media:n=o.A}=e,a="media",{shouldGenerateVideoThumbnail:i,videoAttachmentSizeHandler:s}=(0,j.BX)(),l=(0,r.useRef)(null),[u,c]=(0,r.useState)();(0,r.useLayoutEffect)(()=>{l.current&&s&&c(s(t,l.current,i))},[l,s,t]);let d=r.createElement("div",{className:"str-chat__player-wrapper","data-testid":"video-wrapper",ref:l,style:Y(t.thumb_url||"")},r.createElement(n,{className:"react-player",config:{file:{attributes:{poster:u?.thumbUrl}}},controls:!0,height:"100%",url:u?.url,width:"100%"}));return t.actions?.length?r.createElement($,{attachment:t,componentType:a},r.createElement("div",{className:"str-chat__attachment"},d,r.createElement(q,{...e}))):r.createElement($,{attachment:t,componentType:a},d)},unsupported:({attachment:e,UnsupportedAttachment:t=W})=>r.createElement(r.Fragment,null,r.createElement(t,{attachment:e})),voiceRecording:({attachment:e,isQuoted:t,VoiceRecording:n=w})=>r.createElement($,{attachment:e,componentType:"voiceRecording"},r.createElement("div",{className:"str-chat__attachment"},r.createElement(n,{attachment:e,isQuoted:t})))},X=["card","gallery","image","media","audio","voiceRecording","file","unsupported"],Q=e=>{let{attachments:t}=e,n=(0,r.useMemo)(()=>J(e),[t]);return r.createElement("div",{className:"str-chat__attachment-list"},X.reduce((e,t)=>[...e,...n[t]],[]))},J=({attachments:e,...t})=>{let n=e.filter(e=>(0,a.Ak)(e)),o=e.filter(e=>!(0,a.Ak)(e)).reduce((e,n)=>{let a=ee(n),o=Z[a];return e[a].push(r.createElement(o,{key:`${a}-${e[a].length}`,...t,attachment:n})),e},{audio:[],card:[],file:[],media:[],unsupported:[],image:[],gallery:[],voiceRecording:[]});return n.length>1?o.gallery=[r.createElement(K,{key:"gallery-container",...t,attachment:{images:n,type:"gallery"}})]:1===n.length&&(o.image=[r.createElement(G,{key:"image-container",...t,attachment:n[0]})]),o},ee=e=>{if((0,a.QZ)(e))return"card";if((0,a.GV)(e))return"media";if((0,a.Oc)(e))return"audio";if((0,a.H5)(e))return"voiceRecording";if((0,a.iJ)(e))return"file";return"unsupported"}},86721:(e,t,n)=>{var r=null;"u">typeof WebSocket?r=WebSocket:"u">typeof MozWebSocket?r=MozWebSocket:void 0!==n.g?r=n.g.WebSocket||n.g.MozWebSocket:"u">typeof window?r=window.WebSocket||window.MozWebSocket:"u">typeof self&&(r=self.WebSocket||self.MozWebSocket),e.exports=r},87097:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(13921),a=n(75815),o=n(4460);function i(e,t){return(0,o.r)((0,r.w)(t?.in||e,e),(0,a.A)(t?.in||e))}},87386:(e,t,n)=>{"use strict";n.d(t,{t:()=>l});var r=n(14232),a=n(21334);let o=({columns:e,fallback:t,height:n,position:o,rows:i,spriteUrl:s,style:l,width:u})=>{let[[c,d],p]=(0,r.useState)([0,0]);(0,r.useEffect)(()=>{(0,a.v)(s).then(p).catch(console.error)},[s]);let[m,f]=o;return d&&c?r.createElement("div",{"data-testid":"sprite-image",style:{...l,"--str-chat__sprite-image-resize-ratio":"var(--str-chat__sprite-image-resize-ratio-x, var(--str-chat__sprite-image-resize-ratio-y, 1))","--str-chat__sprite-image-resize-ratio-x":"calc(var(--str-chat__sprite-image-width) / var(--str-chat__sprite-item-width))","--str-chat__sprite-image-resize-ratio-y":"calc(var(--str-chat__sprite-image-height) / var(--str-chat__sprite-item-height))","--str-chat__sprite-item-height":`${d/i}`,"--str-chat__sprite-item-width":`${c/e}`,...Number.isFinite(n)?{"--str-chat__sprite-image-height":`${n}px`}:{},...Number.isFinite(u)?{"--str-chat__sprite-image-width":`${u}px`}:{},backgroundImage:`url('${s}')`,backgroundPosition:`${100/(e-1)*m}% ${100/(i-1)*f}%`,backgroundSize:`${100*e}% ${100*i}%`,height:"var(--str-chat__sprite-image-height, calc(var(--str-chat__sprite-item-height) * var(--str-chat__sprite-image-resize-ratio)))",width:"var(--str-chat__sprite-image-width, calc(var(--str-chat__sprite-item-width) * var(--str-chat__sprite-image-resize-ratio)))"}}):r.createElement(r.Fragment,null,t)},i={angry:[1,1],haha:[1,0],like:[0,0],love:[1,2],sad:[0,1],wow:[0,2]},s=({fallback:e,type:t})=>{let n=i[t];return r.createElement(o,{columns:2,fallback:e,position:n,rows:3,spriteUrl:"https://getstream.imgix.net/images/emoji-sprite.png",style:{"--str-chat__sprite-image-height":"var(--str-chat__stream-emoji-size, 18px)"}})},l=[{type:"haha",Component:()=>r.createElement(s,{fallback:"\uD83D\uDE02",type:"haha"}),name:"Joy"},{type:"like",Component:()=>r.createElement(s,{fallback:"\uD83D\uDC4D",type:"like"}),name:"Thumbs up"},{type:"love",Component:()=>r.createElement(s,{fallback:"â¤ï¸",type:"love"}),name:"Heart"},{type:"sad",Component:()=>r.createElement(s,{fallback:"\uD83D\uDE14",type:"sad"}),name:"Sad"},{type:"wow",Component:()=>r.createElement(s,{fallback:"\uD83D\uDE32",type:"wow"}),name:"Astonished"}]},87863:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var r=n(14232),a=n(69241),o=n(43653);let i=r.memo(({Avatar:e=o.e,entity:t})=>{let n=!!Object.keys(t).length,i=t?.itemNameParts;return r.createElement("div",{className:"str-chat__user-item"},r.createElement(e,{className:"str-chat__avatar--autocomplete-item",image:t.image,name:t.name||t.id}),r.createElement("span",{className:"str-chat__user-item--name","data-testid":"user-item-name"},n?i.parts.map((e,t)=>{let n=e.toLowerCase()===i.match.toLowerCase();return r.createElement("span",{className:(0,a.A)({"str-chat__emoji-item--highlight":n,"str-chat__emoji-item--part":!n}),key:`part-${t}`},e)}):null),r.createElement("div",{className:"str-chat__user-item-at"},"@"))})},90130:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});var r=n(14232);let a=r.memo(e=>{let{children:t,onClick:n,showNotification:a=!0}=e;return a?r.createElement("button",{"aria-live":"polite",className:"str-chat__message-notification","data-testid":"message-notification",onClick:n},t):null})},91863:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(97901),a=n(55408),o=n(93626),i=n(78333);function s(e,t,n){var s;let l,u,c,[d,p,m]=(0,r.x)(n?.in,e,e,t),f=(0,a.z)(p,m),h=Math.abs(function(e,t){let[n,a]=(0,r.x)(void 0,e,t);return 12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth())}(p,m));if(h<1)return 0;1===p.getMonth()&&p.getDate()>27&&p.setDate(30),p.setMonth(p.getMonth()-f*h);let g=(0,a.z)(p,m)===-f;l=(0,i.a)(d,void 0),+(0,o.D)(l,void 0)==+(s=void 0,c=(u=(0,i.a)(l,s?.in)).getMonth(),u.setFullYear(u.getFullYear(),c+1,0),u.setHours(23,59,59,999),u)&&1===h&&1===(0,a.z)(d,m)&&(g=!1);let y=f*(h-g);return 0===y?0:y}}
4,92774:(e,t,n)=>{"use strict";n.d(t,{U:()=>a});var r=n(14232);let a=({onMouseEnter:e,onMouseLeave:t}={})=>{let[n,a]=(0,r.useState)(!1);return{handleEnter:(0,r.useCallback)(t=>{a(!0),e?.(t)},[e]),handleLeave:(0,r.useCallback)(e=>{a(!1),t?.(e)},[t]),tooltipVisible:n}}},93626:(e,t,n)=>{"use strict";n.d(t,{D:()=>a});var r=n(78333);function a(e,t){let n=(0,r.a)(e,t?.in);return n.setHours(23,59,59,999),n}},93934:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(14232)),o=n(24657),i=n(95824);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),e&&c(f,e);var t,n,s=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n,a,o=p(f);return a=t?Reflect.construct(o,arguments,p(this).constructor):o.apply(this,arguments),e=this,(n=a)&&("object"===r(n)||"function"==typeof n)?n:d(e)});function f(){var e;if(!(this instanceof f))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(d(e=s.call.apply(s,[this].concat(n))),"callPlayer",o.callPlayer),m(d(e),"onDurationChange",function(){var t=e.getDuration();e.props.onDuration(t)}),m(d(e),"mute",function(){e.callPlayer("setMuted",!0)}),m(d(e),"unmute",function(){e.callPlayer("setMuted",!1)}),m(d(e),"ref",function(t){e.container=t}),e}return n=[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(e){var t,n=this,r=this.props,a=r.controls,s=r.config,c=r.onError,d=r.playing,p=(function(e){if(Array.isArray(e))return e}(t=e.match(i.MATCH_URL_DAILYMOTION))||function(e){if("u">typeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(n=(o=i.next()).done)&&(t.push(o.value),2!==t.length);n=!0);}catch(e){r=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw a}}return t}}(t)||function(e){if(e){if("string"==typeof e)return u(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,2)}}
4(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];this.player?this.player.load(p,{start:(0,o.parseStartTime)(e),autoplay:d}):(0,o.getSDK)("https://api.dmcdn.net/all.js","DM","dmAsyncInit",function(e){return e.player}).then(function(t){n.container&&(n.player=new t.player(n.container,{width:"100%",height:"100%",video:p,params:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({controls:a,autoplay:n.props.playing,mute:n.props.muted,start:(0,o.parseStartTime)(e),origin:window.location.origin},s.params),events:{apiready:n.props.onReady,seeked:function(){return n.props.onSeek(n.player.currentTime)},video_end:n.props.onEnded,durationchange:n.onDurationChange,pause:n.props.onPause,playing:n.props.onPlay,waiting:n.props.onBuffer,error:function(e){return c(e)}}}))},c)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(e){this.callPlayer("seek",e)}},{key:"setVolume",value:function(e){this.callPlayer("setVolume",e)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}},{key:"render",value:function(){var e=this.props.display;return a.default.createElement("div",{style:{width:"100%",height:"100%",display:e}},a.default.createElement("div",{ref:this.ref}))}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(f.prototype,n),f}(a.Component);t.default=f,m(f,"displayName","DailyMotion"),m(f,"canPlay",i.canPlay.dailymotion),m(f,"loopOnEnded",!0)},94147:e=>{function t(n,r,a,o){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}e.exports=t=function(e,n,r,a){function o(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?i?i(e,n,{value:r,enumerable:!a,configurable:!a,writable:!a}):e[n]=r:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,a,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},94410:e=>{"use strict";var t=function(e){var t,r,a;return!!(t=e)&&"object"==typeof t&&(r=e,"[object RegExp]"!==(a=Object.prototype.toString.call(r))&&"[object Date]"!==a&&r.$$typeof!==n)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,t):e}function a(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function i(e,t){try{return t in e}catch(e){return!1}}function s(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||a,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var u,c,d=Array.isArray(n);return d!==Array.isArray(e)?r(n,l):d?l.arrayMerge(e,n,l):(c={},(u=l).isMergeableObject(e)&&o(e).forEach(function(t){c[t]=r(e[t],u)}),o(n).forEach(function(t){i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))||(i(e,t)&&u.isMergeableObject(n[t])?c[t]=(function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s})(t,u)(e[t],n[t],u):c[t]=r(n[t],u))}),c)}s.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},e.exports=s},95248:(e,t,n)=>{"use strict";let r;n.d(t,{n1:()=>X});let a=e=>e?.ownerDocument??document,o=e=>e&&"window"in e&&e.window===e?e:a(e).defaultView||window;function i(e,t){return!!t&&!!e&&e.contains(t)}function s(e){return e.target}function l(e){if(function(){if(null==u){u=!1;try{document.createElement("div").focus({get preventScroll(){return u=!0,!0}})}catch{}}return u}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let u=null;var c=n(14232);function d(e){if("u"<typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function p(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function m(e){let t=null;return()=>(null==t&&(t=e()),t)}let f=m(function(){return p(/^Mac/i)}),h=m(function(){return p(/^iPhone/i)}),g=m(function(){return p(/^iPad/i)||f()&&navigator.maxTouchPoints>1}),y=m(function(){return h()||g()});m(function(){return f()||y()});
4let v=m(function(){return d(/AppleWebKit/i)&&!b()}),b=m(function(){return d(/Chrome/i)}),D=m(function(){return d(/Android/i)}),E=m(function(){return d(/Firefox/i)});function _(e,t,n=!0){let{metaKey:r,ctrlKey:a,altKey:o,shiftKey:i}=t;E()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(f()?r=!0:a=!0);let s=v()&&f()&&!g()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:a,altKey:o,shiftKey:i}):new MouseEvent("click",{metaKey:r,ctrlKey:a,altKey:o,shiftKey:i,detail:1,bubbles:!0,cancelable:!0});_.isOpening=n,l(e),e.dispatchEvent(s),_.isOpening=!1}_.isOpening=!1;let w=null,x=new Set,C=new Map,k=!1,S=!1;function M(e,t){for(let n of x)n(e,t)}function T(e){k=!0,_.isOpening||e.metaKey||!f()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(w="keyboard",M("keyboard",e))}function O(e){w="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(k=!0,M("pointer",e))}function A(e){_.isOpening||(""!==e.pointerType||!e.isTrusted)&&(D()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(k=!0,w="virtual")}function P(e){let t=o(s(e)),n=a(s(e));s(e)!==t&&s(e)!==n&&e.isTrusted&&(k||S||(w="virtual",M("virtual",e)),k=!1,S=!1)}function F(){k=!1,S=!0}function L(e){if("u"<typeof window||"u"<typeof document)return;let t=o(e),n=a(e);if(C.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){k=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",T,!0),n.addEventListener("keyup",T,!0),n.addEventListener("click",A,!0),t.addEventListener("focus",P,!0),t.addEventListener("blur",F,!1),"u">typeof PointerEvent&&(n.addEventListener("pointerdown",O,!0),n.addEventListener("pointermove",O,!0),n.addEventListener("pointerup",O,!0)),t.addEventListener("beforeunload",()=>{R(e)},{once:!0}),C.set(t,{focus:r})}let R=(e,t)=>{let n=o(e),r=a(e);t&&r.removeEventListener("DOMContentLoaded",t),C.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:C.get(n).focus}),r.removeEventListener("keydown",T,!0),r.removeEventListener("keyup",T,!0),r.removeEventListener("click",A,!0),n.removeEventListener("focus",P,!0),n.removeEventListener("blur",F,!1),"u">typeof PointerEvent&&(r.removeEventListener("pointerdown",O,!0),r.removeEventListener("pointermove",O,!0),r.removeEventListener("pointerup",O,!0)),C.delete(n))};"u">typeof document&&("loading"!==(r=a(void 0)).readyState?L(void 0):r.addEventListener("DOMContentLoaded",()=>{L(void 0)}));let j=new Map,N=new Set;function I(){if("u"<typeof window)return;function e(e){return"propertyName"in e}let t=n=>{let r=s(n);if(!e(n)||!r)return;let a=j.get(r);if(a&&(a.delete(n.propertyName),0===a.size&&(r.removeEventListener("transitioncancel",t),j.delete(r)),0===j.size)){for(let e of N)e();N.clear()}};document.body.addEventListener("transitionrun",n=>{let r=s(n);if(!e(n)||!r)return;let a=j.get(r);a||(a=new Set,j.set(r,a),r.addEventListener("transitioncancel",t,{once:!0})),a.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}"u">typeof document&&("loading"!==document.readyState?I():document.addEventListener("DOMContentLoaded",I));let B="u">typeof Element&&"checkVisibility"in Element.prototype;function z(e,t){return B?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):"#comment"!==e.nodeName&&function(e){let t=o(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,a="none"!==n&&"hidden"!==r&&"collapse"!==r;if(a){let{getComputedStyle:t}=o(e),{display:n,visibility:r}=t(e);a="none"!==n&&"hidden"!==r&&"collapse"!==r}return a}(e)&&!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))&&(!e.parentElement||z(e.parentElement,e))}let H=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],U=H.join(":not([hidden]),")+",[tabindex]:not
4([disabled]):not([hidden])";H.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let V=H.join(':not([hidden]):not([tabindex="-1"]),');function W(e,t){return e.matches(U)&&!q(e)&&(t?.skipVisibilityCheck||z(e))}function $(e){return e.matches(V)&&z(e)&&!q(e)}function q(e){let t=e;for(;null!=t;){if(t instanceof o(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}let Y="u">typeof document?c.useLayoutEffect:()=>{},K=c.createContext(null),G="react-aria-focus-scope-restore",Z=null;function X(e){var t,n,r,i,l,u,d,p,m,f;let h,g,y,v,{children:E,contain:_,restoreFocus:x,autoFocus:C}=e,k=(0,c.useRef)(null),S=(0,c.useRef)(null),M=(0,c.useRef)([]),{parentNode:T}=(0,c.useContext)(K)||{},O=(0,c.useMemo)(()=>new ec({scopeRef:M}),[M]);Y(()=>{let e=T||ed.root;if(ed.getTreeNode(e.scopeRef)&&Z&&!en(Z,e.scopeRef)){let t=ed.getTreeNode(Z);t&&(e=t)}e.addChild(O),ed.addNode(O)},[O,T]),Y(()=>{let e=ed.getTreeNode(M);e&&(e.contain=!!_)},[_]),Y(()=>{let e=k.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==S.current;)t.push(e),e.addEventListener(G,n),e=e.nextSibling;return M.current=t,()=>{for(let e of t)e.removeEventListener(G,n)}},[E]),Y(()=>{if(n||r)return;let e=t.current,o=a(e?e[0]:void 0),i=e=>{let n=s(e);ee(n,t.current)?Z=t:et(n)||(Z=null)};return o.addEventListener("focusin",i,!1),e?.forEach(e=>e.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),e?.forEach(e=>e.removeEventListener("focusin",i,!1))}},[t=M,n=x,r=_]),i=M,l=_,h=(0,c.useRef)(void 0),g=(0,c.useRef)(void 0),Y(()=>{let e=i.current;if(!l){g.current&&(cancelAnimationFrame(g.current),g.current=void 0);return}let t=a(e?e[0]:void 0),n=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!J(i)||e.isComposing)return;let n=((e=document)=>e.activeElement)(t),r=i.current;if(!r||!ee(n,r))return;let a=el(Q(r),{tabbable:!0},r);if(!n)return;a.currentNode=n;let s=e.shiftKey?a.previousNode():a.nextNode();s||(a.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,s=e.shiftKey?a.previousNode():a.nextNode()),e.preventDefault(),s&&(er(s,!0),s instanceof o(s).HTMLInputElement&&s.select())},r=e=>{(!Z||en(Z,i))&&ee(s(e),i.current)?(Z=i,h.current=s(e)):J(i)&&!et(s(e),i)?h.current?h.current.focus():Z&&Z.current&&eo(Z.current):J(i)&&(h.current=s(e))},u=e=>{g.current&&cancelAnimationFrame(g.current),g.current=requestAnimationFrame(()=>{let n=w,r=("virtual"===n||null===n)&&D()&&b(),a=((e=document)=>e.activeElement)(t);
4if(!r&&a&&J(i)&&!et(a,i)){Z=i;let t=s(e);t&&t.isConnected?(h.current=t,h.current?.focus()):Z.current&&eo(Z.current)}})};return t.addEventListener("keydown",n,!1),t.addEventListener("focusin",r,!1),e?.forEach(e=>e.addEventListener("focusin",r,!1)),e?.forEach(e=>e.addEventListener("focusout",u,!1)),()=>{t.removeEventListener("keydown",n,!1),t.removeEventListener("focusin",r,!1),e?.forEach(e=>e.removeEventListener("focusin",r,!1)),e?.forEach(e=>e.removeEventListener("focusout",u,!1))}},[i,l]),Y(()=>()=>{g.current&&cancelAnimationFrame(g.current)},[g]),u=M,d=x,p=_,y=(0,c.useRef)("u">typeof document?((e=document)=>e.activeElement)(a(u.current?u.current[0]:void 0)):null),Y(()=>{let e=u.current,t=a(e?e[0]:void 0);if(!d||p)return;let n=()=>{(!Z||en(Z,u))&&ee(((e=document)=>e.activeElement)(t),u.current)&&(Z=u)};return t.addEventListener("focusin",n,!1),e?.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),e?.forEach(e=>e.removeEventListener("focusin",n,!1))}},[u,p]),Y(()=>{let e=a(u.current?u.current[0]:void 0);if(!d)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!J(u)||t.isComposing)return;let n=e.activeElement;if(!et(n,u)||!ei(u))return;let r=ed.getTreeNode(u);if(!r)return;let a=r.nodeToRestore,o=el(e.body,{tabbable:!0});o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();if(a&&a.isConnected&&a!==e.body||(a=void 0,r.nodeToRestore=void 0),(!i||!et(i,u))&&a){o.currentNode=a;do i=t.shiftKey?o.previousNode():o.nextNode();while(et(i,u));(t.preventDefault(),t.stopPropagation(),i)?er(i,!0):et(a)?er(a,!0):n.blur()}};return p||e.addEventListener("keydown",t,!0),()=>{p||e.removeEventListener("keydown",t,!0)}},[u,d,p]),Y(()=>{let e=a(u.current?u.current[0]:void 0);if(!d)return;let t=ed.getTreeNode(u);if(t)return t.nodeToRestore=y.current??void 0,()=>{let t=ed.getTreeNode(u);if(!t)return;let n=t.nodeToRestore,r=((e=document)=>e.activeElement)(e);if(d&&n&&(r&&et(r,u)||r===e.body&&ei(u))){let t=ed.clone();requestAnimationFrame(()=>{if(e.activeElement===e.body){let e=t.getTreeNode(u);for(;e;){if(e.nodeToRestore&&e.nodeToRestore.isConnected)return void es(e.nodeToRestore);e=e.parent}for(e=t.getTreeNode(u);e;){if(e.scopeRef&&e.scopeRef.current&&ed.getTreeNode(e.scopeRef))return void es(ea(e.scopeRef.current,!0));e=e.parent}}})}}},[u,d]),m=M,f=C,v=c.useRef(f),(0,c.useEffect)(()=>{v.current&&(Z=m,!ee(((e=document)=>e.activeElement)(a(m.current?m.current[0]:void 0)),Z.current)&&m.current&&eo(m.current)),v.current=!1},[m]),(0,c.useEffect)(()=>{let e=((e=document)=>e.activeElement)(a(M.current?M.current[0]:void 0)),t=null;if(ee(e,M.current)){for(let n of ed.traverse())n.scopeRef&&ee(e,n.scopeRef.current)&&(t=n);t===ed.getTreeNode(M)&&(Z=t.scopeRef)}},[M]),Y(()=>()=>{let e=ed.getTreeNode(M)?.parent?.scopeRef??null;(M===Z||en(M,Z))&&(!e||ed.getTreeNode(e))&&(Z=e),ed.removeTreeNode(M)},[M]);let A=(0,c.useMemo)(()=>{var e;return e=M,{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:s}=t,l=r||((e=document)=>e.activeElement)(a(n[0]??void 0)),u=n[0].previousElementSibling,c=el(Q(n),{tabbable:o,accept:s},n);c.currentNode=ee(l,n)?l:u;let d=c.nextNode();return!d&&i&&(c.currentNode=u,d=c.nextNode()),d&&er(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:s}=t,l=r||((e=document)=>e.activeElement)(a(n[0]??void 0)),u=n[n.length-1].nextElementSibling,c=el(Q(n),{tabbable:o,accept:s},n);c.currentNode=ee(l,n)?l:u;let d=c.previousNode();return!d&&i&&(c.currentNode=u,d=c.previousNode()),d&&er(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:a}=t,o=el(Q(n),{tabbable:r,accept:a},n);o.currentNode=n[0].previousElementSibling;let i=o.nextNode();return i&&er(i,!0),i},focusLast(t={}){let n=e.current,{tabbable:r,accept:a}=t,o=el(Q(n),{tabbable:r,accept:a},n);o.currentNode=n[n.length-1].nextElementSibling;let i=o.previousNode();return i&&er(i,!0),i}}},[]),P=(0,c.useMemo)(()=>({focusManager:A,parentNode:O}),[O,A]);return c.createElement(K.Provider,{value:P},c.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:k}),E,c.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:S}))}function Q(e){return e[0].parentElement}function J(e){let t=ed.getTreeNode(Z);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function ee(e,t){return!!e&&!!t&&t.some(t=>i(t,e))}function et(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ed.traverse(ed.getTreeNode(t)))if(n&&ee(e,n.current))return!0;return!1}function en(e,t){let n=ed.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function er(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{!function(e){if(!e.isConnected)return;let t=a(e);if("virtual"===w){var n;let r=((e=document)=>e.activeElement)(t);n=()=>{let n=((e=document)=>e.activeElement)(t);(n===r||n===t.body)&&e.isConnected&&l(e)},requestAnimationFrame(()=>{for(let[e]of j)"isConnected"in e&&!e.isConnected&&j.delete(e);0===j.size?n():N.add(n)})}else l(e)}(e)}catch{}}function ea(e,t=!0){let n=e[0].previousElementSibling,r=Q(e),a=el(r,{tabbable:t},e);a.currentNode=n;let o=a.nextNode();return t&&!o&&((a=el(r=Q(e),{tabbable:!1},e)).currentNode=n,o=a.nextNode()),o}function eo(e,t=!0){er(ea(e,t))}function ei(e){let t=ed.getTreeNode(Z);for(;t&&t.scopeRef!==e;
4){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function es(e){e.dispatchEvent(new CustomEvent(G,{bubbles:!0,cancelable:!0}))&&er(e)}function el(e,t,n){var r,s,l;let u=t?.tabbable?$:W,c=a(e?.nodeType===Node.ELEMENT_NODE?e:null),d=(r=e||c,s=NodeFilter.SHOW_ELEMENT,l={acceptNode:e=>i(t?.from,e)||t?.tabbable&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=function(e){if(!e.form)return Array.from(a(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=o(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}(e);return t.length>0&&!t.some(e=>e.checked)}(e)||"INPUT"===d.currentNode.tagName&&"radio"===d.currentNode.type&&d.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:u(e)&&(!n||ee(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},c.createTreeWalker(r,s,l));return t?.from&&(d.currentNode=t.from),d}class eu{constructor(){this.fastMap=new Map,this.root=new ec({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let a=new ec({scopeRef:e});r.addChild(a),a.parent=r,this.fastMap.set(e,a),n&&(a.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&ee(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new eu;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent?.scopeRef??null,t.nodeToRestore);return e}}class ec{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}}let ed=new eu},95824:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canPlay=t.FLV_EXTENSIONS=t.DASH_EXTENSIONS=t.HLS_EXTENSIONS=t.VIDEO_EXTENSIONS=t.AUDIO_EXTENSIONS=t.MATCH_URL_KALTURA=t.MATCH_URL_VIDYARD=t.MATCH_URL_MIXCLOUD=t.MATCH_URL_DAILYMOTION=t.MATCH_URL_TWITCH_CHANNEL=t.MATCH_URL_TWITCH_VIDEO=t.MATCH_URL_WISTIA=t.MATCH_URL_STREAMABLE=t.MATCH_URL_FACEBOOK_WATCH=t.MATCH_URL_FACEBOOK=t.MATCH_URL_VIMEO=t.MATCH_URL_SOUNDCLOUD=t.MATCH_URL_YOUTUBE=void 0;var r=n(24657);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var o=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//;t.MATCH_URL_YOUTUBE=o;var i=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/;t.MATCH_URL_SOUNDCLOUD=i;var s=/vimeo\.com\/(?!progressive_redirect).+/;t.MATCH_URL_VIMEO=s;var l=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;t.MATCH_URL_FACEBOOK=l;var u=/^https?:\/\/fb\.watch\/.+$/;t.MATCH_URL_FACEBOOK_WATCH=u;var c=/streamable\.com\/([a-z0-9]+)$/;t.MATCH_URL_STREAMABLE=c;var d=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?(.*)$/;t.MATCH_URL_WISTIA=d;var p=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;t.MATCH_URL_TWITCH_VIDEO=p;var m=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/;t.MATCH_URL_TWITCH_CHANNEL=m;var f=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;t.MATCH_URL_DAILYMOTION=f;var h=/mixcloud\.com\/([^/]+\/[^/]+)/;t.MATCH_URL_MIXCLOUD=h;var g=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/;t.MATCH_URL_VIDYARD=g;var y=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/;t.MATCH_URL_KALTURA=y;var v=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;t.AUDIO_EXTENSIONS=v;var b=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i;t.VIDEO_EXTENSIONS=b;var D=/\.(m3u8)($|\?)/i;t.HLS_EXTENSIONS=D;var E=/\.(mpd)($|\?)/i;t.DASH_EXTENSIONS=E;var _=/\.(flv)($|\?)/i;t.FLV_EXTENSIONS=_,t.canPlay={youtube:function(e){return e instanceof Array?e.every(function(e){return o.test(e)}):o.test(e)},soundcloud:function(e){return i.test(e)&&!v.test(e)},vimeo:function(e){return s.test(e)&&!b.test(e)&&!D.test(e)},facebook:function(e){return l.test(e)||u.test(e)},streamable:function(e){return c.test(e)},wistia:function(e){return d.test(e)},twitch:function(e){return p.test(e)||m.test(e)},dailymotion:function(e){return f.test(e)},mixcloud:function(e){return h.test(e)},vidyard:function(e){return g.test(e)},kaltura:function(e){return y.test(e)},file:function e(t){if(t instanceof Array){var n,o=function(e){if("u"<typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return a(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,void 0)}}(e))){r&&(e=r);var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;if("string"==typeof i&&e(i)||e(i.src))return!0}}catch(e){o.e(e)}finally{o.f()}return!1}return!!((0,r.isMediaStream)(t)||(0,r.isBlobUrl)(t))||v.test(t)||b.test(t)||D.test(t)||E.test(t)||_.test(t)}}},96244:(e,t,n)=>{"use strict";function r(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},96546:function(e,t,n){e.exports=function(e){"use strict";var t={name:"hi",weekdays:"रविवार_सà¥à¤®à¤µà¤¾à¤°_मà¤à¤à¤²à¤µà¤¾à¤°_बà¥à¤§à¤µà¤¾à¤°_à¤à¥à¤°à¥à¤µà¤¾à¤°_शà¥à¤à¥à¤°à¤µà¤¾à¤°_शनिवार".split("_"),months:"à¤à¤¨à¤µà¤°à¥_फ़रवरà¥_मारà¥à¤_à¤
पà¥à¤°à¥à¤²_मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤_à¤
à¤à¤¸à¥à¤¤_सितमà¥à¤¬à¤°_à¤
à¤à¥à¤à¥à¤¬à¤°_नवमà¥à¤¬à¤°_दिसमà¥à¤¬à¤°".split("_"),weekdaysShort:"रवि_सà¥à¤®_मà¤à¤à¤²_बà¥à¤§_à¤à¥à¤°à¥_शà¥à¤à¥à¤°_शनि".split("_"),monthsShort:"à¤à¤¨._फ़र._मारà¥à¤_à¤
पà¥à¤°à¥._मà¤_à¤à¥à¤¨_à¤à¥à¤²._à¤
à¤._सित._à¤
à¤à¥à¤à¥._नव._दिस.".split("_"),weekdaysMin:"र_सà¥_मà¤_बà¥_à¤à¥_शà¥_श".split("_"),ordinal:function(e){return e},formats:{LT:"A h:mm बà¤à¥",LTS:"A h:mm:ss बà¤à¥",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बà¤à¥",LLLL:"dddd, D MMMM YYYY, A h:mm बà¤à¥"},relativeTime:{future:"%s मà¥à¤",past:"%s पहलà¥",s:"à¤à¥à¤ हॠà¤à¥à¤·à¤£",m:"à¤à¤ मिनà¤",mm:"%d मिनà¤",h:"à¤à¤ à¤à¤à¤à¤¾",hh:"%d à¤à¤à¤à¥",d:"à¤à¤ दिन",dd:"%d दिन",M:"à¤à¤ महà¥à¤¨à¥",MM:"%d महà¥à¤¨à¥",y:"à¤à¤ वरà¥à¤·",yy:"%d वरà¥à¤·"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t}(n(56557))},96679:(e,t,n)=>{"use strict";n.d(t,{FE:()=>d,WQ:()=>p});var r=n(14232),a=n(76844),o=n(27475),i=n(10111),s=n(30236),l=n(69241);let u=r.createContext({subscribeToDrop:null}),c=()=>(0,r.useContext)(u),d=({uploadNewFiles:e})=>{let{subscribeToDrop:t}=c();(0,r.useEffect)(()=>t?.(e),[t,e])},p=({children:e,className:t,component:n="div",style:d})=>{let p=(0,r.useRef)(new Set),{acceptedFiles:m=[],multipleUploads:f}=(0,a.BX)(),{t:h}=(0,o.WR)(),g=(0,i.Oy)(),y=c(),v="function"==typeof g.uploadNewFiles,b=(0,r.useMemo)(()=>m.reduce((e,t)=>
4(e[t]??(e[t]=[]),e),{}),[m]),D=(0,r.useCallback)(e=>(p.current.add(e),()=>{p.current.delete(e)}),[]),E=(0,r.useCallback)(e=>{p.current.forEach(t=>t(e))},[]),{getRootProps:_,isDragActive:w,isDragReject:x}=(0,s.VB)({accept:b,disabled:!!v&&(!g.isUploadEnabled||0===g.maxFilesLeft),multiple:f,noClick:!0,onDrop:v?g.uploadNewFiles:E});return null!==y.subscribeToDrop?r.createElement(n,{className:t},e):r.createElement(u.Provider,{value:{subscribeToDrop:D}},r.createElement(n,{..._({className:t,style:d})},w&&r.createElement("div",{className:(0,l.A)("str-chat__dropzone-container",{"str-chat__dropzone-container--not-accepted":x})},!x&&r.createElement("p",null,h("Drag your files here")),x&&r.createElement("p",null,h("Some of the files will not be accepted"))),e))}},96815:(e,t,n)=>{"use strict";n.d(t,{h:()=>tn});var r=n(14232),a=n(46512),o=n(27475);let i=({size:e=20})=>{let t=(0,r.useMemo)(()=>(0,a.Ak)(),[]);return r.createElement("div",{className:"str-chat__loading-indicator"},r.createElement("svg",{"data-testid":"loading-indicator",height:e,viewBox:"0 0 30 30",width:e,xmlns:"http://www.w3.org/2000/svg"},r.createElement("defs",null,r.createElement("linearGradient",{id:`${t}-linear-gradient`,x1:"50%",x2:"50%",y1:"0%",y2:"100%"},r.createElement("stop",{offset:"0%",stopColor:"#FFF",stopOpacity:"0"}),r.createElement("stop",{"data-testid":"stop-color",offset:"100%",stopOpacity:"1"}))),r.createElement("path",{d:"M2.518 23.321l1.664-1.11A12.988 12.988 0 0 0 15 28c7.18 0 13-5.82 13-13S22.18 2 15 2V0c8.284 0 15 6.716 15 15 0 8.284-6.716 15-15 15-5.206 0-9.792-2.652-12.482-6.679z",fill:`url(#${t}-linear-gradient)`,fillRule:"evenodd"})))},s=()=>{let{t:e}=(0,o.WR)("UploadIcon");return r.createElement("svg",{"data-testid":"attach-icon",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,e("Attach files")),r.createElement("g",{clipPath:"url(#clip0_10878_5)"},r.createElement("path",{d:"M12.9997 6.99993L10.9997 6.99993L10.9997 10.9999L6.99972 10.9999L6.99972 12.9999L10.9997 12.9999L10.9997 16.9999L12.9997 16.9999L12.9997 12.9999L16.9997 12.9999L16.9997 10.9999L12.9997 10.9999L12.9997 6.99993ZM11.9997 1.99992C6.47972 1.99992 1.99972 6.47993 1.99972 11.9999C1.99972 17.5199 6.47972 21.9999 11.9997 21.9999C17.5197 21.9999 21.9997 17.5199 21.9997 11.9999C21.9997 6.47993 17.5197 1.99992 11.9997 1.99992ZM11.9997 19.9999C7.58972 19.9999 3.99972 16.4099 3.99972 11.9999C3.99972 7.58993 7.58972 3.99993 11.9997 3.99993C16.4097 3.99993 19.9997 7.58993 19.9997 11.9999C19.9997 16.4099 16.4097 19.9999 11.9997 19.9999Z",fill:"black"})),r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_10878_5"},r.createElement("rect",{fill:"white",height:"24",width:"24"}))))},l=()=>r.createElement("svg",{"data-testid":"close-no-outline",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"black"})),u=()=>r.createElement("svg",{"data-testid":"retry",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M17.6449 6.35C16.1949 4.9 14.2049 4 11.9949 4C7.57488 4 4.00488 7.58 4.00488 12C4.00488 16.42 7.57488 20 11.9949 20C15.7249 20 18.8349 17.45 19.7249 14H17.6449C16.8249 16.33 14.6049 18 11.9949 18C8.68488 18 5.99488 15.31 5.99488 12C5.99488 8.69 8.68488 6 11.9949 6C13.6549 6 15.1349 6.69 16.2149 7.78L12.9949 11H19.9949V4L17.6449 6.35Z",fill:"black"})),c=()=>r.createElement("svg",{"data-testid":"download",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4C9.11 4 6.6 5.64 5.35 8.04C2.34 8.36 0 10.91 0 14C0 17.31 2.69 20 6 20H19C21.76 20 24 17.76 24 15C24 12.36 21.95 10.22 19.35 10.04ZM19 18H6C3.79 18 2 16.21 2 14C2 11.95 3.53 10.24 5.56 10.03L6.63 9.92L7.13 8.97C8.08 7.14 9.94 6 12 6C14.62 6 16.88 7.86 17.39 10.43L17.69 11.93L19.22 12.04C20.78 12.14 22 13.45 22 15C22 16.65 20.65 18 19 18ZM13.45 10H10.55V13H8L12 17L16 13H13.45V10Z",fill:"black"})),d=()=>r.createElement("svg",{fill:"none",height:"11",viewBox:"0 0 20 11",width:"20",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{clipRule:"evenodd",d:"M1.9 5.5C1.9 3.79 3.29 2.4 5 2.4H8.05C8.57467 2.4 9 1.97467 9 1.45C9 0.925329 8.57467 0.5 8.05 0.5H5C2.24 0.5 0 2.74 0 5.5C0 8.26 2.24 10.5 5 10.5H8.05C8.57467 10.5 9 10.0747 9 9.55C9 9.02533 8.57467 8.6 8.05 8.6H5C3.29 8.6 1.9 7.21 1.9 5.5ZM6 5.5C6 6.05228 6.44772 6.5 7 6.5H13C13.5523 6.5 14 6.05228 14 5.5C14 4.94772 13.5523 4.5 13 4.5H7C6.44772 4.5 6 4.94772 6 5.5ZM15 0.5H11.95C11.4253 0.5 11 0.925329 11 1.45C11 1.97467 11.4253 2.4 11.95 2.4H15C16.71 2.4 18.1 3.79 18.1 5.5C18.1 7.21 16.71 8.6 15 8.6H11.95C11.4253 8.6 11 9.02533 11 9.55C11 10.0747 11.4253 10.5 11.95 10.5H15C17.76 10.5 20 8.26 20 5.5C20 2.74 17.76 0.5 15 0.5Z",fill:"#005DFF",fillRule:"evenodd"})),p=()=>{let{t:e}=(0,o.WR)("SendButton");return r.createElement("svg",{"data-testid":"send",fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},r.createElement("title",null,e("Send")),r.createElement("path",{d:"M4.00952 22L24 12L4.00952 2L4 9.77778L18.285
47 12L4 14.2222L4.00952 22Z"}))},m=()=>r.createElement("svg",{fill:"currentColor",viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M7 12.5C8.66 12.5 10 11.16 10 9.5V3.5C10 1.84 8.66 0.5 7 0.5C5.34 0.5 4 1.84 4 3.5V9.5C4 11.16 5.34 12.5 7 12.5Z"}),r.createElement("path",{d:"M12 9.5C12 12.26 9.76 14.5 7 14.5C4.24 14.5 2 12.26 2 9.5H0C0 13.03 2.61 15.93 6 16.42V19.5H8V16.42C11.39 15.93 14 13.03 14 9.5H12Z"})),f=()=>r.createElement("svg",{fill:"currentColor",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M8.00033 25.3333C8.00033 26.8 9.20033 28 10.667 28H21.3337C22.8003 28 24.0003 26.8 24.0003 25.3333V12C24.0003 10.5333 22.8003 9.33333 21.3337 9.33333H10.667C9.20033 9.33333 8.00033 10.5333 8.00033 12V25.3333ZM24.0003 5.33333H20.667L19.7203 4.38667C19.4803 4.14667 19.1337 4 18.787 4H13.2137C12.867 4 12.5203 4.14667 12.2803 4.38667L11.3337 5.33333H8.00033C7.26699 5.33333 6.66699 5.93333 6.66699 6.66667C6.66699 7.4 7.26699 8 8.00033 8H24.0003C24.7337 8 25.3337 7.4 25.3337 6.66667C25.3337 5.93333 24.7337 5.33333 24.0003 5.33333Z"})),h=()=>r.createElement("svg",{"data-testid":"str-chat__pause-icon",fill:"currentColor",viewBox:"0 0 16 20",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M0 19.3333H5.33333V0.666626H0V19.3333ZM10.6667 0.666626V19.3333H16V0.666626H10.6667Z"})),g=()=>r.createElement("svg",{"data-testid":"str-chat__play-icon",fill:"currentColor",viewBox:"0 0 14 18",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M0.236328 2.09338V15.9067C0.236328 16.9601 1.39633 17.6001 2.28966 17.0267L13.143 10.1201C13.9697 9.60005 13.9697 8.40005 13.143 7.86672L2.28966 0.973385C1.39633 0.400051 0.236328 1.04005 0.236328 2.09338Z"})),y=()=>r.createElement("svg",{fill:"currentColor",viewBox:"0 0 18 14",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M5.79457 10.875L2.32457 7.40502C1.93457 7.01502 1.30457 7.01502 0.91457 7.40502C0.52457 7.79502 0.52457 8.42502 0.91457 8.81502L5.09457 12.995C5.48457 13.385 6.11457 13.385 6.50457 12.995L17.0846 2.41502C17.4746 2.02502 17.4746 1.39502 17.0846 1.00502C16.6946 0.615024 16.0646 0.615024 15.6746 1.00502L5.79457 10.875Z"}));var v=n(30371),b=n(26373),D=n(4594),E=n(69241);let _=({children:e,className:t,...n})=>r.createElement("button",{className:(0,E.A)("str-chat__dialog-menu__button",t),...n},r.createElement("div",{className:"str-chat__dialog-menu__button-icon"}),r.createElement("div",{className:"str-chat__dialog-menu__button-text"},e));var w=n(79674),x=n(64099),C=n(85017);let k=({children:e,className:t,draggable:n,onSetNewOrder:a})=>{let[o,i]=(0,r.useState)([]),[s,l]=(0,r.useState)(null),[u,c]=(0,r.useState)(null),[d,p]=(0,r.useState)(null),m=null===s||null===u?void 0:s<=u?"down":"up",f=r.Children.toArray(e);return(0,r.useEffect)(()=>{i(r.Children.map(e,(e,t)=>t)||[])},[e]),(0,r.useEffect)(()=>{if(!d)return;let e=e=>{let t=e.target.closest(".str-chat__drag-and-drop-container__item");if(e.dataTransfer&&(e.dataTransfer.effectAllowed="move"),t instanceof HTMLElement){let n=Array.from(t.parentElement?.children||[]).indexOf(t);l(n),e.dataTransfer?.setData("text/plain",n.toString()),t.style.opacity="0.3"}},t=e=>{e.preventDefault();let t=e.target.closest(".str-chat__drag-and-drop-container__item");t instanceof HTMLElement&&c(Array.from(t.parentElement?.children||[]).indexOf(t))},n=()=>{c(null)},r=e=>{e.preventDefault();let t=parseInt(e.dataTransfer?.getData("text/plain")||"-1",10),n=e.target.closest(".str-chat__drag-and-drop-container__item");if(n instanceof HTMLElement){let e=Array.from(n.parentElement?.children||[]).indexOf(n);-1!==t&&t!==e&&i(n=>{let r=[...n],[o]=r.splice(t,1);return r.splice(e,0,o),a?.(r),r})}l(null),c(null)},o=e=>{let t=e.target;t instanceof HTMLElement&&(t.style.opacity=""),l(null),c(null)};return d.addEventListener("dragstart",e),d.addEventListener("dragover",t),d.addEventListener("dragleave",n),d.addEventListener("drop",r),d.addEventListener("dragend",o),()=>{d.removeEventListener("dragstart",e),d.removeEventListener("dragover",t),d.removeEventListener("dragleave",n),d.removeEventListener("drop",r),d.removeEventListener("dragend",o)}},[d,a]),r.createElement("div",{className:(0,E.A)("str-chat__drag-and-drop-container",t),ref:p},o.map((e,t)=>{let a=f[e];return r.createElement("div",{className:(0,E.A)("str-chat__drag-and-drop-container__item",{"str-chat__drag-and-drop-container__item--dragged-over-from-bottom":"up"===m&&u===t,"str-chat__drag-and-drop-container__item--dragged-over-from-top":"down"===m&&u===t}),draggable:n,key:r.isValidElement(a)?a.key:`draggable-item-${e}`},a)}))},S={"Option already exists":!0},M=({errors:e,options:t,setErrors:n,setState:i})=>{let{t:s}=(0,o.WR)("OptionFieldSet"),l=e=>t.find(t=>!!e.text.trim()&&t.id!==e.id&&t.text.trim()===e.text.trim()),u=(0,r.useCallback)(e=>{i(t=>({...t,options:e.map(e=>t.options[e])}))},[i]),c=t.length>1;return r.createElement("fieldset",{className:"str-chat__form__field str-chat__form__input-fieldset"},r.createElement("legend",{className:"str-chat__form__field-label"},s("Options")),r.createElement(k,{className:"str-chat__form__input-fieldset__values",draggable:c,onSetNewOrder:u},t.map((o,u)=>r.createElement("div",{className:(0,E.A)("str-chat__form__input-field",{"str-chat__form__input-field--draggable":c,"str-chat__form__input-field--has-error":e[o.id]}),key:`new-poll-option-${u}`},r.createElement("div",{className:"str-chat__form__input-field__value"},r.createElement(x.b,{className:"str-chat__form__input-field__error","data-testid":"poll-option-input-field-error",text:e[o.id]}),r.createElement("input",{id:o.id,onBlur:e=>
4{l({id:e.target.id,text:e.target.value})&&n(t=>({...t,[e.target.id]:s("Option already exists")}))},onChange:t=>{i(r=>{let i=r.options.length<C.y9&&(!r.options||0===r.options.slice(u+1).length&&!!t.target.value),s=r.options&&r.options.slice(u+1).length>0&&!t.target.value,c=r.options?r.options.slice(0,u):[],d=i?[{id:(0,a.Ak)(),text:""}]:(r.options||[]).slice(u+1);return(e[o.id]&&!t.target.value||S[e[o.id]]&&!l({id:t.target.id,text:t.target.value}))&&n(e=>(delete e[o.id],e)),{...r,options:[...c,...s?[]:[{...o,text:t.target.value}],...d]}})},onKeyUp:e=>{if("Enter"===e.key){let e=t[u+1].id;document.getElementById(e)?.focus()}},placeholder:s("Add an option"),type:"text",value:o.text})),c&&r.createElement("div",{className:"str-chat__drag-handle"})))))};var T=n(7970),O=n(10111);let A=({close:e,errors:t,state:n})=>{let a,i,s,l,u,{client:c}=(0,T.vd)(),{t:d}=(0,o.WR)("PollCreationDialogControls"),{handleSubmit:p}=(0,O.Oy)("PollCreationDialogControls");return r.createElement("div",{className:"str-chat__dialog__controls"},r.createElement("button",{className:"str-chat__dialog__controls-button str-chat__dialog__controls-button--cancel",onClick:e},d("Cancel")),r.createElement("button",{className:"str-chat__dialog__controls-button str-chat__dialog__controls-button--submit",disabled:(a=n.options.filter(e=>!!e.text).length>0,i=!!n.name,s=parseInt(n.max_votes_allowed?.match(C.QH)?.[0]||""),l=""===n.max_votes_allowed||!!s&&(2<=s||s<=10),u=0===t.length,!a||!i||!l||!u),onClick:async t=>{let r;try{let{poll:e}=await c.createPoll({...n,max_votes_allowed:n.max_votes_allowed?parseInt(n.max_votes_allowed):void 0,options:n.options?.filter(e=>e.text).map(e=>({text:e.text}))});r=e.id}catch(e){return}try{await p(t,{poll_id:r})}catch(e){return}e()},type:"submit"},d("Create")))};var P=n(11084);let F=({children:e,...t})=>{let n=(0,r.useRef)(null);return r.createElement("div",{className:"str-chat__form__field str-chat__form__switch-field"},r.createElement("label",null,r.createElement("div",{className:"str-chat__form__field str-chat__form__switch-field-content"},e),r.createElement("input",{type:"checkbox",...t,ref:n}),r.createElement("div",{className:(0,E.A)("str-chat__form__switch-field__switch",{"str-chat__form__switch-field__switch--on":t.checked}),onKeyUp:e=>{[" ","Enter"].includes(e.key)&&n.current&&(e.preventDefault(),n.current.click())},tabIndex:0},r.createElement("div",{className:"str-chat__form__switch-field__switch-handle"}))))},L=({labelText:e,...t})=>r.createElement(F,{...t},r.createElement("div",{className:"str-chat__form__field str-chat__form__switch-field__text"},e)),R=({close:e})=>{let{client:t}=(0,T.vd)(),{t:n}=(0,o.WR)(),[i,s]=(0,r.useState)(),[l,u]=(0,r.useState)({}),[c,d]=(0,r.useState)(),[p,m]=(0,r.useState)(()=>({allow_answers:!1,allow_user_suggested_options:!1,description:"",enforce_unique_vote:!0,id:(0,a.Ak)(),max_votes_allowed:"",name:"",options:[{id:(0,a.Ak)(),text:""}],user_id:t.user?.id,voting_visibility:"public"}));return r.createElement("div",{className:"str-chat__dialog str-chat__poll-creation-dialog","data-testid":"poll-creation-dialog"},r.createElement(P.r,{close:e,title:n("Create poll")}),r.createElement("div",{className:"str-chat__dialog__body"},r.createElement("form",{autoComplete:"off"},r.createElement("div",{className:(0,E.A)("str-chat__form__field str-chat__form__input-field str-chat__form__input-field--with-label",{"str-chat__form__input-field--has-error":i})},r.createElement("label",{className:"str-chat__form__field-label",htmlFor:"name"},n("Question")),r.createElement("div",{className:(0,E.A)("str-chat__form__input-field__value")},r.createElement(x.b,{className:"str-chat__form__input-field__error","data-testid":"poll-name-input-field-error",text:i}),r.createElement("input",{id:"name",onBlur:e=>{e.target.value||s("The field is required")},onChange:e=>{m(t=>({...t,name:e.target.value})),i&&e.target.value&&s(void 0)},placeholder:n("Ask a question"),type:"text",value:p.name}))),r.createElement(M,{errors:l,options:p.options,setErrors:u,setState:m}),r.createElement("div",{className:(0,E.A)("str-chat__form__expandable-field",{"str-chat__form__expandable-field--expanded":!p.enforce_unique_vote})},r.createElement(L,{checked:!p.enforce_unique_vote,id:"enforce_unique_vote",labelText:n("Multiple answers"),onChange:e=>{m(t=>({...t,enforce_unique_vote:!e.target.checked,max_votes_allowed:""})),d(void 0)}}),!p.enforce_unique_vote&&r.createElement("div",{className:(0,E.A)("str-chat__form__input-field",{"str-chat__form__input-field--has-error":c})},r.createElement("div",{className:(0,E.A)("str-chat__form__input-field__value")},r.createElement(x.b,{className:"str-chat__form__input-field__error","data-testid":"poll-max-votes-allowed-in
4put-field-error",text:c}),r.createElement("input",{id:"max_votes_allowed",onChange:e=>{e.target.validity.valid&&(!e.target.value||e.target.value.match(C.QH))?c&&d(void 0):d(n("Type a number from 2 to 10")),m(t=>({...t,max_votes_allowed:e.target.value}))},placeholder:n("Maximum number of votes (from 2 to 10)"),type:"number",value:p.max_votes_allowed})))),r.createElement(L,{checked:"anonymous"===p.voting_visibility,id:"voting_visibility",labelText:n("Anonymous poll"),onChange:e=>m(t=>({...t,voting_visibility:e.target.checked?"anonymous":"public"}))}),r.createElement(L,{checked:p.allow_user_suggested_options,id:"allow_user_suggested_options",labelText:n("Allow option suggestion"),onChange:e=>m(t=>({...t,allow_user_suggested_options:e.target.checked}))}),r.createElement(L,{checked:p.allow_answers,id:"allow_answers",labelText:n("Allow comments"),onChange:e=>m(t=>({...t,allow_answers:e.target.checked}))}))),r.createElement(A,{close:e,errors:[...i??[],...c??[],...Object.keys(l)],state:p}))};var j=n(36771),N=n(8795),I=n(76844);let B=(0,r.forwardRef)(function({onFileChange:e,resetOnChange:t=!0,...n},a){let o=(0,N.lJ)(t,e);return r.createElement("input",{onChange:o,ref:a,type:"file",...n})}),z=(0,r.forwardRef)(function({className:e,onFileChange:t,...n},i){let{t:s}=(0,o.WR)("UploadFileInput"),{acceptedFiles:l=[],multipleUploads:u}=(0,I.BX)("UploadFileInput"),{isUploadEnabled:c,maxFilesLeft:d,uploadNewFiles:p}=(0,O.Oy)("UploadFileInput"),m=(0,r.useMemo)(()=>(0,a.Ak)(),[]),f=(0,r.useCallback)(e=>{p(e),t?.(e)},[t,p]);return r.createElement(B,{accept:l?.join(","),"aria-label":s("aria/File upload"),"data-testid":"file-input",disabled:!c||0===d,id:m,multiple:u,...n,className:(0,E.A)("str-chat__file-input",e),onFileChange:f,ref:i})});var H=n(10623);let U=(0,r.createContext)({fileInput:null}),V=({children:e,value:t})=>r.createElement(U.Provider,{value:t},e);var W=n(2768);let $=()=>{let{AttachmentSelectorInitiationButtonContents:e,FileUploadIcon:t=s}=(0,H.aD)(),n=(0,r.useRef)(null),[a,o]=(0,r.useState)(null),i=(0,W.Y)();return(0,r.useEffect)(()=>{if(!a)return;let e=e=>{[" ","Enter"].includes(e.key)&&n.current&&(e.preventDefault(),n.current.click())};return a.addEventListener("keyup",e),()=>{a.removeEventListener("keyup",e)}},[a]),r.createElement("div",{className:"str-chat__file-input-container","data-testid":"file-upload-button"},r.createElement(z,{id:i,ref:n}),r.createElement("label",{className:"str-chat__file-input-label",htmlFor:i,ref:o,tabIndex:0},e?r.createElement(e,null):r.createElement(t,null)))},q=()=>{let{AttachmentSelectorInitiationButtonContents:e,FileUploadIcon:t}=(0,H.aD)("SimpleAttachmentSelector");return e?r.createElement(e,null):t?r.createElement(t,null):r.createElement("div",{className:"str-chat__attachment-selector__menu-button__icon"})},Y={File({closeMenu:e}){let{t}=(0,o.WR)(),{fileInput:n}=(0,r.useContext)(U);return r.createElement(_,{className:"str-chat__attachment-selector-actions-menu__button str-chat__attachment-selector-actions-menu__upload-file-button",onClick:()=>{n&&n.click(),e()}},t("File"))},Poll({closeMenu:e,openModalForAction:t}){let{t:n}=(0,o.WR)();return r.createElement(_,{className:"str-chat__attachment-selector-actions-menu__button str-chat__attachment-selector-actions-menu__create-poll-button",onClick:()=>{t("createPoll"),e()}},n("Poll"))}},K=[{ActionButton:Y.File,type:"uploadFile"},{ActionButton:Y.Poll,type:"createPoll"}],G=({attachmentSelectorActionSet:e=K,getModalPortalDestination:t})=>{let{t:n}=(0,o.WR)(),{channelCapabilities:a}=(0,I.BX)(),{isThreadInput:i}=(0,O.Oy)(),s=(e=>{let{PollCreationDialog:t=R}=(0,H.aD)(),{channelCapabilities:n,channelConfig:r}=(0,I.BX)(),{isThreadInput:a}=(0,O.Oy)();return e.filter(e=>("uploadFile"!==e.type||!!n["upload-file"])&&("createPoll"!==e.type||!!r?.polls&&!a&&!!n["send-poll"])).map(e=>"createPoll"!==e.type||e.ModalContent?e:{...e,ModalContent:t})})(e),l=`attachment-actions-menu${i?"-thread":""}`,u=(0,b.sp)({id:l}),c=(0,b.mC)(l),[d,p]=(0,r.useState)(),m=(0,r.useCallback)(e=>{let t=s.find(t=>t.type===e);t?.ModalContent&&p(t)},[s]),f=(0,r.useCallback)(()=>p(void 0),[]),[h,g]=(0,r.useState)(null),y=(0,r.useRef)(null),E=(0,r.useCallback)(()=>document.getElementById(v._),[]);if(0===s.length)return null;if(1===s.length&&"uploadFile"===s[0].type)return r.createElement($,null);let _=d?.ModalContent,x=!!_;return r.createElement(V,{value:{fileInput:h}},r.createElement("div",{className:"str-chat__attachment-selector"},a["upload-file"]&&r.createElement(z,{ref:g}),r.createElement("button",{"aria-expanded":c,"aria-haspopup":"true","aria-label":n("aria/Open Attachment Selector"),className:"str-chat__attachment-selector__menu-button","data-testid":"invoke-attachment-selector-button",onClick:()=>
4u?.toggle(),ref:y},r.createElement(q,null)),r.createElement(D.Y,{id:l,placement:"top-start",referenceElement:y.current,trapFocus:!0},r.createElement("div",{className:"str-chat__attachment-selector-actions-menu str-chat__dialog-menu","data-testid":"attachment-selector-actions-menu"},s.map(({ActionButton:e,type:t})=>r.createElement(e,{closeMenu:u.close,key:`attachment-selector-item-${t}`,openModalForAction:m})))),r.createElement(j.Z,{getPortalDestination:t??E,isOpen:x},r.createElement(w.a,{className:"str-chat__create-poll-modal",onClose:f,open:x},_&&r.createElement(_,{close:f})))))};var Z=n(27190);let X=({attachment:e,handleRetry:t,removeAttachments:n})=>{let{t:a}=(0,o.WR)("UnsupportedAttachmentPreview"),s=e.title??a("Unsupported attachment");return r.createElement("div",{className:"str-chat__attachment-preview-unsupported","data-testid":"attachment-preview-unknown"},r.createElement("div",{className:"str-chat__attachment-preview-file-icon"},r.createElement(Z.o,{filename:s,mimeType:e.mime_type})),r.createElement("button",{className:"str-chat__attachment-preview-delete","data-testid":"file-preview-item-delete-button",disabled:e.localMetadata?.uploadState==="uploading",onClick:()=>e.localMetadata?.id&&n([e.localMetadata?.id])},r.createElement(l,null)),e.localMetadata?.uploadState==="failed"&&!!t&&r.createElement("button",{className:"str-chat__attachment-preview-error str-chat__attachment-preview-error-file","data-testid":"file-preview-item-retry-button",onClick:()=>t(e)},r.createElement(u,null)),r.createElement("div",{className:"str-chat__attachment-preview-metadata"},r.createElement("div",{className:"str-chat__attachment-preview-title",title:s},s),e.localMetadata?.uploadState==="finished"&&!!e.asset_url&&r.createElement("a",{className:"str-chat__attachment-preview-file-download",download:!0,href:e.asset_url,rel:"noreferrer",target:"_blank"},r.createElement(c,null)),e.localMetadata?.uploadState==="uploading"&&r.createElement(i,{size:17})))};var Q=n(54819),J=n(55661);let ee=({durationSeconds:e})=>r.createElement("div",{className:(0,E.A)("str-chat__recording-timer",{"str-chat__recording-timer--hours":e>=3600})},(0,J.Zw)(e));var et=n(54030);let en=({attachment:e,handleRetry:t,removeAttachments:n})=>{let{audioRef:a,isPlaying:o,secondsElapsed:s,togglePlay:c}=(0,et.k)({mimeType:e.mime_type});return r.createElement("div",{className:"str-chat__attachment-preview-voice-recording","data-testid":"attachment-preview-voice-recording"},r.createElement("audio",{ref:a},r.createElement("source",{"data-testid":"audio-source",src:e.asset_url,type:e.mime_type})),r.createElement(Q.D,{isPlaying:o,onClick:c}),r.createElement("button",{className:"str-chat__attachment-preview-delete","data-testid":"file-preview-item-delete-button",disabled:e.localMetadata?.uploadState==="uploading",onClick:()=>e.localMetadata?.id&&n([e.localMetadata.id])},r.createElement(l,null)),e.localMetadata?.uploadState==="failed"&&!!t&&r.createElement("button",{className:"str-chat__attachment-preview-error str-chat__attachment-preview-error-file","data-testid":"file-preview-item-retry-button",onClick:()=>t(e)},r.createElement(u,null)),r.createElement("div",{className:"str-chat__attachment-preview-metadata"},r.createElement("div",{className:"str-chat__attachment-preview-file-name",title:e.title},e.title),void 0!==e.duration&&r.createElement(ee,{durationSeconds:s||e.duration}),e.localMetadata?.uploadState==="uploading"&&r.createElement(i,{size:17})),r.createElement("div",{className:"str-chat__attachment-preview-file-icon"},r.createElement(Z.o,{filename:e.title,mimeType:e.mime_type})))},er=({attachment:e,handleRetry:t,removeAttachments:n})=>{let{t:a}=(0,o.WR)("FilePreview");return r.createElement("div",{className:"str-chat__attachment-preview-file","data-testid":"attachment-preview-file"},r.createElement("div",{className:"str-chat__attachment-preview-file-icon"},r.createElement(Z.o,{filename:e.title,mimeType:e.mime_type})),r.createElement("button",{"aria-label":a("aria/Remove attachment"),className:"str-chat__attachment-preview-delete","data-testid":"file-preview-item-delete-button",disabled:e.localMetadata?.uploadState==="uploading",onClick:()=>e.localMetadata?.id&&n([e.localMetadata?.id])},r.createElement(l,null)),e.localMetadata?.uploadState==="failed"&&!!t&&r.createElement("button",{className:"str-chat__attachment-preview-error str-chat__attachment-preview-error-file","data-testid":"file-preview-item-retry-button",onClick:()=>t(e)},r.createElement(u,null)),r.createElement("div",{className:"str-chat__attachment-preview-file-end"},r.createElement("div",{className:"str-chat__attachment-preview-file-name",title:e.title},e.title),e.localMetadata?.uploadState==="finished"&&!!e.asset_url&&r.createElement("a",{"aria-label":a("aria/D
4ownload attachment"),className:"str-chat__attachment-preview-file-download",download:!0,href:e.asset_url,rel:"noreferrer",target:"_blank",title:a("Download attachment {{ name }}",{name:e.title})},r.createElement(c,null)),e.localMetadata?.uploadState==="uploading"&&r.createElement(i,{size:17})))};var ea=n(34941);let eo=({attachment:e,handleRetry:t,removeAttachments:n})=>{let{t:a}=(0,o.WR)("ImagePreviewItem"),{BaseImage:s=ea.d}=(0,H.aD)("ImagePreview"),[c,d]=(0,r.useState)(!1),{id:p,uploadState:m}=e.localMetadata??{},f=(0,r.useCallback)(()=>d(!0),[]),h=e.image_url||e.localMetadata.previewUri;return r.createElement("div",{className:(0,E.A)("str-chat__attachment-preview-image",{"str-chat__attachment-preview-image--error":c}),"data-testid":"attachment-preview-image"},r.createElement("button",{"aria-label":a("aria/Remove attachment"),className:"str-chat__attachment-preview-delete","data-testid":"image-preview-item-delete-button",disabled:"uploading"===m,onClick:()=>p&&n([p])},r.createElement(l,null)),"failed"===m&&r.createElement("button",{className:"str-chat__attachment-preview-error str-chat__attachment-preview-error-image","data-testid":"image-preview-item-retry-button",onClick:()=>t(e)},r.createElement(u,null)),"uploading"===m&&r.createElement("div",{className:"str-chat__attachment-preview-image-loading"},r.createElement(i,{size:17})),h&&r.createElement(s,{alt:e.fallback,className:"str-chat__attachment-preview-thumbnail",onError:f,src:h,title:e.fallback}))},ei=({AudioAttachmentPreview:e=er,FileAttachmentPreview:t=er,ImageAttachmentPreview:n=eo,UnsupportedAttachmentPreview:a=X,VideoAttachmentPreview:o=er,VoiceRecordingPreview:i=en})=>{let{attachments:s,removeAttachments:l,uploadAttachment:u}=(0,O.Oy)("AttachmentPreviewList");return r.createElement("div",{className:"str-chat__attachment-preview-list"},r.createElement("div",{className:"str-chat__attachment-list-scroll-container","data-testid":"attachment-list-scroll-container"},s.map(s=>{if((0,J.QZ)(s))return null;if((0,J.Gk)(s))return r.createElement(i,{attachment:s,handleRetry:u,key:s.localMetadata.id||s.asset_url,removeAttachments:l});if((0,J.Vv)(s))return r.createElement(e,{attachment:s,handleRetry:u,key:s.localMetadata.id||s.asset_url,removeAttachments:l});if((0,J.FQ)(s))return r.createElement(o,{attachment:s,handleRetry:u,key:s.localMetadata.id||s.asset_url,removeAttachments:l});if((0,J.Ux)(s))return r.createElement(n,{attachment:s,handleRetry:u,key:s.localMetadata.id||s.image_url,removeAttachments:l});if((0,J.by)(s))return r.createElement(t,{attachment:s,handleRetry:u,key:s.localMetadata.id||s.asset_url,removeAttachments:l});else if((0,J.R2)(s))return r.createElement(a,{attachment:s,handleRetry:u,key:s.localMetadata.id,removeAttachments:l});return null})))},es=({cooldownInterval:e})=>{let t=(({startFrom:e})=>{let[t,n]=(0,r.useState)();return(0,r.useEffect)(()=>{let e;return"number"==typeof t&&t>0&&(e=setTimeout(()=>{n(t-1)},1e3)),()=>{clearTimeout(e)}},[t]),(0,r.useEffect)(()=>{n(e??0)},[e]),t})({startFrom:e});return r.createElement("div",{className:"str-chat__message-input-cooldown","data-testid":"cooldown-timer"},t)},el=({sendMessage:e,...t})=>r.createElement("button",{"aria-label":"Send",className:"str-chat__send-button","data-testid":"send-button",onClick:e,type:"button",...t},r.createElement(p,null)),eu=({onClick:e,...t})=>{let{t:n}=(0,o.WR)();return r.createElement("button",{"aria-label":n("aria/Stop AI Generation"),className:"str-chat__stop-ai-generation-button","data-testid":"stop-ai-generation-button",onClick:e,...t})};var ec=n(29464);let ed=({durationSeconds:e,mimeType:t,waveformData:n,...a})=>{let{audioRef:o,isPlaying:i,progress:s,secondsElapsed:l,seek:u,togglePlay:c}=(0,et.k)({durationSeconds:e,mimeType:t}),d=l||e;return r.createElement(r.Fragment,null,r.createElement("audio",{ref:o},r.createElement("source",{src:a.src,type:t})),r.createElement("button",{className:"str-chat__audio_recorder__toggle-playback-button","data-testid":"audio-recording-preview-toggle-play-btn",onClick:c},i?r.createElement(h,null):r.createElement(g,null)),r.createElement(ee,{durationSeconds:d}),r.createElement("div",{className:"str-chat__wave-progress-bar__track-container"},r.createElement(ec.u,{progress:s,seek:u,waveformData:n||[]})))},ep=({maxDataPointsDrawn:e=100}
4)=>{let{recordingController:{recorder:t}}=(0,O.Oy)(),[n,a]=(0,r.useState)([]);return((0,r.useEffect)(()=>{if(!t?.amplitudeRecorder)return;let e=t.amplitudeRecorder.amplitudes.subscribe(a);return()=>{e.unsubscribe()}},[t]),t)?r.createElement("div",{className:"str-chat__waveform-box-container"},r.createElement("div",{className:"str-chat__audio_recorder__waveform-box"},n.slice(-e).map((e,t)=>r.createElement("div",{className:"str-chat__wave-progress-bar__amplitude-bar",key:`amplitude-${t}-voice-recording`,style:{"--str-chat__wave-progress-bar__amplitude-bar-height":e?100*e+"%":"0%"}})))):null},em=()=>{let{secondsElapsed:e,startCounter:t,stopCounter:n}=(({startOnMount:e}={})=>{let[t,n]=(0,r.useState)(0),a=(0,r.useRef)(void 0),o=(0,r.useCallback)(()=>{a.current||(a.current=setInterval(()=>{n(e=>e+1)},1e3))},[]),i=(0,r.useCallback)(()=>{clearInterval(a.current),a.current=void 0},[]);return(0,r.useEffect)(()=>{if(e)return o(),()=>{i()}},[o,e,i]),{secondsElapsed:t,startCounter:o,stopCounter:i}})(),{recordingController:{recorder:a}}=(0,O.Oy)();return(0,r.useEffect)(()=>{if(!a?.mediaRecorder)return;let{mediaRecorder:e}=a;return"recording"===e.state&&t(),e.addEventListener("start",t),e.addEventListener("resume",t),e.addEventListener("stop",n),e.addEventListener("pause",n),()=>{e.removeEventListener("start",t),e.removeEventListener("resume",t),e.removeEventListener("stop",n),e.removeEventListener("pause",n)}},[a,t,n]),r.createElement(r.Fragment,null,r.createElement(ee,{durationSeconds:e}),r.createElement(ep,null))};var ef=n(10358);let eh=()=>{let{recordingController:{completeRecording:e,recorder:t,recording:n,recordingState:a}}=(0,O.Oy)(),o=n?.localMetadata?.uploadState==="uploading",s=(0,r.useMemo)(()=>({paused:a===ef.tj.PAUSED,recording:a===ef.tj.RECORDING,stopped:a===ef.tj.STOPPED}),[a]);return t?r.createElement("div",{className:"str-chat__audio_recorder-container"},r.createElement("div",{className:"str-chat__audio_recorder","data-testid":"audio-recorder"},r.createElement("button",{className:"str-chat__audio_recorder__cancel-button","data-testid":"cancel-recording-audio-button",disabled:o,onClick:t.cancel},r.createElement(f,null)),s.stopped&&n?.asset_url?r.createElement(ed,{durationSeconds:n.duration??0,mimeType:n.mime_type,src:n.asset_url,waveformData:n.waveform_data}):s.paused||s.recording?r.createElement(em,null):null,s.paused&&r.createElement("button",{className:"str-chat__audio_recorder__resume-recording-button",onClick:t.resume},r.createElement(m,null)),s.recording&&r.createElement("button",{className:"str-chat__audio_recorder__pause-recording-button","data-testid":"pause-recording-audio-button",onClick:t.pause},r.createElement(h,null)),s.stopped?r.createElement("button",{className:"str-chat__audio_recorder__complete-button","data-testid":"audio-recorder-complete-button",disabled:o,onClick:e},o?r.createElement(i,null):r.createElement(p,null)):r.createElement("button",{className:"str-chat__audio_recorder__stop-button","data-testid":"audio-recorder-stop-button",onClick:t.stop},r.createElement(y,null)))):null},eg=({onClose:e,permissionName:t})=>{let{t:n}=(0,o.WR)(),a={body:{camera:n("To start recording, allow the camera access in your browser"),microphone:n("To start recording, allow the microphone access in your browser")},heading:{camera:n("Allow access to camera"),microphone:n("Allow access to microphone")}};return r.createElement("div",{className:"str-chat__recording-permission-denied-notification"},r.createElement("div",{className:"str-chat__recording-permission-denied-notification__heading"},a.heading[t]),r.createElement("p",{className:"str-chat__recording-permission-denied-notification__message"},a.body[t]),r.createElement("div",{className:"str-chat__recording-permission-denied-notification__dismiss-button-container"},r.createElement("button",{className:"str-chat__recording-permission-denied-notification__dismiss-button",onClick:e},n("Ok"))))},ey=e=>r.createElement("button",{"aria-label":"Start recording audio",className:"str-chat__start-recording-audio-button","data-testid":"start-recording-audio-button",...e},r.createElement(m,null));var ev=n(97151),eb=n(86300),eD=n(43653),eE=n(63159),e_=n(80609),ew=n(85171);let ex=()=>{let{setQuotedMessage:e}=(0,e_.KS)("QuotedMessagePreview"),{t}=(0,o.WR)("QuotedMessagePreview");return r.createElement("div",{className:"str-chat__quoted-message-preview-header"},r.createElement("div",{className:"str-chat__quoted-message-reply-to-message"},t("Reply to Message")),r.createElement("button",{"aria-label":t("aria/Cancel Reply"),className:"str-chat__quoted-message-remove",onClick:()=>e(void 0)},r.createElement(l,null)))},eC=({quotedMessage:e,renderText:t=ew.S5})=>{let{client:n}=(0,T.vd)(),{Attachment:a=eb.o,Avatar:i=eD.e}=(0,H.aD)("QuotedMessagePreview"),{userLanguage:s}=(0,o.WR)("QuotedMessagePreview"),l=e.i18n?.[`${s}_text`]||e.text,u=(0,r.useMemo)(()=>t(l,e.mentioned_users),[e.mentioned_users,l,t]),c=(0,r.useMemo)(()=>{let[t]=e.attachments??[];return t?[t]:[]},[e.attachments]);if(!l&&!c)return null;let d=e.poll_id&&n.polls.fromState(e.poll_id);return r.createElement("div",{className:"str-chat__quoted-message-preview","data-testid":"quoted-message-preview"},e.user&&r.createElement(i,{className:"str-chat__avatar--quoted-message-sender",image:e.user.image,name:e.user.name||e.user.id,user:e.user}),r.createElement("div",{className:"str-chat__quoted-message-bubble"},d?r.createElement(eE.s,{isQuoted:!0,poll:d}):r.createElement(r.Fragment,null,!!c.length&&r.createElement(a,{attachments:c,isQuoted:!0}),r.createElement("div",{className:"str-chat__quoted-message-text","data-testid":"quoted-message-text"},u))))};var ek=n(63441),eS=n(57041),eM=n(92774);let eT=({linkPreviews:e})=>{let{quotedMessage:t}=(0,I.BX)();return e.length>0&&!t?r.createElement("div",{className:"str-chat__link-preview-list"},Array.from(e.values()).map(e=>e.state===ek.m.LOADED?r.createElement(eO,{key:e.og_scrape_url,linkPreview:e}):null)):null},eO=({linkPreview:e})=>{let{dismissLinkPreview:t}=(0,O.Oy)(),{handleEnter:n,handleLeave:a,tooltipVisible:o}=(0,eM.U)(),[i,s]=(0,r.useState)(null);return r.createElement("div",{className:(0,E.A)("str-chat__link-preview-card",{"str-chat__link-preview-card--loading":e.state===ek.m.LOADING}),"data-testid":"link-preview-card"},r.createElement(eS.g,{offset:[0,5],referenceElement:i,visible:o},e.og_scrape_url),r.createElement("div",{className:"str-chat__link-preview-card__icon-container",onMouseEnter:n,onMouseLeave:a,ref:s},r.createElement(d,null)),r.createElement("div",{className:"str-chat__link-preview-card__content"},r.createElement("div",{className:"str-chat__link-preview-card__content-title"},e.title),r.createElement("div",{className:"str-chat__link-preview-card__content-description"},e.text)),r.createElement("button",{className:"str-chat__link-preview-card__dismiss-button","data-testid":"link-preview-card-dismiss-btn",onClick:()=>t(e)},r.createElement(l,null)))};var eA=n(95062),eP=n.n(eA),eF=n(44501),eL=n(40670),eR=n(97),ej=function(e){var t=r.useRef(e);return(0,eR.A)(function(){t.current=e}),t},eN=function(e,t){"function"==typeof e?e(t):e.current=t},eI=function(e,t){var n=r.useRef();return r.useCallback(function(r){e.current=r,n.current&&eN(n.current,null),n.current=t,t&&eN(t,r)},[t])},eB={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"}
4,ez=function(e){Object.keys(eB).forEach(function(t){e.style.setProperty(t,eB[t],"important")})},eH=null,eU=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},eV=function(){},eW=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],e$=!!document.documentElement.currentStyle,eq=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=eW.reduce(function(e,n){return e[n]=t[n],e},{}),r=n.boxSizing;if(""===r)return null;e$&&"border-box"===r&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var a=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),o=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:a,borderSize:o}};function eY(e,t,n){var a=ej(n);r.useLayoutEffect(function(){var n=function(e){return a.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var eK=function(e,t){eY(document.body,"reset",function(n){e.current.form===n.target&&t(n)})},eG=function(e){eY(window,"resize",e)},eZ=function(e){eY(document.fonts,"loadingdone",e)},eX=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],eQ=r.forwardRef(function(e,t){var n=e.cacheMeasurements,a=e.maxRows,o=e.minRows,i=e.onCh
4ange,s=void 0===i?eV:i,l=e.onHeightChange,u=void 0===l?eV:l,c=(0,eL.A)(e,eX),d=void 0!==c.value,p=r.useRef(null),m=eI(p,t),f=r.useRef(0),h=r.useRef(),g=function(){var e=p.current,t=n&&h.current?h.current:eq(e);if(t){h.current=t;var r,i,s,l,c,d,m,g,y,v,b,D=(r=e.value||e.placeholder||"x",void 0===(i=o)&&(i=1),void 0===(s=a)&&(s=1/0),eH||((eH=document.createElement("textarea")).setAttribute("tabindex","-1"),eH.setAttribute("aria-hidden","true"),ez(eH)),null===eH.parentNode&&document.body.appendChild(eH),l=t.paddingSize,c=t.borderSize,m=(d=t.sizingStyle).boxSizing,Object.keys(d).forEach(function(e){eH.style[e]=d[e]}),ez(eH),eH.value=r,g=eU(eH,t),eH.value=r,g=eU(eH,t),eH.value="x",v=(y=eH.scrollHeight-l)*i,"border-box"===m&&(v=v+l+c),g=Math.max(v,g),b=y*s,"border-box"===m&&(b=b+l+c),[g=Math.min(b,g),y]),E=D[0],_=D[1];f.current!==E&&(f.current=E,e.style.setProperty("height",E+"px","important"),u(E,{rowHeight:_}))}};return r.useLayoutEffect(g),eK(p,function(){if(!d){var e=p.current.value;requestAnimationFrame(function(){var t=p.current;t&&e!==t.value&&g()})}}),eG(g),eZ(g),r.createElement("textarea",(0,eF.A)({},c,{onChange:function(e){d||g(),s(e)},ref:m}))}),eJ=n(9159),e0=n.n(eJ);let e1=r.forwardRef(function(e,t){let{className:n,component:a,item:o,onClickHandler:i,onSelectHandler:s,selected:l,style:u}=e,c=(0,r.useCallback)(()=>s(o),[o,s]),d=(0,r.useCallback)(e=>i(e,o),[o,i]);return r.createElement("li",{className:(0,E.A)(n,{"str-chat__suggestion-item--selected":l}),style:u},r.createElement("a",{href:"",onClick:d,onFocus:c,onMouseEnter:c,ref:t},r.createElement(a,{entity:o,selected:l})))});var e2=n(57321);let e3=({className:e,component:t,currentTrigger:n,dropdownScroll:a,getSelectedItem:o,getTextToReplace:i,itemClassName:s,itemStyle:l,onSelect:u,selectionEnd:c,style:d,SuggestionItem:p,value:m,values:f})=>{let{AutocompleteSuggestionItem:h}=(0,H.aD)("SuggestionList"),g=p||h||e1,[y,v]=(0,r.useState)(void 0),b=[],D=e=>{let t=i(e);return t.key?t.key:"string"!=typeof e&&e.key?e.key:t.text},_=(0,r.useCallback)(e=>f.findIndex(t=>t.id?t.id===e.id:t.name===e.name),[f]),w=e=>{e&&(u(i(e)),o&&o(e))},x=(0,r.useCallback)((e,t)=>{e?.preventDefault(),w(f[_(t)])},[w,_]),C=(0,r.useCallback)(e=>{v(_(e))},[_]),k=(0,r.useCallback)(e=>("ArrowUp"===e.key&&v(e=>{if(void 0===e)return 0;let t=0===e?f.length-1:e-1;return a(b[t]),t}),"ArrowDown"===e.key&&v(e=>{if(void 0===e)return 0;let t=e===f.length-1?0:e+1;return a(b[t]),t}),("Enter"===e.key||"Tab"===e.key)&&void 0!==y&&x(e,f[y]),null),[y,f]);(0,r.useEffect)(()=>(document.addEventListener("keydown",k,!1),()=>document.removeEventListener("keydown",k)),[k]),(0,r.useEffect)(()=>{f?.length&&C(f[0])},[f]);let S=(0,r.useCallback)(e=>{let t=e.name||e.id,r=m.slice(0,c),a=r.lastIndexOf(n),o=(0,e2.Nt)(r.slice(a+1)),i=t.split(RegExp(`(${o})`,"gi"));return{...e,itemNameParts:{match:o,parts:i}}},[m,c,n]),M=(0,r.useMemo)(()=>f.map(S),[f,S]);return r.createElement("ul",{className:(0,E.A)("str-chat__suggestion-list",e),style:d},M.map((e,n)=>r.createElement(g,{className:s,component:t,item:e,key:D(e),onClickHandler:x,onSelectHandler:C,ref:e=>{b[n]=e},selected:y===f.findIndex(t=>D(t)===D(e)),style:l,value:m})))},e4="next";var e5=n(54421),e6=n(87863);class e8 extends r.Component{constructor(e){super(e),this.getSelectionPosition=()=>this.textareaRef?{selectionEnd:this.textareaRef.selectionEnd,selectionStart:this.textareaRef.selectionStart}:null,this.getSelectedText=()=>{if(!this.textareaRef)return null;let{selectionEnd:e,selectionStart:t}=this.textareaRef;return t===e?null:this.state.value.substr(t,e-t)},this.setCaretPosition=(e=0)=>{this.textareaRef&&(this.textareaRef.focus(),this.textareaRef.setSelectionRange(e,e))},this.getCaretPosition=()=>this.textareaRef?this.textareaRef.selectionEnd:0,this._defaultShouldSubmit=e=>"Enter"===e.key&&!e.shiftKey&&!e.nativeEvent.isComposing,this._handleKeyDown=e=>{let{shouldSubmit:t=this._defaultShouldSubmit}=this.props;return(("ArrowUp"===e.key||"ArrowDown"===e.key)&&this.dropdownRef&&e.preventDefault(),t?.(e))?this._onEnter(e):" "===e.key?this._onSpace(e):"Escape"===e.key?this._closeAutocomplete():void 0},this._onEnter=async e=>{!this.textareaRef||this.state.currentTrigger&&this.state.data||(e.persist(),await this._replaceWord(),this.textareaRef&&(this.textareaRef.selectionEnd=0),this.props.handleSubmit(e),this._closeAutocomplete())},this._onSpace=()=>{this.props.replaceWord&&this.textareaRef&&this.textareaRef.matches(":focus")&&this._replaceWord()},this._replaceWord=async()=>{let{value:e}=this.state,t=/([^\s]+)(\s*)$/.exec(e.slice(0,this.getCaretPosition())),n=t&&t[1];if(!n)return;let r=t[2],a=await this.props.replaceWord(n);if(null==a)return;let o=e.slice(0,this.getCaretPosition()-t[0].length),i=e.slice(this.getCaretPosition(),-1);this.setState({value:o+a+r+i},()=>{let e=new CustomEvent("change",{bubbles:!0});this.textareaRef.dispatchEvent(e),this.props.onChange&&this.props.onChange(e)}
4)},this._onSelect=e=>{let{closeCommandsList:t,closeMentionsList:n,onChange:r,showCommandsList:a,showMentionsList:o}=this.props,{currentTrigger:i,selectionEnd:s,value:l}=this.state,u=a?"/":o?"@":i;if(!u)return;let c=a?"/":o?"@":l.slice(0,s),d=c.lastIndexOf(u),p="next"===e.caretPosition?`${e.text} `:e.text,m=((e,t,n)=>{switch(e){case"start":return n;case"next":case"end":return n+t.length;default:if(!Number.isInteger(e))throw Error('RTA: caretPosition should be "start", "next", "end" or number.');return e}})(e.caretPosition,p,d),f=c.substring(0,d)+p,h=l.replace(c,f);this.setState({dataLoading:!1,value:h},()=>{let e=new CustomEvent("change",{bubbles:!0});this.textareaRef.dispatchEvent(e),r&&r(e),this.setCaretPosition(m)}),this._closeAutocomplete(),a&&t(),o&&n()},this._getItemOnSelect=e=>{let{currentTrigger:t}=this.state,n=this._getCurrentTriggerSettings(e),r=e||t;if(!r||!n)return null;let{callback:a}=n;return a?e=>{if("function"!=typeof a)throw Error('Output functor is not defined! You have to define "output" function. https://github.com/webscopeio/react-textarea-autocomplete#trigger-type');return a?a(e,r):null}:null},this._getTextToReplace=e=>{let{actualToken:t,currentTrigger:n}=this.state,r=this._getCurrentTriggerSettings(e),a=e||n;if(!a||!r)return null;let{output:o}=r;return e=>{if("object"==typeof e&&(!o||"function"!=typeof o))throw Error('Output functor is not defined! If you are using items as object you have to define "output" function. https://github.com/webscopeio/react-textarea-autocomplete#trigger-type');if(o){let n=o(e,a);if(!n||"number"==typeof n)throw Error(`Output functor should return string or object in shape {text: string, caretPosition: string | number}. 5Got "${String(n)}". Check the implementation for trigger "${a}" and its token "${t}" 6 7See https://github.com/webscopeio/react-textarea-autocomplete#trigger-type for more informations. 8`);if("string"==typeof n)return{caretPosition:e4,text:n};if(!n.text&&":"!==a)throw Error(`Output "text" is not defined! Object should has shape {text: string, caretPosition: string | number}. Check the implementation for trigger "${a}" and its token "${t}" 9`);if(!n.caretPosition)throw Error(`Output "caretPosition" is not defined! Object should has shape {text: string, caretPosition: string | number}. Check the implementation for trigger "${a}" and its token "${t}" 10`);return n}if("string"!=typeof e)throw Error("Output item should be string\n");return{caretPosition:e4,text:`${a}${e}${a}`}}},this._getCurrentTriggerSettings=e=>{let{currentTrigger:t}=this.state,n=e||t;return n?this.props.trigger[n]:null},this._getValuesFromProvider=()=>{let{actualToken:e,currentTrigger:t}=this.state,n=this._getCurrentTriggerSettings();if(!t||!n)return;let{component:r,dataProvider:a}=n;if("function"!=typeof a)throw Error("Trigger provider has to be a function!");this.setState({dataLoading:!0}),a(e,this.state.value,(e,n)=>{if(n===this.state.actualToken){if(!Array.isArray(e))throw Error("Trigger provider has to provide an array!");if(t===this.state.currentTrigger){if(!e.length)return void this._closeAutocomplete();this.setState({component:r,data:e,dataLoading:!1})}}})},this._getSuggestions=e=>{let{currentTrigger:t,data:n}=this.state;return(e||t)&&n&&(!n||n.length)?n:null},this._closeAutocomplete=()=>{this.setState({currentTrigger:null,data:null,dataLoading:!1,left:null,top:null})},this._cleanUpProps=()=>{let e={...this.props},t=["additionalTextareaProps","className","closeCommandsList","closeMentionsList","closeOnClickOutside","containerClassName","containerStyle","disableMentions","dropdownClassName","dropdownStyle","grow","handleSubmit","innerRef","itemClassName","itemStyle","listClassName","listStyle","loaderClassName","loaderStyle","loadingComponent","minChar","movePopupAsYouType","onCaretPositionChange","onChange","ref","replaceWord","scrollToItem","shouldSubmit","showCommandsList","showMentionsList","SuggestionItem","SuggestionList","trigger","value"];for(let n in e)t.includes(n)&&delete e[n];return e},this._isCommand=e=>"/"===e[0]&&e.split(" ").length<=1,this._changeHandler=e=>{let t,n,{minChar:r,movePopupAsYouType:a,onCaretPositionChange:o,onChange:i,trigger:s}=this.props,{left:l,top:u}=this.state,c=e.target,{selectionEnd:d,selectionStart:p,value:m}=c;if(i&&(e.persist(),i(e)),o&&o(this.getCaretPosition()),this.setState({value:m}),this._isCommand(m))t="/",n=m;else{let e=Object.keys(s).join().replace("/",""),r=`[^\\s${e}]*`,a=RegExp(`(?!^|\\W)?[${e}]${r}\\s?${r}$`,"g"),o=m.slice(0,d).match(a);t=(n=o&&o[o.length-1].trim())&&Object.keys(s).find(e=>e===n[0])||null}if(!n||n.length<=r)return void this._closeAutocomplete();let f=n.slice(1);if(t){if(a||null===u&&null===l||1===n.length){let{left:e,top:t}=e0()(c,d);this.setState({left:e,top:t-this.textareaRef.scrollTop||0})}this.setState({actualToken:f,currentTrigger:t,selectionEnd:d,selectionStart:p},()=>{try{this._getValuesFromProvider()}catch(t){let e;e=t.message,console.error(`RTA: dataProvider fails: ${e} 11 12Check the documentation or create issue if you think it's bug. https://github.com/webscopeio/react-textarea-autocomplete/issues`)}})}},this._selectHandler=e=>{let{onCaretPositionChange:t,onSelect:n}=this.props;t&&t(this.getCaretPosition()),n&&(e.persist(),n(e))},this._onClickAndBlurHandler=e=>{let{closeOnClickOutside:t,onBlur:n}=this.props,r=e.relatedTarget,a=!("u"<typeof navigator)&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent||"")&&"blur"===e.type;this.dropdownRef&&r instanceof Node&&this.dropdownRef.contains(r)||a||(t&&this._closeAutocomplete(),n&&(e.persist(),n(e)))},this._onScrollHandler=()=>this._closeAutocomplete(),this._dropdownScroll=e=>{let{scrollToItem:t}=this.props;if(t){if(!0===t)return void function(e,t){if(!t)return;let n=parseInt(getComputedStyle(t).getPropertyValue("height"),10),r=parseInt(getComputedStyle(e).getPropertyValue("height"),10)-n,a=e.scrollTop,o=t.offsetTop;o<a+r&&a<o||(e.scrollTop=o)}(this.dropdownRef,e);if("function"!=typeof t||2!==t.length)throw Error("`scrollToItem` has to be boolean (true for default implementation) or function with two parameters: container, item.");t(this.dropdownRef,e)}},this.getTriggerProps=()=>{let{showCommandsList:e,showMentionsList:t,trigger:n}=this.props,{component:r,currentTrigger:a,selectionEnd:o,value:i}=this.state,s=this._getItemOnSelect(),l=this._getSuggestions(),u={component:r,currentTrigger:a,getSelectedItem:s,getTextToReplace:this._getTextToReplace(),selectionEnd:o,value:i,values:l};if(e&&n["/"]||t&&n["@"]){let t,r=n[e?"/":"@"].dataProvider;r?.("",e?"/":"@",e=>{t=e}),u.component=e?e5.h:e6.D,u.currentTrigger=e?"/":"@",u.getTextToReplace=this._getTextToReplace(e?"/":"@"),u.getSelectedItem=this._getItemOnSelect(e?"/":"@"),u.selectionEnd=1,u.value=e?"/":"@",u.values=t}return u},this.setDropdownRef=e=>{this.dropdownRef=e};const{loadingComponent:t,trigger:n,value:r}=this.props;if(!t)throw Error("RTA: loadingComponent is not defined");if(!n)throw Error("RTA: trigger is not defined");this.state={actualToken:"",component:null,currentTrigger:null,data:null,dataLoading:!1,isComposing:!1,left:null,selectionEnd:0,selectionStart:0,top:null,value:r||""}}static getDerivedStateFromProps(e,t){return e.value===t.propsValue&&t.value?null:{propsValue:e.value,value:e.value}}renderSuggestionListContainer(){let{disableMentions:e,dropdownClassName:t,dropdownStyle:n,itemClassName:a,itemStyle:o,listClassName:i,SuggestionItem:s,SuggestionList:l=e3}=this.props,{isComposing:u}=this.state,c=this.getTriggerProps();return u||!c.values||!c.currentTrigger||e&&"@"===c.currentTrigger?null:r.createElement("div",{className:(0,E.A)("str-chat__suggestion-list-container",t),ref:this.setDropdownRef,style:n},r.createElement(l,{className:i,dropdownScroll:this._dropdownScroll,itemClassName:(0,E.A)("str-chat__suggestion-list-item",a),itemStyle:o,onSelect:this._onSelect,SuggestionItem:s,...c}))}render(){let{className:e,containerClassName:t,containerStyle:n,style:a}=this.props,{onBlur:o,onChange:i,onClick:s,onFocus:l,onKeyDown:u,onScroll:c,onSelect:d,...p}=this.props.additionalTextareaProps||{},{maxRows:m}=this.props,{dataLoading:f,value:h}=this.state;return this.props.grow||(m=1),r.createElement("div",{className:(0,E.A)("rta",t,{"rta--loading":f}),style:n},this.renderSuggestionListContainer(),r.createElement(eQ,{"data-testid":"message-input",...this._cleanUpProps(),className:(0,E.A)("rta__textarea",e),maxRows:m,onBlur:e=>{this._onClickAndBlurHandler(e),o?.(e)},onChange:e=>{this._changeHandler(e),i?.(e)},onClick:e=>{this._onClickAndBlurHandler(e),s?.(e)},onCompositionEnd:()=>this.setState(e=>({...e,isComposing:!1})),onCompositionStart:()=>this.setState(e=>({...e,isComposing:!0})),onFocus:e=>{this.props.onFocus?.(e),l?.(e)},onKeyDown:e=>{this._handleKeyDown(e),u?.(e)},onScroll:e=>{this._onScrollHandler(e),c?.(e)},onSelect:e=>{this._selectHandler(e),d?.(e)},ref:e=>{this.props?.innerRef(e),this.textareaRef=e},style:a,value:h,...p,defaultValue:void 0}))}}e8.defaultProps={closeOnClickOutside:!0,maxRows:10,minChar:1,movePopupAsYouType:!1,scrollToItem:!0,value:""},e8.propTypes={className:eP().string,closeOnClickOutside:eP().bool,containerClassName:eP().string,containerStyle:eP().object,disableMentions:eP().bool,dropdownClassName:eP().string,dropdownStyle:eP().object,itemClassName:eP().string,itemStyle:eP().object,listClassName:eP().string,listStyle:eP().object,loaderClassName:eP().string,loader
12Style:eP().object,loadingComponent:eP().elementType,minChar:eP().number,onBlur:eP().func,onCaretPositionChange:eP().func,onChange:eP().func,onSelect:eP().func,shouldSubmit:eP().func,style:eP().object,SuggestionList:eP().elementType,trigger:({trigger:e})=>{if(!e)return Error("Invalid prop trigger. Prop missing.");let t=Object.entries(e);for(let e=0;e<t.length;e+=1){let[n,r]=t[e];if("string"!=typeof n||1!==n.length)return Error("Invalid prop trigger. Keys of the object has to be string / one character.");let{callback:a,dataProvider:o,output:i}=r;if(!o||"function"!=typeof o)return Error("Invalid prop trigger: dataProvider should be defined.");if(i&&"function"!=typeof i)return Error("Invalid prop trigger: output should be a function.");if(a&&"function"!=typeof a)return Error("Invalid prop trigger: callback should be a function.")}return null},value:eP().string};var e9=n(2106);let e7=r.memo(e=>{let{AutocompleteSuggestionItem:t,AutocompleteSuggestionList:n}=(0,H.aD)("ChatAutoComplete"),{t:a}=(0,o.WR)("ChatAutoComplete"),i=(0,O.Oy)("ChatAutoComplete"),{cooldownRemaining:s,disabled:l,emojiSearchIndex:u,textareaRef:c}=i,d=e.placeholder||a("Type your message"),p=e.wordReplace?t=>e.wordReplace?.(t,u):async e=>{let t=(await u?.search(e)||[]).filter(Boolean).slice(0,10).find(({emoticons:t})=>!!t?.includes(e));if(!t)return null;let[n]=t.skins??[];return t.native??n.native},m=(0,r.useCallback)(e=>{c&&(c.current=e)},[c]);return r.createElement(e8,{additionalTextareaProps:i.additionalTextareaProps,"aria-label":s?a("Slow Mode ON"):d,className:"str-chat__textarea__textarea str-chat__message-textarea",closeCommandsList:i.closeCommandsList,closeMentionsList:i.closeMentionsList,containerClassName:"str-chat__textarea str-chat__message-textarea-react-host",disabled:(e.disabled??l)||!!s,disableMentions:i.disableMentions,grow:i.grow,handleSubmit:e.handleSubmit||i.handleSubmit,innerRef:m,loadingComponent:e9.I,maxRows:i.maxRows,minChar:0,minRows:i.minRows,onBlur:e.onBlur,onChange:e.onChange||i.handleChange,onFocus:e.onFocus,onPaste:e.onPaste||i.onPaste,placeholder:s?a("Slow Mode ON"):d,replaceWord:p,rows:e.rows||1,shouldSubmit:i.shouldSubmit,showCommandsList:i.showCommandsList,showMentionsList:i.showMentionsList,SuggestionItem:t,SuggestionList:n,trigger:i.autocompleteTriggers||{},value:e.value||i.text})}),te="AI_STATE_IDLE";var tt=n(96679);let tn=()=>{let{asyncMessagesMultiSendEnabled:e,attachments:t,cooldownRemaining:n,findAndEnqueueURLsToEnrich:a,handleSubmit:o,hideSendButton:i,isUploadEnabled:s,linkPreviews:l,message:u,numberOfUploads:c,parent:d,recordingController:p,setCooldownRemaining:m,text:f}=(0,O.Oy)("MessageInputFlat"),{AttachmentPreviewList:h=ei,AttachmentSelector:g=u?$:G,AudioRecorder:y=eh,CooldownTimer:v=es,EmojiPicker:b,LinkPreviewList:D=eT,QuotedMessagePreview:E=eC,RecordingPermissionDeniedNotification:_=eg,SendButton:w=el,StartRecordingAudioButton:x=ey,StopAIGenerationButton:C}=(0,H.aD)("MessageInputFlat"),{quotedMessage:k}=(0,I.BX)("MessageInputFlat"),{setQuotedMessage:S}=(0,e_.KS)("MessageInputFlat"),{channel:M}=(0,T.vd)("MessageInputFlat"),{aiState:A}=(e=>{let[t,n]=(0,r.useState)(te);return(0,r.useEffect)(()=>{if(!e)return;let t=e.on("ai_indicator.update",t=>{let{cid:r}=t,a=t.ai_state;e.cid===r&&n(a)}),r=e.on("ai_indicator.clear",t=>{let{cid:r}=t;e.cid===r&&n(te)});return()=>{t.unsubscribe(),r.unsubscribe()}},[e]),{aiState:t}})(M),P=(0,r.useCallback)(()=>M?.stopAIResponse(),[M]),[F,L]=(0,r.useState)(!1),R=(0,r.useCallback)(()=>{L(!1)},[]),j=(0,r.useMemo)(()=>t.filter(e=>e.localMetadata?.uploadState==="failed").length,[t]);if((0,r.useEffect)(()=>{let e=e=>{if(e.message?.id===k?.id){if("message.deleted"===e.type)return void S(void 0);S(e.message)}};return M?.on("message.deleted",e),M?.on("message.updated",e),()=>{M?.off("message.deleted",e),M?.off("message.updated",e)}},[M,k]),p.recordingState)return r.createElement(y,null);let N=!u&&k&&k.parent_id===d?.id,B=!!(p.recorder&&navigator.mediaDevices),z=!!p.recordingState,U=void 0===C?eu:C,V=["AI_STATE_THINKING","AI_STATE_GENERATING"].includes(A)&&!!U;return r.createElement(tt.WQ,{className:"str-chat__message-input",component:"div"},B&&"denied"===p.permissionState&&F&&r.createElement(_,{onClose:R,permissionName:ev.n.MIC}),a&&r.createElement(D,{linkPreviews:Array.from(l.values())}),N&&r.createElement(ex,null),r.createElement("div",{className:"str-chat__message-input-inner"},r.createElement(g,null),r.createElement("div",{className:"str-chat__message-textarea-container"},N&&r.createElement(E,{quotedMessage:k}),s&&!!(c+j||t.length>0)&&r.createElement(h,null),r.createElement("div",{className:"str-chat__message-textarea-with-emoji-picker"},r.createElement(e7,null),b&&r.createElement(b,null))),V?r.createElement(U,{onClick:P}):!i&&r.createElement(r.Fragment,null,n?r.createElement(v,{cooldownInterval:n,setCooldownRemaining:m}):r.createElement(r.Fragment,null,r.createElement(w,{disabled:!c&&!f.length&&t.length-j==0,sendMessage:o}),B&&r.createElement(x,{disabled:z||!e&&t.some(e=>e.type===ef.Dz.VOICE_RECORDING),onClick:()=>{p.recorder?.start(),L(!0)}})))))}}
12,97151:(e,t,n)=>{"use strict";n.d(t,{a:()=>u,n:()=>a});var r,a,o=n(39268),i=n(84721),s=n(12205);(r=a||(a={})).CAM="camera",r.MIC="microphone";let l={audio:a.MIC,video:a.CAM};class u{constructor({mediaType:e}){this.state=new s.t(void 0),this.status=new s.t(void 0),this.error=new i.B,this.changeSubscriptions=[],this.name=l[e]}get isWatching(){return this.changeSubscriptions.some(e=>!e.closed)}async watch(){if(!this.status.value&&(await this.check(),!this.status.value))return;let e=this.status.value,t=e=>{let{state:t}=e.target;this.state.next(t)};e.addEventListener("change",t),this.changeSubscriptions.push(new o.y(()=>{e.removeEventListener("change",t)}))}unwatch(){this.changeSubscriptions.forEach(e=>e.unsubscribe())}async check(){let e;if(!this.name)return void this.error.next(Error("Unknown media recording permission"));try{let t=await navigator.permissions.query({name:this.name});e=t.state,this.status.next(t)}catch(t){e="granted"}this.state.next(e)}}},97970:(e,t,n)=>{"use strict";n.d(t,{I6:()=>eR,t6:()=>ej});let r="numeric",a="ascii",o="alpha",i="asciinumeric",s="alphanumeric",l="domain",u="emoji",c="whitespace";function d(e,t,n){for(let c in t[r]&&(t[i]=!0,t[s]=!0),t[a]&&(t[i]=!0,t[o]=!0),t[i]&&(t[s]=!0),t[o]&&(t[s]=!0),t[s]&&(t[l]=!0),t[u]&&(t[l]=!0),t){let t=(c in n||(n[c]=[]),n[c]);0>t.indexOf(e)&&t.push(e)}}function p(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}p.groups={},p.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t<this.jr.length;t++){let n=this.jr[t][0],r=this.jr[t][1];if(r&&n.test(e))return r}return this.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let a=0;a<e.length;a++)this.tt(e[a],t,n,r)},tr(e,t,n,r){let a;return r=r||p.groups,t&&t.j?a=t:(a=new p(t),n&&r&&d(t,n,r)),this.jr.push([e,a]),a},ts(e,t,n,r){let a=this,o=e.length;if(!o)return a;for(let t=0;t<o-1;t++)a=a.tt(e[t]);return a.tt(e[o-1],t,n,r)},tt(e,t,n,r){if(r=r||p.groups,t&&t.j)return this.j[e]=t,t;let a,o=this.go(e);return o?(Object.assign((a=new p).j,o.j),a.jr.push.apply(a.jr,o.jr),a.jd=o.jd,a.t=o.t):a=new p,t&&(r&&(a.t&&"string"==typeof a.t?d(t,Object.assign(function(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(a.t,r),n),r):n&&d(t,n,r)),a.t=t),this.j[e]=a,a}};let m=(e,t,n,r,a)=>e.ta(t,n,r,a),f=(e,t,n,r,a)=>e.tr(t,n,r,a),h=(e,t,n,r,a)=>e.ts(t,n,r,a),g=(e,t,n,r,a)=>e.tt(t,n,r,a),y="WORD",v="UWORD",b="ASCIINUMERICAL",D="ALPHANUMERICAL",E="LOCALHOST",_="UTLD",w="SCHEME",x="SLASH_SCHEME",C="OPENBRACE",k="CLOSEBRACE",S="OPENBRACKET",M="CLOSEBRACKET",T="OPENPAREN",O="CLOSEPAREN",A="OPENANGLEBRACKET",P="CLOSEANGLEBRACKET",F="FULLWIDTHLEFTPAREN",L="FULLWIDTHRIGHTPAREN",R="LEFTCORNERBRACKET",j="RIGHTCORNERBRACKET",N="LEFTWHITECORNERBRACKET",I="RIGHTWHITECORNERBRACKET",B="FULLWIDTHLESSTHAN",z="FULLWIDTHGREATERTHAN",H="AMPERSAND",U="APOSTROPHE",V="ASTERISK",W="BACKSLASH",$="BACKTICK",q="CARET",Y="COLON",K="COMMA",G="DOLLAR",Z="EQUALS",X="EXCLAMATION",Q="HYPHEN",J="PERCENT",ee="PIPE",et="PLUS",en="POUND",er="QUERY",ea="QUOTE",eo="FULLWIDTHMIDDLEDOT",ei="SEMI",es="SLASH",el="TILDE",eu="UNDERSCORE",ec="EMOJI";var ed=Object.freeze({__proto__:null,ALPHANUMERICAL:D,AMPERSAND:H,APOSTROPHE:U,ASCIINUMERICAL:b,ASTERISK:V,AT:"AT",BACKSLASH:W,BACKTICK:$,CARET:q,CLOSEANGLEBRACKET:P,CLOSEBRACE:k,CLOSEBRACKET:M,CLOSEPAREN:O,COLON:Y,COMMA:K,DOLLAR:G,DOT:"DOT",EMOJI:ec,EQUALS:Z,EXCLAMATION:X,FULLWIDTHGREATERTHAN:z,FULLWIDTHLEFTPAREN:F,FULLWIDTHLESSTHAN:B,FULLWIDTHMIDDLEDOT:eo,FULLWIDTHRIGHTPAREN:L,HYPHEN:Q,LEFTCORNERBRACKET:R,LEFTWHITECORNERBRACKET:N,LOCALHOST:E,NL:"NL",NUM:"NUM",OPENANGLEBRACKET:A,OPENBRACE:C,OPENBRACKET:S,OPENPAREN:T,PERCENT:J,PIPE:ee,PLUS:et,POUND:en,QUERY:er,QUOTE:ea,RIGHTCORNERBRACKET:j,RIGHTWHITECORNERBRACKET:I,SCHEME:w,SEMI:ei,SLASH:es,SLASH_SCHEME:x,SYM:"SYM",TILDE:el,TLD:"TLD",UNDERSCORE:eu,UTLD:_,UWORD:v,WORD:y,WS:"WS"});let ep=/[a-z]/,em=/\p{L}/u,ef=/\p{Emoji}/u,eh=/\d/,eg=/\s/,ey=null,ev=null;function eb(e,t){let n=function(e){let t=[],n=e.length,r=0;for(;r<n;){let a,o=e.charCodeAt(r),i=o<55296||o>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(i),r+=i.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,a=[],o=0,i=0;for(;i<r;){let s=e,l=null,u=0,c=null,d=-1,p=-1;for(;i<r&&(l=s.go(n[i]));)(s=l).accepts()?(d=0,p=0,c=s):d>=0&&(d+=n[i].length,p++),u+=n[i].length,o+=n[i].length,i++;o-=d,i-=p,u-=d,a.push({t:c.t,v:t.slice(o-u,o),s:o-u,e:o})}return a}function eD(e,t,n,r,a){let o,i=t.length;for(let n=0;n<i-1;n++){let i=t[n];e.j[i]?o=e.j[i]:((o=new p(r)).jr=a.slice(),e.j[i]=o),e=o}return(o=new p(n)).jr=a.slice(),e.j[t[i-1]]=o,o}function eE(e){let t=[],n=[],r=0;for(;r<e.length;){let a=0;for(;"0123456789".indexOf(e[r+a])>=0;)a++;if(a>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+a),10);t>0;t--)n.pop();r+=a}else n.push(e[r]),r++}return t}let e_={defaultProtocol:"http",events:null,format:ex,formatHref:ex,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ew(e,t=null){let n=Object.assign({},e_);e&&(n=Object.assign(n,e instanceof ew?e.o:e));let r=n.ignoreTags,a=[];for(let e=0;e<r.length;e++)a.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=a}function ex(e){return e}function eC(e,t){this.t="token",this.v=e,this.tk=t}
12function ek(e,t){class n extends eC{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}ew.prototype={o:e_,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){let r=null!=t,a=this.o[e];return a&&("object"==typeof a?"function"==typeof(a=n.t in a?a[n.t]:e_[e])&&r&&(a=a(t,n)):"function"==typeof a&&r&&(a=a(t,n.t,n))),a},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},eC.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"â¦":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=e_.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",t,this),r=e.get("tagName",t,this),a=this.toFormattedString(e),o={}
12,i=e.get("className",t,this),s=e.get("target",t,this),l=e.get("rel",t,this),u=e.getObj("attributes",t,this),c=e.getObj("events",t,this);return o.href=n,i&&(o.class=i),s&&(o.target=s),l&&(o.rel=l),u&&Object.assign(o,u),{tagName:r,attributes:o,content:a,eventListeners:c}}};let eS=ek("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),eM=ek("text"),eT=ek("nl"),eO=ek("url",{isLink:!0,toHref(e=e_.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==E&&e[1].t===Y}}),eA=e=>new p(e);function eP(e,t,n){let r=n[0].s,a=n[n.length-1].e;return new e(t.slice(r,a),n)}let eF={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function eL(e){return eF.initialized||function(){eF.scanner=function(e=[]){let t={};p.groups=t;let n=new p;null==ey&&(ey=eE("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
12ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==ev&&(ev=eE("ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
12ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5راÙ
ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5Ù
غرب5Ù
ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2Ù
اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ
3Ù
صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4ÙÙ
راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å
«å¦2å
¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é
åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ
å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å
2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2")),g(n,"'",U),g(n,"{",C),g(n,"}",k),g(n,"[",S),g(n,"]",M),g(n,"(",T),g(n,")",O),g(n,"<",A),g(n,">",P),g(n,"ï¼",F),g(n,"ï¼",L),g(n,"ã",R),g(n,"ã",j),g(n,"ã",N),g(n,"ã",I),g(n,"ï¼",B),g(n,"ï¼",z),g(n,"&",H),g(n,"*",V),g(n,"@","AT"),g(n,"`",$),g(n,"^",q),g(n,":",Y),g(n,",",K),g(n,"$",G),g(n,".","DOT"),g(n,"=",Z),g(n,"!",X),g(n,"-",Q),g(n,"%",J),g(n,"|",ee),g(n,"+",et),g(n,"#",en),g(n,"?",er),g(n,'"',ea),g(n,"/",es),g(n,";",ei),g(n,"~",el),g(n,"_",eu),g(n,"\\",W),g(n,"ã»",eo);let m=f(n,eh,"NUM",{[r]:!0});f(m,eh,m);let eb=f(m,ep,b,{[i]:!0}),e_=f(m,em,D,{[s]:!0}),ew=f(n,ep,y,{[a]:!0});f(ew,eh,eb),f(ew,ep,ew),f(eb,eh,eb),f(eb,ep,eb);let ex=f(n,em,v,{[o]:!0});f(ex,ep),f(ex,eh,e_),f(ex,em,ex),f(e_,eh,e_),f(e_,ep),f(e_,em,e_);let eC=g(n,"\n","NL",{[c]:!0}),ek=g(n,"\r","WS",{[c]:!0}),eS=f(n,eg,"WS",{[c]:!0});g(n,"",eS),g(ek,"\n",eC),g(ek,"",eS),f(ek,eg,eS),g(eS,"\r"),g(eS,"\n"),f(eS,eg,eS),g(eS,"",eS);let eM=f(n,ef,ec,{[u]:!0});g(eM,"#"),f(eM,ef,eM),g(eM,"ï¸",eM);let eT=g(eM,"â");g(eT,"#"),f(eT,ef,eM);let eO=[[ep,ew],[eh,eb]],eA=[[ep,null],[em,ex],[eh,e_]];for(let e=0;e<ey.length;e++)eD(n,ey[e],"TLD",y,eO);for(let e=0;e<ev.length;e++)eD(n,ev[e],_,v,eA);d("TLD",{tld:!0,ascii:!0},t),d(_,{utld:!0,alpha:!0},t),eD(n,"file",w,y,eO),eD(n,"mailto",w,y,eO),eD(n,"http",x,y,eO),eD(n,"https",x,y,eO),eD(n,"ftp",x,y,eO),eD(n,"ftps",x,y,eO),d(w,{scheme:!0,ascii:!0},t),d(x,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let o=e[t][0],s=e[t][1]?{scheme:!0}:{slashscheme:!0};o.indexOf("-")>=0?s[l]=!0:ep.test(o)?eh.test(o)?s[i]=!0:s[a]=!0:s[r]=!0,h(n,o,o,s)}return h(n,"localhost",E,{ascii:!0}),n.jd=new p("SYM"),{start:n,tokens:Object.assign({groups:t},ed)}}(eF.customSchemes);for(let e=0;e<eF.tokenQueue.length;e++)eF.tokenQueue[e][1]({scanner:eF.scanner});eF.parser=function({groups:e}){let t=e.domain.concat([H,V,"AT",W,$,q,G,Z,Q,"NUM",J,ee,et,en,es,"SYM",el,eu]),n=[U,Y,K,"DOT",X,J,er,ea,ei,A,P,C,k,M,S,T,O,F,L,R,j,N,I,B,z],r=[H,U,V,W,$,q,G,Z,Q,C,k,J,ee,et,en,er,es,"SYM",el,eu],a=eA(),o=g(a,el);m(o,r,o),m(o,e.domain,o);let i=eA(),s=eA(),l=eA();m(a,e.domain,i),m(a,e.scheme,s),m(a,e.slashscheme,l),m(i,r,o),m(i,e.domain,i);let u=g(i,"AT");g(o,"AT",u),g(s,"AT",u),g(l,"AT",u);let c=g(o,"DOT");m(c,r,o),m(c,e.domain,o);let d=eA();m(u,e.domain,d),m(d,e.domain,d);let p=g(d,"DOT");m(p,e.domain,d);let f=eA(eS);m(p,e.tld,f),m(p,e.utld,f),g(u,E,f);let h=g(d,Q);g(h,Q,h),m(h,e.domain,d),m(f,e.domain,d),g(f,"DOT",p),g(f,Q,h);let y=g(i,Q),v=g(i,"DOT");g(y,Q,y),m(y,e.domain,i),m(v,r,o),m(v,e.domain,i);let b=eA(eO);m(v,e.tld,b),m(v,e.utld,b),m(b,e.domain,i),m(b,r,o),g(b,"DOT",v),g(b,Q,y),g(b,"AT",u);let D=g(b,Y),_=eA(eO);m(D,e.numeric,_);let w=eA(eO),x=eA();m(w,t,w),m(w,n,x),m(x,t,w),m(x,n,x),g(b,es,w),g(_,es,w);let eo=g(s,Y),ec=g(l,Y),ep=g(ec,es),em=g(ep,es);m(s,e.domain,i),g(s,"DOT",v),g(s,Q,y),m(l,e.domain,i),g(l,"DOT",v),g(l,Q,y),m(eo,e.domain,w),g(eo,es,w),g(eo,er,w),m(em,e.domain,w),m(em,t,w),g(em,es,w);let ef=[[C,k],[S,M],[T,O],[A,P],[F,L],[R,j],[N,I],[B,z]];for(let e=0;e<ef.length;e++){let[r,a]=ef[e],o=g(w,r);g(x,r,o);let i=eA(eO);m(o,t,i);let s=eA();m(o,n,s),g(o,a,w),m(i,t,i),m(i,n,s),m(s,t,i),m(s,n,s),g(i,a,w),g(s,a,w)}return g(a,E,b),g(a,"NL",eT),{start:a,tokens:ed}}(eF.scanner.tokens);for(let e=0;e<eF.pluginQueue.length;e++)eF.pluginQueue[e][1]({scanner:eF.scanner,parser:eF.parser});eF.initialized=!0}(),function(e,t,n){let r=n.length,a=0,o=[],i=[];for(;a<r;){let s=e,l=null,u=null,c=0,d=null,p=-1;for(;a<r&&!(l=s.go(n[a].t));)i.push(n[a++]);for(;a<r&&(u=l||s.go(n[a].t));)l=null,(s=u).accepts()?(p=0,d=s):p>=0&&p++,a++,c++;if(p<0)(a-=c)<r&&(i.push(n[a]),a++);else{i.length>0&&(o.push(eP(eM,t,i)),i=[]),a-=p,c-=p;let e=d.t,r=n.slice(a-c,a);o.push(eP(e,t,r))}}return i.length>0&&o.push(eP(eM,t,i)),o}(eF.parser.start,e,eb(eF.scanner.start,e))}function eR(e,t=null,n=null){if(t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new ew(n),a=eL(e),o=[];for(let e=0;e<a.length;e++){let n=a[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&o.push(n.toFormattedObject(r))}return o}function ej(e,t=null){let n=eL(e);return 1===n.length&&n[0].isLink&&(!t||n[0].t===t)}eL.scan=eb}
12,98723:(e,t,n)=>{"use strict";n.d(t,{Vq:()=>i,f5:()=>o,k3:()=>r,mf:()=>l,up:()=>s,vk:()=>a});let r=25,a=25,o=25,i=250,s=0x6400000,l=500},99253:(e,t,n)=>{"use strict";n.d(t,{r0:()=>o,w6:()=>i});var r=n(14232);let a=r.createContext(void 0),o=({children:e,value:t})=>r.createElement(a.Provider,{value:t},e),i=e=>{let t=(0,r.useContext)(a);return t||(console.warn(`The useTypingContext hook was called outside of the TypingContext provider. Make sure this hook is called within a child of the Channel component. The errored call is located in the ${e} component.`),{})}},99735:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},i=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,a=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(a)return a(e,n).value}return e[n]};e.exports=function e(){var t,n,r,a,u,c,d=arguments[0],p=1,m=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<m;++p)if(t=arguments[p],null!=t)for(n in t)r=l(d,n),d!==(a=l(t,n))&&(f&&a&&(i(a)||(u=o(a)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},s(d,{name:n,newValue:e(f,c,a)})):void 0!==a&&s(d,{name:n,newValue:a}));return d}}}]);
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.