Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
mattermost
/
client
/
Filename :
4402.115fd4e20d03401425c6.js
back
Copy
(self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[4402],{84402:(e,t,r)=>{"use strict";r.d(t,{xA:()=>rt});var n=r(13299),o=r(36418),i=r.n(o),a=r(44785),s=r.n(a),l="#121212",c="#212121",u="#4a4a4a",f="#a6a6a6",p="#ffffff",d="#00ccff",h="#00ff99",m="#9933ff",y="#ff6666",g="#fff35c",v=r(53442);function b(e,t,r,n){var o,i=!1,a=0;function s(){o&&clearTimeout(o)}function l(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var f=this,p=Date.now()-a;function d(){a=Date.now(),r.apply(f,c)}i||(n&&!o&&d(),s(),void 0===n&&p>e?d():!0!==t&&(o=setTimeout(n?function(){o=void 0}:d,void 0===n?e-p:e)))}return"boolean"!=typeof t&&(n=r,r=t,t=void 0),l.cancel=function(){s(),i=!0},l}function w(e,t,r){return void 0===r?b(e,t,!1):b(e,r,!1!==t)}r(91315);var E,_=Object.defineProperty,x=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,S=(e,t,r)=>t in e?_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L=(e,t)=>{for(var r in t||(t={}))C.call(t,r)&&S(e,r,t[r]);if(x)for(var r of x(t))k.call(t,r)&&S(e,r,t[r]);return e},j=(e,t,r)=>{const o=(0,n.Up)(e,[r]),i=(0,n.Up)(t,[r]);return o[r]&&i[r]?L(L(L({},e),t),{[r]:o[r]+", "+i[r]}):L(L({},e),t)},O=("undefined"!=typeof window?window:global)||{},A=`${(null==(E=O)?void 0:E.GIPHY_PINGBACK_URL)||"https://pingback.giphy.com"}/v2/pingback?apikey=l0HlIwPWyBBUDAUgM`,I=[];O.giphyRandomId=(0,n.t0)();var P="";function R(){const e=[...I];I=[],(e=>{const t=(0,n.D6)();null==t||t.set("Content-Type","application/json"),n.Vy.debug("Pingback session",e),e.length?fetch(A,{method:"POST",body:JSON.stringify({events:e}),headers:t}).catch((e=>{n.Vy.warn(`pingbacks failing to post ${e}`)})):new Promise((e=>e()))})(e)}var D,N,$=w(1e3,R);null==(N=(D=O).addEventListener)||N.call(D,"beforeunload",R);var T=({userId:e,eventType:t,actionType:r,attributes:o,queueEvents:i=!0,analyticsResponsePayload:a})=>{P=e?String(e):P;const s={ts:Date.now(),attributes:o,action_type:r,user_id:(0,n.t0)(),analytics_response_payload:a};P&&(s.logged_in_user_id=P),s.analytics_response_payload&&(s.analytics_response_payload=`${s.analytics_response_payload}${n.Vy.ENABLED?"&mode=verification":""}`),t&&(s.event_type=t),I.push(s),i?$():R()},M=r(70897),F=r(55814),G=r(4386),V=r(75349),H=r(55690),z=r(42016),B=Object.defineProperty,U=Object.defineProperties,W=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,Z=(e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y=(e,t)=>{for(var r in t||(t={}))q.call(t,r)&&Z(e,r,t[r]);if(K)for(var r of K(t))Q.call(t,r)&&Z(e,r,t[r]);return e},X=(e,t)=>U(e,W(t)),J=(e,t,r)=>new Promise(((n,o)=>{var i=e=>{try{s(r.next(e))}catch(e){o(e)}},a=e=>{try{s(r.throw(e))}catch(e){o(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,a);s((r=r.apply(e,t)).next())})),ee=s().img` object-fit: cover; width: 32px; height: 32px; margin-right: 8px; `,te=({user:e,className:t=""})=>{const r=(0,o.useRef)(Math.floor(5*Math.random())+1),n=e.avatar_url?(e=>{var t,r;if(!e)return"";const n=null==(r=null==(t=null==e?void 0:e.split("."))?void 0:t.pop())?void 0:r.toLowerCase();return e.replace(`.${n}`,`/80h.${n}`)})(e.avatar_url):`https://media.giphy.com/avatars/default${r.current}.gif`;return i().createElement(ee,{src:n,className:t})},re=({className:e="",size:t=17,fill:r="#15CDFF"})=>i().createElement("svg",{className:[re.className,e].join(" "),height:t,width:"19px",viewBox:"0 0 19 17"},i().createElement("path",{className:re.checkMarkClassName,d:"M9.32727273,9.44126709 L9.32727273,3.03016561 L6.55027155,3.03016561 L6.55027155,10.8150746 L6.55027155,12.188882 L12.1042739,12.188882 L12.1042739,9.44126709 L9.32727273,9.44126709 Z",fill:l,transform:"translate(9.327273, 7.609524) scale(-1, 1) rotate(-45.000000) translate(-9.327273, -7.609524) "}),i().createElement("g",{transform:"translate(-532.000000, -466.000000)",fill:r},i().createElement("g",{transform:"translate(141.000000, 235.000000)"},i().createElement("g",{transform:"translate(264.000000, 0.000000)"},i().createElement("g",{transform:"translate(10.000000, 224.000000)"},i().createElement("g",{transform:"translate(114.000000, 2.500000)"},i().createElement("path",{d:"M15.112432,4.80769231 L16.8814194,6.87556817 L19.4157673,7.90116318 L19.6184416,10.6028916 L21.0594951,12.9065042 L19.6184416,15.2101168 L19.4157673,17.9118452 L16.8814194,18.9374402 L15.112432,21.0053161 L12.4528245,20.3611511 L9.79321699,21.0053161 L8.02422954,18.9374402 L5.48988167,17.9118452 L5.28720734,15.2101168 L3.84615385,12.9065042 L5.28720734,10.6028916 L5.48988167,7.90116318 L8.02422954,6.87556817 L9.79321699,4.80769231 L12.4528245,5.4518573 L15.112432,4.80769231 Z M17.8163503,10.8991009 L15.9282384,9.01098901 L11.5681538,13.3696923 L9.68115218,11.4818515 L7.81302031,13.3499833 L9.7011322,15.2380952 L11.5892441,17.1262071 L17.8163503,10.8991009 Z"})))))));re.className="giphy-verified-badge",re.checkMarkClassName="giphy-verified-checkmark";var ne=re,oe=s().div` color: white; font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; -webkit-font-smoothing: antialiased; `,ie=s()(ne)` margin-left: 4px; flex-shrink: 0; `,ae=s().div` display: flex; align-items: center; min-width: 0; `,se=({user:e})=>{const{display_name:t,username:r}=e;return i().createElement(ae,null,i().createElement(oe,null,t||`@${r}`),e.is_verified?i().createElement(ie,{size:14}):null)},le=s().div` display: flex; align-items: center; font-family: interface, helvetica, arial; `,ce=s()(te)` flex-shrink: 0; `,ue=({gif:e,className:t,onClick:r})=>{const{user:n}=e;return(null==n?void 0:n.username)||(null==n?void 0:n.display_name)?i().createElement(le,{className:[ue.className,t].join(" "),onClick:t=>{if(t.preventDefault(),t.stopPropagation(),r)r(e);else{const e=n.profile_url;e&&window.open(e,"_blank")}}},i().createElement(ce,{user:n}),i().createElement(se,{user:e.user})):null};ue.className="giphy-attribution";var fe=ue,pe=s().div` background: linear-gradient(rgba(0, 0, 0, 0), rgba(18, 18, 18, 0.6)); cursor: default; position: absolute; bottom: 0; left: 0; right: 0; height: 75px; pointer-events: none; `,de=s()(fe)` position: absolute; bottom: 10px; left: 10px; right: 10px; `,he=s().div` transition: opacity 150ms ease-in; `,me=({gif:e,isHovered:t,onClick:r})=>{const n=(0,o.useRef)(t);return t&&(n.current=!0),e.user&&n.current?i().createElement(he,{style:{opacity:t?1:0}},i().createElement(pe,null),i().createElement(de,{gif:e,onClick:r})):null},ye=({children:e,className:t,onVisibleChange:r,config:n})=>{const a=(0,o.useRef)(null);return(0,o.useEffect)((()=>{let e;return a.current&&(e=new IntersectionObserver((([e])=>{r&&r(e.isIntersecting)}),n),e.observe(a.current)),()=>null==e?void 0:e.disconnect()}),[r,a,n]),i().createElement("div",{ref:a,className:t},e)},ge=e=>(t,r,o,i={})=>{t.analytics_response_payload&&T({analyticsResponsePayload:t.analytics_response_payload,userId:r,actionType:e,attributes:Y({position:JSON.stringify((0,n.Sj)(o))},i)})},ve=ge("CLICK"),be=ge("HOVER"),we=(0,o.createContext)({}),Ee=({attributes:e,children:t})=>{const{attributes:r={}}=(0,o.useContext)(we);return i().createElement(we.Provider,{value:{attributes:j(r,e,"layout_type")}},t)},_e=s().div` position: relative; display: block; img { display: block; } .${ne.className} { g { fill: white; } } .${ne.checkMarkClassName} { opacity: 0; } `,xe=[d,h,m,y,g],Ce="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ke=!("undefined"==typeof window||!window.document||!window.document.createElement),Se=()=>{},Le=({children:e})=>{const[t,r]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{r(!0)}),[]),t?i().createElement(i().Fragment,null,e):null},je=({gif:e,width:t,percentWidth:r,height:a,onGifRightClick:s=Se,className:l="",onGifClick:c=Se,onGifKeyPress:u=Se,onGifSeen:f=Se,onGifVisible:p=Se,user:d={},backgroundColor:h,overlay:m,hideAttribution:y=!1,noLink:g=!1,borderRadius:v=4,style:b,tabIndex:w})=>{const[E,_]=(0,o.useState)(!1),[x,C]=(0,o.useState)(!1),[k,S]=(0,o.useState)(!ke),[L,j]=(0,o.useState)(""),O=(0,o.useRef)(xe[Math.round(Math.random()*(xe.length-1))]),A=(0,o.useRef)(null),I=(0,o.useRef)(null),P=(0,o.useRef)(),R=(0,o.useRef)(),D=(0,o.useRef)(),N=(0,o.useRef)(Se),{attributes:$}=(0,o.useContext)(we);let M=m;M||y||(M=me),N.current=t=>{_(!0),n.Vy.debug(`GIF ${e.id} seen. ${e.title}`),((e,t,r,n={})=>{e.analytics_response_payload&&T({analyticsResponsePayload:e.analytics_response_payload,userId:t,actionType:"SEEN",attributes:Y({position:JSON.stringify(r)},n)})})(e,null==d?void 0:d.id,t.boundingClientRect,$),null==f||f(e,t.boundingClientRect),R.current&&R.current.disconnect()};const F=()=>{R.current||(R.current=new IntersectionObserver((([e])=>{e.isIntersecting&&N.current(e)}),{threshold:[.99]})),!E&&A.current&&R.current&&R.current.observe(A.current)};(0,o.useEffect)((()=>{var t,r;(null==(t=I.current)?void 0:t.complete)&&(F(),p(e)),null==(r=R.current)||r.disconnect(),_(!1)}),[e.id]),(0,o.useEffect)((()=>(P.current=new IntersectionObserver((([e])=>{const{isIntersecting:t}=e;S(t),!t&&R.current&&R.current.disconnect()})),P.current.observe(A.current),()=>{P.current&&P.current.disconnect(),R.current&&R.current.disconnect(),D.current&&clearTimeout(D.current)})),[]);const G=a||(0,n._2)(e,t);let V;r&&(V=`${Math.round(G/t*100)}%`);const H=(0,n.th)(e.images,t,G),z=e.images[H.renditionName],B=h||(e.is_sticker?"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4AQMAAACSSKldAAAABlBMVEUhIiIWFhYoSqvJAAAAGElEQVQY02MAAv7///8PWxqIPwDZw5UGABtgwz2xhFKxAAAAAElFTkSuQmCC') 0 0":O.current),U=v?"hidden":"unset";return i().createElement(_e,{as:g?"div":"a",href:g?void 0:e.url,"data-giphy-id":e.id,"data-giphy-is-sticker":e.is_sticker,style:Y({width:r||t,height:V||G,overflow:U,borderRadius:v},b),className:[je.className,l].join(" "),onMouseOver:t=>{clearTimeout(D.current),t.persist(),C(!0),D.current=window.setTimeout((()=>{be(e,null==d?void 0:d.id,t.target,$)}),200)},onMouseLeave:()=>{clearTimeout(D.current),C(!1)},onClick:t=>{ve(e,null==d?void 0:d.id,t.target,$),c(e,t)},onContextMenu:t=>s(e,t),onKeyPress:t=>{u(e,t)},tabIndex:w,ref:A},i().createElement("picture",null,i().createElement("source",{type:"image/webp",srcSet:k?z.webp:Ce,suppressHydrationWarning:!0}),i().createElement("img",{ref:I,suppressHydrationWarning:!0,className:[je.imgClassName,L].join(" "),src:k?z.url:Ce,style:{background:B},width:"100%",height:"100%",alt:(0,n.lm)(e),onLoad:k?t=>{F(),p(e,t),j(je.imgLoadedClassName)}:()=>{}})),M&&i().createElement(Le,null,k&&i().createElement(M,{gif:e,isHovered:x,width:t,height:G})))};je.className="giphy-gif",je.imgClassName="giphy-gif-img",je.imgLoadedClassName="giphy-img-loaded";var Oe=je,Ae=s().div` -webkit-overflow-scrolling: touch; overflow-x: auto; overflow-y: hidden; white-space: nowrap; position: relative; `,Ie=s()(Oe)` position: relative; display: inline-block; list-style: none; margin-left: ${e=>e.ml}px; /* make sure gifs are fully visible with a scrollbar */ margin-bottom: 1px; &:first-of-type { margin-left: 0; } .${Oe.imgClassName} { position: absolute; top: 0; left: 0; } `,Pe=s()(ye)` display: inline-block; `,Re=s().div` width: 30px; display: inline-block; opacity: ${e=>e.isFirstLoad?0:1}; height: ${e=>e.height}px; `,De=Object.freeze({gutter:6,user:{},initialGifs:[]}),Ne=Object.freeze({isFetching:!1,gifs:[],isLoaderVisible:!1,isDoneFetching:!1}),$e=class e extends o.PureComponent{constructor(){super(...arguments),this.state=X(Y({},Ne),{gifs:this.props.initialGifs||[]}),this.unmounted=!1,this.paginator=(0,v.Oo)(this.props.fetchGifs,this.state.gifs),this.onLoaderVisible=e=>{this.unmounted||this.setState({isLoaderVisible:e},this.onFetch)},this.onFetch=w(100,(()=>J(this,null,(function*(){if(this.unmounted)return;const{isFetching:e,isLoaderVisible:t,gifs:r}=this.state;if(!e&&t){let e;this.setState({isFetching:!0});try{e=yield this.paginator()}catch(e){this.setState({isFetching:!1})}if(e)if(r.length===e.length)this.setState({isDoneFetching:!0});else{this.setState({gifs:e,isFetching:!1});const{onGifsFetched:t}=this.props;t&&t(e),this.onFetch()}}}))))}componentDidMount(){this.unmounted=!1,this.onFetch()}componentWillUnmount(){this.unmounted=!0}render(){const{onGifVisible:t,onGifRightClick:r,gifHeight:o,gifWidth:a,gutter:s,className:l=e.className,onGifSeen:c,onGifClick:u,onGifKeyPress:f,user:p,overlay:d,hideAttribution:h,noLink:m,noResultsMessage:y,backgroundColor:g,borderRadius:v,tabIndex:b=0,loaderConfig:w}=this.props,{gifs:E,isDoneFetching:_}=this.state,x=!_,C=0===E.length;return i().createElement(Ee,{attributes:{layout_type:"CAROUSEL"}},i().createElement(Ae,{className:l},E.map((e=>i().createElement(Ie,{gif:e,key:e.id,tabIndex:b,width:a||(0,n.Vs)(e,o),height:o,onGifClick:u,onGifKeyPress:f,onGifSeen:c,onGifVisible:t,onGifRightClick:r,user:p,ml:s,overlay:d,hideAttribution:h,noLink:m,borderRadius:v,backgroundColor:g}))),!x&&0===E.length&&y,x&&i().createElement(Pe,{onVisibleChange:this.onLoaderVisible,config:w},i().createElement(Re,{isFirstLoad:C,height:o}))))}};$e.className="giphy-carousel",$e.defaultProps=De;var Te=s().div` color: ${f}; display: flex; justify-content: center; margin: 30px 0; font-family: interface, Helvetica Neue, helvetica, sans-serif; font-size: 16px; font-weight: 600; a { color: ${d}; cursor: pointer; &:hover { color: white; } } `,Me=({onClick:e})=>i().createElement(Te,null,"Error loading GIFs. ",i().createElement("a",{onClick:e},"Try again?")),Fe="#2e2e2e",Ge=u,Ve=s().div` align-items: center; background-color: ${({backgroundColor:e})=>e}; border-radius: 16px; display: flex; max-width: fit-content; overflow: hidden; padding: 4px 5px 5px 6px; `,He=s().div` overflow-x: auto; overflow-y: hidden; position: relative; -webkit-overflow-scrolling: touch; `,ze=s().div` display: inline-flex; justify-content: space-between; overflow: hidden; white-space: nowrap; width: ${({width:e})=>`${e}px`}; `,Be=s().div` background-color: ${({color:e})=>e}; box-sizing: border-box; height: ${({gifHeight:e})=>`${Math.round(.75*e)}px`}; margin: ${({gutter:e})=>`0 ${e}px`}; width: 2px; `,Ue=s()(Oe)` display: inline-block; flex-shrink: 0; list-style: none; /* make sure gifs are fully visible with a scrollbar */ margin-bottom: 1px; position: relative; .${Oe.imgClassName} { position: absolute; top: 0; left: 0; } `;function We(e){var t;const r=e,{backgroundColor:a=Fe,className:s,dividerColor:l=Ge,fetchVariations:c,gif:u,gifHeight:f,GifProps:p={},gifWidth:d,gutter:h=6,hideAttribution:m,loader:y,noLink:g,onGifClick:v,onGifKeyPress:b,onGifRightClick:w,onGifSeen:E,onGifVisible:_,onVariationsFetched:x,overlay:C,tabIndex:k=0,user:S}=r,L=((e,t)=>{var r={};for(var n in e)q.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&K)for(var n of K(e))t.indexOf(n)<0&&Q.call(e,n)&&(r[n]=e[n]);return r})(r,["backgroundColor","className","dividerColor","fetchVariations","gif","gifHeight","GifProps","gifWidth","gutter","hideAttribution","loader","noLink","onGifClick","onGifKeyPress","onGifRightClick","onGifSeen","onGifVisible","onVariationsFetched","overlay","tabIndex","user"]),j=null!=(t=u.variation_count)?t:0,O=d||(0,n.Vs)(u,f),A=j*O+Math.max(0,j-1)*h,I=(0,F.A)(c),P=(0,F.A)(x),[R,D]=(0,M.A)((()=>J(this,null,(function*(){var e;const t=yield I.current(u.id),r=null!=(e=null==t?void 0:t.data)?e:[];return P.current&&P.current(r),r}))),[u],{loading:!0,value:[]});(0,o.useEffect)((()=>{D()}),[D]);const N=Y({backgroundColor:"transparent",height:f,hideAttribution:m,noLink:g,onGifClick:v,onGifKeyPress:b,onGifRightClick:w,onGifSeen:E,onGifVisible:_,overlay:C,tabIndex:k,user:S,width:O},p);return i().createElement(Ve,Y({backgroundColor:a,className:[We.className,s].join(" ")},L),i().createElement(Ue,X(Y({},N),{gif:u})),j?i().createElement(Be,{className:We.dividerClassName,color:l,gifHeight:f,gutter:h}):null,i().createElement(He,{className:We.variationsViewportClassName},i().createElement(ze,{className:We.variationsContainerClassName,width:A},(()=>{var e;return R.loading?y?i().createElement(y,{className:We.loaderClassName}):null:R.error?i().createElement(Me,{onClick:D}):i().createElement(i().Fragment,null,(null!=(e=R.value)?e:[]).map((e=>i().createElement(Ue,X(Y({},N),{key:e.id,gif:e})))))})())))}We.className="giphy-emoji-variations-list",We.dividerClassName="giphy-emoji-variations-divider",We.loaderClassName="giphy-emoji-variations-loader",We.variationsViewportClassName="giphy-emoji-variations-viewport",We.variationsContainerClassName="giphy-emoji-variations-container";var Ke=a.keyframes` to { transform: scale(1.75) translateY(-20px); } `,qe=s().div` display: flex; align-items: center; height: ${37}px; padding-top: 15px; margin: 0 auto; text-align: center; justify-content: center; animation: pulse 0.8s ease-in-out 0s infinite alternate backwards; `,Qe=s().div` display: inline-block; height: 10px; width: 10px; margin: ${37}px 10px 10px 10px; position: relative; box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3); animation: ${Ke} cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.75s infinite alternate; background: ${e=>e.color}; animation-delay: ${e=>e.delay}; `,Ze=({className:e=""})=>i().createElement(qe,{className:e},i().createElement(Qe,{color:h,delay:"0"}),i().createElement(Qe,{color:d,delay:".1s"}),i().createElement(Qe,{color:m,delay:".2s"}),i().createElement(Qe,{color:y,delay:".3s"}),i().createElement(Qe,{color:g,delay:".4s"})),Ye=(0,o.memo)((({columns:e,gutter:t,useTransform:r=!0,itemWidth:n,itemHeights:o,children:a,columnOffsets:s=[]})=>{const l={};return i().createElement("div",{style:l},function(){let c;const u=function(e,t=[]){return Array.apply(null,Array(e)).map(((e,r)=>t[r]||0))}(e,s),f=i().Children.map(a,((e,a)=>{const s={position:"absolute"};c=u.indexOf(Math.min.apply(Math,u));const l=`${u[c]}px`,f=c*n+c*t+"px";r?s.transform=`translate3d(${f}, ${l}, 0)`:(s.top=l,s.left=f);const p=o[a];return p&&(u[c]+=p+t),i().cloneElement(e,{style:s})}));return l.position="relative",l.width=e*n+(e-1)*t+"px",l.height=Math.max.apply(Math,u)-t+"px",f}())})),Xe=s().div` opacity: ${e=>e.isFirstLoad?0:1}; `,Je=Object.freeze({gutter:6,user:{},initialGifs:[]}),et=Object.freeze({isFetching:!1,isError:!1,gifWidth:0,gifs:[],isLoaderVisible:!1,isDoneFetching:!1}),tt=class e extends o.PureComponent{constructor(){super(...arguments),this.state=X(Y({},et),{gifs:this.props.initialGifs||[]}),this.unmounted=!1,this.paginator=(0,v.Oo)(this.props.fetchGifs,this.state.gifs),this.onLoaderVisible=e=>{this.unmounted||this.setState({isLoaderVisible:e},this.onFetch)},this.onFetch=w(e.fetchDebounce,(()=>J(this,null,(function*(){if(this.unmounted)return;const{isFetching:e,isLoaderVisible:t,gifs:r}=this.state,n=r.length;if(!e&&t){let e;this.setState({isFetching:!0,isError:!1});try{if(e=yield this.paginator(),this.unmounted)return}catch(e){if(this.unmounted)return;this.setState({isFetching:!1,isError:!0});const{onGifsFetchError:t}=this.props;t&&t(e)}if(e)if(n===e.length)this.setState({isDoneFetching:!0});else{this.setState({gifs:e,isFetching:!1});const{onGifsFetched:t}=this.props;t&&t(e),this.onFetch()}}}))))}componentDidMount(){this.unmounted=!1,this.onFetch()}componentWillUnmount(){this.unmounted=!0}render(){const{onGifVisible:t,onGifRightClick:r,className:o=e.className,onGifSeen:a,onGifClick:s,onGifKeyPress:l,user:c,overlay:u,hideAttribution:f,noLink:p,borderRadius:d,noResultsMessage:h,columns:m,width:y,gutter:g,useTransform:v,columnOffsets:b,backgroundColor:w,loaderConfig:E,tabIndex:_=0,layoutType:x="GRID",loader:C=Ze}=this.props,{gifWidth:k,gifs:S,isError:L,isDoneFetching:j}=this.state,O=!j,A=0===S.length,I=S.map((e=>(0,n._2)(e,k)));return i().createElement(Ee,{attributes:{layout_type:x}},i().createElement("div",{className:o,style:{width:y}},i().createElement(Ye,{itemHeights:I,useTransform:v,itemWidth:k,columns:m,gutter:g,columnOffsets:b},S.map((e=>i().createElement(Oe,{gif:e,tabIndex:_,key:e.id,width:k,onGifClick:s,onGifKeyPress:l,onGifSeen:a,onGifVisible:t,onGifRightClick:r,user:c,overlay:u,backgroundColor:w,hideAttribution:f,noLink:p,borderRadius:d})))),!O&&0===S.length&&h,L?i().createElement(Me,{onClick:this.onFetch}):O&&i().createElement(ye,{onVisibleChange:this.onLoaderVisible,config:E},i().createElement(Xe,{isFirstLoad:A},i().createElement(C,{className:e.loaderClassName})))))}};tt.className="giphy-grid",tt.loaderClassName="loader",tt.fetchDebounce=250,tt.defaultProps=Je,tt.getDerivedStateFromProps=({columns:e,gutter:t,width:r},n)=>{const o=t*(e-1),i=Math.floor((r-o)/e);return n.gifWidth!==i?{gifWidth:i}:null};var rt=tt,nt="--searchbar-height",ot="--searchbar-bg-color",it="--searchbar-bg-color-2",at="--searchbar-fg-color",st="--searchbar-cancel-button-display",lt=(s().div` ${nt}: ${e=>e.searchbarHeight||42}px; @media (${e=>e.mobileMediaQuery}) { ${nt}: ${e=>e.mobileSearchbarHeight||35}px; } ${ot}: ${p}; ${it}: ${p}; ${at}: ${l}; ${e=>e.darkMode&&a.css` ${at}: ${p}; ${ot}: ${l}; ${it}: ${u}; `} ${st}: ${e=>e.hideCancelButton?"none":"block"}; `,(0,o.createContext)({})),ct=(0,o.createContext)({}),ut=s().svg` position: relative; right: 10px; margin-left: 5px; cursor: pointer; display: var(${st}); `,ft=({width:e=17,height:t=17,setCleared:r})=>{const{term:n,setActiveChannel:a,activeChannel:s}=(0,o.useContext)(lt);return n||s?i().createElement(ut,{className:ft.className,width:e,height:t,viewBox:"0 0 17 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!0),a(void 0)}},i().createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",opacity:"0.582730817"},i().createElement("g",{transform:"translate(-300.000000, -150.000000)",fill:"#8E8E93",fillRule:"nonzero"},i().createElement("g",{transform:"translate(0.000000, 135.000000)"},i().createElement("g",null,i().createElement("g",null,i().createElement("g",{transform:"translate(11.000000, 13.000000)"},i().createElement("g",{transform:"translate(289.000000, 2.000000)"},i().createElement("path",{d:"M8.5,0 C3.805875,0 0,3.805875 0,8.5 C0,13.194125 3.805875,17 8.5,17 C13.194125,17 17,13.194125 17,8.5 C17,3.805875 13.194125,0 8.5,0 Z M9.50158333,8.5 C9.50158333,8.5 11.7250417,10.7234583 11.834125,10.8325417 C12.1110833,11.1095 12.1110833,11.557875 11.834125,11.834125 C11.5571667,12.1110833 11.1087917,12.1110833 10.8325417,11.834125 C10.7234583,11.72575 8.5,9.50158333 8.5,9.50158333 C8.5,9.50158333 6.27654167,11.7250417 6.16745833,11.834125 C5.8905,12.1110833 5.442125,12.1110833 5.165875,11.834125 C4.88891667,11.5571667 4.88891667,11.1087917 5.165875,10.8325417 C5.27425,10.7234583 7.49841667,8.5 7.49841667,8.5 C7.49841667,8.5 5.27495833,6.27654167 5.165875,6.16745833 C4.88891667,5.8905 4.88891667,5.442125 5.165875,5.165875 C5.44283333,4.88891667 5.89120833,4.88891667 6.16745833,5.165875 C6.27654167,5.27425 8.5,7.49841667 8.5,7.49841667 C8.5,7.49841667 10.7234583,5.27495833 10.8325417,5.165875 C11.1095,4.88891667 11.557875,4.88891667 11.834125,5.165875 C12.1110833,5.44283333 12.1110833,5.89120833 11.834125,6.16745833 C11.72575,6.27654167 9.50158333,8.5 9.50158333,8.5 Z",opacity:"0.75"}))))))))):null};ft.className="giphy-search-bar-cancel";var pt=ft,dt=`calc(var(${nt}) - 12px)`,ht=a.keyframes` to { width: ${dt}; } `,mt=s()(te)` height: ${dt}; margin: 0; width: 0; animation: ${ht} 100ms ease-in-out forwards; `,yt=s().div` background: var(${it}); display: flex; align-items: center; padding-left: ${6}px; `,gt=s().div` background: ${"#ececec"}; display: flex; padding: 0 4px; color: ${"#3e3e3e"}; font-family: interface, Helvetica Neue, helvetica, sans-serif; font-weight: 600; font-size: 12px; align-items: center; height: ${dt}; @media (max-width: 480px) { display: none; } `,vt=({className:e=""})=>{const{activeChannel:t}=(0,o.useContext)(lt);return t?i().createElement(yt,{className:e},i().createElement(mt,{user:t.user}),i().createElement(gt,{key:t.id},i().createElement("div",null,"@",t.user.username),t.user.is_verified&&i().createElement(ne,{size:14}))):null},bt="#9933FF",wt="#FF6666",Et="cubic-bezier(0.920, 0.240, 0.185, 0.730)",_t=a.keyframes` 0% { transform: rotate(34deg) translate(-10px, 80px); }; 100% { transform: rotate(34deg) translate(-10px, -20px); } `,xt=a.keyframes` 0% { transform: translate(0px, 0px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translate(10px, -17px); opacity: 0; } `,Ct=a.keyframes` 0% { opacity: 0; transform: translateX(-400%); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateX(0); } `,kt=s().div` display: flex; justify-content: center; align-items: center; position: relative; cursor: pointer; @media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) { display: none; } height: var(${nt}); width: var(${nt}); `,St=s().div` position: absolute; height: 100%; width: 100%; background: linear-gradient(45deg, ${bt} 0%, ${wt} 100%); border-radius: 4px; overflow: hidden; &:before { animation: ${Ct} ${"2s"} linear 0s infinite; background-image: linear-gradient(45deg, ${bt} 0%, ${wt} 50%, ${bt} 100%); background-size: 400%; background-position: 0% 100%; content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: 400%; } `,Lt=s().div` width: 100%; height: 100%; position: absolute; overflow: hidden; &::after { content: '+'; color: white; font-family: 'SS Standard'; font-size: 8px; position: absolute; top: 65%; left: 66%; animation: ${xt} 1s ${Et} 0s 1 forwards; } `,jt=s().div` position: absolute; width: 200%; height: 20px; background: rgba(255, 255, 255, 0.5); transform: rotate(34deg) translate(-10px, -20px); animation: ${_t} 1s ${Et} 0s 1; filter: blur(1px); `,Ot=s()((({className:e=""})=>i().createElement("svg",{viewBox:"0 0 30 30",version:"1.1",className:e},i().createElement("defs",null,i().createElement("path",{d:"M11.5482521,20.4090671 L4.24727698,28.2009189 C3.68084207,28.8054377 2.73159653,28.8363108 2.12707771,28.2698759 C1.5225589,27.703441 1.4916858,26.7541954 2.0581207,26.1496766 L9.40599838,18.3077689 C7.95982241,16.4371424 7.0978836,14.0789715 7.0978836,11.5181818 C7.0978836,5.44914339 11.9392549,0.518181818 17.9252787,0.518181818 C23.9113026,0.518181818 28.7526738,5.44914339 28.7526738,11.5181818 C28.7526738,17.5872202 23.9113026,22.5181818 17.9252787,22.5181818 C15.539851,22.5181818 13.3361963,21.7351359 11.5482521,20.4090671 Z M17.9252787,19.5181818 C22.242011,19.5181818 25.7526738,15.9425536 25.7526738,11.5181818 C25.7526738,7.09381 22.242011,3.51818182 17.9252787,3.51818182 C13.6085464,3.51818182 10.0978836,7.09381 10.0978836,11.5181818 C10.0978836,15.9425536 13.6085464,19.5181818 17.9252787,19.5181818 Z",id:"giphy-search-icon-path-1"})),i().createElement("g",{id:"search",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i().createElement("g",{id:"icons/search"},i().createElement("mask",{id:"giphy-search-icon-mask-2",fill:"white"},i().createElement("use",{xlinkHref:"#giphy-search-icon-path-1"})),i().createElement("use",{id:"Mask",fill:"#FFFFFF",fillRule:"nonzero",xlinkHref:"#giphy-search-icon-path-1"}),i().createElement("g",{mask:"url(#giphy-search-icon-mask-2)"},i().createElement("g",{transform:"translate(0.250000, 0.250000)"},i().createElement("g",null))))))))` z-index: 1; display: flex; width: 60%; height: 60%; `,At=()=>{const{isFetching:e}=(0,o.useContext)(lt),t=(0,V.A)(e,1e3);return i().createElement(kt,null,i().createElement(St,null),i().createElement(Ot,null),t&&i().createElement(Lt,null,i().createElement(jt,null)))},It=s().div` display: flex; background: white; align-items: center; border-radius: 4px; height: var(${nt}); background: var(${it}); `,Pt=s().input` background: inherit; box-sizing: border-box; border: 0; appearance: none; font-weight: normal; font-family: interface, Helvetica Neue, helvetica, sans-serif; outline: 0; font-size: 15px; padding: 0 10px; border-radius: 0; text-overflow: ellipsis; color: var(${at}); &::placeholder { color: ${f}; } min-width: 150px; flex: 1; ${e=>e.isUsernameSearch&&a.css` color: ${"#6157ff"}; `} `,Rt=({className:e,placeholder:t="Search GIPHY",clear:r=!1,autoFocus:n,searchDebounce:a=500,onEnter:s})=>{const{activeChannel:l,setActiveChannel:c,term:u,setChannels:f}=(0,o.useContext)(lt),{setIsFocused:p,_inputValOverride:d,_setSearch:h}=(0,o.useContext)(ct),[m,y]=(0,o.useState)(u);(0,G.A)((()=>h(m)),a,[m]);const g=(0,o.useRef)(null),v=function(e){const t=(0,o.useRef)(e);return(0,o.useEffect)((()=>{t.current=e})),t.current}(l),[b,w]=(0,o.useState)(r);return(0,o.useEffect)((()=>{var e;n&&(null==(e=g.current)||e.focus())}),[n]),(0,o.useEffect)((()=>{var e;l&&!v&&(null==(e=g.current)||e.focus(),y(" "===m?"":m.replace(/@?\w*\s?/,"")))}),[m,l,v]),(0,o.useEffect)((()=>{w(r)}),[r]),(0,o.useEffect)((()=>{y(d)}),[d,y]),i().createElement(It,{className:[Rt.className,e].join(" ")},i().createElement(vt,null),i().createElement(Pt,{isUsernameSearch:0===u.indexOf("@"),onChange:({target:{value:e}})=>{b&&""===e||(w(!1),y(e))},onFocus:()=>{p(!0)},onBlur:()=>{p(!1)},value:b?"":m,placeholder:l?`Search ${l.display_name}`:t,autoCapitalize:"off",autoCorrect:"off",autoComplete:"off",ref:g,onKeyUp:e=>{switch(e.keyCode||e.key){case 27:case"Escape":c(void 0),f([]);break;case 13:case"Enter":null==s||s(m)}},onKeyDown:e=>{switch(e.keyCode||e.key){case 8:case"Backspace":""===m&&(c(void 0),f([]))}}}),i().createElement(pt,{setCleared:()=>y("")}),i().createElement(At,null))};Rt.className="giphy-search-bar";var Dt=s().div` background: ${c}; display: flex; padding-right: 4px; align-items: center; margin-right: ${9}px; cursor: pointer; `,Nt=s().div` background: ${c}; display: flex; padding: 14px; align-items: center; margin-right: ${9}px; white-space: nowrap; cursor: pointer; font-style: italic; border-radius: 20px; `,$t=s()(te)` height: var(${nt}); width: var(${nt}); `,Tt=s()((({size:e=18,className:t})=>i().createElement("svg",{width:e,height:e,viewBox:"0 0 18 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t},i().createElement("g",{id:"trending",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i().createElement("g",null,i().createElement("rect",{id:"Rectangle",stroke:"#979797",fill:"#D8D8D8",opacity:"0",x:"0.5",y:"0.5",width:"17",height:"17"}),i().createElement("path",{d:"M12.6093329,3.12057664 L15.156896,3.12057664 L9.64199318,9.04253019 L6.88133868,6.8175119 C6.7544587,6.67603813 6.56616874,6.60087259 6.38404017,6.61897279 C6.2490402,6.63288422 6.11891631,6.69661171 6.02063992,6.79697337 C2.21226835,10.5943119 0.308082561,12.4929812 0.308082561,12.4929812 C0.308082561,12.4929812 0.527106106,12.8074292 0.710953088,13.0215425 C0.833517743,13.1642848 0.975497751,13.3098497 1.13689311,13.4582373 L6.47329888,8.13191205 L9.16381134,10.2953038 C9.40800276,10.5710787 9.68933701,10.7021044 10.019278,10.4570223 L16.0239805,4.04474473 C16.0239805,5.87956383 16.0239805,6.79697337 16.0239805,6.79697337 C16.0239805,6.79697337 16.4320205,6.79697337 17.2481004,6.79697337 L17.2481004,1.80604505 C14.1555887,1.80604505 12.6093329,1.80604505 12.6093329,1.80604505 C12.6093329,1.80604505 12.6093329,2.24422225 12.6093329,3.12057664 Z",id:"Shape",stroke:"#00CCFF",strokeWidth:"0.4",fill:"#00CCFF",fillRule:"nonzero",transform:"translate(8.778091, 7.632141) rotate(-2.000000) translate(-8.778091, -7.632141) "}))))))` margin-right: 2px; `,Mt=({channel:e})=>{const{setActiveChannel:t}=(0,o.useContext)(lt);return i().createElement(Dt,{key:e.id,onClick:()=>t(e)},i().createElement($t,{user:e.user}),i().createElement("div",null,"@",e.user.username),e.user.is_verified&&i().createElement(ne,{size:14}))},Ft=({trendingSearch:e})=>{const{setSearch:t}=(0,o.useContext)(lt);return i().createElement(Nt,{key:e,onClick:()=>t(e)},i().createElement(Tt,{size:16}),e)},Gt=s().div` display: flex; color: white; flex-direction: row; font-family: 'interface'; font-weight: 600; font-size: 14px; -webkit-overflow-scrolling: touch; overflow-x: auto; overflow-y: hidden; padding-bottom: 10px; height: var(${nt}); `,Vt=()=>{const{trendingSearches:e,currentChannels:t}=(0,o.useContext)(lt);return i().createElement(Gt,{className:Vt.className},t.length>0?t.map((e=>i().createElement(Mt,{key:e.id,channel:e}))):e.map((e=>i().createElement(Ft,{key:e,trendingSearch:e}))))};Vt.className="giphy-suggestion-bar";var Ht=({onClick:e})=>i().createElement("svg",{width:"66px",height:"13px",viewBox:"0 0 66 13",onClick:e},i().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},i().createElement("g",{transform:"translate(-1060.000000, -462.000000)",fill:"#FFFFFF",fillRule:"nonzero"},i().createElement("g",{transform:"translate(931.000000, 286.375671)"},i().createElement("g",{transform:"translate(86.000000, 136.124329)"},i().createElement("path",{d:"M47.968,49.1962322 C49.588,49.1962322 51.052,48.6202322 51.58,47.5522322 L51.58,43.8202322 L47.476,43.8202322 L47.476,45.6802322 L49.6,45.6802322 L49.6,46.7602322 C49.12,47.1082322 48.424,47.1922322 47.98,47.1922322 C46.288,47.1922322 45.724,45.8602322 45.724,44.7802322 C45.724,43.1362322 46.612,42.3202322 47.98,42.3202322 C48.544,42.3202322 49.288,42.4762322 49.9,43.0522322 L51.28,41.6842322 C50.176,40.5682322 49.144,40.3282322 47.98,40.3282322 C44.824,40.3282322 43.384,42.5842322 43.384,44.7802322 C43.384,46.9762322 44.644,49.1962322 47.968,49.1962322 Z M54.928,48.9682322 L54.928,40.5682322 L52.564,40.5682322 L52.564,48.9682322 L54.928,48.9682322 Z M58.648,48.9682322 L58.648,46.7002322 L60.352,46.7002322 C62.596,46.6762322 63.724,45.3442322 63.724,43.6282322 C63.724,41.9842322 62.608,40.5682322 60.352,40.5682322 L56.272,40.5682322 L56.272,48.9682322 L58.648,48.9682322 Z M60.352,44.6962322 L58.648,44.6962322 L58.648,42.6082322 L60.352,42.6082322 C61,42.6082322 61.348,43.1122322 61.348,43.6642322 C61.348,44.2162322 61.012,44.6962322 60.352,44.6962322 Z M66.796,48.9802322 L66.796,45.8002322 L69.82,45.8002322 L69.82,48.9802322 L72.172,48.9802322 L72.172,40.5802322 L69.82,40.5802322 L69.82,43.7722322 L66.796,43.7722322 L66.796,40.5802322 L64.42,40.5802322 L64.42,48.9802322 L66.796,48.9802322 Z M78.16,48.9682322 L78.16,45.6202322 L81.496,40.6762322 L81.496,40.5682322 L78.82,40.5682322 L77.008,43.4482322 L75.268,40.5682322 L72.592,40.5682322 L72.592,40.6642322 L75.784,45.6202322 L75.784,48.9682322 L78.16,48.9682322 Z M87.796,49.1362322 C88.972,49.1362322 90.088,48.7402322 90.952,47.8882322 L90.028,46.9642322 C89.44,47.5522322 88.576,47.8762322 87.796,47.8762322 C85.624,47.8762322 84.712,46.3522322 84.7,44.8162322 C84.688,43.2682322 85.66,41.6962322 87.796,41.6962322 C88.576,41.6962322 89.368,41.9722322 89.968,42.5602322 L90.868,41.6962322 C90.016,40.8442322 88.924,40.4242322 87.796,40.4242322 C84.796,40.4242322 83.356,42.6202322 83.3679256,44.8282322 C83.38,47.0362322 84.748,49.1362322 87.796,49.1362322 Z M93.028,48.9682322 L93.028,40.5802322 L91.792,40.5802322 L91.792,48.9682322 L93.028,48.9682322 Z M94.252,41.3122322 C94.252,42.3322322 95.788,42.3322322 95.788,41.3122322 C95.788,40.3042322 94.252,40.3042322 94.252,41.3122322 Z M95.632,48.9682322 L95.632,43.0282322 L94.396,43.0282322 L94.396,48.9682322 L95.632,48.9682322 Z M98.188,51.7162322 L98.188,48.1042322 C98.632,48.8362322 99.556,49.1002322 100.276,49.1002322 C102.112,49.1002322 103.264,47.8042322 103.264,46.0162322 C103.264,44.2282322 102.04,42.9442322 100.276,42.9322322 C99.484,42.9322322 98.644,43.2922322 98.188,44.0122322 L98.116,43.0522322 L96.952,43.0522322 L96.952,51.7162322 L98.188,51.7162322 Z M100.156,47.9002322 C99.076,47.9002322 98.296,47.0722322 98.296,46.0162322 C98.296,44.9602322 99.016,44.1322322 100.156,44.1322322 C101.284,44.1322322 102.028,44.9002322 102.028,46.0162322 C102.028,47.1202322 101.236,47.9002322 100.156,47.9002322 Z M106.456,49.1482322 C107.992,49.1482322 108.964,48.3802322 108.976,47.2762322 C108.988,45.7522322 107.56,45.5122322 106.468,45.4162322 C105.712,45.3442322 105.196,45.1522322 105.184,44.6602322 C105.184,44.1922322 105.688,43.9402322 106.444,43.9522322 C107.032,43.9522322 107.536,44.0722322 108.004,44.5042322 L108.7,43.6882322 C108.04,43.1002322 107.332,42.8962322 106.42,42.8962322 C105.316,42.8962322 103.96,43.3882322 103.96,44.6962322 C103.972,46.0042322 105.256,46.3642322 106.372,46.4722322 C107.248,46.5562322 107.752,46.7602322 107.74,47.2882322 C107.728,47.8402322 107.068,48.0562322 106.48,48.0562322 C105.784,48.0442322 104.956,47.7922322 104.404,47.1802322 L103.756,48.0562322 C104.536,48.9322322 105.496,49.1482322 106.456,49.1482322 Z",id:"GIPHYClips"})))))),zt=s().div` display: flex; align-items: center; font-family: interface, helvetica, arial; cursor: pointer; `,Bt=s()(te)` flex-shrink: 0; `,Ut=s().div` display: flex; flex-direction: column; `,Wt=({gif:e,className:t,onClick:r})=>{const{user:n}=e;return(null==n?void 0:n.username)||(null==n?void 0:n.display_name)?i().createElement(zt,{className:[Wt.className,t].join(" "),onClick:t=>{if(t.preventDefault(),t.stopPropagation(),r)r(e);else{const e=n.profile_url;e&&window.open(e,"_blank")}}},i().createElement(Bt,{user:n}),i().createElement(Ut,null,i().createElement(Ht,{onClick:t=>{t.preventDefault(),t.stopPropagation(),r?r(e):e.url&&window.open(e.url,"_blank")}}),i().createElement(se,{user:n}))):null};Wt.className="giphy-attribution";var Kt=Wt,qt=({size:e=25,onClick:t=()=>{}})=>i().createElement("svg",{width:e,height:e,viewBox:"0 0 26 23",onClick:t},i().createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},i().createElement("g",{transform:"translate(1.000000, 0.000000)",fill:"#FFF",fillRule:"nonzero"},i().createElement("path",{d:"M11.9625091,0.572584405 L11.9625091,22.2272644 C11.9625091,22.4856644 11.8466091,22.6635044 11.6151891,22.7611644 C11.3480491,22.8413444 11.1390491,22.7968844 10.9878091,22.6277844 L4.8732291,15.9143244 L0.573909096,15.9143244 C0.413549096,15.9143244 0.277509096,15.8588444 0.166549096,15.7475044 C0.0573082348,15.6406091 -0.00292164572,15.4933347 -1.77635684e-15,15.3405244 L-1.77635684e-15,7.45058441 C-1.77635684e-15,7.29022441 0.0555890961,7.15456441 0.167309096,7.04322441 C0.278269096,6.93226441 0.414309096,6.87640441 0.573909096,6.87640441 L4.8732291,6.87640441 L10.9874291,0.172064405 C11.1390491,0.00296440549 11.3484291,-0.0414955945 11.6151891,0.0386844055 C11.8466091,0.136344405 11.9621291,0.314564405 11.9621291,0.572584405 L11.9625091,0.572584405 Z"}),i().createElement("path",{d:"M15.7579491,16.0914044 L14.6798891,13.6594044 C15.5739159,13.2635547 16.1503537,12.3776671 16.1501091,11.3999244 C16.150386,10.4242626 15.5763999,9.53983269 14.6852091,9.14272441 L15.7697291,6.71376441 C17.6193585,7.53872062 18.810518,9.37466359 18.8101092,11.3999244 C18.8105521,13.4298903 17.6139475,15.2691931 15.7579491,16.0914044 L15.7579491,16.0914044 Z"}),i().createElement("path",{d:"M18.3647491,20.2619044 L17.2863091,17.8299044 C19.8302925,16.7031661 21.4705725,14.1822599 21.4701091,11.3999244 C21.4701091,8.59818441 19.8167291,6.09892441 17.3022691,4.97678441 L18.3864091,2.54782441 C21.8804724,4.10607079 24.1307363,7.57414217 24.1301093,11.3999244 C24.1308375,15.2343934 21.8705556,18.7086904 18.3647491,20.2619044 Z"})))),Qt=({size:e=25,onClick:t=()=>{}})=>i().createElement("svg",{onClick:t,height:e,width:e,viewBox:"0 0 26 23",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},i().createElement("g",{id:"Page-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},i().createElement("g",{id:"Group",transform:"translate(1.000000, 0.000000)",fill:"#FFFFFF",fillRule:"nonzero"},i().createElement("path",{d:"M11.9625091,0.572584405 L11.9625091,22.2272644 C11.9625091,22.4856644 11.8466091,22.6635044 11.6151891,22.7611644 C11.3480491,22.8413444 11.1390491,22.7968844 10.9878091,22.6277844 L4.8732291,15.9143244 L0.573909096,15.9143244 C0.413549096,15.9143244 0.277509096,15.8588444 0.166549096,15.7475044 C0.0573082348,15.6406091 -0.00292164572,15.4933347 0,15.3405244 L0,7.45058441 C0,7.29022441 0.0555890961,7.15456441 0.167309096,7.04322441 C0.278269096,6.93226441 0.414309096,6.87640441 0.573909096,6.87640441 L4.8732291,6.87640441 L10.9874291,0.172064405 C11.1390491,0.00296440549 11.3484291,-0.0414955945 11.6151891,0.0386844055 C11.8466091,0.136344405 11.9621291,0.314564405 11.9621291,0.572584405 L11.9625091,0.572584405 Z",id:"Path"})),i().createElement("g",{id:"Group",transform:"translate(14.887009, 6.947630)",fill:"#FFFFFF",fillRule:"nonzero"},i().createElement("path",{d:"M7.88199149,6.27905236 C7.94693088,6.35707599 7.94693088,6.47033309 7.88199149,6.54835671 L6.54835671,7.88199149 C6.47033309,7.94693088 6.35707599,7.94693088 6.27905236,7.88199149 L3.96534802,5.56828715 L1.65164367,7.88199149 C1.57362004,7.94693088 1.46036294,7.94693088 1.38233932,7.88199149 L0.0487045381,6.54835671 C-0.016234846,6.47033309 -0.016234846,6.35707599 0.0487045381,6.27905236 L2.36240889,3.96534802 L0.0487045381,1.65164367 C-0.016234846,1.57362004 -0.016234846,1.46036294 0.0487045381,1.38233932 L1.38233932,0.0487045381 C1.46036294,-0.016234846 1.57362004,-0.016234846 1.65164367,0.0487045381 L3.96534802,2.36240889 L6.27905236,0.0487045381 C6.35707599,-0.016234846 6.47033309,-0.016234846 6.54835671,0.0487045381 L7.88199149,1.38233932 C7.94693088,1.46036294 7.94693088,1.57362004 7.88199149,1.65164367 L5.56828715,3.96534802 L7.88199149,6.27905236 Z",id:"Shape"})))),Zt=s().div` background: ${p}; height: ${e=>e.barHeight}px; position: absolute; width: 5px; bottom: 0; left: 0; opacity: 0.95; `,Yt=({videoEl:e})=>{(0,z.A)(2147483647,100);const t=(null==e?void 0:e.currentTime)||0,r=(null==e?void 0:e.duration)||0,n=t/r;let o=Math.round(100*n),a=5;return(null==e?void 0:e.height)<200?a=3:(null==e?void 0:e.height)<300&&(a=4),o=r<10&&o>98?100:o,i().createElement(Zt,{style:{width:`${o}%`},barHeight:a,className:"hide-in-percy"})},Xt=[.25,.5,.75],Jt="giphy-video",er=({muted:e,ccEnabled:t=!1,ccLanguage:r="en",loop:a=!0,onStateChange:s,onTimeUpdate:l,onCanPlay:c,onFirstPlay:u,onWaiting:f,onMuted:p,onError:d,onEnded:h,onLoop:m,onQuartile:y,onEndFullscreen:g,setVideoEl:v,gif:b,width:w,height:E,volume:_=.7,className:x=Jt})=>{var C,k,S;const L=E||(0,n._2)(b,w),[j,O]=(0,o.useState)((0,n.sr)(b.video,w,L)),A=(0,o.useRef)(0);j||console.warn(`GiphyJS No video content for id: ${b.id}`);const I=(0,o.useRef)(Date.now()),P=(0,o.useRef)(!1),R=(0,o.useRef)(0),D=(0,o.useRef)(0),N=(0,o.useRef)(new Set);(0,o.useEffect)((()=>{I.current=Date.now(),P.current=!1,R.current=1,D.current=0,N.current=new Set}),[b.id]);const $=(0,o.useRef)(null);(0,o.useEffect)((()=>{const e=(0,n.sr)(b.video,w,L);$.current&&(null==j?void 0:j.url)&&e.url!==j.url&&(-1!==j.url.indexOf(String(b.id))&&(A.current=$.current.currentTime),O(e))}),[w,E,b.video,L,null==j?void 0:j.url,b.id]),(0,o.useEffect)((()=>{$.current&&(null==j?void 0:j.url)&&A.current&&($.current.currentTime=A.current,A.current=0)}),[null==j?void 0:j.url,A]);const M=(0,o.useCallback)((()=>{var e;const t=$.current,r=null==(e=null==t?void 0:t.error)?void 0:e.code;if(r&&(null==t?void 0:t.src)){const e=((e,t="")=>{switch(e){case 1:return"Aborted. The fetching process for the media resource was aborted by the user agent at the user's request.";case 2:return"Network Error. A network error of some description caused the user agent to stop fetching the media resource, after the resource was established to be usable.";case 3:return"Decode Error. An error of some description occurred while decoding the media resource, after the resource was established to be usable.";case 4:return`Can not play a video of type "${t.split(".").pop()}" on this platform.`;default:return""}})(r,null==t?void 0:t.src);console.error(e),null==d||d(r)}}),[d]),F=(0,o.useCallback)((()=>{null==s||s("playing"),P.current||(P.current=!0,b.analytics_response_payload&&T({actionType:"START",analyticsResponsePayload:b.analytics_response_payload}),null==u||u(Date.now()-I.current))}),[u,s,b]),G=(0,o.useCallback)((()=>null==s?void 0:s("paused")),[s]),V=(0,o.useCallback)((()=>{const e=$.current;if(e){const t=e.currentTime;Xt.some((r=>!!((e,t,r,n,o)=>{const i=o+e;return!n.has(i)&&r>0&&t>r*e&&(n.add(i),!0)})(r,t,e.duration,N.current,R.current)&&(null==y||y(r),!0))),null==l||l(t||0)}}),[y,l]),H=(0,o.useCallback)((()=>null==c?void 0:c()),[c]),z=(0,o.useCallback)((()=>{const e=$.current;0!==(null==e?void 0:e.currentTime)&&1!==(null==e?void 0:e.networkState)&&(null==f||f(++D.current))}),[f]),B=(0,o.useCallback)((()=>{P.current&&(a&&$.current&&$.current.play(),null==m||m(R.current),R.current=R.current+1,null==h||h())}),[h,a,m]),U=(0,o.useCallback)((()=>null==g?void 0:g()),[g]),W=(0,o.useCallback)((e=>J(void 0,null,(function*(){if(e){const t=e.play();if(void 0!==t)try{yield t,null==p||p(!1)}catch(t){e.muted=!0,null==p||p(!0),e.play()}}}))),[p]);(0,o.useEffect)((()=>{const e=$.current;e&&(W(e),null==v||v(e),isNaN(_)||(e.volume=_))}),[]),(0,o.useEffect)((()=>{const e=$.current;return e&&(e.addEventListener("play",F),e.addEventListener("pause",G),e.addEventListener("error",M),e.addEventListener("timeupdate",V),e.addEventListener("canplay",H),e.addEventListener("ended",B),e.addEventListener("waiting",z),e.addEventListener("webkitendfullscreen",U)),()=>{e&&(e.removeEventListener("play",F),e.removeEventListener("pause",G),e.removeEventListener("error",M),e.removeEventListener("timeupdate",V),e.removeEventListener("canplay",H),e.removeEventListener("ended",B),e.removeEventListener("waiting",z),e.removeEventListener("webkitendfullscreen",U))}}),[F,G,M,V,H,B,z,U]);const K=null==(S=null==(k=null==(C=b.video)?void 0:C.captions)?void 0:k[r])?void 0:S.vtt;return(null==j?void 0:j.url)?i().createElement("video",{crossOrigin:"anonymous",draggable:!0,className:x,width:w,height:L,muted:e,autoPlay:!0,playsInline:!0,ref:$,src:null==j?void 0:j.url,"data-giphy-id":b.id},t&&K&&i().createElement("track",{label:"English",kind:"subtitles",srcLang:r,src:K,default:!0})):null};er.className=Jt;var tr=er,rr=s().div` position: relative; top: 0; left: 0; right: 0; bottom: 0; background: black; font-family: interface, helvetica, arial; -webkit-font-smoothing: antialiased; `,nr=s().div` display: flex; justify-content: center; align-items: center; position: relative; cursor: pointer; `,or=s().div` position: absolute; top: 10px; right: 10px; left: 10px; bottom: 0; display: flex; justify-content: space-between; opacity: ${e=>e.isHovered?1:0}; transition: opacity ease-out 250ms; align-items: flex-start; `,ir=s().div` font-size: 22px; color: white; margin-bottom: 5px; font-weight: bold; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; user-select: none; cursor: pointer; `,ar=s().div` position: relative; min-width: 0; `,sr=s().div` &:before { background: linear-gradient(rgba(18, 18, 18, 0.6), rgba(0, 0, 0, 0)); content: ''; height: ${e=>e.isLargePlayer?125:75}px; left: 0; pointer-events: none; position: absolute; top: 0; width: 100%; } &:after { background: linear-gradient(rgba(0, 0, 0, 0), rgba(18, 18, 18, 0.6)); content: ''; height: ${e=>e.isLargePlayer?125:75}px; left: 0; pointer-events: none; position: absolute; bottom: 0; width: 100%; } `,lr=e=>{const{width:t,hideMute:r,hideAttribution:a,hideProgressBar:s,className:l,persistentControls:c,gif:u,overlay:f}=e,[p,d]=(0,o.useState)(!1),[h,m]=(0,o.useState)(null),[y,g]=(0,o.useState)(e.muted),[v,b]=(0,o.useState)(!1),{setVideoEl:w,onMuted:E,onUserMuted:_}=e,x=e.height||(0,n._2)(u,t),[,C,k]=(0,H.default)((()=>{d(!1)}),4e3),S=(0,o.useCallback)((e=>{null==E||E(e),b(e)}),[b,E]),L=(0,o.useCallback)((e=>{null==w||w(e),m(e)}),[w,m]);(0,o.useEffect)((()=>{g(e.muted)}),[e.muted]);const j=c||p,O=x>=300;return(0,o.useEffect)((()=>(j?k():C(),()=>C())),[j,C,k]),i().createElement(rr,{className:l,style:{width:t,height:x},onMouseOver:()=>d(!0),onMouseLeave:()=>d(!1),onMouseMove:()=>{d(!0),k()},onClick:e=>{null==_||_(!(y||v)),null==h||h.play(),e.preventDefault(),v?(b(!1),g(!1)):g(!y)}},i().createElement(tr,X(Y({},e),{onMuted:S,setVideoEl:L,muted:y})),j&&i().createElement(sr,{isLargePlayer:O}),i().createElement(or,{isHovered:j},i().createElement(ar,null,O&&i().createElement(ir,{onClick:e=>{e.preventDefault(),e.stopPropagation(),window.open(u.url,"_blank")}},u.title),h&&!a?i().createElement(Kt,{gif:u}):null),!r&&i().createElement(nr,null,y||v?i().createElement(Qt,null):i().createElement(qt,null))),j&&!s&&h?i().createElement(Yt,{videoEl:h}):null,f&&i().createElement(f,{gif:u,isHovered:p,width:t,height:x}))};s().div` position: absolute; top: 0; left: 0; bottom: 0; right: 0; height: 100%; width: 100%; `,s()((e=>(e.overlay&&!e.controls&&console.warn(`${n.Vy.PREFIX}: Overlays only work when controls are enabled`),e.controls?i().createElement(lr,Y({},e)):i().createElement(tr,Y({},e)))))` height: 100%; display: inline-block; object-fit: fill; pointer-events: none; background: rgb(0, 0, 0, 0); `,s().div` position: absolute; top: 6px; right: 6px; cursor: pointer; opacity: ${e=>e.isHovered?1:.8}; transition: opacity ease-out 800ms; `;(0,n.SU)("X-GIPHY-SDK-NAME","ReactSDK")},9343:(e,t,r)=>{"use strict";var n=r(68897),o=r(88179),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},91315:()=>{!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(){for(var e=window.document,t=o(e);t;)t=o(e=t.ownerDocument);return e}(),t=[],r=null,n=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return r||(r=function(e,r){n=e&&r?f(e,r):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),r},a._resetCrossOriginUpdater=function(){r=null,n=null},a.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,r){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==r[t-1]}))},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var r=t.defaultView;if(r&&-1==this._monitoringDocuments.indexOf(t)){var n=this._checkForIntersections,i=null,a=null;this.POLL_INTERVAL?i=r.setInterval(n,this.POLL_INTERVAL):(s(r,"resize",n,!0),s(t,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in r&&(a=new r.MutationObserver(n)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(i&&e.clearInterval(i),l(e,"resize",n,!0)),l(t,"scroll",n,!0),a&&a.disconnect()}));var c=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=c){var u=o(t);u&&this._monitorIntersections(u.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var r=this._monitoringDocuments.indexOf(t);if(-1!=r){var n=this.root&&(this.root.ownerDocument||this.root)||e,i=this._observationTargets.some((function(e){var r=e.element.ownerDocument;if(r==t)return!0;for(;r&&r!=n;){var i=o(r);if((r=i&&i.ownerDocument)==t)return!0}return!1}));if(!i){var a=this._monitoringUnsubscribes[r];if(this._monitoringDocuments.splice(r,1),this._monitoringUnsubscribes.splice(r,1),a(),t!=n){var s=o(t);s&&this._unmonitorIntersections(s.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},a.prototype._checkForIntersections=function(){if(this.root||!r||n){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var o=n.element,a=c(o),s=this._rootContainsTarget(o),l=n.entry,u=e&&s&&this._computeTargetAndRootIntersection(o,a,t),f=null;this._rootContainsTarget(o)?r&&!this.root||(f=t):f={top:0,bottom:0,left:0,right:0,width:0,height:0};var p=n.entry=new i({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:f,intersectionRect:u});l?e&&s?this._hasCrossedThreshold(l,p)&&this._queuedEntries.push(p):l&&l.isIntersecting&&this._queuedEntries.push(p):this._queuedEntries.push(p)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(t,o,i){if("none"!=window.getComputedStyle(t).display){for(var a,s,l,u,p,h,m,y,g=o,v=d(t),b=!1;!b&&v;){var w=null,E=1==v.nodeType?window.getComputedStyle(v):{};if("none"==E.display)return null;if(v==this.root||9==v.nodeType)if(b=!0,v==this.root||v==e)r&&!this.root?!n||0==n.width&&0==n.height?(v=null,w=null,g=null):w=n:w=i;else{var _=d(v),x=_&&c(_),C=_&&this._computeTargetAndRootIntersection(_,x,i);x&&C?(v=_,w=f(x,C)):(v=null,g=null)}else{var k=v.ownerDocument;v!=k.body&&v!=k.documentElement&&"visible"!=E.overflow&&(w=c(v))}if(w&&(a=w,s=g,void 0,void 0,void 0,void 0,void 0,void 0,l=Math.max(a.top,s.top),u=Math.min(a.bottom,s.bottom),p=Math.max(a.left,s.left),y=u-l,g=(m=(h=Math.min(a.right,s.right))-p)>=0&&y>=0&&{top:l,bottom:u,left:p,right:h,width:m,height:y}||null),!g)break;v=v&&d(v)}return g}},a.prototype._getRootRect=function(){var t;if(this.root&&!h(this.root))t=c(this.root);else{var r=h(this.root)?this.root:e,n=r.documentElement,o=r.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,r){return"px"==t.unit?t.value:t.value*(r%2?e.width:e.height)/100})),r={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},a.prototype._hasCrossedThreshold=function(e,t){var r=e&&e.isIntersecting?e.intersectionRatio||0:-1,n=t.isIntersecting?t.intersectionRatio||0:-1;if(r!==n)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==r||i==n||i<r!=i<n)return!0}},a.prototype._rootIsInDom=function(){return!this.root||p(e,this.root)},a.prototype._rootContainsTarget=function(t){var r=this.root&&(this.root.ownerDocument||this.root)||e;return p(r,t)&&(!this.root||r==t.ownerDocument)},a.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},a.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=i}function o(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function i(e){this.time=e.time,this.target=e.target,this.rootBounds=u(e.rootBounds),this.boundingClientRect=u(e.boundingClientRect),this.intersectionRect=u(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,r=t.width*t.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=r?Number((o/r).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var r,n,o,i=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType&&9!=i.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(r=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){r(),o=null}),n))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,r,n){"function"==typeof e.addEventListener?e.addEventListener(t,r,n||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,r)}function l(e,t,r,n){"function"==typeof e.removeEventListener?e.removeEventListener(t,r,n||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,r)}function c(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function f(e,t){var r=t.top-e.top,n=t.left-e.left;return{top:r,left:n,height:t.height,width:t.width,bottom:r+t.height,right:n+t.width}}function p(e,t){for(var r=t;r;){if(r==e)return!0;r=d(r)}return!1}function d(t){var r=t.parentNode;return 9==t.nodeType&&t!=e?o(t):(r&&r.assignedSlot&&(r=r.assignedSlot.parentNode),r&&11==r.nodeType&&r.host?r.host:r)}function h(e){return e&&9===e.nodeType}}()},28527:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,E=String.prototype.toLowerCase,_=RegExp.prototype.test,x=Array.prototype.concat,C=Array.prototype.join,k=Array.prototype.slice,S=Math.floor,L="function"==typeof BigInt?BigInt.prototype.valueOf:null,j=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function D(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-S(-e):S(e);if(n!==e){var o=String(n),i=v.call(t,o.length+1);return b.call(o,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var N=r(43966),$=N.custom,T=H($)?$:null;function M(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function F(e){return b.call(String(e),/"/g,""")}function G(e){return!("[object Array]"!==U(e)||I&&"object"==typeof e&&I in e)}function V(e){return!("[object RegExp]"!==U(e)||I&&"object"==typeof e&&I in e)}function H(e){if(A)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var l=n||{};if(B(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(B(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!B(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(B(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(B(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return K(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return w?D(t,_):_}if("bigint"==typeof t){var S=String(t)+"n";return w?D(t,S):S}var j=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=j&&j>0&&"object"==typeof t)return G(t)?"[Array]":"[Object]";var $,z=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=C.call(Array(e.indent+1)," ")}return{base:r,prev:C.call(Array(t+1),r)}}(l,o);if(void 0===s)s=[];else if(W(s,t)>=0)return"[Circular]";function q(t,r,n){if(r&&(s=k.call(s)).push(r),n){var i={depth:l.depth};return B(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if("function"==typeof t&&!V(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=J(t,q);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+C.call(te,", ")+" }":"")}if(H(t)){var re=A?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||A?re:Q(re)}if(($=t)&&"object"==typeof $&&("undefined"!=typeof HTMLElement&&$ instanceof HTMLElement||"string"==typeof $.nodeName&&"function"==typeof $.getAttribute)){for(var ne="<"+E.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)ne+=" "+oe[ie].name+"="+M(F(oe[ie].value),"double",l);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+E.call(String(t.nodeName))+">"}if(G(t)){if(0===t.length)return"[]";var ae=J(t,q);return z&&!function(e){for(var t=0;t<e.length;t++)if(W(e[t],"\n")>=0)return!1;return!0}(ae)?"["+X(ae,z)+"]":"[ "+C.call(ae,", ")+" ]"}if(function(e){return!("[object Error]"!==U(e)||I&&"object"==typeof e&&I in e)}(t)){var se=J(t,q);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(se,", ")+" }":"{ ["+String(t)+"] "+C.call(x.call("[cause]: "+q(t.cause),se),", ")+" }"}if("object"==typeof t&&m){if(T&&"function"==typeof t[T]&&N)return N(t,{depth:j-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return a&&a.call(t,(function(e,r){le.push(q(r,t,!0)+" => "+q(e,t))})),Y("Map",i.call(t),le,z)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(q(e,t))})),Y("Set",c.call(t),ce,z)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return!("[object Number]"!==U(e)||I&&"object"==typeof e&&I in e)}(t))return Q(q(Number(t)));if(function(e){if(!e||"object"!=typeof e||!L)return!1;try{return L.call(e),!0}catch(e){}return!1}(t))return Q(q(L.call(t)));if(function(e){return!("[object Boolean]"!==U(e)||I&&"object"==typeof e&&I in e)}(t))return Q(h.call(t));if(function(e){return!("[object String]"!==U(e)||I&&"object"==typeof e&&I in e)}(t))return Q(q(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==U(e)||I&&"object"==typeof e&&I in e)}(t)&&!V(t)){var ue=J(t,q),fe=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",de=!fe&&I&&Object(t)===t&&I in t?v.call(U(t),8,-1):pe?"Object":"",he=(fe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||pe?"["+C.call(x.call([],de||[],pe||[]),": ")+"] ":"");return 0===ue.length?he+"{}":z?he+"{"+X(ue,z)+"}":he+"{ "+C.call(ue,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function B(e,t){return z.call(e,t)}function U(e){return m.call(e)}function W(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function K(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return K(v.call(e,0,t.maxStringLength),t)+n}return M(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,q),"single",t)}function q(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w.call(t.toString(16))}function Q(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function Y(e,t,r,n){return e+" ("+t+") {"+(n?X(r,n):C.call(r,", "))+"}"}function X(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+C.call(e,","+r)+"\n"+t.prev}function J(e,t){var r=G(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=B(e,o)?t(e[o],e):""}var i,a="function"==typeof j?j(e):[];if(A){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)B(e,l)&&(r&&String(Number(l))===l&&l<e.length||A&&i["$"+l]instanceof Symbol||(_.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof j)for(var c=0;c<a.length;c++)P.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}},60769:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},8985:(e,t,r)=>{"use strict";var n=r(41088),o=r(52286),i=r(60769);e.exports={formats:i,parse:o,stringify:n}},52286:(e,t,r)=>{"use strict";var n=r(65364),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var f=0;r.depth>0&&null!==(s=a.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(s[1])}if(s){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(s.index)+"]")}return function(e,t,r,n){for(var o=n?t:l(t,r),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&r.parseArrays)a=r.allowEmptyArrays&&(""===o||r.strictNullHandling&&null===o)?[]:[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=r.decodeDotInKeys?c.replace(/%2E/g,"."):c,f=parseInt(u,10);r.parseArrays||""!==u?!isNaN(f)&&s!==u&&String(f)===u&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(a=[])[f]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,r=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=c.split(t.delimiter,f),d=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<p.length;++u)0===p[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[u]?h="utf-8":"utf8=%26%2310003%3B"===p[u]&&(h="iso-8859-1"),d=u,u=p.length);for(u=0;u<p.length;++u)if(u!==d){var m,y,g=p[u],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(m=t.decoder(g,a.decoder,h,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),a.decoder,h,"key"),y=n.maybeMap(l(g.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,h,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=s(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y);var w=o.call(r,m);w&&"combine"===t.duplicates?r[m]=n.combine(r[m],y):w&&"last"!==t.duplicates||(r[m]=y)}return r}(e,r):e,f=r.plainObjects?Object.create(null):{},p=Object.keys(u),d=0;d<p.length;++d){var h=p[d],m=c(h,u[h],r,"string"==typeof e);f=n.merge(f,m,r)}return!0===r.allowSparse?f:n.compact(f)}},41088:(e,t,r)=>{"use strict";var n=r(10588),o=r(65364),i=r(60769),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},f=Date.prototype.toISOString,p=i.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,r,i,a,s,c,f,p,m,y,g,v,b,w,E,_,x,C){for(var k,S=t,L=C,j=0,O=!1;void 0!==(L=L.get(h))&&!O;){var A=L.get(t);if(j+=1,void 0!==A){if(A===j)throw new RangeError("Cyclic object value");O=!0}void 0===L.get(h)&&(j=0)}if("function"==typeof y?S=y(r,S):S instanceof Date?S=b(S):"comma"===i&&l(S)&&(S=o.maybeMap(S,(function(e){return e instanceof Date?b(e):e}))),null===S){if(c)return m&&!_?m(r,d.encoder,x,"key",w):r;S=""}if("string"==typeof(k=S)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||o.isBuffer(S))return m?[E(_?r:m(r,d.encoder,x,"key",w))+"="+E(m(S,d.encoder,x,"value",w))]:[E(r)+"="+E(String(S))];var I,P=[];if(void 0===S)return P;if("comma"===i&&l(S))_&&m&&(S=o.maybeMap(S,m)),I=[{value:S.length>0?S.join(",")||null:void 0}];else if(l(y))I=y;else{var R=Object.keys(S);I=g?R.sort(g):R}var D=p?r.replace(/\./g,"%2E"):r,N=a&&l(S)&&1===S.length?D+"[]":D;if(s&&l(S)&&0===S.length)return N+"[]";for(var $=0;$<I.length;++$){var T=I[$],M="object"==typeof T&&void 0!==T.value?T.value:S[T];if(!f||null!==M){var F=v&&p?T.replace(/\./g,"%2E"):T,G=l(S)?"function"==typeof i?i(N,F):N:N+(v?"."+F:"["+F+"]");C.set(t,j);var V=n();V.set(h,C),u(P,e(M,G,i,a,s,c,f,p,"comma"===i&&_&&l(S)?null:m,y,g,v,b,w,E,_,x,V))}}return P};e.exports=function(e,t){var r,o=e,c=function(e){if(!e)return d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n,o=i.formatters[r],c=d.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),n=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:n,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:c,format:r,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(r=c.filter);var f=[];if("object"!=typeof o||null===o)return"";var p=s[c.arrayFormat],h="comma"===p&&c.commaRoundTrip;r||(r=Object.keys(o)),c.sort&&r.sort(c.sort);for(var y=n(),g=0;g<r.length;++g){var v=r[g];c.skipNulls&&null===o[v]||u(f,m(o[v],v,p,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,y))}var b=f.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},65364:(e,t,r)=>{"use strict";var n=r(60769),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},l=1024;e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],a=o.obj[o.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:a,prop:c}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;u+=l){for(var f=s.length>=l?s.slice(u,u+l):s,p=[],d=0;d<f.length;++d){var h=f.charCodeAt(d);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===n.RFC1738&&(40===h||41===h)?p[p.length]=f.charAt(d):h<128?p[p.length]=a[h]:h<2048?p[p.length]=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?p[p.length]=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(d+=1,h=65536+((1023&h)<<10|1023&f.charCodeAt(d)),p[p.length]=a[240|h>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}c+=p.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=s(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t}),a)}}},55183:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNavigator=t.isBrowser=t.off=t.on=t.noop=void 0,t.noop=function(){},t.on=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)},t.off=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)},t.isBrowser="undefined"!=typeof window,t.isNavigator="undefined"!=typeof navigator},70897:(e,t,r)=>{"use strict";var n=r(34629),o=r(36418),i=n.__importDefault(r(71960));t.A=function(e,t,r){void 0===t&&(t=[]),void 0===r&&(r={loading:!1});var a=o.useRef(0),s=i.default(),l=o.useState(r),c=l[0],u=l[1],f=o.useCallback((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=++a.current;return c.loading||u((function(e){return n.__assign(n.__assign({},e),{loading:!0})})),e.apply(void 0,t).then((function(e){return s()&&o===a.current&&u({value:e,loading:!1}),e}),(function(e){return s()&&o===a.current&&u({error:e,loading:!1}),e}))}),t);return[c,f]}},4386:(e,t,r)=>{"use strict";var n=r(34629),o=r(36418),i=n.__importDefault(r(55690));t.A=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=[]);var n=i.default(e,t),a=n[0],s=n[1],l=n[2];return o.useEffect(l,r),[a,s]}},93665:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(36418);t.default=function(e){n.useEffect(e,[])}},59011:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(36418),o=r(55183).isBrowser?n.useLayoutEffect:n.useEffect;t.default=o},55814:(e,t,r)=>{"use strict";var n=r(36418);t.A=function(e){var t=n.useRef(e);return t.current=e,t}},71960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(36418);t.default=function(){var e=n.useRef(!1),t=n.useCallback((function(){return e.current}),[]);return n.useEffect((function(){return e.current=!0,function(){e.current=!1}}),[]),t}},42016:(e,t,r)=>{"use strict";var n=r(34629),o=r(36418),i=n.__importDefault(r(59011));t.A=function(e,t){void 0===e&&(e=1e12),void 0===t&&(t=0);var r=o.useState(0),n=r[0],a=r[1];return i.default((function(){var r,n,o,i=function(){var t=Math.min(1,(Date.now()-o)/e);a(t),s()},s=function(){r=requestAnimationFrame(i)},l=setTimeout((function(){n=setTimeout((function(){cancelAnimationFrame(r),a(1)}),e),o=Date.now(),s()}),t);return function(){clearTimeout(n),clearTimeout(l),cancelAnimationFrame(r)}}),[e,t]),n}},75349:(e,t,r)=>{"use strict";var n=r(34629),o=r(36418),i=n.__importDefault(r(85413));t.A=function(e,t){void 0===t&&(t=200);var r=o.useState(e),n=r[0],a=r[1],s=o.useRef(),l=o.useRef(null),c=o.useRef(0);return o.useEffect((function(){if(s.current)l.current=e,c.current=!0;else{a(e);var r=function(){c.current?(c.current=!1,a(l.current),s.current=setTimeout(r,t)):s.current=void 0};s.current=setTimeout(r,t)}}),[e]),i.default((function(){s.current&&clearTimeout(s.current)})),n}},55690:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(36418);t.default=function(e,t){void 0===t&&(t=0);var r=n.useRef(!1),o=n.useRef(),i=n.useRef(e),a=n.useCallback((function(){return r.current}),[]),s=n.useCallback((function(){r.current=!1,o.current&&clearTimeout(o.current),o.current=setTimeout((function(){r.current=!0,i.current()}),t)}),[t]),l=n.useCallback((function(){r.current=null,o.current&&clearTimeout(o.current)}),[]);return n.useEffect((function(){i.current=e}),[e]),n.useEffect((function(){return s(),l}),[t]),[a,l,s]}},85413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(34629),o=r(36418),i=n.__importDefault(r(93665));t.default=function(e){var t=o.useRef(e);t.current=e,i.default((function(){return function(){return t.current()}}))}},10588:(e,t,r)=>{"use strict";var n=r(68897),o=r(9343),i=r(28527),a=r(1711),s=n("%WeakMap%",!0),l=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),d=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(l){if(t)return p(t,n)}else if(r)return function(e,t){var r=m(e,t);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(e)return f(e,n)}else if(l){if(t)return h(t,n)}else if(r)return function(e,t){return!!m(e,t)}(r,n);return!1},set:function(n,o){s&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new s),u(e,n,o)):l?(t||(t=new l),d(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=m(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},53442:(e,t,r)=>{"use strict";r.d(t,{Oo:()=>N,uK:()=>D});var n,o,i,a=r(13299),s=r(8985),l=Object.defineProperty,c=Object.defineProperties,u=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&m(e,r,t[r]);if(p)for(var r of p(t))h.call(t,r)&&m(e,r,t[r]);return e},g=(e,t)=>c(e,u(t)),v=(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,t)=>("undefined"!=typeof require?require:e)[t]}):e)((function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')})),b=(e,t,r)=>new Promise(((n,o)=>{var i=e=>{try{s(r.next(e))}catch(e){o(e)}},a=e=>{try{s(r.throw(e))}catch(e){o(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,a);s((r=r.apply(e,t)).next())})),w=(n={"package.json"(e,t){t.exports={scripts:{lint:"run -T eslint . --ext .ts,.tsx",clean:"rm -rf ./dist",dev:"parcel public/test.html",docs:"typedoc src/index.ts",build:"run -T tsup src/index.ts --format cjs,esm --dts && run -T publint",prepublish:"npm run clean && npm run build",test:"run -T jest --config ./jestconfig.js","test:watch":"run -T jest --config ./jestconfig.js --watchAll"},name:"@giphy/js-fetch-api",version:"5.1.0",description:"Javascript API to fetch gifs and stickers from the GIPHY API.",homepage:"https://github.com/Giphy/giphy-js/tree/master/packages/fetch-api",main:"dist/index.cjs",types:"dist/index.d.ts",module:"dist/index.js",type:"module",sideEffects:!1,exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js",require:"./dist/index.cjs"},"./package.json":"./package.json"},files:["dist/","src/**/*"],license:"MIT",publishConfig:{access:"public"},dependencies:{"@giphy/js-types":"*","@giphy/js-util":"*",qs:"^6.9.4"},devDependencies:{"@types/qs":"^6.9.4","jest-fetch-mock":"^3.0.3","parcel-bundler":"latest",typedoc:"^0.20.36","typedoc-thunder-theme":"^0.0.2",typescript:"^5.0.4"}}}},function(){return o||(0,n[f(n)[0]])((o={exports:{}}).exports,o),o.exports}),E=["is_anonymous","is_community","is_featured","is_hidden","is_indexable","is_preserve_size","is_realtime","is_removed","is_sticker","is_dynamic"],_=["suppress_chrome","is_public","is_verified"],x=e=>t=>e[t]=!!e[t],C=e=>"string"==typeof e?e:e.text,k=e=>{const t=y({},e);t.id=String(t.id),t.tags=(t.tags||[]).map(C),E.forEach(x(t)),Object.keys(t.images||{}).forEach((e=>{const r=t.images[e];r.width=parseInt(r.width),r.height=parseInt(r.height)}));const{user:r}=t;if(r){const e=y({},r);_.forEach(x(e)),t.user=e}return t},S=e=>(e.data=k(e.data),e),L=e=>(e.data=e.data.map((e=>k(e))),e),j=(("undefined"!=typeof window?window:global)||{}).GIPHY_API_URL||"https://api.giphy.com/v1/",O=class extends Error{constructor(e,t,r=0,n=""){super(e),this.url=t,this.status=r,this.statusText=n}},A=e=>e,I={},P=function(e,t={}){const{apiVersion:r=1,noCache:n=!1,normalizer:o=A}=t,i=j.replace(/\/v\d+\/$/,`/v${r}/`);if((()=>{const e=Date.now();Object.keys(I).forEach((t=>{const r=I[t].isError?6e3:6e4;e-I[t].ts>=r&&delete I[t]}))})(),!I[e]||n){const t=`${i}${e}`,r=()=>b(this,null,(function*(){var r;let n;try{const i=yield fetch(t,{method:"get"});if(i.ok){const e=yield i.json();if(null==(r=e.meta)?void 0:r.response_id)return o(e);throw{message:"synthetic response"}}{let r="Error fetching";try{const e=yield i.json();e.message&&(r=e.message)}catch(e){}I[e]&&(I[e].isError=!0),n=new O(`@giphy/js-fetch-api: ${r}`,t,i.status,i.statusText)}}catch(r){n=new O(r.message,t),I[e]&&(I[e].isError=!0)}throw n}));I[e]={request:r(),ts:Date.now()}}return I[e].request},R=e=>e&&e.type?e.type:"gifs",D=class{constructor(e){this.getQS=(e={})=>s.stringify(g(y({},e),{api_key:this.apiKey,pingback_id:(0,a.t0)()})),this.apiKey=e}categories(e){return P(`gifs/categories?${this.getQS(e)}`)}gif(e){return P(`gifs/${e}?${this.getQS()}`,{normalizer:S})}gifs(e,t){return Array.isArray(e)?P(`gifs?${this.getQS({ids:e.join(",")})}`,{normalizer:L}):P(`gifs/categories/${e}/${t}?${this.getQS()}`,{normalizer:L})}emoji(e){return P(`emoji?${this.getQS(e)}`,{normalizer:L})}emojiDefaultVariations(e){return P(`emoji?${this.getQS(e)}`,{apiVersion:2,normalizer:L})}emojiVariations(e){return P(`emoji/${e}/variations?${this.getQS()}`,{apiVersion:2,normalizer:L})}animate(e,t={}){const r=this.getQS(g(y({},t),{m:e}));return P(`text/animate?${r}`,{normalizer:L})}search(e,t={}){const r=t.channel?`@${t.channel} ${e}`:e;let n;"text"===t.type&&(n=!0);const o=this.getQS(g(y({rating:"pg-13"},t),{q:r,excludeDynamicResults:n}));return P(`${R(t)}/search?${o}`,{normalizer:L})}subcategories(e,t){return P(`gifs/categories/${e}?${this.getQS(t)}`)}trending(e={}){return P(`${R(e)}/trending?${this.getQS(y({rating:"pg-13"},e))}`,{normalizer:L})}random(e){return P(`${R(e)}/random?${this.getQS(y({rating:"pg-13"},e))}`,{noCache:!0,normalizer:S})}related(e,t={}){const{type:r="gifs"}=t;return P(`${r}/related?${this.getQS(y({gif_id:e,rating:"pg-13"},t))}`,{normalizer:L})}channels(e,t={}){return P(`channels/search?${this.getQS(y({q:e,rating:"pg-13"},t))}`)}},N=(e,t=[])=>{const r=[...t],n=t.map((e=>e.id));let o=t.length,i=!1;return()=>b(void 0,null,(function*(){if(i)return r;const t=yield e(o),{pagination:a,data:s}=t;return o=a.count+a.offset,i=o===a.total_count,s.forEach((e=>{const{id:t}=e;n.includes(t)||(r.push(e),n.push(t))})),[...r]}))};if(void 0!==v){const{version:e}=w();(null==(i=(0,a.D6)())?void 0:i.get("X-GIPHY-SDK-NAME"))||((0,a.SU)("X-GIPHY-SDK-NAME","FetchAPI"),(0,a.SU)("X-GIPHY-SDK-VERSION",e))}},13299:(e,t,r)=>{"use strict";r.d(t,{Vy:()=>g,SU:()=>A,lm:()=>L,th:()=>C,sr:()=>x,Sj:()=>w,_2:()=>k,Vs:()=>S,D6:()=>O,t0:()=>_,Up:()=>b});const n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const i=new Uint8Array(16);function a(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}const s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));const l=function(e,t,r){if(n.randomUUID&&!t&&!e)return n.randomUUID();const o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=o[e];return t}return function(e,t=0){return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}(o)};var c=Object.defineProperty,u=Object.defineProperties,f=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&m(e,r,t[r]);if(p)for(var r of p(t))h.call(t,r)&&m(e,r,t[r]);return e},g={ENABLED:"undefined"!=typeof window&&"undefined"!=typeof location&&-1!==location.search.indexOf("giphy-debug"),LEVEL:0,PREFIX:"GiphyJS",debug:(...e)=>{g.ENABLED&&g.LEVEL<=0&&console.debug(g.PREFIX,...e)},info:(...e)=>{g.ENABLED&&g.LEVEL<=1&&console.info(g.PREFIX,...e)},warn:(...e)=>{g.ENABLED&&g.LEVEL<=2&&console.warn(g.PREFIX,...e)},error:(...e)=>{g.ENABLED&&g.LEVEL<=3&&console.error(g.PREFIX,...e)}},v=function(e,t,r,n=50){let[o]=e;const i=e.filter((e=>(e.width*e.height>o.width*o.height&&(o=e),t-e.width<=n&&r-e.height<=n)));return 0===i.length?o:((e,t,r)=>{let n,o=1/0;return r.forEach((r=>{const i=r.width/e*(r.height/t),a=Math.abs(1-i);a<o&&(o=a,n=r)})),n})(t,r,i)};function b(e,t){const r={};return t.forEach((t=>{void 0!==e[t]&&(r[t]=e[t])})),r}var w=e=>{let t=0,r=0;const n=e.offsetWidth,o=e.offsetHeight;do{t+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent}while(e);const i={left:t,top:r,width:n,height:o,right:t+n,bottom:r+o,x:t,y:r};return a=y({},i),u(a,f({toJSON:()=>JSON.stringify(i)}));var a},E="",_=()=>{if(!E){try{E=sessionStorage.getItem("giphyPingbackId")}catch(e){}if(!E){const e=(new Date).getTime().toString(16);try{E=`${e}${l().replace(/-/g,"")}`.substring(0,16)}catch(e){E=(()=>{let e="";for(let t=0;t<16;t++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return e})()}try{sessionStorage.setItem("giphyPingbackId",E)}catch(e){}}}return E},x=(new Promise((e=>{"undefined"==typeof Image&&e(!1);const t=new Image;t.onload=()=>{e(!0)},t.onerror=()=>{e(!1)},t.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"})),(e,t,r)=>{let n=null==e?void 0:e.assets;if(n){n=y({},n),delete n.source;const e=Object.values(n).sort(((e,t)=>e.width-t.width));return v(e,t,r)}}),C=(e,t,r,n)=>{const o=b(e,["original","fixed_width","fixed_height","fixed_width_small","fixed_height_small"]),i=Object.entries(o).map((([e,t])=>y({renditionName:e},t)));return v(i,t,r,n)},k=({images:e},t)=>{const{fixed_width:r}=e;if(r){const{width:e,height:n}=r,o=e/n;return Math.round(t/o)}return 0},S=({images:e},t)=>{const{fixed_width:r}=e;if(r){const{width:e,height:n}=r,o=e/n;return Math.round(t*o)}return 0},L=({alt_text:e,user:t,tags:r=[],is_sticker:n=!1,title:o=""})=>{if(e)return e;if(o)return o;const i=t&&t.username||"";var a;return`${i?`${i} `:""}${function(e,t=0){return e.slice(0,t)}((a=["transparent"],r.filter((e=>-1===a.indexOf(e)))),i?4:5).join(" ")} ${n?"Sticker":"GIF"}`},j=("undefined"!=typeof window?window:global)||{};j._GIPHY_SDK_HEADERS_=j._GIPHY_SDK_HEADERS_||(j.Headers?new j.Headers({"X-GIPHY-SDK-PLATFORM":"web"}):void 0);var O=()=>j._GIPHY_SDK_HEADERS_,A=(e,t)=>{var r;return null==(r=O())?void 0:r.set(e,t)}},34629:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>D,__assign:()=>i,__asyncDelegator:()=>k,__asyncGenerator:()=>C,__asyncValues:()=>S,__await:()=>x,__awaiter:()=>h,__classPrivateFieldGet:()=>I,__classPrivateFieldIn:()=>R,__classPrivateFieldSet:()=>P,__createBinding:()=>y,__decorate:()=>s,__disposeResources:()=>$,__esDecorate:()=>c,__exportStar:()=>g,__extends:()=>o,__generator:()=>m,__importDefault:()=>A,__importStar:()=>O,__makeTemplateObject:()=>L,__metadata:()=>d,__param:()=>l,__propKey:()=>f,__read:()=>b,__rest:()=>a,__rewriteRelativeImportExtension:()=>T,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>w,__spreadArray:()=>_,__spreadArrays:()=>E,__values:()=>v,default:()=>M});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function s(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=n.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,f=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var h={};for(var m in n)h[m]="access"===m?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var y=(0,r[d])("accessor"===l?{get:f.get,set:f.set}:f[c],h);if("accessor"===l){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(s=a(y.get))&&(f.get=s),(s=a(y.set))&&(f.set=s),(s=a(y.init))&&o.unshift(s)}else(s=a(y))&&("field"===l?o.unshift(s):f[c]=s)}u&&Object.defineProperty(u,n.name,f),p=!0}function u(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function m(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var y=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function g(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||y(t,e,r)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function E(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}function _(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function C(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",(function(e){return function(t){return Promise.resolve(t).then(e,c)}})),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||s(e,t)}))},t&&(n[e]=t(n[e])))}function s(e,t){try{(r=o[e](t)).value instanceof x?Promise.resolve(r.value.v).then(l,c):u(i[0][2],r)}catch(e){u(i[0][3],e)}var r}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function k(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:x(e[n](t)),done:!1}:o?o(t):t}:o}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}}function L(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var j=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&y(t,e,r);return j(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function I(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function P(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function R(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function D(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var N="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function $(e){function t(t){e.error=e.hasError?new N(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function o(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,(function(e){return t(e),o()}))}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function T(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,r,n,o,i){return r?t?".jsx":".js":!n||o&&i?n+o+"."+i.toLowerCase()+"js":e})):e}const M={__extends:o,__assign:i,__rest:a,__decorate:s,__param:l,__esDecorate:c,__runInitializers:u,__propKey:f,__setFunctionName:p,__metadata:d,__awaiter:h,__generator:m,__createBinding:y,__exportStar:g,__values:v,__read:b,__spread:w,__spreadArrays:E,__spreadArray:_,__await:x,__asyncGenerator:C,__asyncDelegator:k,__asyncValues:S,__makeTemplateObject:L,__importStar:O,__importDefault:A,__classPrivateFieldGet:I,__classPrivateFieldSet:P,__classPrivateFieldIn:R,__addDisposableResource:D,__disposeResources:$,__rewriteRelativeImportExtension:T}}}]); //# sourceMappingURL=4402.115fd4e20d03401425c6.js.map