import{c as he,a as Mo,r as J,g as os,R as j}from"./core-ef1f6b7b.js";import{s as te,U as wr,C as as}from"./ui-7f429cfd.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="3f9c2352-c79a-4dfb-9444-086c12aca44a",t._sentryDebugIdIdentifier="sentry-dbid-3f9c2352-c79a-4dfb-9444-086c12aca44a")}catch{}})();var ss={exports:{}};(function(t,a){(function(o,l){t.exports=l()})(self,function(){return(()=>{var o={378:m=>{var T=1e3,A=60*T,b=60*A,w=24*b;function E(k){if(!((k=String(k)).length>100)){var N=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(k);if(N){var B=parseFloat(N[1]);switch((N[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*B;case"weeks":case"week":case"w":return 6048e5*B;case"days":case"day":case"d":return B*w;case"hours":case"hour":case"hrs":case"hr":case"h":return B*b;case"minutes":case"minute":case"mins":case"min":case"m":return B*A;case"seconds":case"second":case"secs":case"sec":case"s":return B*T;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return B;default:return}}}}function $(k){var N=Math.abs(k);return N>=w?Math.round(k/w)+"d":N>=b?Math.round(k/b)+"h":N>=A?Math.round(k/A)+"m":N>=T?Math.round(k/T)+"s":k+"ms"}function d(k){var N=Math.abs(k);return N>=w?O(k,N,w,"day"):N>=b?O(k,N,b,"hour"):N>=A?O(k,N,A,"minute"):N>=T?O(k,N,T,"second"):k+" ms"}function O(k,N,B,L){var K=N>=1.5*B;return Math.round(k/B)+" "+L+(K?"s":"")}m.exports=function(k,N){N=N||{};var B=typeof k;if(B==="string"&&k.length>0)return E(k);if(B==="number"&&isFinite(k))return N.long?d(k):$(k);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(k))}},22:(m,T,A)=>{var b=A(481),w=A(426),E=w;E.v1=b,E.v4=w,m.exports=E},725:m=>{for(var T=[],A=0;A<256;++A)T[A]=(A+256).toString(16).substr(1);m.exports=function(b,w){var E=w||0,$=T;return[$[b[E++]],$[b[E++]],$[b[E++]],$[b[E++]],"-",$[b[E++]],$[b[E++]],"-",$[b[E++]],$[b[E++]],"-",$[b[E++]],$[b[E++]],"-",$[b[E++]],$[b[E++]],$[b[E++]],$[b[E++]],$[b[E++]],$[b[E++]]].join("")}},157:m=>{var T=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(T){var A=new Uint8Array(16);m.exports=function(){return T(A),A}}else{var b=new Array(16);m.exports=function(){for(var w,E=0;E<16;E++)!(3&E)&&(w=4294967296*Math.random()),b[E]=w>>>((3&E)<<3)&255;return b}}},481:(m,T,A)=>{var b,w,E=A(157),$=A(725),d=0,O=0;m.exports=function(k,N,B){var L=N&&B||0,K=N||[],X=(k=k||{}).node||b,F=k.clockseq!==void 0?k.clockseq:w;if(X==null||F==null){var oe=E();X==null&&(X=b=[1|oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]]),F==null&&(F=w=16383&(oe[6]<<8|oe[7]))}var ue=k.msecs!==void 0?k.msecs:new Date().getTime(),se=k.nsecs!==void 0?k.nsecs:O+1,W=ue-d+(se-O)/1e4;if(W<0&&k.clockseq===void 0&&(F=F+1&16383),(W<0||ue>d)&&k.nsecs===void 0&&(se=0),se>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=ue,O=se,w=F;var Se=(1e4*(268435455&(ue+=122192928e5))+se)%4294967296;K[L++]=Se>>>24&255,K[L++]=Se>>>16&255,K[L++]=Se>>>8&255,K[L++]=255&Se;var ye=ue/4294967296*1e4&268435455;K[L++]=ye>>>8&255,K[L++]=255&ye,K[L++]=ye>>>24&15|16,K[L++]=ye>>>16&255,K[L++]=F>>>8|128,K[L++]=255&F;for(var ce=0;ce<6;++ce)K[L+ce]=X[ce];return N||$(K)}},426:(m,T,A)=>{var b=A(157),w=A(725);m.exports=function(E,$,d){var O=$&&d||0;typeof E=="string"&&($=E==="binary"?new Array(16):null,E=null);var k=(E=E||{}).random||(E.rng||b)();if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,$)for(var N=0;N<16;++N)$[O+N]=k[N];return $||w(k)}},227:(m,T,A)=>{T.formatArgs=function(w){if(w[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+w[0]+(this.useColors?"%c ":" ")+"+"+m.exports.humanize(this.diff),!this.useColors)return;const E="color: "+this.color;w.splice(1,0,E,"color: inherit");let $=0,d=0;w[0].replace(/%[a-zA-Z%]/g,O=>{O!=="%%"&&($++,O==="%c"&&(d=$))}),w.splice(d,0,E)},T.save=function(w){try{w?T.storage.setItem("debug",w):T.storage.removeItem("debug")}catch{}},T.load=function(){let w;try{w=T.storage.getItem("debug")}catch{}return!w&&typeof process<"u"&&"env"in process&&(w={}.DEBUG),w},T.useColors=function(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},T.storage=function(){try{return localStorage}catch{}}(),T.destroy=(()=>{let w=!1;return()=>{w||(w=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),T.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],T.log=console.debug||console.log||(()=>{}),m.exports=A(447)(T);const{formatters:b}=m.exports;b.j=function(w){try{return JSON.stringify(w)}catch(E){return"[UnexpectedJSONParseError]: "+E.message}}},447:(m,T,A)=>{m.exports=function(b){function w(d){let O,k,N,B=null;function L(...K){if(!L.enabled)return;const X=L,F=Number(new Date),oe=F-(O||F);X.diff=oe,X.prev=O,X.curr=F,O=F,K[0]=w.coerce(K[0]),typeof K[0]!="string"&&K.unshift("%O");let ue=0;K[0]=K[0].replace(/%([a-zA-Z%])/g,(se,W)=>{if(se==="%%")return"%";ue++;const Se=w.formatters[W];if(typeof Se=="function"){const ye=K[ue];se=Se.call(X,ye),K.splice(ue,1),ue--}return se}),w.formatArgs.call(X,K),(X.log||w.log).apply(X,K)}return L.namespace=d,L.useColors=w.useColors(),L.color=w.selectColor(d),L.extend=E,L.destroy=w.destroy,Object.defineProperty(L,"enabled",{enumerable:!0,configurable:!1,get:()=>B!==null?B:(k!==w.namespaces&&(k=w.namespaces,N=w.enabled(d)),N),set:K=>{B=K}}),typeof w.init=="function"&&w.init(L),L}function E(d,O){const k=w(this.namespace+(O===void 0?":":O)+d);return k.log=this.log,k}function $(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}return w.debug=w,w.default=w,w.coerce=function(d){return d instanceof Error?d.stack||d.message:d},w.disable=function(){const d=[...w.names.map($),...w.skips.map($).map(O=>"-"+O)].join(",");return w.enable(""),d},w.enable=function(d){let O;w.save(d),w.namespaces=d,w.names=[],w.skips=[];const k=(typeof d=="string"?d:"").split(/[\s,]+/),N=k.length;for(O=0;O<N;O++)k[O]&&((d=k[O].replace(/\*/g,".*?"))[0]==="-"?w.skips.push(new RegExp("^"+d.substr(1)+"$")):w.names.push(new RegExp("^"+d+"$")))},w.enabled=function(d){if(d[d.length-1]==="*")return!0;let O,k;for(O=0,k=w.skips.length;O<k;O++)if(w.skips[O].test(d))return!1;for(O=0,k=w.names.length;O<k;O++)if(w.names[O].test(d))return!0;return!1},w.humanize=A(378),w.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(b).forEach(d=>{w[d]=b[d]}),w.names=[],w.skips=[],w.formatters={},w.selectColor=function(d){let O=0;for(let k=0;k<d.length;k++)O=(O<<5)-O+d.charCodeAt(k),O|=0;return w.colors[Math.abs(O)%w.colors.length]},w.enable(w.load()),w}}},l={};function u(m){var T=l[m];if(T!==void 0)return T.exports;var A=l[m]={exports:{}};return o[m](A,A.exports,u),A.exports}u.d=(m,T)=>{for(var A in T)u.o(T,A)&&!u.o(m,A)&&Object.defineProperty(m,A,{enumerable:!0,get:T[A]})},u.o=(m,T)=>Object.prototype.hasOwnProperty.call(m,T),u.r=m=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})};var p={};return(()=>{u.r(p),u.d(p,{ActionObjectType:()=>T,ChannelType:()=>K,ChildAppWindow:()=>gn,DialogDimension:()=>N,ErrorCode:()=>b,FileOpenPreference:()=>m,FrameContexts:()=>d,HostClientType:()=>E,HostName:()=>$,NotificationTypes:()=>fn,ParentAppWindow:()=>ji,SecondaryM365ContentIdName:()=>A,TaskModuleDimension:()=>X,TeamType:()=>O,UserSettingTypes:()=>Mn,UserTeamRole:()=>k,ViewerActionTypes:()=>zt,app:()=>$e,appEntity:()=>Dt,appInitialization:()=>Qn,appInstallDialog:()=>$n,authentication:()=>fe,barCode:()=>Hn,calendar:()=>Vn,call:()=>it,chat:()=>Bn,conversations:()=>Lt,dialog:()=>vt,enablePrintCapability:()=>Yn,executeDeepLink:()=>rr,files:()=>or,geoLocation:()=>Mt,getContext:()=>Ae,getMruTabInstances:()=>nr,getTabInstances:()=>tr,initialize:()=>Hi,initializeWithFrameContext:()=>Vr,location:()=>pn,logs:()=>Ft,mail:()=>qn,media:()=>rt,meeting:()=>Gn,meetingRoom:()=>ar,menus:()=>cn,monetization:()=>Wn,navigateBack:()=>Ki,navigateCrossDomain:()=>qr,navigateToTab:()=>yn,notifications:()=>sr,openFilePreview:()=>ki,pages:()=>Ce,people:()=>It,print:()=>Bi,profile:()=>zn,registerAppButtonClickHandler:()=>Gi,registerAppButtonHoverEnterHandler:()=>Wi,registerAppButtonHoverLeaveHandler:()=>er,registerBackButtonHandler:()=>vn,registerBeforeUnloadHandler:()=>qi,registerChangeSettingsHandler:()=>Br,registerCustomHandler:()=>Ri,registerFocusEnterHandler:()=>Hr,registerFullScreenHandler:()=>Ur,registerOnLoadHandler:()=>Vi,registerOnThemeChangeHandler:()=>$r,registerUserSettingsChangeHandler:()=>jn,remoteCamera:()=>lr,returnFocus:()=>mn,search:()=>Kn,sendCustomEvent:()=>xr,sendCustomMessage:()=>Dn,setFrameContext:()=>Wr,settings:()=>hn,shareDeepLink:()=>Gr,sharing:()=>Xn,stageView:()=>Zn,tasks:()=>ir,teams:()=>Yt,teamsCore:()=>lt,uploadCustomApp:()=>Nt,version:()=>B,video:()=>Qt,videoEx:()=>cr,webStorage:()=>Jn});var m,T,A,b,w,E,$,d,O,k,N,B="2.4.1",L=function(){function e(){}return e.initializeCalled=!1,e.initializeCompleted=!1,e.additionalValidOrigins=[],e.isFramelessWindow=!1,e.printCapabilityEnabled=!1,e}();(function(e){e.Inline="inline",e.Desktop="desktop",e.Web="web"})(m||(m={})),function(e){e.M365Content="m365content"}(T||(T={})),function(e){e.DriveId="driveId",e.GroupId="groupId",e.SiteId="siteId",e.UserId="userId"}(A||(A={})),function(e){e[e.NOT_SUPPORTED_ON_PLATFORM=100]="NOT_SUPPORTED_ON_PLATFORM",e[e.INTERNAL_ERROR=500]="INTERNAL_ERROR",e[e.NOT_SUPPORTED_IN_CURRENT_CONTEXT=501]="NOT_SUPPORTED_IN_CURRENT_CONTEXT",e[e.PERMISSION_DENIED=1e3]="PERMISSION_DENIED",e[e.NETWORK_ERROR=2e3]="NETWORK_ERROR",e[e.NO_HW_SUPPORT=3e3]="NO_HW_SUPPORT",e[e.INVALID_ARGUMENTS=4e3]="INVALID_ARGUMENTS",e[e.UNAUTHORIZED_USER_OPERATION=5e3]="UNAUTHORIZED_USER_OPERATION",e[e.INSUFFICIENT_RESOURCES=6e3]="INSUFFICIENT_RESOURCES",e[e.THROTTLE=7e3]="THROTTLE",e[e.USER_ABORT=8e3]="USER_ABORT",e[e.OPERATION_TIMED_OUT=8001]="OPERATION_TIMED_OUT",e[e.OLD_PLATFORM=9e3]="OLD_PLATFORM",e[e.FILE_NOT_FOUND=404]="FILE_NOT_FOUND",e[e.SIZE_EXCEEDED=1e4]="SIZE_EXCEEDED"}(b||(b={})),function(e){e.GeoLocation="geolocation",e.Media="media"}(w||(w={})),function(e){e.desktop="desktop",e.web="web",e.android="android",e.ios="ios",e.ipados="ipados",e.rigel="rigel",e.surfaceHub="surfaceHub",e.teamsRoomsWindows="teamsRoomsWindows",e.teamsRoomsAndroid="teamsRoomsAndroid",e.teamsPhones="teamsPhones",e.teamsDisplays="teamsDisplays"}(E||(E={})),function(e){e.office="Office",e.outlook="Outlook",e.outlookWin32="OutlookWin32",e.orange="Orange",e.teams="Teams"}($||($={})),function(e){e.settings="settings",e.content="content",e.authentication="authentication",e.remove="remove",e.task="task",e.sidePanel="sidePanel",e.stage="stage",e.meetingStage="meetingStage"}(d||(d={})),function(e){e[e.Standard=0]="Standard",e[e.Edu=1]="Edu",e[e.Class=2]="Class",e[e.Plc=3]="Plc",e[e.Staff=4]="Staff"}(O||(O={})),function(e){e[e.Admin=0]="Admin",e[e.User=1]="User",e[e.Guest=2]="Guest"}(k||(k={})),function(e){e.Large="large",e.Medium="medium",e.Small="small"}(N||(N={}));var K,X=N;(function(e){e.Regular="Regular",e.Private="Private",e.Shared="Shared"})(K||(K={}));var F={errorCode:b.NOT_SUPPORTED_ON_PLATFORM},oe="2.0.1",ue="2.0.3",se="1.9.0",W="1.8.0",Se=["teams.microsoft.com","teams.microsoft.us","gov.teams.microsoft.us","dod.teams.microsoft.us","int.teams.microsoft.com","teams.live.com","devspaces.skype.com","ssauth.skype.com","local.teams.live.com","local.teams.live.com:8080","local.teams.office.com","local.teams.office.com:8080","msft.spoppe.com","*.sharepoint.com","*.sharepoint-df.com","*.sharepointonline.com","outlook.office.com","outlook-sdf.office.com","outlook.office365.com","outlook-sdf.office365.com","*.teams.microsoft.com","www.office.com","word.office.com","excel.office.com","powerpoint.office.com","www.officeppe.com","*.www.office.com"],ye=/^https:\/\//,ce=u(22);function je(e,s){if(e.substring(0,2)==="*."){var i=e.substring(1);if(s.length>i.length&&s.split(".").length===i.split(".").length&&s.substring(s.length-i.length)===i)return!0}else if(e===s)return!0;return!1}function nt(e){if(e.protocol!=="https:")return!1;var s=e.host;if(Se.some(function(P){return je(P,s)}))return!0;for(var i=0,f=L.additionalValidOrigins;i<f.length;i++){var g=f[i];if(je(g.substring(0,8)==="https://"?g.substring(8):g,s))return!0}return!1}function we(e){return function(s,i){if(!s)throw new Error(e||i)}}function xe(e,s){if(typeof e!="string"||typeof s!="string")return NaN;var i=e.split("."),f=s.split(".");function g(C){return/^\d+$/.test(C)}if(!i.every(g)||!f.every(g))return NaN;for(;i.length<f.length;)i.push("0");for(;f.length<i.length;)f.push("0");for(var P=0;P<i.length;++P)if(Number(i[P])!=Number(f[P]))return Number(i[P])>Number(f[P])?1:-1;return 0}function ve(){return ce.v4()}function Ve(e){return Object.keys(e).forEach(function(s){typeof e[s]=="object"&&Ve(e[s])}),Object.freeze(e)}function _e(e,s){for(var i=[],f=2;f<arguments.length;f++)i[f-2]=arguments[f];var g=e.apply(void 0,i);return g.then(function(P){s&&s(void 0,P)}).catch(function(P){s&&s(P)}),g}function Pe(e,s){for(var i=[],f=2;f<arguments.length;f++)i[f-2]=arguments[f];var g=e.apply(void 0,i);return g.then(function(){s&&s(null)}).catch(function(P){s&&s(P)}),g}function ft(e,s){for(var i=[],f=2;f<arguments.length;f++)i[f-2]=arguments[f];var g=e.apply(void 0,i);return g.then(function(P){s&&s(null,P)}).catch(function(P){s&&s(P,null)}),g}function at(e,s,i){return new Promise(function(f,g){var P=setTimeout(g,s,i);e().then(function(C){clearTimeout(P),f(C)}).catch(function(C){clearTimeout(P),g(C)})})}function gt(e){var s=new URL("https://teams.microsoft.com/l/entity/"+encodeURIComponent(e.appId)+"/"+encodeURIComponent(e.pageId));return e.webUrl&&s.searchParams.append("webUrl",e.webUrl),(e.channelId||e.subPageId)&&s.searchParams.append("context",JSON.stringify({channelId:e.channelId,subEntityId:e.subPageId})),s.toString()}function I(){for(var e=[],s=0;s<arguments.length;s++)e[s]=arguments[s];if(!L.initializeCalled)throw new Error("The library has not yet been initialized");if(L.frameContext&&e&&e.length>0){for(var i=!1,f=0;f<e.length;f++)if(e[f]===L.frameContext){i=!0;break}if(!i)throw new Error("This call is only allowed in following contexts: "+JSON.stringify(e)+'. Current context: "'+L.frameContext+'".')}}function Fe(e){e===void 0&&(e=oe);var s=xe(L.clientSupportedSDKVersion,e);return!isNaN(s)&&s>=0}function _t(){return L.hostClientType==E.android||L.hostClientType==E.ios}function dt(e){if(e===void 0&&(e=oe),!_t())throw{errorCode:b.NOT_SUPPORTED_ON_PLATFORM};if(!Fe(e))throw{errorCode:b.OLD_PLATFORM}}function ee(e){var s=L.additionalValidOrigins.concat(e.filter(function(f){return typeof f=="string"&&ye.test(f)})),i={};s=s.filter(function(f){return!i[f]&&(i[f]=!0,!0)}),L.additionalValidOrigins=s}var fe,qe=(0,u(227).debug)("teamsJs");function ze(e){return qe.extend(e)}(function(e){var s,i,f;function g(V){return new Promise(function(ne,ge){if(L.hostClientType===E.desktop||L.hostClientType===E.android||L.hostClientType===E.ios||L.hostClientType===E.rigel||L.hostClientType===E.teamsRoomsWindows||L.hostClientType===E.teamsRoomsAndroid||L.hostClientType===E.teamsPhones||L.hostClientType===E.teamsDisplays){var le=document.createElement("a");le.href=V.url,ne(bt("authentication.authenticate",[le.href,V.width,V.height,V.isExternal]).then(function(tt){var Tt=tt[0],ur=tt[1];if(Tt)return ur;throw new Error(ur)}))}else s={success:ne,fail:ge},z(V)})}function P(V){return new Promise(function(ne){ne(bt("authentication.getAuthToken",[V==null?void 0:V.resources,V==null?void 0:V.claims,V==null?void 0:V.silent]))}).then(function(ne){var ge=ne[0],le=ne[1];if(ge)return le;throw new Error(le)})}function C(){return new Promise(function(V){V(bt("authentication.getUser"))}).then(function(V){var ne=V[0],ge=V[1];if(ne)return ge;throw new Error(ge)})}function H(){q();try{U.childWindow&&U.childWindow.close()}finally{U.childWindow=null,U.childOrigin=null}}function z(V){H();var ne=V.width||600,ge=V.height||400;ne=Math.min(ne,U.currentWindow.outerWidth-400),ge=Math.min(ge,U.currentWindow.outerHeight-200);var le=document.createElement("a");le.href=V.url.replace("{oauthRedirectMethod}","web");var tt=U.currentWindow.screenLeft!==void 0?U.currentWindow.screenLeft:U.currentWindow.screenX,Tt=U.currentWindow.screenTop!==void 0?U.currentWindow.screenTop:U.currentWindow.screenY;tt+=U.currentWindow.outerWidth/2-ne/2,Tt+=U.currentWindow.outerHeight/2-ge/2,U.childWindow=U.currentWindow.open(le.href,"_blank","toolbar=no, location=yes, status=no, menubar=no, scrollbars=yes, top="+Tt+", left="+tt+", width="+ne+", height="+ge),U.childWindow?re():Te("FailedToOpenWindow")}function q(){i&&(clearInterval(i),i=0),Be("initialize"),Be("navigateCrossDomain")}function re(){q(),i=U.currentWindow.setInterval(function(){if(!U.childWindow||U.childWindow.closed)Te("CancelledByUser");else{var V=U.childOrigin;try{U.childOrigin="*",Ge("ping")}finally{U.childOrigin=V}}},100),ie("initialize",function(){return[d.authentication,L.hostClientType]}),ie("navigateCrossDomain",function(){return!1})}function He(V){try{s&&s.success(V)}finally{s=null,H()}}function Te(V){try{s&&s.fail(new Error(V))}finally{s=null,H()}}function Q(V,ne,ge){if(V){var le=document.createElement("a");le.href=decodeURIComponent(V),le.host&&le.host!==window.location.host&&le.host==="outlook.office.com"&&le.search.indexOf("client_type=Win32_Outlook")>-1&&(ne&&ne==="result"&&(ge&&(le.href=de(le.href,"result",ge)),U.currentWindow.location.assign(de(le.href,"authSuccess",""))),ne&&ne==="reason"&&(ge&&(le.href=de(le.href,"reason",ge)),U.currentWindow.location.assign(de(le.href,"authFailure",""))))}}function de(V,ne,ge){var le=V.indexOf("#"),tt=le===-1?"#":V.substr(le);return tt=tt+"&"+ne+(ge!==""?"="+ge:""),(V=le===-1?V:V.substr(0,le))+tt}e.initialize=function(){ie("authentication.authenticate.success",He,!1),ie("authentication.authenticate.failure",Te,!1)},e.registerAuthenticationHandlers=function(V){f=V},e.authenticate=function(V){var ne=V!==void 0,ge=ne?V:f;if(!ge)throw new Error("No parameters are provided for authentication");return I(d.content,d.sidePanel,d.settings,d.remove,d.task,d.stage,d.meetingStage),g(ge).then(function(le){try{return ge&&ge.successCallback?(ge.successCallback(le),""):le}finally{ne||(f=null)}}).catch(function(le){try{if(ge&&ge.failureCallback)return ge.failureCallback(le.message),"";throw le}finally{ne||(f=null)}})},e.getAuthToken=function(V){return I(),P(V).then(function(ne){return V&&V.successCallback?(V.successCallback(ne),""):ne}).catch(function(ne){if(V&&V.failureCallback)return V.failureCallback(ne.message),"";throw ne})},e.getUser=function(V){return I(),C().then(function(ne){return V&&V.successCallback?(V.successCallback(ne),null):ne}).catch(function(ne){if(V&&V.failureCallback)return V.failureCallback(ne.message),null;throw ne})},e.notifySuccess=function(V,ne){Q(ne,"result",V),I(d.authentication),D("authentication.authenticate.success",[V]),Or(U.parentWindow,function(){return setTimeout(function(){return U.currentWindow.close()},200)})},e.notifyFailure=function(V,ne){Q(ne,"reason",V),I(d.authentication),D("authentication.authenticate.failure",[V]),Or(U.parentWindow,function(){return setTimeout(function(){return U.currentWindow.close()},200)})}})(fe||(fe={}));var pt=function(){return pt=Object.assign||function(e){for(var s,i=1,f=arguments.length;i<f;i++)for(var g in s=arguments[i])Object.prototype.hasOwnProperty.call(s,g)&&(e[g]=s[g]);return e},pt.apply(this,arguments)},kt=ze("runtime"),G={apiVersion:1,supports:{appInstallDialog:void 0,barCode:void 0,calendar:void 0,call:void 0,chat:void 0,webStorage:void 0,conversations:void 0,dialog:{bot:void 0,update:void 0},geoLocation:{map:void 0},location:void 0,logs:void 0,mail:void 0,meetingRoom:void 0,menus:void 0,monetization:void 0,notifications:void 0,pages:{appButton:void 0,backStack:void 0,config:void 0,currentApp:void 0,fullTrust:void 0,tabs:void 0},people:void 0,permissions:void 0,profile:void 0,remoteCamera:void 0,search:void 0,sharing:void 0,stageView:void 0,teams:{fullTrust:{joinedTeams:void 0}},teamsCore:void 0,video:void 0}},st={appInstallDialog:{},appEntity:{},call:{},chat:{},conversations:{},dialog:{bot:{},update:{}},logs:{},meetingRoom:{},menus:{},monetization:{},notifications:{},pages:{appButton:{},tabs:{},config:{},backStack:{},fullTrust:{}},remoteCamera:{},sharing:{},stageView:{},teams:{fullTrust:{}},teamsCore:{},video:{}},_r=[E.desktop,E.web,E.android,E.ios,E.rigel,E.surfaceHub,E.teamsRoomsWindows,E.teamsRoomsAndroid,E.teamsPhones,E.teamsDisplays],An={"1.9.0":[{capability:{location:{}},hostClientTypes:_r}],"2.0.0":[{capability:{people:{}},hostClientTypes:_r}],"2.0.1":[{capability:{teams:{fullTrust:{joinedTeams:{}}}},hostClientTypes:[E.android,E.desktop,E.ios,E.teamsRoomsAndroid,E.teamsPhones,E.teamsDisplays,E.web]},{capability:{webStorage:{}},hostClientTypes:[E.desktop]}],"2.0.5":[{capability:{webStorage:{}},hostClientTypes:[E.android,E.desktop,E.ios]}]},On=kt.extend("generateBackCompatRuntimeConfig");function Rn(e){On("generating back compat runtime config for %s",e);var s=pt({},st);On("Supported capabilities in config before updating based on highestSupportedVersion: %o",s),Object.keys(An).forEach(function(f){xe(e,f)>=0&&An[f].forEach(function(g){g.hostClientTypes.includes(L.hostClientType)&&(s=pt(pt({},s),g.capability))})});var i={apiVersion:1,isLegacyTeams:!0,supports:s};return On("Runtime config after updating based on highestSupportedVersion: %o",i),i}var ln=kt.extend("applyRuntimeConfig");function kn(e){ln("Applying runtime %o",e),G=Ve(e)}var vt,cn,lt,$e,Ce;function mt(e){return{actionInfo:e.actionInfo,app:{locale:e.locale,sessionId:e.appSessionId?e.appSessionId:"",theme:e.theme?e.theme:"default",iconPositionVertical:e.appIconPosition,osLocaleInfo:e.osLocaleInfo,parentMessageId:e.parentMessageId,userClickTime:e.userClickTime,userFileOpenPreference:e.userFileOpenPreference,host:{name:e.hostName?e.hostName:$.teams,clientType:e.hostClientType?e.hostClientType:E.web,sessionId:e.sessionId?e.sessionId:"",ringId:e.ringId},appLaunchId:e.appLaunchId},page:{id:e.entityId,frameContext:e.frameContext?e.frameContext:L.frameContext,subPageId:e.subEntityId,isFullScreen:e.isFullScreen,isMultiWindow:e.isMultiWindow,sourceOrigin:e.sourceOrigin},user:{id:e.userObjectId,displayName:e.userDisplayName,isCallingAllowed:e.isCallingAllowed,isPSTNCallingAllowed:e.isPSTNCallingAllowed,licenseType:e.userLicenseType,loginHint:e.loginHint,userPrincipalName:e.userPrincipalName,tenant:e.tid?{id:e.tid,teamsSku:e.tenantSKU}:void 0},channel:e.channelId?{id:e.channelId,displayName:e.channelName,relativeUrl:e.channelRelativeUrl,membershipType:e.channelType,defaultOneNoteSectionId:e.defaultOneNoteSectionId,ownerGroupId:e.hostTeamGroupId,ownerTenantId:e.hostTeamTenantId}:void 0,chat:e.chatId?{id:e.chatId}:void 0,meeting:e.meetingId?{id:e.meetingId}:void 0,sharepoint:e.sharepoint,team:e.teamId?{internalId:e.teamId,displayName:e.teamName,type:e.teamType,groupId:e.groupId,templateId:e.teamTemplateId,isArchived:e.isTeamArchived,userRole:e.userTeamRole}:void 0,sharePointSite:e.teamSiteUrl||e.teamSiteDomain||e.teamSitePath||e.mySitePath||e.mySiteDomain?{teamSiteUrl:e.teamSiteUrl,teamSiteDomain:e.teamSiteDomain,teamSitePath:e.teamSitePath,teamSiteId:e.teamSiteId,mySitePath:e.mySitePath,mySiteDomain:e.mySiteDomain}:void 0}}(function(e){var s=[];function i(C){L.frameContext&&(L.frameContext===d.task?s.push(C):Be("messageForChild"))}function f(){return!!G.supports.dialog}function g(C){return{url:C.url,height:C.size?C.size.height:N.Small,width:C.size?C.size.width:N.Small,title:C.title,fallbackUrl:C.fallbackUrl}}function P(C){return{url:C.url,height:C.size?C.size.height:N.Small,width:C.size?C.size.width:N.Small,title:C.title,fallbackUrl:C.fallbackUrl,completionBotId:C.completionBotId}}e.initialize=function(){ie("messageForChild",i,!1)},e.open=function(C,H,z){if(I(d.content,d.sidePanel,d.meetingStage),!f())throw F;z&&ie("messageForParent",z),D("tasks.startTask",[g(C)],function(q,re){H==null||H({err:q,result:re}),Be("messageForParent")})},e.submit=function(C,H){if(I(d.content,d.sidePanel,d.task,d.meetingStage),!f())throw F;D("tasks.completeTask",[C,H?Array.isArray(H)?H:[H]:[]])},e.sendMessageToParentFromDialog=function(C){if(I(d.task),!f())throw F;D("messageForParent",[C])},e.sendMessageToDialog=function(C){if(I(d.content,d.sidePanel,d.meetingStage),!f())throw F;D("messageForChild",[C])},e.registerOnMessageFromParent=function(C){if(I(d.task),!f())throw F;for(Be("messageForChild"),ie("messageForChild",C),s.reverse();s.length>0;)C(s.pop())},e.isSupported=f,function(C){function H(){return!!G.supports.dialog&&!!G.supports.dialog.update}C.resize=function(z){if(I(d.content,d.sidePanel,d.task,d.meetingStage),!H())throw F;D("tasks.updateTask",[z])},C.isSupported=H}(e.update||(e.update={})),function(C){function H(){return!!G.supports.dialog&&!!G.supports.dialog.bot}C.open=function(z,q,re){if(I(d.content,d.sidePanel,d.meetingStage),!H())throw F;re&&ie("messageForParent",re),D("tasks.startTask",[P(z)],function(He,Te){q==null||q({err:He,result:Te}),Be("messageForParent")})},C.isSupported=H}(e.bot||(e.bot={})),e.getDialogInfoFromUrlDialogInfo=g,e.getDialogInfoFromBotUrlDialogInfo=P})(vt||(vt={})),function(e){(function(q){q[q.ifRoom=0]="ifRoom",q[q.overflowOnly=1]="overflowOnly"})(e.DisplayMode||(e.DisplayMode={}));var s,i,f,g=function(){return function(){this.enabled=!0,this.selected=!1}}();function P(q){f&&f(q)||(I(),D("viewConfigItemPress",[q]))}function C(q){s&&s(q)||(I(),D("handleNavBarMenuItemPress",[q]))}function H(q){i&&i(q)||(I(),D("handleActionMenuItemPress",[q]))}function z(){return!!G.supports.menus}e.MenuItem=g,function(q){q.dropDown="dropDown",q.popOver="popOver"}(e.MenuListType||(e.MenuListType={})),e.initialize=function(){ie("navBarMenuItemPress",C,!1),ie("actionMenuItemPress",H,!1),ie("setModuleView",P,!1)},e.setUpViews=function(q,re){if(I(),!z())throw F;f=re,D("setUpViews",[q])},e.setNavBarMenu=function(q,re){if(I(),!z())throw F;s=re,D("setNavBarMenu",[q])},e.showActionMenu=function(q,re){if(I(),!z())throw F;i=re,D("showActionMenu",[q])},e.isSupported=z}(cn||(cn={})),function(e){function s(){window.print()}function i(P,C){I(),C&&C(),Pr(P)}function f(P,C){I(),C&&C(),Ke(P)}function g(){return!!G.supports.teamsCore}e.enablePrintCapability=function(){if(!L.printCapabilityEnabled){if(I(),!g())throw F;L.printCapabilityEnabled=!0,document.addEventListener("keydown",function(P){(P.ctrlKey||P.metaKey)&&P.keyCode===80&&(s(),P.cancelBubble=!0,P.preventDefault(),P.stopImmediatePropagation())})}},e.print=s,e.registerOnLoadHandler=function(P){i(P,function(){if(!g())throw F})},e.registerOnLoadHandlerHelper=i,e.registerBeforeUnloadHandler=function(P){f(P,function(){if(!g())throw F})},e.registerBeforeUnloadHandlerHelper=f,e.isSupported=g}(lt||(lt={})),function(e){var s=ze("app");e.Messages={AppLoaded:"appInitialization.appLoaded",Success:"appInitialization.success",Failure:"appInitialization.failure",ExpectedFailure:"appInitialization.expectedFailure"},function(P){P.AuthFailed="AuthFailed",P.Timeout="Timeout",P.Other="Other"}(e.FailedReason||(e.FailedReason={})),function(P){P.PermissionError="PermissionError",P.NotFound="NotFound",P.Throttling="Throttling",P.Offline="Offline",P.Other="Other"}(e.ExpectedFailureReason||(e.ExpectedFailureReason={})),e.isInitialized=function(){return L.initializeCalled},e.getFrameContext=function(){return L.frameContext},e.initialize=function(P){return at(function(){return f(P)},5e3,new Error("SDK initialization timed out."))};var i=s.extend("initializeHelper");function f(P){return new Promise(function(C){L.initializeCalled||(L.initializeCalled=!0,bi(),L.initializePromise=Si(P).then(function(H){var z=H.context,q=H.clientType,re=H.runtimeConfig,He=H.clientSupportedSDKVersion,Te=He===void 0?oe:He;L.frameContext=z,L.hostClientType=q,L.clientSupportedSDKVersion=Te;try{i("Parsing %s",re);var Q=JSON.parse(re);if(i("Checking if %o is a valid runtime object",Q??"null"),!Q||!Q.apiVersion)throw new Error("Received runtime config is invalid");re&&kn(Q)}catch(de){if(!(de instanceof SyntaxError))throw de;try{if(i("Attempting to parse %s as an SDK version",re),isNaN(xe(re,oe))||(L.clientSupportedSDKVersion=re),Q=JSON.parse(Te),i("givenRuntimeConfig parsed to %o",Q??"null"),!Q)throw new Error("givenRuntimeConfig string was successfully parsed. However, it parsed to value of null");kn(Q)}catch(V){if(!(V instanceof SyntaxError))throw V;kn(Rn(L.clientSupportedSDKVersion))}}L.initializeCompleted=!0}),fe.initialize(),cn.initialize(),Ce.config.initialize(),vt.initialize()),Array.isArray(P)&&ee(P),C(L.initializePromise)})}function g(P){I(),xt(P)}e._initialize=function(P){U.currentWindow=P},e._uninitialize=function(){L.initializeCalled&&(L.frameContext&&(g(null),Ce.backStack.registerBackButtonHandler(null),Ce.registerFullScreenHandler(null),lt.registerBeforeUnloadHandler(null),lt.registerOnLoadHandler(null),Ft.registerGetLogHandler(null)),L.frameContext===d.settings&&Ce.config.registerOnSaveHandler(null),L.frameContext===d.remove&&Ce.config.registerOnRemoveHandler(null),L.initializeCalled=!1,L.initializeCompleted=!1,L.initializePromise=null,L.additionalValidOrigins=[],L.frameContext=null,L.hostClientType=null,L.isFramelessWindow=!1,Tr())},e.getContext=function(){return new Promise(function(P){I(),P(yt("getContext"))}).then(function(P){return mt(P)})},e.notifyAppLoaded=function(){I(),D(e.Messages.AppLoaded,[B])},e.notifySuccess=function(){I(),D(e.Messages.Success,[B])},e.notifyFailure=function(P){I(),D(e.Messages.Failure,[P.reason,P.message])},e.notifyExpectedFailure=function(P){I(),D(e.Messages.ExpectedFailure,[P.reason,P.message])},e.registerOnThemeChangeHandler=g,e.openLink=function(P){return new Promise(function(C){I(d.content,d.sidePanel,d.settings,d.task,d.stage,d.meetingStage),C(Ue("executeDeepLink",P))})}}($e||($e={})),function(e){function s(f){if(I(d.content),!i())throw F;D("setFrameContext",[f])}function i(){return!!G.supports.pages}e.returnFocus=function(f){if(I(),!i())throw F;D("returnFocus",[f])},e.registerFocusEnterHandler=function(f){et("focusEnter",f,[],function(){if(!i())throw F})},e.setCurrentFrame=s,e.initializeWithFrameContext=function(f,g,P){$e.initialize(P).then(function(){return g&&g()}),s(f)},e.getConfig=function(){return new Promise(function(f){if(I(d.content,d.settings,d.remove,d.sidePanel),!i())throw F;f(yt("settings.getSettings"))})},e.navigateCrossDomain=function(f){return new Promise(function(g){if(I(d.content,d.sidePanel,d.settings,d.remove,d.task,d.stage,d.meetingStage),!i())throw F;g(Ln("navigateCrossDomain","Cross-origin navigation is only supported for URLs matching the pattern registered in the manifest.",f))})},e.navigateToApp=function(f){return new Promise(function(g){if(I(d.content,d.sidePanel,d.settings,d.task,d.stage,d.meetingStage),!i())throw F;G.isLegacyTeams?g(Ue("executeDeepLink",gt(f))):g(Ue("pages.navigateToApp",f))})},e.shareDeepLink=function(f){if(I(d.content,d.sidePanel,d.meetingStage),!i())throw F;D("shareDeepLink",[f.subPageId,f.subPageLabel,f.subPageWebUrl])},e.registerFullScreenHandler=function(f){et("fullScreenChange",f,[],function(){if(!i())throw F})},e.isSupported=i,function(f){function g(){return!!G.supports.pages&&!!G.supports.pages.tabs}f.navigateToTab=function(P){return new Promise(function(C){if(I(),!g())throw F;C(Ln("navigateToTab","Invalid internalTabInstanceId and/or channelId were/was provided",P))})},f.getTabInstances=function(P){return new Promise(function(C){if(I(),!g())throw F;C(yt("getTabInstances",P))})},f.getMruTabInstances=function(P){return new Promise(function(C){if(I(),!g())throw F;C(yt("getMruTabInstances",P))})},f.isSupported=g}(e.tabs||(e.tabs={})),function(f){var g,P;function C(Q,de){I(d.settings),de&&de(),g=Q,Q&&D("registerHandler",["save"])}function H(Q,de){I(d.remove,d.settings),de&&de(),P=Q,Q&&D("registerHandler",["remove"])}function z(Q){var de=new q(Q);g?g(de):U.childWindow?Ge("settings.save",[Q]):de.notifySuccess()}f.initialize=function(){ie("settings.save",z,!1),ie("settings.remove",re,!1)},f.setValidityState=function(Q){if(I(d.settings,d.remove),!Te())throw F;D("settings.setValidityState",[Q])},f.setConfig=function(Q){return new Promise(function(de){if(I(d.content,d.settings,d.sidePanel),!Te())throw F;de(Ue("settings.setSettings",Q))})},f.registerOnSaveHandler=function(Q){C(Q,function(){if(!Te())throw F})},f.registerOnSaveHandlerHelper=C,f.registerOnRemoveHandler=function(Q){H(Q,function(){if(!Te())throw F})},f.registerOnRemoveHandlerHelper=H,f.registerChangeConfigHandler=function(Q){et("changeSettings",Q,[d.content],function(){if(!Te())throw F})};var q=function(){function Q(de){this.notified=!1,this.result=de||{}}return Q.prototype.notifySuccess=function(){this.ensureNotNotified(),D("settings.save.success"),this.notified=!0},Q.prototype.notifyFailure=function(de){this.ensureNotNotified(),D("settings.save.failure",[de]),this.notified=!0},Q.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The SaveEvent may only notify success or failure once.")},Q}();function re(){var Q=new He;P?P(Q):U.childWindow?Ge("settings.remove",[]):Q.notifySuccess()}var He=function(){function Q(){this.notified=!1}return Q.prototype.notifySuccess=function(){this.ensureNotNotified(),D("settings.remove.success"),this.notified=!0},Q.prototype.notifyFailure=function(de){this.ensureNotNotified(),D("settings.remove.failure",[de]),this.notified=!0},Q.prototype.ensureNotNotified=function(){if(this.notified)throw new Error("The removeEvent may only notify success or failure once.")},Q}();function Te(){return!!G.supports.pages&&!!G.supports.pages.config}f.isSupported=Te}(e.config||(e.config={})),function(f){var g;function P(){return new Promise(function(q){if(I(),!z())throw F;q(Ln("navigateBack","Back navigation is not supported in the current client or context."))})}function C(q,re){I(),re&&re(),g=q,q&&D("registerHandler",["backButton"])}function H(){g&&g()||(U.childWindow?Ge("backButtonPress",[]):P())}function z(){return!!G.supports.pages&&!!G.supports.pages.backStack}f._initialize=function(){ie("backButtonPress",H,!1)},f.navigateBack=P,f.registerBackButtonHandler=function(q){C(q,function(){if(!z())throw F})},f.registerBackButtonHandlerHelper=C,f.isSupported=z}(e.backStack||(e.backStack={})),function(f){function g(){return!!G.supports.pages&&!!G.supports.pages.fullTrust}f.enterFullscreen=function(){if(I(d.content),!g())throw F;D("enterFullscreen",[])},f.exitFullscreen=function(){if(I(d.content),!g())throw F;D("exitFullscreen",[])},f.isSupported=g}(e.fullTrust||(e.fullTrust={})),function(f){function g(){return!!G.supports.pages&&!!G.supports.pages.appButton}f.onClick=function(P){et("appButtonClick",P,[d.content],function(){if(!g())throw F})},f.onHoverEnter=function(P){et("appButtonHoverEnter",P,[d.content],function(){if(!g())throw F})},f.onHoverLeave=function(P){et("appButtonHoverLeave",P,[d.content],function(){if(!g())throw F})},f.isSupported=g}(e.appButton||(e.appButton={})),function(f){function g(){return!!G.supports.pages&&!!G.supports.pages.currentApp}f.navigateTo=function(P){return new Promise(function(C){if(I(d.content,d.sidePanel,d.settings,d.task,d.stage,d.meetingStage),!g())throw F;C(Oe("pages.currentApp.navigateTo",P))})},f.navigateToDefaultPage=function(){return new Promise(function(P){if(I(d.content,d.sidePanel,d.settings,d.task,d.stage,d.meetingStage),!g())throw F;P(Oe("pages.currentApp.navigateToDefaultPage"))})},f.isSupported=g}(e.currentApp||(e.currentApp={}))}(Ce||(Ce={}));var xn=function(e,s,i){if(i||arguments.length===2)for(var f,g=0,P=s.length;g<P;g++)!f&&g in s||(f||(f=Array.prototype.slice.call(s,0,g)),f[g]=s[g]);return e.concat(f||Array.prototype.slice.call(s))},yi=ze("handlers"),Ie=function(){function e(){}return e.handlers={},e}();function bi(){Ie.handlers.themeChange=Et,Ie.handlers.load=wi,Ie.handlers.beforeUnload=Ci,Ce.backStack._initialize()}var Ye=yi.extend("callHandler");function Er(e,s){var i=Ie.handlers[e];return i?(Ye("Invoking the registered handler for message %s with arguments %o",e,s),[!0,i.apply(this,s)]):U.childWindow?(Ge(e,[s]),[!1,void 0]):(Ye("Handler for action message %s not found.",e),[!1,void 0])}function ie(e,s,i,f){i===void 0&&(i=!0),f===void 0&&(f=[]),s?(Ie.handlers[e]=s,i&&D("registerHandler",xn([e],f,!0))):delete Ie.handlers[e]}function Be(e){delete Ie.handlers[e]}function et(e,s,i,f){I.apply(void 0,i),f&&f(),ie(e,s)}function xt(e){Ie.themeChangeHandler=e,e&&D("registerHandler",["themeChange"])}function Et(e){Ie.themeChangeHandler&&Ie.themeChangeHandler(e),U.childWindow&&Ge("themeChange",[e])}function Pr(e){Ie.loadHandler=e,e&&D("registerHandler",["load"])}function wi(e){Ie.loadHandler&&Ie.loadHandler(e),U.childWindow&&Ge("load",[e])}function Ke(e){Ie.beforeUnloadHandler=e,e&&D("registerHandler",["beforeUnload"])}function Ci(){var e=function(){D("readyToUnload",[])};Ie.beforeUnloadHandler&&Ie.beforeUnloadHandler(e)||(U.childWindow?Ge("beforeUnload"):e())}var Ir=function(e,s,i){if(i||arguments.length===2)for(var f,g=0,P=s.length;g<P;g++)!f&&g in s||(f||(f=Array.prototype.slice.call(s,0,g)),f[g]=s[g]);return e.concat(f||Array.prototype.slice.call(s))},Fn=ze("communication"),U=function(){return function(){}}(),Le=function(){function e(){}return e.parentMessageQueue=[],e.childMessageQueue=[],e.nextMessageId=0,e.callbacks={},e.promiseCallbacks={},e}();function Si(e){if(Le.messageListener=function(i){return Pi(i)},U.currentWindow=U.currentWindow||window,U.parentWindow=U.currentWindow.parent!==U.currentWindow.self?U.currentWindow.parent:U.currentWindow.opener,(U.parentWindow||e)&&U.currentWindow.addEventListener("message",Le.messageListener,!1),!U.parentWindow){var s=U.currentWindow;if(!s.nativeInterface)return Promise.reject(new Error("Initialization Failed. No Parent window found."));L.isFramelessWindow=!0,s.onNativeMessage=un}try{return U.parentOrigin="*",bt("initialize",[B]).then(function(i){return{context:i[0],clientType:i[1],runtimeConfig:i[2],clientSupportedSDKVersion:i[3]}})}finally{U.parentOrigin=null}}function Tr(){U.currentWindow.removeEventListener("message",Le.messageListener,!1),U.parentWindow=null,U.parentOrigin=null,U.childWindow=null,U.childOrigin=null,Le.parentMessageQueue=[],Le.childMessageQueue=[],Le.nextMessageId=0,Le.callbacks={}}function yt(e){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return bt(e,s).then(function(f){return f[0]})}function Ue(e){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return bt(e,s).then(function(f){var g=f[0],P=f[1];if(!g)throw new Error(P)})}function Ln(e,s){for(var i=[],f=2;f<arguments.length;f++)i[f-2]=arguments[f];return bt(e,i).then(function(g){var P=g[0],C=g[1];if(!P)throw new Error(C||s)})}function Oe(e){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return bt(e,s).then(function(f){var g=f[0],P=f[1];if(g)throw g;return P})}function bt(e,s){return s===void 0&&(s=void 0),new Promise(function(i){i(_i(Nn(e,s).id))})}function _i(e){return new Promise(function(s){Le.promiseCallbacks[e]=s})}function D(e,s,i){var f;s instanceof Function?i=s:s instanceof Array&&(f=s);var g=Nn(e,f);i&&(Le.callbacks[g.id]=i)}var Ei=Fn.extend("sendMessageToParentHelper");function Nn(e,s){var i=Ei,f=U.parentWindow,g=Ai(e,s);if(i("Message %i information: %o",g.id,{actionName:e,args:s}),L.isFramelessWindow)U.currentWindow&&U.currentWindow.nativeInterface&&(i("Sending message %i to parent via framelessPostMessage interface",g.id),U.currentWindow.nativeInterface.framelessPostMessage(JSON.stringify(g)));else{var P=qt(f);f&&P?(i("Sending message %i to parent via postMessage",g.id),f.postMessage(g,P)):(i("Adding message %i to parent message queue",g.id),Vt(f).push(g))}return g}function Pi(e){if(e&&e.data&&typeof e.data=="object"){var s=e.source||e.originalEvent&&e.originalEvent.source,i=e.origin||e.originalEvent&&e.originalEvent.origin;Gt(s,i)&&(Wt(s,i),s===U.parentWindow?un(e):s===U.childWindow&&Ti(e))}}function Gt(e,s){return(!U.currentWindow||e!==U.currentWindow)&&(!!(U.currentWindow&&U.currentWindow.location&&s&&s===U.currentWindow.location.origin)||nt(new URL(s)))}function Wt(e,s){L.isFramelessWindow||U.parentWindow&&!U.parentWindow.closed&&e!==U.parentWindow?U.childWindow&&!U.childWindow.closed&&e!==U.childWindow||(U.childWindow=e,U.childOrigin=s):(U.parentWindow=e,U.parentOrigin=s),U.parentWindow&&U.parentWindow.closed&&(U.parentWindow=null,U.parentOrigin=null),U.childWindow&&U.childWindow.closed&&(U.childWindow=null,U.childOrigin=null),Xt(U.parentWindow),Xt(U.childWindow)}var Ii=Fn.extend("handleParentMessage");function un(e){var s=Ii;if("id"in e.data&&typeof e.data.id=="number"){var i=e.data,f=Le.callbacks[i.id];s("Received a response from parent for message %i",i.id),f&&(s("Invoking the registered callback for message %i with arguments %o",i.id,i.args),f.apply(null,Ir(Ir([],i.args,!0),[i.isPartialResponse],!1)),Ar(e)||(s("Removing registered callback for message %i",i.id),delete Le.callbacks[i.id]));var g=Le.promiseCallbacks[i.id];g&&(s("Invoking the registered promise callback for message %i with arguments %o",i.id,i.args),g(i.args),s("Removing registered promise callback for message %i",i.id),delete Le.promiseCallbacks[i.id])}else"func"in e.data&&typeof e.data.func=="string"?(s("Received an action message %s from parent",(i=e.data).func),Er(i.func,i.args)):s("Received an unknown message: %O",e)}function Ar(e){return e.data.isPartialResponse===!0}function Ti(e){if("id"in e.data&&"func"in e.data){var s=e.data,i=Er(s.func,s.args),f=i[0],g=i[1];f&&g!==void 0?Rr(s.id,Array.isArray(g)?g:[g]):D(s.func,s.args,function(){for(var P=[],C=0;C<arguments.length;C++)P[C]=arguments[C];if(U.childWindow){var H=P.pop();Rr(s.id,P,H)}})}}function Vt(e){return e===U.parentWindow?Le.parentMessageQueue:e===U.childWindow?Le.childMessageQueue:[]}function qt(e){return e===U.parentWindow?U.parentOrigin:e===U.childWindow?U.childOrigin:null}var Ft,fn,zt,Mn,Lt,Kt=Fn.extend("flushMessageQueue");function Xt(e){for(var s=qt(e),i=Vt(e),f=e==U.parentWindow?"parent":"child";e&&s&&i.length>0;){var g=i.shift();Kt("Flushing message %i from "+f+" message queue via postMessage.",g.id),e.postMessage(g,s)}}function Or(e,s){var i=U.currentWindow.setInterval(function(){Vt(e).length===0&&(clearInterval(i),s())},100)}function Rr(e,s,i){var f=U.childWindow,g=kr(e,s,i),P=qt(f);f&&P&&f.postMessage(g,P)}function Ge(e,s){var i=U.childWindow,f=Oi(e,s),g=qt(i);i&&g?i.postMessage(f,g):Vt(i).push(f)}function Ai(e,s){return{id:Le.nextMessageId++,func:e,timestamp:Date.now(),args:s||[]}}function kr(e,s,i){return{id:e,args:s||[],isPartialResponse:i}}function Oi(e,s){return{func:e,args:s||[]}}function Nt(e,s){I(),D("uploadCustomApp",[e],s||we())}function Dn(e,s,i){I(),D(e,s,i)}function xr(e,s){if(I(),!U.childWindow)throw new Error("The child window has not yet been initialized or is not present");Ge(e,s)}function Ri(e,s){var i=this;I(),ie(e,function(){for(var f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];return s.apply(i,f)})}function jn(e,s){I(),ie("userSettingsChange",s,!0,[e])}function ki(e){I(d.content,d.task),D("openFilePreview",[e.entityId,e.title,e.description,e.type,e.objectUrl,e.downloadUrl,e.webPreviewUrl,e.webEditUrl,e.baseUrl,e.editFile,e.subEntityId,e.viewerAction,e.fileOpenPreference,e.conversationId])}(function(e){function s(){return!!G.supports.logs}e.registerGetLogHandler=function(i){if(I(),!s())throw F;i?ie("log.request",function(){D("log.receive",[i()])}):Be("log.request")},e.isSupported=s})(Ft||(Ft={})),function(e){e.fileDownloadStart="fileDownloadStart",e.fileDownloadComplete="fileDownloadComplete"}(fn||(fn={})),function(e){e.view="view",e.edit="edit",e.editNew="editNew"}(zt||(zt={})),function(e){e.fileOpenPreference="fileOpenPreference",e.theme="theme"}(Mn||(Mn={})),function(e){function s(){return!!G.supports.conversations}e.openConversation=function(i){return new Promise(function(f){if(I(d.content),!s())throw F;var g=Ue("conversations.openConversation",{title:i.title,subEntityId:i.subEntityId,conversationId:i.conversationId,channelId:i.channelId,entityId:i.entityId});i.onStartConversation&&ie("startConversation",function(P,C,H,z){return i.onStartConversation({subEntityId:P,conversationId:C,channelId:H,entityId:z})}),i.onCloseConversation&&ie("closeConversation",function(P,C,H,z){return i.onCloseConversation({subEntityId:P,conversationId:C,channelId:H,entityId:z})}),f(g)})},e.closeConversation=function(){if(I(d.content),!s())throw F;D("conversations.closeConversation"),Be("startConversation"),Be("closeConversation")},e.getChatMembers=function(){return new Promise(function(i){if(I(),!s())throw F;i(yt("getChatMembers"))})},e.isSupported=s}(Lt||(Lt={}));var $n;function Un(e,s,i){if(e.length===0)throw new Error("Must have at least one user when creating a chat deep link");return"https://teams.microsoft.com/l/chat/0/0?"+("users="+e.map(function(f){return encodeURIComponent(f)}).join(","))+(s===void 0?"":"&topicName="+encodeURIComponent(s))+(i===void 0?"":"&message="+encodeURIComponent(i))}function Zt(e,s,i){if(e.length===0)throw new Error("Must have at least one target when creating a call deep link");return"https://teams.microsoft.com/l/call/0/0?"+("users="+e.map(function(f){return encodeURIComponent(f)}).join(","))+(s===void 0?"":"&withVideo="+encodeURIComponent(s))+(i===void 0?"":"&source="+encodeURIComponent(i))}function xi(e,s,i,f,g){return"https://teams.microsoft.com/l/meeting/new?"+(e===void 0?"":"attendees="+e.map(function(P){return encodeURIComponent(P)}).join(","))+(s===void 0?"":"&startTime="+encodeURIComponent(s))+(i===void 0?"":"&endTime="+encodeURIComponent(i))+(f===void 0?"":"&subject="+encodeURIComponent(f))+(g===void 0?"":"&content="+encodeURIComponent(g))}function Fi(e){if(!e)throw new Error("App ID must be set when creating an app install dialog deep link");return"https://teams.microsoft.com/l/app/"+encodeURIComponent(e)}(function(e){function s(){return!!G.supports.appInstallDialog}e.openAppInstallDialog=function(i){return new Promise(function(f){if(I(d.content,d.sidePanel,d.settings,d.task,d.stage,d.meetingStage),!s())throw new Error("Not supported");G.isLegacyTeams?f(Ue("executeDeepLink",Fi(i.appId))):(D("appInstallDialog.openAppInstallDialog",[i]),f())})},e.isSupported=s})($n||($n={}));var rt,Hn,Bn,Mt,Fr=function(){var e=function(s,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,g){f.__proto__=g}||function(f,g){for(var P in g)Object.prototype.hasOwnProperty.call(g,P)&&(f[P]=g[P])},e(s,i)};return function(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function f(){this.constructor=s}e(s,i),s.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();function Jt(e,s){if(e==null||s==null||e.length<=0)return null;var i,f=1;return e.sort(function(g,P){return g.sequence>P.sequence?1:-1}),e.forEach(function(g){g.sequence==f&&(i=i?new Blob([i,g.file],{type:s}):new Blob([g.file],{type:s}),f++)}),i}function Pt(e,s){if(e==null||s==null)return null;for(var i=atob(e.chunk),f=new Array(i.length),g=0;g<i.length;g++)f[g]=i.charCodeAt(g);var P=new Uint8Array(f),C=new Blob([P],{type:s});return{sequence:e.chunkSequence,file:C}}function Lr(e){Dr(e)?dt("2.0.2"):dn(e)?dt(ue):Mr(e)&&dt("2.0.4")}function Nr(e){return!(e.mediaType!=rt.MediaType.Video||!e.videoProps||!e.videoProps.videoController)}function Li(e){return!(e==null||e.maxMediaCount>10)}function Mr(e){var s;return!((e==null?void 0:e.mediaType)!=rt.MediaType.Image||!(!((s=e==null?void 0:e.imageProps)===null||s===void 0)&&s.imageOutputFormats))}function Dr(e){return!(!e||e.mediaType!=rt.MediaType.VideoAndImage&&!e.videoAndImageProps)}function dn(e){return!(!e||e.mediaType!=rt.MediaType.Video||!e.videoProps||e.videoProps.isFullScreenMode)}function Ni(e,s,i){return e!=null&&s!=null&&s==rt.FileFormat.ID&&i!=null}function Mi(e){return!(e==null||e.length<=0||e.length>10)}function jr(e){return!e||!(e.timeOutIntervalInSec===null||e.timeOutIntervalInSec<=0||e.timeOutIntervalInSec>60)}function Di(e){return!(e&&(e.title&&typeof e.title!="string"||e.setSelected&&typeof e.setSelected!="object"||e.openOrgWideSearchInChatOrChannel&&typeof e.openOrgWideSearchInChatOrChannel!="boolean"||e.singleSelect&&typeof e.singleSelect!="boolean"))}(function(e){(function(C){C.Base64="base64",C.ID="id"})(e.FileFormat||(e.FileFormat={}));var s=function(){return function(){}}();e.File=s,e.captureImage=function(C){if(!C)throw new Error("[captureImage] Callback cannot be null");I(d.content,d.task),L.isFramelessWindow?Fe("1.7.0")?D("captureImage",C):C({errorCode:b.OLD_PLATFORM},void 0):C({errorCode:b.NOT_SUPPORTED_ON_PLATFORM},void 0)};var i=function(C){function H(z){z===void 0&&(z=null);var q=C.call(this)||this;return z&&(q.content=z.content,q.format=z.format,q.mimeType=z.mimeType,q.name=z.name,q.preview=z.preview,q.size=z.size),q}return Fr(H,C),H.prototype.getMedia=function(z){if(!z)throw new Error("[get Media] Callback cannot be null");I(d.content,d.task),Fe(W)?Ni(this.mimeType,this.format,this.content)?Fe("2.0.0")?this.getMediaViaCallback(z):this.getMediaViaHandler(z):z({errorCode:b.INVALID_ARGUMENTS},null):z({errorCode:b.OLD_PLATFORM},null)},H.prototype.getMediaViaCallback=function(z){var q={mediaMimeType:this.mimeType,assembleAttachment:[]};D("getMedia",[this.content],function(re){if(z)if(re&&re.error)z(re.error,null);else if(re&&re.mediaChunk)if(re.mediaChunk.chunkSequence<=0){var He=Jt(q.assembleAttachment,q.mediaMimeType);z(re.error,He)}else{var Te=Pt(re.mediaChunk,q.mediaMimeType);q.assembleAttachment.push(Te)}else z({errorCode:b.INTERNAL_ERROR,message:"data received is null"},null)})},H.prototype.getMediaViaHandler=function(z){var q=ve(),re={mediaMimeType:this.mimeType,assembleAttachment:[]},He=[q,this.content];this.content&&z&&D("getMedia",He),ie("getMedia"+q,function(Te){if(z){var Q=JSON.parse(Te);if(Q.error)z(Q.error,null),Be("getMedia"+q);else if(Q.mediaChunk)if(Q.mediaChunk.chunkSequence<=0){var de=Jt(re.assembleAttachment,re.mediaMimeType);z(Q.error,de),Be("getMedia"+q)}else{var V=Pt(Q.mediaChunk,re.mediaMimeType);re.assembleAttachment.push(V)}else z({errorCode:b.INTERNAL_ERROR,message:"data received is null"},null),Be("getMedia"+q)}})},H}(s);e.Media=i;var f,g,P=function(C){function H(){return C!==null&&C.apply(this,arguments)||this}return Fr(H,C),H.prototype.getMediaType=function(){return g.Video},H.prototype.notifyEventToApp=function(z){if(this.controllerCallback)switch(z){case f.StartRecording:if(this.controllerCallback.onRecordingStarted){this.controllerCallback.onRecordingStarted();break}}},H}(function(){function C(H){this.controllerCallback=H}return C.prototype.notifyEventToHost=function(H,z){I(d.content,d.task);try{dt(ue)}catch(q){return void(z&&z(q))}D("media.controller",[{mediaType:this.getMediaType(),mediaControllerEvent:H}],function(q){z&&z(q)})},C.prototype.stop=function(H){this.notifyEventToHost(f.StopRecording,H)},C}());e.VideoController=P,function(C){C[C.StartRecording=1]="StartRecording",C[C.StopRecording=2]="StopRecording"}(f=e.MediaControllerEvent||(e.MediaControllerEvent={})),function(C){C[C.Photo=1]="Photo",C[C.Document=2]="Document",C[C.Whiteboard=3]="Whiteboard",C[C.BusinessCard=4]="BusinessCard"}(e.CameraStartMode||(e.CameraStartMode={})),function(C){C[C.Camera=1]="Camera",C[C.Gallery=2]="Gallery"}(e.Source||(e.Source={})),function(C){C[C.Image=1]="Image",C[C.Video=2]="Video",C[C.VideoAndImage=3]="VideoAndImage",C[C.Audio=4]="Audio"}(g=e.MediaType||(e.MediaType={})),function(C){C[C.ID=1]="ID",C[C.URL=2]="URL"}(e.ImageUriType||(e.ImageUriType={})),function(C){C[C.IMAGE=1]="IMAGE",C[C.PDF=2]="PDF"}(e.ImageOutputFormats||(e.ImageOutputFormats={})),e.selectMedia=function(C,H){if(!H)throw new Error("[select Media] Callback cannot be null");if(I(d.content,d.task),Fe(W)){try{Lr(C)}catch(re){return void H(re,null)}if(Li(C))D("selectMedia",[C],function(re,He,Te){if(Te)Nr(C)&&C.videoProps.videoController.notifyEventToApp(Te);else if(He){for(var Q=[],de=0,V=He;de<V.length;de++){var ne=V[de];Q.push(new i(ne))}H(re,Q)}else H(re,null)});else{var z={errorCode:b.INVALID_ARGUMENTS};H(z,null)}}else{var q={errorCode:b.OLD_PLATFORM};H(q,null)}},e.viewImages=function(C,H){if(!H)throw new Error("[view images] Callback cannot be null");I(d.content,d.task),Fe(W)?Mi(C)?D("viewImages",[C],H):H({errorCode:b.INVALID_ARGUMENTS}):H({errorCode:b.OLD_PLATFORM})},e.scanBarCode=function(C,H){if(!C)throw new Error("[media.scanBarCode] Callback cannot be null");I(d.content,d.task),L.hostClientType!==E.desktop&&L.hostClientType!==E.web&&L.hostClientType!==E.rigel&&L.hostClientType!==E.teamsRoomsWindows&&L.hostClientType!==E.teamsRoomsAndroid&&L.hostClientType!==E.teamsPhones&&L.hostClientType!==E.teamsDisplays?Fe("1.9.0")?jr(H)?D("media.scanBarCode",[H],C):C({errorCode:b.INVALID_ARGUMENTS},null):C({errorCode:b.OLD_PLATFORM},null):C({errorCode:b.NOT_SUPPORTED_ON_PLATFORM},null)}})(rt||(rt={})),function(e){function s(){return!(!G.supports.barCode||!G.supports.permissions)}e.scanBarCode=function(i){return new Promise(function(f){if(I(d.content,d.task),!s())throw F;if(!jr(i))throw{errorCode:b.INVALID_ARGUMENTS};f(Oe("media.scanBarCode",i))})},e.hasPermission=function(){if(I(d.content,d.task),!s())throw F;var i=w.Media;return new Promise(function(f){f(Oe("permissions.has",i))})},e.requestPermission=function(){if(I(d.content,d.task),!s())throw F;var i=w.Media;return new Promise(function(f){f(Oe("permissions.request",i))})},e.isSupported=s}(Hn||(Hn={})),function(e){function s(f){return new Promise(function(g){if(I(d.content,d.task),!i())throw F;G.isLegacyTeams?g(Ue("executeDeepLink",Un([f.user],void 0,f.message))):g(Ue("chat.openChat",{members:f.user,message:f.message}))})}function i(){return!!G.supports.chat}e.openChat=s,e.openGroupChat=function(f){return new Promise(function(g){if(f.users.length<1)throw Error("OpenGroupChat Failed: No users specified");if(f.users.length===1)s({user:f.users[0],message:f.message});else{if(I(d.content,d.task),!i())throw F;G.isLegacyTeams?g(Ue("executeDeepLink",Un(f.users,f.topic,f.message))):g(Ue("chat.openChat",{members:f.users,message:f.message,topic:f.topic}))}})},e.isSupported=i}(Bn||(Bn={})),function(e){function s(){return!(!G.supports.geoLocation||!G.supports.permissions)}e.getCurrentLocation=function(){if(I(d.content,d.task),!s())throw F;return Oe("location.getLocation",{allowChooseLocation:!1,showMap:!1})},e.hasPermission=function(){if(I(d.content,d.task),!s())throw F;var i=w.GeoLocation;return new Promise(function(f){f(Oe("permissions.has",i))})},e.requestPermission=function(){if(I(d.content,d.task),!s())throw F;var i=w.GeoLocation;return new Promise(function(f){f(Oe("permissions.request",i))})},e.isSupported=s,function(i){function f(){return!!(G.supports.geoLocation&&G.supports.geoLocation.map&&G.supports.permissions)}i.chooseLocation=function(){if(I(d.content,d.task),!f())throw F;return Oe("location.getLocation",{allowChooseLocation:!0,showMap:!0})},i.showLocation=function(g){if(I(d.content,d.task),!f())throw F;if(!g)throw{errorCode:b.INVALID_ARGUMENTS};return Oe("location.showLocation",g)},i.isSupported=f}(e.map||(e.map={}))}(Mt||(Mt={}));var pn,Gn,Wn,Vn,qn,It,zn,Qt,Kn,Xn,Zn,Jn,it,Qn,hn,gn=function(){function e(){}return e.prototype.postMessage=function(s,i){I(),D("messageForChild",[s],i||we())},e.prototype.addEventListener=function(s,i){I(),s==="message"&&ie("messageForParent",i)},e}(),ji=function(){function e(){}return Object.defineProperty(e,"Instance",{get:function(){return this._instance||(this._instance=new this)},enumerable:!1,configurable:!0}),e.prototype.postMessage=function(s,i){I(d.task),D("messageForParent",[s],i||we())},e.prototype.addEventListener=function(s,i){I(d.task),s==="message"&&ie("messageForChild",i)},e}();function $i(e){return e?e.modality&&typeof e.modality!="string"?[!1,"modality must be a string"]:e.targetElementBoundingRect&&typeof e.targetElementBoundingRect=="object"?e.triggerType&&typeof e.triggerType=="string"?Ui(e.persona):[!1,"triggerType must be a valid string"]:[!1,"targetElementBoundingRect must be a DOMRect"]:[!1,"A request object is required"]}function Ui(e){return e?e.displayName&&typeof e.displayName!="string"?[!1,"displayName must be a string"]:e.identifiers&&typeof e.identifiers=="object"?e.identifiers.AadObjectId||e.identifiers.Smtp||e.identifiers.Upn?e.identifiers.AadObjectId&&typeof e.identifiers.AadObjectId!="string"?[!1,"AadObjectId identifier must be a string"]:e.identifiers.Smtp&&typeof e.identifiers.Smtp!="string"?[!1,"Smtp identifier must be a string"]:e.identifiers.Upn&&typeof e.identifiers.Upn!="string"?[!1,"Upn identifier must be a string"]:[!0,void 0]:[!1,"at least one valid identifier must be provided"]:[!1,"persona identifiers object must be provided"]:[!1,"persona object must be provided"]}function Hi(e,s){$e.initialize(s).then(function(){e&&e()})}function Yn(){lt.enablePrintCapability()}function Bi(){lt.print()}function Ae(e){I(),$e.getContext().then(function(s){e&&e(zi(s))})}function $r(e){$e.registerOnThemeChangeHandler(e)}function Ur(e){et("fullScreenChange",e,[])}function Gi(e){et("appButtonClick",e,[d.content])}function Wi(e){et("appButtonHoverEnter",e,[d.content])}function er(e){et("appButtonHoverLeave",e,[d.content])}function vn(e){Ce.backStack.registerBackButtonHandlerHelper(e)}function Vi(e){lt.registerOnLoadHandlerHelper(e)}function qi(e){lt.registerBeforeUnloadHandlerHelper(e)}function Hr(e){et("focusEnter",e,[])}function Br(e){et("changeSettings",e,[d.content])}function tr(e,s){I(),Ce.tabs.getTabInstances(s).then(function(i){e(i)})}function nr(e,s){I(),Ce.tabs.getMruTabInstances(s).then(function(i){e(i)})}function Gr(e){Ce.shareDeepLink({subPageId:e.subEntityId,subPageLabel:e.subEntityLabel,subPageWebUrl:e.subEntityWebUrl})}function rr(e,s){I(d.content,d.sidePanel,d.settings,d.task,d.stage,d.meetingStage),s=s||we(),$e.openLink(e).then(function(){s(!0)}).catch(function(i){s(!1,i.message)})}function Wr(e){Ce.setCurrentFrame(e)}function Vr(e,s,i){Ce.initializeWithFrameContext(e,s,i)}function zi(e){return{actionInfo:e.actionInfo,locale:e.app.locale,appSessionId:e.app.sessionId,theme:e.app.theme,appIconPosition:e.app.iconPositionVertical,osLocaleInfo:e.app.osLocaleInfo,parentMessageId:e.app.parentMessageId,userClickTime:e.app.userClickTime,userFileOpenPreference:e.app.userFileOpenPreference,appLaunchId:e.app.appLaunchId,hostClientType:e.app.host.clientType,sessionId:e.app.host.sessionId,ringId:e.app.host.ringId,entityId:e.page.id,frameContext:e.page.frameContext,subEntityId:e.page.subPageId,isFullScreen:e.page.isFullScreen,isMultiWindow:e.page.isMultiWindow,sourceOrigin:e.page.sourceOrigin,userObjectId:e.user!==void 0?e.user.id:void 0,isCallingAllowed:e.user!==void 0?e.user.isCallingAllowed:void 0,isPSTNCallingAllowed:e.user!==void 0?e.user.isPSTNCallingAllowed:void 0,userLicenseType:e.user!==void 0?e.user.licenseType:void 0,loginHint:e.user!==void 0?e.user.loginHint:void 0,userPrincipalName:e.user!==void 0?e.user.userPrincipalName:void 0,tid:e.user!==void 0&&e.user.tenant!==void 0?e.user.tenant.id:void 0,tenantSKU:e.user!==void 0&&e.user.tenant!==void 0?e.user.tenant.teamsSku:void 0,channelId:e.channel!==void 0?e.channel.id:void 0,channelName:e.channel!==void 0?e.channel.displayName:void 0,channelRelativeUrl:e.channel!==void 0?e.channel.relativeUrl:void 0,channelType:e.channel!==void 0?e.channel.membershipType:void 0,defaultOneNoteSectionId:e.channel!==void 0?e.channel.defaultOneNoteSectionId:void 0,hostTeamGroupId:e.channel!==void 0?e.channel.ownerGroupId:void 0,hostTeamTenantId:e.channel!==void 0?e.channel.ownerTenantId:void 0,chatId:e.chat!==void 0?e.chat.id:void 0,meetingId:e.meeting!==void 0?e.meeting.id:void 0,sharepoint:e.sharepoint,teamId:e.team!==void 0?e.team.internalId:void 0,teamName:e.team!==void 0?e.team.displayName:void 0,teamType:e.team!==void 0?e.team.type:void 0,groupId:e.team!==void 0?e.team.groupId:void 0,teamTemplateId:e.team!==void 0?e.team.templateId:void 0,isTeamArchived:e.team!==void 0?e.team.isArchived:void 0,userTeamRole:e.team!==void 0?e.team.userRole:void 0,teamSiteUrl:e.sharePointSite!==void 0?e.sharePointSite.teamSiteUrl:void 0,teamSiteDomain:e.sharePointSite!==void 0?e.sharePointSite.teamSiteDomain:void 0,teamSitePath:e.sharePointSite!==void 0?e.sharePointSite.teamSitePath:void 0,teamSiteId:e.sharePointSite!==void 0?e.sharePointSite.teamSiteId:void 0,mySitePath:e.sharePointSite!==void 0?e.sharePointSite.mySitePath:void 0,mySiteDomain:e.sharePointSite!==void 0?e.sharePointSite.mySiteDomain:void 0}}function mn(e){Ce.returnFocus(e)}function yn(e,s){I(),s=s||we(),Ce.tabs.navigateToTab(e).then(function(){s(!0)}).catch(function(i){s(!1,i.message)})}function qr(e,s){I(d.content,d.sidePanel,d.settings,d.remove,d.task,d.stage,d.meetingStage),s=s||we(),Ce.navigateCrossDomain(e).then(function(){s(!0)}).catch(function(i){s(!1,i.message)})}function Ki(e){I(),e=e||we(),Ce.backStack.navigateBack().then(function(){e(!0)}).catch(function(s){e(!1,s.message)})}(function(e){function s(){return!!G.supports.location}e.getLocation=function(i,f){if(!f)throw new Error("[location.getLocation] Callback cannot be null");if(I(d.content,d.task),!Fe(se))throw{errorCode:b.OLD_PLATFORM};if(!i)throw{errorCode:b.INVALID_ARGUMENTS};if(!s())throw F;D("location.getLocation",[i],f)},e.showLocation=function(i,f){if(!f)throw new Error("[location.showLocation] Callback cannot be null");if(I(d.content,d.task),!Fe(se))throw{errorCode:b.OLD_PLATFORM};if(!i)throw{errorCode:b.INVALID_ARGUMENTS};if(!s())throw F;D("location.showLocation",[i],f)},e.isSupported=s})(pn||(pn={})),function(e){(function(s){s.like="like",s.heart="heart",s.laugh="laugh",s.surprised="surprised",s.applause="applause"})(e.MeetingReactionType||(e.MeetingReactionType={})),function(s){s.Unknown="Unknown",s.Adhoc="Adhoc",s.Scheduled="Scheduled",s.Recurring="Recurring",s.Broadcast="Broadcast",s.MeetNow="MeetNow"}(e.MeetingType||(e.MeetingType={})),function(s){s.OneOnOneCall="oneOnOneCall",s.GroupCall="groupCall"}(e.CallType||(e.CallType={})),e.getIncomingClientAudioState=function(s){if(!s)throw new Error("[get incoming client audio state] Callback cannot be null");I(d.sidePanel,d.meetingStage),D("getIncomingClientAudioState",s)},e.toggleIncomingClientAudio=function(s){if(!s)throw new Error("[toggle incoming client audio] Callback cannot be null");I(d.sidePanel,d.meetingStage),D("toggleIncomingClientAudio",s)},e.getMeetingDetails=function(s){if(!s)throw new Error("[get meeting details] Callback cannot be null");I(d.sidePanel,d.meetingStage,d.settings,d.content),D("meeting.getMeetingDetails",s)},e.getAuthenticationTokenForAnonymousUser=function(s){if(!s)throw new Error("[get Authentication Token For AnonymousUser] Callback cannot be null");I(d.sidePanel,d.meetingStage),D("meeting.getAuthenticationTokenForAnonymousUser",s)},e.getLiveStreamState=function(s){if(!s)throw new Error("[get live stream state] Callback cannot be null");I(d.sidePanel),D("meeting.getLiveStreamState",s)},e.requestStartLiveStreaming=function(s,i,f){if(!s)throw new Error("[request start live streaming] Callback cannot be null");I(d.sidePanel),D("meeting.requestStartLiveStreaming",[i,f],s)},e.requestStopLiveStreaming=function(s){if(!s)throw new Error("[request stop live streaming] Callback cannot be null");I(d.sidePanel),D("meeting.requestStopLiveStreaming",s)},e.registerLiveStreamChangedHandler=function(s){if(!s)throw new Error("[register live stream changed handler] Handler cannot be null");I(d.sidePanel),ie("meeting.liveStreamChanged",s)},e.shareAppContentToStage=function(s,i){if(!s)throw new Error("[share app content to stage] Callback cannot be null");I(d.sidePanel,d.meetingStage),D("meeting.shareAppContentToStage",[i],s)},e.getAppContentStageSharingCapabilities=function(s){if(!s)throw new Error("[get app content stage sharing capabilities] Callback cannot be null");I(d.sidePanel,d.meetingStage),D("meeting.getAppContentStageSharingCapabilities",s)},e.stopSharingAppContentToStage=function(s){if(!s)throw new Error("[stop sharing app content to stage] Callback cannot be null");I(d.sidePanel,d.meetingStage),D("meeting.stopSharingAppContentToStage",s)},e.getAppContentStageSharingState=function(s){if(!s)throw new Error("[get app content stage sharing state] Callback cannot be null");I(d.sidePanel,d.meetingStage),D("meeting.getAppContentStageSharingState",s)},e.registerSpeakingStateChangeHandler=function(s){if(!s)throw new Error("[registerSpeakingStateChangeHandler] Handler cannot be null");I(d.sidePanel,d.meetingStage),ie("meeting.speakingStateChanged",s)},e.registerRaiseHandStateChangedHandler=function(s){if(!s)throw new Error("[registerRaiseHandStateChangedHandler] Handler cannot be null");I(d.sidePanel,d.meetingStage),ie("meeting.raiseHandStateChanged",s)},e.registerMeetingReactionReceivedHandler=function(s){if(!s)throw new Error("[registerMeetingReactionReceivedHandler] Handler cannot be null");I(d.sidePanel,d.meetingStage),ie("meeting.meetingReactionReceived",s)}}(Gn||(Gn={})),function(e){function s(){return!!G.supports.monetization}e.openPurchaseExperience=function(i,f){var g,P;return typeof i=="function"?(g=i,P=f):P=i,I(d.content),ft(function(){return new Promise(function(C){if(!s())throw F;C(Oe("monetization.openPurchaseExperience",P))})},g)},e.isSupported=s}(Wn||(Wn={})),function(e){function s(){return!!G.supports.calendar}e.openCalendarItem=function(i){return new Promise(function(f){if(I(d.content),!s())throw new Error("Not supported");if(!i.itemId||!i.itemId.trim())throw new Error("Must supply an itemId to openCalendarItem");f(Ue("calendar.openCalendarItem",i))})},e.composeMeeting=function(i){return new Promise(function(f){if(I(d.content),!s())throw new Error("Not supported");G.isLegacyTeams?f(Ue("executeDeepLink",xi(i.attendees,i.startTime,i.endTime,i.subject,i.content))):f(Ue("calendar.composeMeeting",i))})},e.isSupported=s}(Vn||(Vn={})),function(e){function s(){return!!G.supports.mail}e.openMailItem=function(i){return new Promise(function(f){if(I(d.content),!s())throw new Error("Not supported");if(!i.itemId||!i.itemId.trim())throw new Error("Must supply an itemId to openMailItem");f(Ue("mail.openMailItem",i))})},e.composeMail=function(i){return new Promise(function(f){if(I(d.content),!s())throw new Error("Not supported");f(Ue("mail.composeMail",i))})},e.isSupported=s,function(i){i.New="new",i.Reply="reply",i.ReplyAll="replyAll",i.Forward="forward"}(e.ComposeMailType||(e.ComposeMailType={}))}(qn||(qn={})),function(e){function s(f){return new Promise(function(g){if(!Fe("2.0.0"))throw{errorCode:b.OLD_PLATFORM};if(!Di(f))throw{errorCode:b.INVALID_ARGUMENTS};if(!i())throw F;g(Oe("people.selectPeople",f))})}function i(){return!!G.supports.people}e.selectPeople=function(f,g){var P,C,H;return I(d.content,d.task,d.settings),typeof f=="function"?(C=(P=[f,g])[0],H=P[1]):H=f,_e(s,C,H)},e.isSupported=i}(It||(It={})),function(e){e.showProfile=function(s){return I(d.content),new Promise(function(i){var f=$i(s),g=f[0],P=f[1];if(!g)throw{errorCode:b.INVALID_ARGUMENTS,message:P};i(Oe("profile.showProfile",{modality:s.modality,persona:s.persona,triggerType:s.triggerType,targetRectangle:{x:s.targetElementBoundingRect.x,y:s.targetElementBoundingRect.y,width:s.targetElementBoundingRect.width,height:s.targetElementBoundingRect.height}}))})},e.isSupported=function(){return!!G.supports.profile}}(zn||(zn={})),function(e){function s(g){D("video.videoFrameProcessed",[g])}function i(g){D("video.notifyError",[g])}function f(){return!!G.supports.video}(function(g){g[g.NV12=0]="NV12"})(e.VideoFrameFormat||(e.VideoFrameFormat={})),function(g){g[g.EffectChanged=0]="EffectChanged",g[g.EffectDisabled=1]="EffectDisabled"}(e.EffectChangeType||(e.EffectChangeType={})),e.registerForVideoFrame=function(g,P){if(I(d.sidePanel),!f())throw F;ie("video.newVideoFrame",function(C){if(C){var H=C.timestamp;g(C,function(){s(H)},i)}},!1),D("video.registerForVideoFrame",[P])},e.notifySelectedVideoEffectChanged=function(g,P){if(I(d.sidePanel),!f())throw F;D("video.videoEffectChanged",[g,P])},e.registerForVideoEffect=function(g){if(I(d.sidePanel),!f())throw F;ie("video.effectParameterChange",g,!1),D("video.registerForVideoEffect")},e.isSupported=f}(Qt||(Qt={})),function(e){var s="search.queryChange",i="search.queryClose",f="search.queryExecute";function g(){return!!G.supports.search}e.registerHandlers=function(P,C,H){if(I(d.content),!g())throw F;ie(i,P),ie(f,C),H&&ie(s,H)},e.unregisterHandlers=function(){if(I(d.content),!g())throw F;D("search.unregister"),Be(s),Be(i),Be(f)},e.isSupported=g}(Kn||(Kn={})),function(e){function s(C){return new Promise(function(H){if(!P())throw F;H(Oe(e.SharingAPIMessages.shareWebContent,C))})}function i(C){if(!(C&&C.content&&C.content.length))throw{errorCode:b.INVALID_ARGUMENTS,message:"Shared content is missing"}}function f(C){if(C.content.some(function(H){return!H.type}))throw{errorCode:b.INVALID_ARGUMENTS,message:"Shared content type cannot be undefined"};if(C.content.some(function(H){return H.type!==C.content[0].type}))throw{errorCode:b.INVALID_ARGUMENTS,message:"Shared content must be of the same type"}}function g(C){if(C.content[0].type!=="URL")throw{errorCode:b.INVALID_ARGUMENTS,message:"Content type is unsupported"};if(C.content.some(function(H){return!H.url}))throw{errorCode:b.INVALID_ARGUMENTS,message:"URLs are required for URL content types"}}function P(){return!!G.supports.sharing}e.SharingAPIMessages={shareWebContent:"sharing.shareWebContent"},e.shareWebContent=function(C,H){try{i(C),f(C),g(C)}catch(z){return Pe(function(){return Promise.reject(z)},H)}return I(d.content,d.sidePanel,d.task,d.stage,d.meetingStage),Pe(s,H,C)},e.isSupported=P}(Xn||(Xn={})),function(e){function s(){return!!G.supports.stageView}e.open=function(i){return new Promise(function(f){if(I(d.content),!s())throw F;if(!i)throw new Error("[stageView.open] Stage view params cannot be null");f(Oe("stageView.open",i))})},e.isSupported=s}(Zn||(Zn={})),function(e){function s(){return!!G.supports.webStorage}e.isWebStorageClearedOnUserLogOut=function(){return I(),s()},e.isSupported=s}(Jn||(Jn={})),function(e){var s;function i(){return!!G.supports.call}(function(f){f.Unknown="unknown",f.Audio="audio",f.Video="video",f.VideoBasedScreenSharing="videoBasedScreenSharing",f.Data="data"})(s=e.CallModalities||(e.CallModalities={})),e.startCall=function(f){return new Promise(function(g){var P;if(I(d.content,d.task),!i())throw F;if(!G.isLegacyTeams)return D("call.startCall",[f],g);g(Oe("executeDeepLink",Zt(f.targets,(P=f.requestedModalities)===null||P===void 0?void 0:P.includes(s.Video),f.source)))})},e.isSupported=i}(it||(it={})),function(e){e.Messages=$e.Messages,e.FailedReason=$e.FailedReason,e.ExpectedFailureReason=$e.ExpectedFailureReason,e.notifyAppLoaded=function(){$e.notifyAppLoaded()},e.notifySuccess=function(){$e.notifySuccess()},e.notifyFailure=function(s){$e.notifyFailure(s)},e.notifyExpectedFailure=function(s){$e.notifyExpectedFailure(s)}}(Qn||(Qn={})),function(e){e.setValidityState=function(s){Ce.config.setValidityState(s)},e.getSettings=function(s){I(d.content,d.settings,d.remove,d.sidePanel),Ce.getConfig().then(function(i){s(i)})},e.setSettings=function(s,i){I(d.content,d.settings,d.sidePanel),i=i||we(),Ce.config.setConfig(s).then(function(){i(!0)}).catch(function(f){i(!1,f.message)})},e.registerOnSaveHandler=function(s){Ce.config.registerOnSaveHandlerHelper(s)},e.registerOnRemoveHandler=function(s){Ce.config.registerOnRemoveHandlerHelper(s)}}(hn||(hn={}));var ir,or,ar,sr,lr,Dt,Yt,cr,Xi=function(e,s){var i={};for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&s.indexOf(f)<0&&(i[f]=e[f]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var g=0;for(f=Object.getOwnPropertySymbols(e);g<f.length;g++)s.indexOf(f[g])<0&&Object.prototype.propertyIsEnumerable.call(e,f[g])&&(i[f[g]]=e[f[g]])}return i};(function(e){function s(g){return{url:g.url,size:{height:g.height?g.height:X.Small,width:g.width?g.width:X.Small},title:g.title,fallbackUrl:g.fallbackUrl}}function i(g){return{url:g.url,size:{height:g.height?g.height:X.Small,width:g.width?g.width:X.Small},title:g.title,fallbackUrl:g.fallbackUrl,completionBotId:g.completionBotId}}function f(g){return g.height=g.height?g.height:X.Small,g.width=g.width?g.width:X.Small,g}e.startTask=function(g,P){var C=P?function(H){return P(H.err,H.result)}:void 0;return g.card!==void 0||g.url===void 0?(I(d.content,d.sidePanel,d.meetingStage),D("tasks.startTask",[g],P)):g.completionBotId!==void 0?vt.bot.open(i(g),C):vt.open(s(g),C),new gn},e.updateTask=function(g){(g=f(g)).width,g.height;var P=Xi(g,["width","height"]);if(Object.keys(P).length)throw new Error("resize requires a TaskInfo argument containing only width and height");vt.update.resize(g)},e.submitTask=function(g,P){vt.submit(g,P)},e.getDefaultSizeIfNotProvided=f})(ir||(ir={})),function(e){function s(i,f){return{errorCode:i,message:f}}(function(i){i.Dropbox="DROPBOX",i.Box="BOX",i.Sharefile="SHAREFILE",i.GoogleDrive="GOOGLEDRIVE",i.Egnyte="EGNYTE",i.SharePoint="SharePoint"})(e.CloudStorageProvider||(e.CloudStorageProvider={})),function(i){i[i.Sharepoint=0]="Sharepoint",i[i.WopiIntegration=1]="WopiIntegration",i[i.Google=2]="Google",i[i.OneDrive=3]="OneDrive",i[i.Recent=4]="Recent",i[i.Aggregate=5]="Aggregate",i[i.FileSystem=6]="FileSystem",i[i.Search=7]="Search",i[i.AllFiles=8]="AllFiles",i[i.SharedWithMe=9]="SharedWithMe"}(e.CloudStorageProviderType||(e.CloudStorageProviderType={})),function(i){i.ClassMaterials="classMaterials"}(e.SpecialDocumentLibraryType||(e.SpecialDocumentLibraryType={})),function(i){i.Readonly="readonly"}(e.DocumentLibraryAccessType||(e.DocumentLibraryAccessType={})),function(i){i.Downloaded="Downloaded",i.Downloading="Downloading",i.Failed="Failed"}(e.FileDownloadStatus||(e.FileDownloadStatus={})),function(i){i.Download="DOWNLOAD",i.Upload="UPLOAD",i.Delete="DELETE"}(e.CloudStorageProviderFileAction||(e.CloudStorageProviderFileAction={})),e.getCloudStorageFolders=function(i,f){if(I(d.content),!i||i.length===0)throw new Error("[files.getCloudStorageFolders] channelId name cannot be null or empty");if(!f)throw new Error("[files.getCloudStorageFolders] Callback cannot be null");D("files.getCloudStorageFolders",[i],f)},e.addCloudStorageFolder=function(i,f){if(I(d.content),!i||i.length===0)throw new Error("[files.addCloudStorageFolder] channelId name cannot be null or empty");if(!f)throw new Error("[files.addCloudStorageFolder] Callback cannot be null");D("files.addCloudStorageFolder",[i],f)},e.deleteCloudStorageFolder=function(i,f,g){if(I(d.content),!i)throw new Error("[files.deleteCloudStorageFolder] channelId name cannot be null or empty");if(!f)throw new Error("[files.deleteCloudStorageFolder] folderToDelete cannot be null or empty");if(!g)throw new Error("[files.deleteCloudStorageFolder] Callback cannot be null");D("files.deleteCloudStorageFolder",[i,f],g)},e.getCloudStorageFolderContents=function(i,f,g){if(I(d.content),!i||!f)throw new Error("[files.getCloudStorageFolderContents] folder/providerCode name cannot be null or empty");if(!g)throw new Error("[files.getCloudStorageFolderContents] Callback cannot be null");if("isSubdirectory"in i&&!i.isSubdirectory)throw new Error("[files.getCloudStorageFolderContents] provided folder is not a subDirectory");D("files.getCloudStorageFolderContents",[i,f],g)},e.openCloudStorageFile=function(i,f,g){if(I(d.content),!i||!f)throw new Error("[files.openCloudStorageFile] file/providerCode cannot be null or empty");if(i.isSubdirectory)throw new Error("[files.openCloudStorageFile] provided file is a subDirectory");D("files.openCloudStorageFile",[i,f,g])},e.getExternalProviders=function(i,f){if(i===void 0&&(i=!1),I(d.content),!f)throw new Error("[files.getExternalProviders] Callback cannot be null");D("files.getExternalProviders",[i],f)},e.copyMoveFiles=function(i,f,g,P,C,H){if(C===void 0&&(C=!1),I(d.content),!i||i.length===0)throw new Error("[files.copyMoveFiles] selectedFiles cannot be null or empty");if(!f)throw new Error("[files.copyMoveFiles] providerCode cannot be null or empty");if(!g)throw new Error("[files.copyMoveFiles] destinationFolder cannot be null or empty");if(!P)throw new Error("[files.copyMoveFiles] destinationProviderCode cannot be null or empty");if(!H)throw new Error("[files.copyMoveFiles] callback cannot be null");D("files.copyMoveFiles",[i,f,g,P,C],H)},e.getFileDownloads=function(i){if(I(d.content),!i)throw new Error("[files.getFileDownloads] Callback cannot be null");D("files.getFileDownloads",[],i)},e.openDownloadFolder=function(i,f){if(i===void 0&&(i=void 0),I(d.content),!f)throw new Error("[files.openDownloadFolder] Callback cannot be null");D("files.openDownloadFolder",[i],f)},e.addCloudStorageProvider=function(i){if(I(d.content),!i)throw s(b.INVALID_ARGUMENTS,"[files.addCloudStorageProvider] callback cannot be null");D("files.addCloudStorageProvider",[],i)},e.removeCloudStorageProvider=function(i,f){if(I(d.content),!f)throw s(b.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] callback cannot be null");if(!i||!i.content)throw s(b.INVALID_ARGUMENTS,"[files.removeCloudStorageProvider] 3P cloud storage provider request content is missing");D("files.removeCloudStorageProvider",[i],f)},e.addCloudStorageProviderFile=function(i,f){if(I(d.content),!f)throw s(b.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] callback cannot be null");if(!i||!i.content)throw s(b.INVALID_ARGUMENTS,"[files.addCloudStorageProviderFile] 3P cloud storage provider request content is missing");D("files.addCloudStorageProviderFile",[i],f)},e.renameCloudStorageProviderFile=function(i,f){if(I(d.content),!f)throw s(b.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] callback cannot be null");if(!i||!i.content)throw s(b.INVALID_ARGUMENTS,"[files.renameCloudStorageProviderFile] 3P cloud storage provider request content is missing");D("files.renameCloudStorageProviderFile",[i],f)},e.deleteCloudStorageProviderFile=function(i,f){if(I(d.content),!f)throw s(b.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] callback cannot be null");if(!(i&&i.content&&i.content.itemList&&i.content.itemList.length>0))throw s(b.INVALID_ARGUMENTS,"[files.deleteCloudStorageProviderFile] 3P cloud storage provider request content details are missing");D("files.deleteCloudStorageProviderFile",[i],f)},e.downloadCloudStorageProviderFile=function(i,f){if(I(d.content),!f)throw s(b.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] callback cannot be null");if(!(i&&i.content&&i.content.itemList&&i.content.itemList.length>0))throw s(b.INVALID_ARGUMENTS,"[files.downloadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");D("files.downloadCloudStorageProviderFile",[i],f)},e.uploadCloudStorageProviderFile=function(i,f){if(I(d.content),!f)throw s(b.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] callback cannot be null");if(!(i&&i.content&&i.content.itemList&&i.content.itemList.length>0))throw s(b.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] 3P cloud storage provider request content details are missing");if(!i.content.destinationFolder)throw s(b.INVALID_ARGUMENTS,"[files.uploadCloudStorageProviderFile] Invalid destination folder details");D("files.uploadCloudStorageProviderFile",[i],f)},e.registerCloudStorageProviderListChangeHandler=function(i){if(I(),!i)throw new Error("[registerCloudStorageProviderListChangeHandler] Handler cannot be null");ie("files.cloudStorageProviderListChange",i)},e.registerCloudStorageProviderContentChangeHandler=function(i){if(I(),!i)throw new Error("[registerCloudStorageProviderContentChangeHandler] Handler cannot be null");ie("files.cloudStorageProviderContentChange",i)}}(or||(or={})),function(e){function s(){return!!G.supports.meetingRoom}e.getPairedMeetingRoomInfo=function(){return new Promise(function(i){if(I(),!s())throw F;i(Oe("meetingRoom.getPairedMeetingRoomInfo"))})},e.sendCommandToPairedMeetingRoom=function(i){return new Promise(function(f){if(!i||i.length==0)throw new Error("[meetingRoom.sendCommandToPairedMeetingRoom] Command name cannot be null or empty");if(I(),!s())throw F;f(Oe("meetingRoom.sendCommandToPairedMeetingRoom",i))})},e.registerMeetingRoomCapabilitiesUpdateHandler=function(i){if(!i)throw new Error("[meetingRoom.registerMeetingRoomCapabilitiesUpdateHandler] Handler cannot be null");if(I(),!s())throw F;ie("meetingRoom.meetingRoomCapabilitiesUpdate",function(f){I(),i(f)})},e.registerMeetingRoomStatesUpdateHandler=function(i){if(!i)throw new Error("[meetingRoom.registerMeetingRoomStatesUpdateHandler] Handler cannot be null");if(I(),!s())throw F;ie("meetingRoom.meetingRoomStatesUpdate",function(f){I(),i(f)})},e.isSupported=s}(ar||(ar={})),function(e){function s(){return!!G.supports.notifications}e.showNotification=function(i){if(I(d.content),!s())throw F;D("notifications.showNotification",[i])},e.isSupported=s}(sr||(sr={})),function(e){function s(){return!!G.supports.remoteCamera}(function(i){i.Reset="Reset",i.ZoomIn="ZoomIn",i.ZoomOut="ZoomOut",i.PanLeft="PanLeft",i.PanRight="PanRight",i.TiltUp="TiltUp",i.TiltDown="TiltDown"})(e.ControlCommand||(e.ControlCommand={})),function(i){i[i.CommandResetError=0]="CommandResetError",i[i.CommandZoomInError=1]="CommandZoomInError",i[i.CommandZoomOutError=2]="CommandZoomOutError",i[i.CommandPanLeftError=3]="CommandPanLeftError",i[i.CommandPanRightError=4]="CommandPanRightError",i[i.CommandTiltUpError=5]="CommandTiltUpError",i[i.CommandTiltDownError=6]="CommandTiltDownError",i[i.SendDataError=7]="SendDataError"}(e.ErrorReason||(e.ErrorReason={})),function(i){i[i.None=0]="None",i[i.ControlDenied=1]="ControlDenied",i[i.ControlNoResponse=2]="ControlNoResponse",i[i.ControlBusy=3]="ControlBusy",i[i.AckTimeout=4]="AckTimeout",i[i.ControlTerminated=5]="ControlTerminated",i[i.ControllerTerminated=6]="ControllerTerminated",i[i.DataChannelError=7]="DataChannelError",i[i.ControllerCancelled=8]="ControllerCancelled",i[i.ControlDisabled=9]="ControlDisabled",i[i.ControlTerminatedToAllowOtherController=10]="ControlTerminatedToAllowOtherController"}(e.SessionTerminatedReason||(e.SessionTerminatedReason={})),e.getCapableParticipants=function(i){if(!i)throw new Error("[remoteCamera.getCapableParticipants] Callback cannot be null");if(I(d.sidePanel),!s())throw F;D("remoteCamera.getCapableParticipants",i)},e.requestControl=function(i,f){if(!i)throw new Error("[remoteCamera.requestControl] Participant cannot be null");if(!f)throw new Error("[remoteCamera.requestControl] Callback cannot be null");if(I(d.sidePanel),!s())throw F;D("remoteCamera.requestControl",[i],f)},e.sendControlCommand=function(i,f){if(!i)throw new Error("[remoteCamera.sendControlCommand] ControlCommand cannot be null");if(!f)throw new Error("[remoteCamera.sendControlCommand] Callback cannot be null");if(I(d.sidePanel),!s())throw F;D("remoteCamera.sendControlCommand",[i],f)},e.terminateSession=function(i){if(!i)throw new Error("[remoteCamera.terminateSession] Callback cannot be null");if(I(d.sidePanel),!s())throw F;D("remoteCamera.terminateSession",i)},e.registerOnCapableParticipantsChangeHandler=function(i){if(!i)throw new Error("[remoteCamera.registerOnCapableParticipantsChangeHandler] Handler cannot be null");if(I(d.sidePanel),!s())throw F;ie("remoteCamera.capableParticipantsChange",i)},e.registerOnErrorHandler=function(i){if(!i)throw new Error("[remoteCamera.registerOnErrorHandler] Handler cannot be null");if(I(d.sidePanel),!s())throw F;ie("remoteCamera.handlerError",i)},e.registerOnDeviceStateChangeHandler=function(i){if(!i)throw new Error("[remoteCamera.registerOnDeviceStateChangeHandler] Handler cannot be null");if(I(d.sidePanel),!s())throw F;ie("remoteCamera.deviceStateChange",i)},e.registerOnSessionStatusChangeHandler=function(i){if(!i)throw new Error("[remoteCamera.registerOnSessionStatusChangeHandler] Handler cannot be null");if(I(d.sidePanel),!s())throw F;ie("remoteCamera.sessionStatusChange",i)},e.isSupported=s}(lr||(lr={})),function(e){function s(){return!!G.supports.appEntity}e.selectAppEntity=function(i,f,g,P){if(I(d.content),!s())throw F;if(!i||i.length==0)throw new Error("[appEntity.selectAppEntity] threadId name cannot be null or empty");if(!P)throw new Error("[appEntity.selectAppEntity] Callback cannot be null");D("appEntity.selectAppEntity",[i,f,g],P)},e.isSupported=s}(Dt||(Dt={})),function(e){function s(){return!!G.supports.teams}(function(i){i[i.Regular=0]="Regular",i[i.Private=1]="Private",i[i.Shared=2]="Shared"})(e.ChannelType||(e.ChannelType={})),e.getTeamChannels=function(i,f){if(I(d.content),!s())throw F;if(!i)throw new Error("[teams.getTeamChannels] groupId cannot be null or empty");if(!f)throw new Error("[teams.getTeamChannels] Callback cannot be null");D("teams.getTeamChannels",[i],f)},e.refreshSiteUrl=function(i,f){if(I(),!s())throw F;if(!i)throw new Error("[teams.refreshSiteUrl] threadId cannot be null or empty");if(!f)throw new Error("[teams.refreshSiteUrl] Callback cannot be null");D("teams.refreshSiteUrl",[i],f)},e.isSupported=s,function(i){function f(){return!!G.supports.teams&&!!G.supports.teams.fullTrust}(function(g){function P(){return!!G.supports.teams&&!!G.supports.teams.fullTrust&&!!G.supports.teams.fullTrust.joinedTeams}g.getUserJoinedTeams=function(C){return new Promise(function(H){if(I(),!P())throw F;if((L.hostClientType===E.android||L.hostClientType===E.teamsRoomsAndroid||L.hostClientType===E.teamsPhones||L.hostClientType===E.teamsDisplays)&&!Fe("2.0.1")){var z={errorCode:b.OLD_PLATFORM};throw new Error(JSON.stringify(z))}H(yt("getUserJoinedTeams",C))})},g.isSupported=P})(i.joinedTeams||(i.joinedTeams={})),i.getConfigSetting=function(g){return new Promise(function(P){if(I(),!f())throw F;P(yt("getConfigSetting",g))})},i.isSupported=f}(e.fullTrust||(e.fullTrust={}))}(Yt||(Yt={})),function(e){function s(){return Qt.isSupported()}function i(g){D("video.videoFrameProcessed",[g])}function f(g){D("video.notifyError",[g])}e.registerForVideoFrame=function(g,P){if(I(d.sidePanel),!s())throw F;ie("video.newVideoFrame",function(C){if(C){var H=C.timestamp;g(C,function(){i(H)},f)}},!1),D("video.registerForVideoFrame",[P])},e.notifySelectedVideoEffectChanged=function(g,P,C){if(I(d.sidePanel),!s())throw F;D("video.videoEffectChanged",[g,P,C])},e.registerForVideoEffect=function(g){if(I(d.sidePanel),!s())throw F;ie("video.effectParameterChange",g,!1),D("video.registerForVideoEffect")},e.updatePersonalizedEffects=function(g){if(I(d.sidePanel),!Qt.isSupported())throw F;D("video.personalizedEffectsChanged",[g])},e.isSupported=s}(cr||(cr={}))})(),p})()})})(ss);var hp=ss.exports,ke={},Tn={},Do={};(function(t){var a=he&&he.__spreadArray||function(l,u){for(var p=0,m=u.length,T=l.length;p<m;p++,T++)l[T]=u[p];return l};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.LogLevel=void 0;var o;(function(l){l[l.DEBUG=0]="DEBUG",l[l.INFO=1]="INFO",l[l.WARN=2]="WARN",l[l.ERROR=3]="ERROR"})(o=t.LogLevel||(t.LogLevel={})),t.Logger={ENABLED:typeof window<"u"&&typeof location<"u"&&location.search.indexOf("giphy-debug")!==-1,LEVEL:0,PREFIX:"GiphyJS",debug:function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];t.Logger.ENABLED&&t.Logger.LEVEL<=o.DEBUG&&console.debug.apply(console,a([t.Logger.PREFIX],l))},info:function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];t.Logger.ENABLED&&t.Logger.LEVEL<=o.INFO&&console.info.apply(console,a([t.Logger.PREFIX],l))},warn:function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];t.Logger.ENABLED&&t.Logger.LEVEL<=o.WARN&&console.warn.apply(console,a([t.Logger.PREFIX],l))},error:function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];t.Logger.ENABLED&&t.Logger.LEVEL<=o.ERROR&&console.error.apply(console,a([t.Logger.PREFIX],l))}}})(Do);Object.defineProperty(Tn,"__esModule",{value:!0});Tn.setRenditionScaleUpMaxPixels=void 0;var qc=Do,zc=function(t,a,o){var l=1/0,u;return o.forEach(function(p){var m=p.width/t,T=p.height/a,A=m*T,b=Math.abs(1-A);b<l&&(l=b,u=p)}),u},ls=50,Kc=function(t){qc.Logger.debug("@giphy/js-util set rendition selection scale up max pixels to "+t),ls=t};Tn.setRenditionScaleUpMaxPixels=Kc;function Xc(t,a,o,l){l===void 0&&(l=ls);var u=t[0],p=t.filter(function(m){return m.width*m.height>u.width*u.height&&(u=m),a-m.width<=l&&o-m.height<=l});return p.length===0?u:zc(a,o,p)}Tn.default=Xc;var ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.pick=ut.without=ut.take=ut.forEach=ut.mapValues=void 0;function Zc(t,a){if(Array.isArray(t))throw"This map is just for objects, just use array.map for arrays";return Object.keys(t).reduce(function(o,l){return o[l]=a(t[l],l),o},{})}ut.mapValues=Zc;function Jc(t,a){if(Array.isArray(t))throw"This map is just for objects, just use array.forEach for arrays";return Object.keys(t).forEach(function(o){a(t[o],o)})}ut.forEach=Jc;function Qc(t,a){return a===void 0&&(a=0),t.slice(0,a)}ut.take=Qc;function Yc(t,a){return t.filter(function(o){return a.indexOf(o)===-1})}ut.without=Yc;function eu(t,a){var o={};return a.forEach(function(l){t[l]!==void 0&&(o[l]=t[l])}),o}ut.pick=eu;var jo={};Object.defineProperty(jo,"__esModule",{value:!0});var tu=function(t){var a=0,o=0,l=t.offsetWidth,u=t.offsetHeight;do a+=t.offsetLeft,o+=t.offsetTop,t=t.offsetParent;while(t);return{left:a,top:o,width:l,height:u,right:a+l,bottom:o+u}};jo.default=tu;var $o={},ri,nu=new Uint8Array(16);function cs(){if(!ri&&(ri=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ri))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ri(nu)}const ru=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function fi(t){return typeof t=="string"&&ru.test(t)}var We=[];for(var vo=0;vo<256;++vo)We.push((vo+256).toString(16).substr(1));function di(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=(We[t[a+0]]+We[t[a+1]]+We[t[a+2]]+We[t[a+3]]+"-"+We[t[a+4]]+We[t[a+5]]+"-"+We[t[a+6]]+We[t[a+7]]+"-"+We[t[a+8]]+We[t[a+9]]+"-"+We[t[a+10]]+We[t[a+11]]+We[t[a+12]]+We[t[a+13]]+We[t[a+14]]+We[t[a+15]]).toLowerCase();if(!fi(o))throw TypeError("Stringified UUID is invalid");return o}var Ga,mo,yo=0,bo=0;function iu(t,a,o){var l=a&&o||0,u=a||new Array(16);t=t||{};var p=t.node||Ga,m=t.clockseq!==void 0?t.clockseq:mo;if(p==null||m==null){var T=t.random||(t.rng||cs)();p==null&&(p=Ga=[T[0]|1,T[1],T[2],T[3],T[4],T[5]]),m==null&&(m=mo=(T[6]<<8|T[7])&16383)}var A=t.msecs!==void 0?t.msecs:Date.now(),b=t.nsecs!==void 0?t.nsecs:bo+1,w=A-yo+(b-bo)/1e4;if(w<0&&t.clockseq===void 0&&(m=m+1&16383),(w<0||A>yo)&&t.nsecs===void 0&&(b=0),b>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");yo=A,bo=b,mo=m,A+=122192928e5;var E=((A&268435455)*1e4+b)%4294967296;u[l++]=E>>>24&255,u[l++]=E>>>16&255,u[l++]=E>>>8&255,u[l++]=E&255;var $=A/4294967296*1e4&268435455;u[l++]=$>>>8&255,u[l++]=$&255,u[l++]=$>>>24&15|16,u[l++]=$>>>16&255,u[l++]=m>>>8|128,u[l++]=m&255;for(var d=0;d<6;++d)u[l+d]=p[d];return a||di(u)}function us(t){if(!fi(t))throw TypeError("Invalid UUID");var a,o=new Uint8Array(16);return o[0]=(a=parseInt(t.slice(0,8),16))>>>24,o[1]=a>>>16&255,o[2]=a>>>8&255,o[3]=a&255,o[4]=(a=parseInt(t.slice(9,13),16))>>>8,o[5]=a&255,o[6]=(a=parseInt(t.slice(14,18),16))>>>8,o[7]=a&255,o[8]=(a=parseInt(t.slice(19,23),16))>>>8,o[9]=a&255,o[10]=(a=parseInt(t.slice(24,36),16))/1099511627776&255,o[11]=a/4294967296&255,o[12]=a>>>24&255,o[13]=a>>>16&255,o[14]=a>>>8&255,o[15]=a&255,o}function ou(t){t=unescape(encodeURIComponent(t));for(var a=[],o=0;o<t.length;++o)a.push(t.charCodeAt(o));return a}var au="6ba7b810-9dad-11d1-80b4-00c04fd430c8",su="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function fs(t,a,o){function l(u,p,m,T){if(typeof u=="string"&&(u=ou(u)),typeof p=="string"&&(p=us(p)),p.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var A=new Uint8Array(16+u.length);if(A.set(p),A.set(u,p.length),A=o(A),A[6]=A[6]&15|a,A[8]=A[8]&63|128,m){T=T||0;for(var b=0;b<16;++b)m[T+b]=A[b];return m}return di(A)}try{l.name=t}catch{}return l.DNS=au,l.URL=su,l}function lu(t){if(typeof t=="string"){var a=unescape(encodeURIComponent(t));t=new Uint8Array(a.length);for(var o=0;o<a.length;++o)t[o]=a.charCodeAt(o)}return cu(uu(fu(t),t.length*8))}function cu(t){for(var a=[],o=t.length*32,l="0123456789abcdef",u=0;u<o;u+=8){var p=t[u>>5]>>>u%32&255,m=parseInt(l.charAt(p>>>4&15)+l.charAt(p&15),16);a.push(m)}return a}function ds(t){return(t+64>>>9<<4)+14+1}function uu(t,a){t[a>>5]|=128<<a%32,t[ds(a)-1]=a;for(var o=1732584193,l=-271733879,u=-1732584194,p=271733878,m=0;m<t.length;m+=16){var T=o,A=l,b=u,w=p;o=Xe(o,l,u,p,t[m],7,-680876936),p=Xe(p,o,l,u,t[m+1],12,-389564586),u=Xe(u,p,o,l,t[m+2],17,606105819),l=Xe(l,u,p,o,t[m+3],22,-1044525330),o=Xe(o,l,u,p,t[m+4],7,-176418897),p=Xe(p,o,l,u,t[m+5],12,1200080426),u=Xe(u,p,o,l,t[m+6],17,-1473231341),l=Xe(l,u,p,o,t[m+7],22,-45705983),o=Xe(o,l,u,p,t[m+8],7,1770035416),p=Xe(p,o,l,u,t[m+9],12,-1958414417),u=Xe(u,p,o,l,t[m+10],17,-42063),l=Xe(l,u,p,o,t[m+11],22,-1990404162),o=Xe(o,l,u,p,t[m+12],7,1804603682),p=Xe(p,o,l,u,t[m+13],12,-40341101),u=Xe(u,p,o,l,t[m+14],17,-1502002290),l=Xe(l,u,p,o,t[m+15],22,1236535329),o=Ze(o,l,u,p,t[m+1],5,-165796510),p=Ze(p,o,l,u,t[m+6],9,-1069501632),u=Ze(u,p,o,l,t[m+11],14,643717713),l=Ze(l,u,p,o,t[m],20,-373897302),o=Ze(o,l,u,p,t[m+5],5,-701558691),p=Ze(p,o,l,u,t[m+10],9,38016083),u=Ze(u,p,o,l,t[m+15],14,-660478335),l=Ze(l,u,p,o,t[m+4],20,-405537848),o=Ze(o,l,u,p,t[m+9],5,568446438),p=Ze(p,o,l,u,t[m+14],9,-1019803690),u=Ze(u,p,o,l,t[m+3],14,-187363961),l=Ze(l,u,p,o,t[m+8],20,1163531501),o=Ze(o,l,u,p,t[m+13],5,-1444681467),p=Ze(p,o,l,u,t[m+2],9,-51403784),u=Ze(u,p,o,l,t[m+7],14,1735328473),l=Ze(l,u,p,o,t[m+12],20,-1926607734),o=Je(o,l,u,p,t[m+5],4,-378558),p=Je(p,o,l,u,t[m+8],11,-2022574463),u=Je(u,p,o,l,t[m+11],16,1839030562),l=Je(l,u,p,o,t[m+14],23,-35309556),o=Je(o,l,u,p,t[m+1],4,-1530992060),p=Je(p,o,l,u,t[m+4],11,1272893353),u=Je(u,p,o,l,t[m+7],16,-155497632),l=Je(l,u,p,o,t[m+10],23,-1094730640),o=Je(o,l,u,p,t[m+13],4,681279174),p=Je(p,o,l,u,t[m],11,-358537222),u=Je(u,p,o,l,t[m+3],16,-722521979),l=Je(l,u,p,o,t[m+6],23,76029189),o=Je(o,l,u,p,t[m+9],4,-640364487),p=Je(p,o,l,u,t[m+12],11,-421815835),u=Je(u,p,o,l,t[m+15],16,530742520),l=Je(l,u,p,o,t[m+2],23,-995338651),o=Qe(o,l,u,p,t[m],6,-198630844),p=Qe(p,o,l,u,t[m+7],10,1126891415),u=Qe(u,p,o,l,t[m+14],15,-1416354905),l=Qe(l,u,p,o,t[m+5],21,-57434055),o=Qe(o,l,u,p,t[m+12],6,1700485571),p=Qe(p,o,l,u,t[m+3],10,-1894986606),u=Qe(u,p,o,l,t[m+10],15,-1051523),l=Qe(l,u,p,o,t[m+1],21,-2054922799),o=Qe(o,l,u,p,t[m+8],6,1873313359),p=Qe(p,o,l,u,t[m+15],10,-30611744),u=Qe(u,p,o,l,t[m+6],15,-1560198380),l=Qe(l,u,p,o,t[m+13],21,1309151649),o=Qe(o,l,u,p,t[m+4],6,-145523070),p=Qe(p,o,l,u,t[m+11],10,-1120210379),u=Qe(u,p,o,l,t[m+2],15,718787259),l=Qe(l,u,p,o,t[m+9],21,-343485551),o=Ht(o,T),l=Ht(l,A),u=Ht(u,b),p=Ht(p,w)}return[o,l,u,p]}function fu(t){if(t.length===0)return[];for(var a=t.length*8,o=new Uint32Array(ds(a)),l=0;l<a;l+=8)o[l>>5]|=(t[l/8]&255)<<l%32;return o}function Ht(t,a){var o=(t&65535)+(a&65535),l=(t>>16)+(a>>16)+(o>>16);return l<<16|o&65535}function du(t,a){return t<<a|t>>>32-a}function pi(t,a,o,l,u,p){return Ht(du(Ht(Ht(a,t),Ht(l,p)),u),o)}function Xe(t,a,o,l,u,p,m){return pi(a&o|~a&l,t,a,u,p,m)}function Ze(t,a,o,l,u,p,m){return pi(a&l|o&~l,t,a,u,p,m)}function Je(t,a,o,l,u,p,m){return pi(a^o^l,t,a,u,p,m)}function Qe(t,a,o,l,u,p,m){return pi(o^(a|~l),t,a,u,p,m)}var pu=fs("v3",48,lu);const hu=pu;function gu(t,a,o){t=t||{};var l=t.random||(t.rng||cs)();if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,a){o=o||0;for(var u=0;u<16;++u)a[o+u]=l[u];return a}return di(l)}function vu(t,a,o,l){switch(t){case 0:return a&o^~a&l;case 1:return a^o^l;case 2:return a&o^a&l^o&l;case 3:return a^o^l}}function wo(t,a){return t<<a|t>>>32-a}function mu(t){var a=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){var l=unescape(encodeURIComponent(t));t=[];for(var u=0;u<l.length;++u)t.push(l.charCodeAt(u))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var p=t.length/4+2,m=Math.ceil(p/16),T=new Array(m),A=0;A<m;++A){for(var b=new Uint32Array(16),w=0;w<16;++w)b[w]=t[A*64+w*4]<<24|t[A*64+w*4+1]<<16|t[A*64+w*4+2]<<8|t[A*64+w*4+3];T[A]=b}T[m-1][14]=(t.length-1)*8/Math.pow(2,32),T[m-1][14]=Math.floor(T[m-1][14]),T[m-1][15]=(t.length-1)*8&4294967295;for(var E=0;E<m;++E){for(var $=new Uint32Array(80),d=0;d<16;++d)$[d]=T[E][d];for(var O=16;O<80;++O)$[O]=wo($[O-3]^$[O-8]^$[O-14]^$[O-16],1);for(var k=o[0],N=o[1],B=o[2],L=o[3],K=o[4],X=0;X<80;++X){var F=Math.floor(X/20),oe=wo(k,5)+vu(F,N,B,L)+K+a[F]+$[X]>>>0;K=L,L=B,B=wo(N,30)>>>0,N=k,k=oe}o[0]=o[0]+k>>>0,o[1]=o[1]+N>>>0,o[2]=o[2]+B>>>0,o[3]=o[3]+L>>>0,o[4]=o[4]+K>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,o[0]&255,o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,o[1]&255,o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,o[2]&255,o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,o[3]&255,o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,o[4]&255]}var yu=fs("v5",80,mu);const bu=yu,wu="00000000-0000-0000-0000-000000000000";function Cu(t){if(!fi(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}const Su=Object.freeze(Object.defineProperty({__proto__:null,NIL:wu,parse:us,stringify:di,v1:iu,v3:hu,v4:gu,v5:bu,validate:fi,version:Cu},Symbol.toStringTag,{value:"Module"})),_u=Mo(Su);Object.defineProperty($o,"__esModule",{value:!0});var Eu=_u,on="",ps=16,Pu=function(){for(var t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=a.length,l=0;l<ps;l++)t+=a.charAt(Math.floor(Math.random()*o));return t},Iu=function(){if(!on){try{on=sessionStorage.getItem("giphyPingbackId")}catch{}if(!on){var t=new Date().getTime().toString(16);try{on=(""+t+Eu.v4().replace(/-/g,"")).substring(0,ps)}catch{on=Pu()}try{sessionStorage.setItem("giphyPingbackId",on)}catch{}}}return on};$o.default=Iu;var hs={},Uo={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.checkIfWebP=t.SUPPORTS_WEBP=void 0,t.SUPPORTS_WEBP=null,t.checkIfWebP=new Promise(function(a){typeof Image>"u"&&a(!1);var o=new Image;o.onload=function(){t.SUPPORTS_WEBP=!0,a(t.SUPPORTS_WEBP)},o.onerror=function(){t.SUPPORTS_WEBP=!1,a(t.SUPPORTS_WEBP)},o.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"})})(Uo);(function(t){var a=he&&he.__assign||function(){return a=Object.assign||function(O){for(var k,N=1,B=arguments.length;N<B;N++){k=arguments[N];for(var L in k)Object.prototype.hasOwnProperty.call(k,L)&&(O[L]=k[L])}return O},a.apply(this,arguments)},o=he&&he.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAltText=t.getGifWidth=t.getGifHeight=t.getBestRenditionUrl=t.getBestRendition=t.getBestVideo=t.getSpecificRendition=void 0;var l=o(Tn),u=ut,p=Uo,m=function(O,k,N,B){var L=O.images,K=O.is_sticker;if(N===void 0&&(N=!1),B===void 0&&(B=!1),!L||!k)return"";N=N&&!B;var X=L[""+k+(N?"_still":"")];if(X){if(K||N)return X.url;var F=p.SUPPORTS_WEBP&&X.webp;return B?X.mp4:F||X.url}return""};t.getSpecificRendition=m;var T=function(O,k,N){var B=O==null?void 0:O.assets;if(B){B=a({},B),delete B.source;var L=Object.values(B).sort(function(K,X){return K.width-X.width});return l.default(L,k,N)}};t.getBestVideo=T;var A=function(O,k,N){return O==="video"&&N&&N.previews&&!Object.keys(k).length?N.previews:k},b=function(O,k,N,B){var L=u.pick(O,["original","fixed_width","fixed_height","fixed_width_small","fixed_height_small"]),K=Object.entries(L).map(function(X){var F=X[0],oe=X[1];return a({renditionName:F},oe)});return l.default(K,k,N,B)};t.getBestRendition=b;var w=function(O,k,N,B){var L=O.images,K=O.video,X=O.type;if(B===void 0&&(B={isStill:!1,useVideo:!1}),!k||!N||!L)return"";var F=B.useVideo,oe=B.isStill,ue=B.scaleUpMaxPixels,se=A(X,L,K),W=t.getBestRendition(se,k,N,ue).renditionName,Se=""+W+(oe&&!F?"_still":""),ye=se[Se],ce=F?ye.mp4:p.SUPPORTS_WEBP&&ye.webp?ye.webp:ye.url;return ce||""};t.getBestRenditionUrl=w;var E=function(O,k){var N=O.images,B=N.fixed_width;if(B){var L=B.width,K=B.height,X=L/K;return Math.round(k/X)}return 0};t.getGifHeight=E;var $=function(O,k){var N=O.images,B=N.fixed_width;if(B){var L=B.width,K=B.height,X=L/K;return Math.round(k*X)}return 0};t.getGifWidth=$;var d=function(O){var k=O.user,N=O.tags,B=N===void 0?[]:N,L=O.is_sticker,K=L===void 0?!1:L,X=O.title,F=X===void 0?"":X;if(F)return F;var oe=k&&k.username||"",ue=u.take(u.without(B,["transparent"]),oe?4:5);return(oe?oe+" ":"")+ue.join(" ")+" "+(K?"Sticker":"GIF")};t.getAltText=d})(hs);var gs={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.appendGiphySDKRequestParam=t.appendGiphySDKRequestHeader=t.getGiphySDKRequestHeaders=void 0;var a=(typeof window<"u"?window:he)||{};a._GIPHY_SDK_HEADERS_=a._GIPHY_SDK_HEADERS_||(a.Headers?new a.Headers({"X-GIPHY-SDK-PLATFORM":"web"}):void 0);var o=function(){return a._GIPHY_SDK_HEADERS_};t.getGiphySDKRequestHeaders=o;var l=function(p,m){var T;return(T=t.getGiphySDKRequestHeaders())===null||T===void 0?void 0:T.set(p,m)};t.appendGiphySDKRequestHeader=l;var u=function(p,m){var T;return(T=t.getGiphySDKRequestHeaders())===null||T===void 0?void 0:T.set(p,m)};t.appendGiphySDKRequestParam=u})(gs);(function(t){var a=he&&he.__createBinding||(Object.create?function(b,w,E,$){$===void 0&&($=E),Object.defineProperty(b,$,{enumerable:!0,get:function(){return w[E]}})}:function(b,w,E,$){$===void 0&&($=E),b[$]=w[E]}),o=he&&he.__exportStar||function(b,w){for(var E in b)E!=="default"&&!Object.prototype.hasOwnProperty.call(w,E)&&a(w,b,E)},l=he&&he.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(t,"__esModule",{value:!0}),t.checkIfWebP=t.getSpecificRendition=t.getGifWidth=t.getGifHeight=t.getBestVideo=t.getBestRenditionUrl=t.getBestRendition=t.getAltText=t.getPingbackId=t.getClientRect=t.setRenditionScaleUpMaxPixels=t.bestfit=void 0;var u=Tn;Object.defineProperty(t,"bestfit",{enumerable:!0,get:function(){return l(u).default}}),Object.defineProperty(t,"setRenditionScaleUpMaxPixels",{enumerable:!0,get:function(){return u.setRenditionScaleUpMaxPixels}}),o(ut,t);var p=jo;Object.defineProperty(t,"getClientRect",{enumerable:!0,get:function(){return l(p).default}});var m=$o;Object.defineProperty(t,"getPingbackId",{enumerable:!0,get:function(){return l(m).default}});var T=hs;Object.defineProperty(t,"getAltText",{enumerable:!0,get:function(){return T.getAltText}}),Object.defineProperty(t,"getBestRendition",{enumerable:!0,get:function(){return T.getBestRendition}}),Object.defineProperty(t,"getBestRenditionUrl",{enumerable:!0,get:function(){return T.getBestRenditionUrl}}),Object.defineProperty(t,"getBestVideo",{enumerable:!0,get:function(){return T.getBestVideo}}),Object.defineProperty(t,"getGifHeight",{enumerable:!0,get:function(){return T.getGifHeight}}),Object.defineProperty(t,"getGifWidth",{enumerable:!0,get:function(){return T.getGifWidth}}),Object.defineProperty(t,"getSpecificRendition",{enumerable:!0,get:function(){return T.getSpecificRendition}}),o(Do,t),o(gs,t);var A=Uo;Object.defineProperty(t,"checkIfWebP",{enumerable:!0,get:function(){return A.checkIfWebP}})})(ke);var To="#121212",vs="#212121",Tu="#3e3e3e",Au="#4a4a4a",ms="#a6a6a6",Ou="#ececec",si="#ffffff",Ho="#00ccff",ys="#00ff99",bs="#9933ff",ws="#ff6666",Cs="#fff35c",Ru="#6157ff",ku=Object.defineProperty,xu=Object.defineProperties,Fu=Object.getOwnPropertyDescriptors,Lu=Object.getOwnPropertyNames,Wa=Object.getOwnPropertySymbols,Nu=Object.prototype.hasOwnProperty,Mu=Object.prototype.propertyIsEnumerable,Va=(t,a,o)=>a in t?ku(t,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[a]=o,St=(t,a)=>{for(var o in a||(a={}))Nu.call(a,o)&&Va(t,o,a[o]);if(Wa)for(var o of Wa(a))Mu.call(a,o)&&Va(t,o,a[o]);return t},Co=(t,a)=>xu(t,Fu(a)),Du=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(a,o)=>(typeof require<"u"?require:a)[o]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),ju=(t,a)=>function(){return a||(0,t[Lu(t)[0]])((a={exports:{}}).exports,a),a.exports},Ss=(t,a,o)=>new Promise((l,u)=>{var p=A=>{try{T(o.next(A))}catch(b){u(b)}},m=A=>{try{T(o.throw(A))}catch(b){u(b)}},T=A=>A.done?l(A.value):Promise.resolve(A.value).then(p,m);T((o=o.apply(t,a)).next())}),$u=ju({"package.json"(t,a){a.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.6.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":"*"},devDependencies:{"jest-fetch-mock":"^3.0.3","parcel-bundler":"latest",typedoc:"^0.20.37","typedoc-thunder-theme":"^0.0.3",typescript:"^5.0.4"}}}}),Uu=["is_anonymous","is_community","is_featured","is_hidden","is_indexable","is_preserve_size","is_realtime","is_removed","is_sticker","is_dynamic"],Hu=["suppress_chrome","is_public","is_verified"],qa=t=>a=>t[a]=!!t[a],Bu=t=>typeof t=="string"?t:t.text,_s=(t,a="")=>{const o=St({},t);o.id=String(o.id),o.tags=(o.tags||[]).map(Bu),o.bottle_data||(o.bottle_data={}),o.response_id=a,Uu.forEach(qa(o)),Object.keys(o.images||{}).forEach(u=>{const p=o.images[u];p.width=parseInt(p.width),p.height=parseInt(p.height)});const{user:l}=o;if(l){const u=St({},l);Hu.forEach(qa(u)),o.user=u}return o},za=t=>{const{response_id:a}=t.meta;return t.data=_s(t.data,a),t},Rt=t=>{const{response_id:a}=t.meta;return t.data=t.data.map(o=>_s(o,a)),t},Gu=(typeof window<"u"?window:global)||{},Wu=Gu.GIPHY_API_URL||"https://api.giphy.com/v1/",Es=class extends Error{constructor(a,o,l=0,u=""){super(a),this.url=o,this.status=l,this.statusText=u}},Vu=class extends Es{},Ka=Es,qu="@giphy/js-fetch-api: ",zu="Error fetching",Ku=t=>t,ht={},Xu=6e4,Zu=6e3,Ju=()=>{const t=Date.now();Object.keys(ht).forEach(a=>{const o=ht[a].isError?Zu:Xu;t-ht[a].ts>=o&&delete ht[a]})};function Qu(t,a={}){const{apiVersion:o=1,noCache:l=!1,normalizer:u=Ku}=a,p=Wu.replace(/\/v\d+\/$/,`/v${o}/`);if(Ju(),!ht[t]||l){const m=`${p}${t}`,T=()=>Ss(this,null,function*(){var A,b;let w;try{const E=yield fetch(m,{method:"get"});if(E.ok){const $=yield E.json();if((A=$.meta)!=null&&A.response_id)return u($);throw{message:"synthetic response"}}else{let $=zu;try{const O=yield E.json();O.message&&($=O.message),(b=O.meta)!=null&&b.msg&&($=O.meta.msg)}catch{}ht[t]&&(ht[t].isError=!0);let d=Ka;$==="This content is not available in your location"&&(d=Vu),w=new d(`${qu}${$}`,m,E.status,E.statusText)}}catch(E){w=new Ka(E.message,m),ht[t]&&(ht[t].isError=!0)}throw w});ht[t]={request:T(),ts:Date.now()}}return ht[t].request}var ot=Qu,So=t=>t&&t.type?t.type:"gifs",Yu=class{constructor(t,a={}){this.getQS=(o={})=>new URLSearchParams(St(Co(St({},o),{api_key:this.apiKey,pingback_id:ke.getPingbackId()}),this.qsParams)).toString(),this.apiKey=t,this.qsParams=a}categories(t){return ot(`gifs/categories?${this.getQS(t)}`)}gif(t,a){const o=a!=null&&a.internal?"internal/":"";return ot(`${o}gifs/${t}?${this.getQS()}`,{normalizer:za})}gifs(t,a){return Array.isArray(t)?ot(`gifs?${this.getQS({ids:t.join(",")})}`,{normalizer:Rt}):ot(`gifs/categories/${t}/${a}?${this.getQS()}`,{normalizer:Rt})}emoji(t){return ot(`emoji?${this.getQS(t)}`,{normalizer:Rt})}emojiDefaultVariations(t){return ot(`emoji?${this.getQS(t)}`,{apiVersion:2,normalizer:Rt})}emojiVariations(t){return ot(`emoji/${t}/variations?${this.getQS()}`,{apiVersion:2,normalizer:Rt})}animate(t,a={}){const o=this.getQS(Co(St({},a),{m:t}));return ot(`text/animate?${o}`,{normalizer:Rt})}search(t,a={}){const o=a.channel?`@${a.channel} ${t}`:t;let l;a.type==="text"&&(l=!0);const u=this.getQS(Co(St({rating:"pg-13"},a),{q:o,excludeDynamicResults:l}));return ot(`${So(a)}/search?${u}`,{normalizer:Rt})}subcategories(t,a){return ot(`gifs/categories/${t}?${this.getQS(a)}`)}trending(t={}){return ot(`${So(t)}/trending?${this.getQS(St({rating:"pg-13"},t))}`,{normalizer:Rt})}random(t){return ot(`${So(t)}/random?${this.getQS(St({rating:"pg-13"},t))}`,{noCache:!0,normalizer:za})}related(t,a={}){const{type:o="gifs"}=a;return ot(`${o}/related?${this.getQS(St({gif_id:t,rating:"pg-13"},a))}`,{normalizer:Rt})}channels(t,a={}){return ot(`channels/search?${this.getQS(St({q:t,rating:"pg-13"},a))}`)}},vp=Yu,Ao=(t,a=[])=>{const o=[...a],l=a.map(m=>m.id);let u=a.length,p=!1;return()=>Ss(void 0,null,function*(){if(p)return o;const m=yield t(u),{pagination:T,data:A}=m;return u=T.count+T.offset,p=u===T.total_count,A.forEach(b=>{const{id:w}=b;l.includes(w)||(o.push(b),l.push(w))}),[...o]})},Xa;if(typeof Du<"u"){const{version:t}=$u();(Xa=ke.getGiphySDKRequestHeaders())!=null&&Xa.get("X-GIPHY-SDK-NAME")||(ke.appendGiphySDKRequestHeader("X-GIPHY-SDK-NAME","FetchAPI"),ke.appendGiphySDKRequestHeader("X-GIPHY-SDK-VERSION",t))}function Oo(t,a,o,l){var u,p=!1,m=0;function T(){u&&clearTimeout(u)}function A(){T(),p=!0}typeof a!="boolean"&&(l=o,o=a,a=void 0);function b(){for(var w=arguments.length,E=new Array(w),$=0;$<w;$++)E[$]=arguments[$];var d=this,O=Date.now()-m;if(p)return;function k(){m=Date.now(),o.apply(d,E)}function N(){u=void 0}l&&!u&&k(),T(),l===void 0&&O>t?k():a!==!0&&(u=setTimeout(l?N:k,l===void 0?t-O:t))}return b.cancel=A,b}function Bo(t,a,o){return o===void 0?Oo(t,a,!1):Oo(t,o,a!==!1)}const ef=Object.freeze(Object.defineProperty({__proto__:null,debounce:Bo,throttle:Oo},Symbol.toStringTag,{value:"Module"}));var Cr={},Go={},an=he&&he.__assign||function(){return an=Object.assign||function(t){for(var a,o=1,l=arguments.length;o<l;o++){a=arguments[o];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])}return t},an.apply(this,arguments)};Object.defineProperty(Go,"__esModule",{value:!0});var Za=ke,tf=function(t,a,o){var l,u=Za.pick(t,[o]),p=Za.pick(a,[o]);return u[o]&&p[o]?an(an(an({},t),a),(l={},l[o]=u[o]+", "+p[o],l)):an(an({},t),a)};Go.default=tf;var Wo={};const nf=Mo(ef);var hi={};Object.defineProperty(hi,"__esModule",{value:!0});hi.default=(typeof window<"u"?window:he)||{};var gi={},rf=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gi,"__esModule",{value:!0});gi.sendPingback=void 0;var _o=ke,Eo=rf(hi),of=(Eo.default===null||Eo.default===void 0?void 0:Eo.default.GIPHY_PINGBACK_URL)||"https://pingback.giphy.com",af=of+"/v2/pingback?apikey=l0HlIwPWyBBUDAUgM",sf=function(t){var a=_o.getGiphySDKRequestHeaders();return a==null||a.set("Content-Type","application/json"),_o.Logger.debug("Pingback session",t),fetch(af,{method:"POST",body:JSON.stringify({events:t}),headers:a}).catch(function(o){_o.Logger.warn("pingbacks failing to post "+o)})};gi.sendPingback=sf;var lf=he&&he.__spreadArray||function(t,a){for(var o=0,l=a.length,u=t.length;o<l;o++,u++)t[u]=a[o];return t},cf=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Po;Object.defineProperty(Wo,"__esModule",{value:!0});var Ro=ke,uf=nf,ko=cf(hi),ff=gi,xo=[];ko.default.giphyRandomId=Ro.getPingbackId();var ii="";function Vo(){var t=lf([],xo);xo=[],ff.sendPingback(t)}var df=uf.debounce(1e3,Vo);(Po=ko.default.addEventListener)===null||Po===void 0||Po.call(ko.default,"beforeunload",Vo);var pf=function(t){var a=t.userId,o=t.eventType,l=t.actionType,u=t.attributes,p=t.queueEvents,m=p===void 0?!0:p,T=t.analyticsResponsePayload;ii=a?String(a):ii;var A={ts:Date.now(),attributes:u,action_type:l,user_id:Ro.getPingbackId(),analytics_response_payload:T};ii&&(A.logged_in_user_id=ii),A.analytics_response_payload&&(A.analytics_response_payload=""+A.analytics_response_payload+(Ro.Logger.ENABLED?"&mode=verification":"")),o&&(A.event_type=o),xo.push(A),m?df():Vo()};Wo.default=pf;var Ps={};Object.defineProperty(Ps,"__esModule",{value:!0});(function(t){var a=he&&he.__createBinding||(Object.create?function(m,T,A,b){b===void 0&&(b=A),Object.defineProperty(m,b,{enumerable:!0,get:function(){return T[A]}})}:function(m,T,A,b){b===void 0&&(b=A),m[b]=T[A]}),o=he&&he.__exportStar||function(m,T){for(var A in m)A!=="default"&&!Object.prototype.hasOwnProperty.call(T,A)&&a(T,m,A)},l=he&&he.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0}),t.pingback=t.mergeAttributes=void 0;var u=Go;Object.defineProperty(t,"mergeAttributes",{enumerable:!0,get:function(){return l(u).default}});var p=Wo;Object.defineProperty(t,"pingback",{enumerable:!0,get:function(){return l(p).default}}),o(Ps,t)})(Cr);var Fo=function(t,a){return Fo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(o[u]=l[u])},Fo(t,a)};function Is(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");Fo(t,a);function o(){this.constructor=t}t.prototype=a===null?Object.create(a):(o.prototype=a.prototype,new o)}var ci=function(){return ci=Object.assign||function(a){for(var o,l=1,u=arguments.length;l<u;l++){o=arguments[l];for(var p in o)Object.prototype.hasOwnProperty.call(o,p)&&(a[p]=o[p])}return a},ci.apply(this,arguments)};function Ts(t,a){var o={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&a.indexOf(l)<0&&(o[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(t);u<l.length;u++)a.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(t,l[u])&&(o[l[u]]=t[l[u]]);return o}function As(t,a,o,l){var u=arguments.length,p=u<3?a:l===null?l=Object.getOwnPropertyDescriptor(a,o):l,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(t,a,o,l);else for(var T=t.length-1;T>=0;T--)(m=t[T])&&(p=(u<3?m(p):u>3?m(a,o,p):m(a,o))||p);return u>3&&p&&Object.defineProperty(a,o,p),p}function Os(t,a){return function(o,l){a(o,l,t)}}function hf(t,a,o,l,u,p){function m(B){if(B!==void 0&&typeof B!="function")throw new TypeError("Function expected");return B}for(var T=l.kind,A=T==="getter"?"get":T==="setter"?"set":"value",b=!a&&t?l.static?t:t.prototype:null,w=a||(b?Object.getOwnPropertyDescriptor(b,l.name):{}),E,$=!1,d=o.length-1;d>=0;d--){var O={};for(var k in l)O[k]=k==="access"?{}:l[k];for(var k in l.access)O.access[k]=l.access[k];O.addInitializer=function(B){if($)throw new TypeError("Cannot add initializers after decoration has completed");p.push(m(B||null))};var N=(0,o[d])(T==="accessor"?{get:w.get,set:w.set}:w[A],O);if(T==="accessor"){if(N===void 0)continue;if(N===null||typeof N!="object")throw new TypeError("Object expected");(E=m(N.get))&&(w.get=E),(E=m(N.set))&&(w.set=E),(E=m(N.init))&&u.unshift(E)}else(E=m(N))&&(T==="field"?u.unshift(E):w[A]=E)}b&&Object.defineProperty(b,l.name,w),$=!0}function gf(t,a,o){for(var l=arguments.length>2,u=0;u<a.length;u++)o=l?a[u].call(t,o):a[u].call(t);return l?o:void 0}function vf(t){return typeof t=="symbol"?t:"".concat(t)}function mf(t,a,o){return typeof a=="symbol"&&(a=a.description?"[".concat(a.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:o?"".concat(o," ",a):a})}function Rs(t,a){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,a)}function ks(t,a,o,l){function u(p){return p instanceof o?p:new o(function(m){m(p)})}return new(o||(o=Promise))(function(p,m){function T(w){try{b(l.next(w))}catch(E){m(E)}}function A(w){try{b(l.throw(w))}catch(E){m(E)}}function b(w){w.done?p(w.value):u(w.value).then(T,A)}b((l=l.apply(t,a||[])).next())})}function xs(t,a){var o={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},l,u,p,m;return m={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function T(b){return function(w){return A([b,w])}}function A(b){if(l)throw new TypeError("Generator is already executing.");for(;m&&(m=0,b[0]&&(o=0)),o;)try{if(l=1,u&&(p=b[0]&2?u.return:b[0]?u.throw||((p=u.return)&&p.call(u),0):u.next)&&!(p=p.call(u,b[1])).done)return p;switch(u=0,p&&(b=[b[0]&2,p.value]),b[0]){case 0:case 1:p=b;break;case 4:return o.label++,{value:b[1],done:!1};case 5:o.label++,u=b[1],b=[0];continue;case 7:b=o.ops.pop(),o.trys.pop();continue;default:if(p=o.trys,!(p=p.length>0&&p[p.length-1])&&(b[0]===6||b[0]===2)){o=0;continue}if(b[0]===3&&(!p||b[1]>p[0]&&b[1]<p[3])){o.label=b[1];break}if(b[0]===6&&o.label<p[1]){o.label=p[1],p=b;break}if(p&&o.label<p[2]){o.label=p[2],o.ops.push(b);break}p[2]&&o.ops.pop(),o.trys.pop();continue}b=a.call(t,o)}catch(w){b=[6,w],u=0}finally{l=p=0}if(b[0]&5)throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}}var vi=Object.create?function(t,a,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(a,o);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[o]}}),Object.defineProperty(t,l,u)}:function(t,a,o,l){l===void 0&&(l=o),t[l]=a[o]};function Fs(t,a){for(var o in t)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&vi(a,t,o)}function ui(t){var a=typeof Symbol=="function"&&Symbol.iterator,o=a&&t[a],l=0;if(o)return o.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&l>=t.length&&(t=void 0),{value:t&&t[l++],done:!t}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function qo(t,a){var o=typeof Symbol=="function"&&t[Symbol.iterator];if(!o)return t;var l=o.call(t),u,p=[],m;try{for(;(a===void 0||a-- >0)&&!(u=l.next()).done;)p.push(u.value)}catch(T){m={error:T}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(m)throw m.error}}return p}function Ls(){for(var t=[],a=0;a<arguments.length;a++)t=t.concat(qo(arguments[a]));return t}function Ns(){for(var t=0,a=0,o=arguments.length;a<o;a++)t+=arguments[a].length;for(var l=Array(t),u=0,a=0;a<o;a++)for(var p=arguments[a],m=0,T=p.length;m<T;m++,u++)l[u]=p[m];return l}function Ms(t,a,o){if(o||arguments.length===2)for(var l=0,u=a.length,p;l<u;l++)(p||!(l in a))&&(p||(p=Array.prototype.slice.call(a,0,l)),p[l]=a[l]);return t.concat(p||Array.prototype.slice.call(a))}function In(t){return this instanceof In?(this.v=t,this):new In(t)}function Ds(t,a,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=o.apply(t,a||[]),u,p=[];return u={},T("next"),T("throw"),T("return",m),u[Symbol.asyncIterator]=function(){return this},u;function m(d){return function(O){return Promise.resolve(O).then(d,E)}}function T(d,O){l[d]&&(u[d]=function(k){return new Promise(function(N,B){p.push([d,k,N,B])>1||A(d,k)})},O&&(u[d]=O(u[d])))}function A(d,O){try{b(l[d](O))}catch(k){$(p[0][3],k)}}function b(d){d.value instanceof In?Promise.resolve(d.value.v).then(w,E):$(p[0][2],d)}function w(d){A("next",d)}function E(d){A("throw",d)}function $(d,O){d(O),p.shift(),p.length&&A(p[0][0],p[0][1])}}function js(t){var a,o;return a={},l("next"),l("throw",function(u){throw u}),l("return"),a[Symbol.iterator]=function(){return this},a;function l(u,p){a[u]=t[u]?function(m){return(o=!o)?{value:In(t[u](m)),done:!1}:p?p(m):m}:p}}function $s(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=t[Symbol.asyncIterator],o;return a?a.call(t):(t=typeof ui=="function"?ui(t):t[Symbol.iterator](),o={},l("next"),l("throw"),l("return"),o[Symbol.asyncIterator]=function(){return this},o);function l(p){o[p]=t[p]&&function(m){return new Promise(function(T,A){m=t[p](m),u(T,A,m.done,m.value)})}}function u(p,m,T,A){Promise.resolve(A).then(function(b){p({value:b,done:T})},m)}}function Us(t,a){return Object.defineProperty?Object.defineProperty(t,"raw",{value:a}):t.raw=a,t}var yf=Object.create?function(t,a){Object.defineProperty(t,"default",{enumerable:!0,value:a})}:function(t,a){t.default=a};function Hs(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var o in t)o!=="default"&&Object.prototype.hasOwnProperty.call(t,o)&&vi(a,t,o);return yf(a,t),a}function Bs(t){return t&&t.__esModule?t:{default:t}}function Gs(t,a,o,l){if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?t!==a||!l:!a.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?l:o==="a"?l.call(t):l?l.value:a.get(t)}function Ws(t,a,o,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?t!==a||!u:!a.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(t,o):u?u.value=o:a.set(t,o),o}function Vs(t,a){if(a===null||typeof a!="object"&&typeof a!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?a===t:t.has(a)}function qs(t,a,o){if(a!=null){if(typeof a!="object"&&typeof a!="function")throw new TypeError("Object expected.");var l,u;if(o){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");l=a[Symbol.asyncDispose]}if(l===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");l=a[Symbol.dispose],o&&(u=l)}if(typeof l!="function")throw new TypeError("Object not disposable.");u&&(l=function(){try{u.call(this)}catch(p){return Promise.reject(p)}}),t.stack.push({value:a,dispose:l,async:o})}else o&&t.stack.push({async:!0});return a}var bf=typeof SuppressedError=="function"?SuppressedError:function(t,a,o){var l=new Error(o);return l.name="SuppressedError",l.error=t,l.suppressed=a,l};function zs(t){function a(l){t.error=t.hasError?new bf(l,t.error,"An error was suppressed during disposal."):l,t.hasError=!0}function o(){for(;t.stack.length;){var l=t.stack.pop();try{var u=l.dispose&&l.dispose.call(l.value);if(l.async)return Promise.resolve(u).then(o,function(p){return a(p),o()})}catch(p){a(p)}}if(t.hasError)throw t.error}return o()}const wf={__extends:Is,__assign:ci,__rest:Ts,__decorate:As,__param:Os,__metadata:Rs,__awaiter:ks,__generator:xs,__createBinding:vi,__exportStar:Fs,__values:ui,__read:qo,__spread:Ls,__spreadArrays:Ns,__spreadArray:Ms,__await:In,__asyncGenerator:Ds,__asyncDelegator:js,__asyncValues:$s,__makeTemplateObject:Us,__importStar:Hs,__importDefault:Bs,__classPrivateFieldGet:Gs,__classPrivateFieldSet:Ws,__classPrivateFieldIn:Vs,__addDisposableResource:qs,__disposeResources:zs},Cf=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:qs,get __assign(){return ci},__asyncDelegator:js,__asyncGenerator:Ds,__asyncValues:$s,__await:In,__awaiter:ks,__classPrivateFieldGet:Gs,__classPrivateFieldIn:Vs,__classPrivateFieldSet:Ws,__createBinding:vi,__decorate:As,__disposeResources:zs,__esDecorate:hf,__exportStar:Fs,__extends:Is,__generator:xs,__importDefault:Bs,__importStar:Hs,__makeTemplateObject:Us,__metadata:Rs,__param:Os,__propKey:vf,__read:qo,__rest:Ts,__runInitializers:gf,__setFunctionName:mf,__spread:Ls,__spreadArray:Ms,__spreadArrays:Ns,__values:ui,default:wf},Symbol.toStringTag,{value:"Module"})),Sf=Mo(Cf);var oi={},Ja;function _f(){if(Ja)return oi;Ja=1,Object.defineProperty(oi,"__esModule",{value:!0});var t=J;function a(o,l){l===void 0&&(l=0);var u=t.useRef(!1),p=t.useRef(),m=t.useRef(o),T=t.useCallback(function(){return u.current},[]),A=t.useCallback(function(){u.current=!1,p.current&&clearTimeout(p.current),p.current=setTimeout(function(){u.current=!0,m.current()},l)},[l]),b=t.useCallback(function(){u.current=null,p.current&&clearTimeout(p.current)},[]);return t.useEffect(function(){m.current=o},[o]),t.useEffect(function(){return A(),b},[l]),[T,b,A]}return oi.default=a,oi}var Ef=_f();const Pf=os(Ef);var Ks={},ai={},ct={},Qa;function If(){if(Qa)return ct;Qa=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.isNavigator=ct.isBrowser=ct.off=ct.on=ct.noop=void 0;var t=function(){};ct.noop=t;function a(l){for(var u=[],p=1;p<arguments.length;p++)u[p-1]=arguments[p];l&&l.addEventListener&&l.addEventListener.apply(l,u)}ct.on=a;function o(l){for(var u=[],p=1;p<arguments.length;p++)u[p-1]=arguments[p];l&&l.removeEventListener&&l.removeEventListener.apply(l,u)}return ct.off=o,ct.isBrowser=typeof window<"u",ct.isNavigator=typeof navigator<"u",ct}var Ya;function Tf(){if(Ya)return ai;Ya=1,Object.defineProperty(ai,"__esModule",{value:!0});var t=J,a=If(),o=a.isBrowser?t.useLayoutEffect:t.useEffect;return ai.default=o,ai}Object.defineProperty(Ks,"__esModule",{value:!0});var Af=Sf,Of=J,Rf=Af.__importDefault(Tf()),kf=function(t,a){t===void 0&&(t=1e12),a===void 0&&(a=0);var o=Of.useState(0),l=o[0],u=o[1];return Rf.default(function(){var p,m,T,A=function(){var $=Math.min(1,(Date.now()-T)/t);u($),b()},b=function(){p=requestAnimationFrame(A)},w=function(){m=setTimeout(function(){cancelAnimationFrame(p),u(1)},t),T=Date.now(),b()},E=setTimeout(w,a);return function(){clearTimeout(m),clearTimeout(E),cancelAnimationFrame(p)}},[t,a]),l},xf=Ks.default=kf,Ff=Object.defineProperty,Lf=Object.defineProperties,Nf=Object.getOwnPropertyDescriptors,es=Object.getOwnPropertySymbols,Mf=Object.prototype.hasOwnProperty,Df=Object.prototype.propertyIsEnumerable,ts=(t,a,o)=>a in t?Ff(t,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[a]=o,Bt=(t,a)=>{for(var o in a||(a={}))Mf.call(a,o)&&ts(t,o,a[o]);if(es)for(var o of es(a))Df.call(a,o)&&ts(t,o,a[o]);return t},zo=(t,a)=>Lf(t,Nf(a)),Ko=(t,a,o)=>new Promise((l,u)=>{var p=A=>{try{T(o.next(A))}catch(b){u(b)}},m=A=>{try{T(o.throw(A))}catch(b){u(b)}},T=A=>A.done?l(A.value):Promise.resolve(A.value).then(p,m);T((o=o.apply(t,a)).next())}),jf=t=>{var a,o;if(!t)return"";const l=(o=(a=t==null?void 0:t.split("."))==null?void 0:a.pop())==null?void 0:o.toLowerCase();return t.replace(`.${l}`,`/80h.${l}`)},$f=te.img`
    object-fit: cover;
    width: 32px;
    height: 32px;
    margin-right: 8px;
`,Uf=({user:t,className:a=""})=>{const o=J.useRef(Math.floor(Math.random()*5)+1),l=t.avatar_url?jf(t.avatar_url):`https://media.giphy.com/avatars/default${o.current}.gif`;return j.createElement($f,{src:l,className:a})},mi=Uf,yr=({className:t="",size:a=17,fill:o="#15CDFF"})=>j.createElement("svg",{className:[yr.className,t].join(" "),height:a,width:"19px",viewBox:"0 0 19 17"},j.createElement("path",{className:yr.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:To,transform:"translate(9.327273, 7.609524) scale(-1, 1) rotate(-45.000000) translate(-9.327273, -7.609524) "}),j.createElement("g",{transform:"translate(-532.000000, -466.000000)",fill:o},j.createElement("g",{transform:"translate(141.000000, 235.000000)"},j.createElement("g",{transform:"translate(264.000000, 0.000000)"},j.createElement("g",{transform:"translate(10.000000, 224.000000)"},j.createElement("g",{transform:"translate(114.000000, 2.500000)"},j.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"})))))));yr.className="giphy-verified-badge";yr.checkMarkClassName="giphy-verified-checkmark";var Lo=yr,Hf=te.div`
    color: white;
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
`,Bf=te(Lo)`
    margin-left: 4px;
    flex-shrink: 0;
`,Gf=te.div`
    display: flex;
    align-items: center;
    min-width: 0;
`,Wf=({user:t})=>{const{display_name:a,username:o}=t;return j.createElement(Gf,null,j.createElement(Hf,null,a||`@${o}`),t.is_verified?j.createElement(Bf,{size:14}):null)},Xs=Wf,Vf=te.div`
    display: flex;
    align-items: center;
    font-family: interface, helvetica, arial;
`,qf=te(mi)`
    flex-shrink: 0;
`,Xo=({gif:t,className:a,onClick:o})=>{const{user:l}=t;return!(l!=null&&l.username)&&!(l!=null&&l.display_name)?null:j.createElement(Vf,{className:[Xo.className,a].join(" "),onClick:u=>{if(u.preventDefault(),u.stopPropagation(),o)o(t);else{const p=l.profile_url;p&&window.open(p,"_blank")}}},j.createElement(qf,{user:l}),j.createElement(Xs,{user:t.user}))};Xo.className="giphy-attribution";var zf=Xo,Kf=te.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;
`,Xf=te(zf)`
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
`,Zf=te.div`
    transition: opacity 150ms ease-in;
`,Jf=({gif:t,isHovered:a,onClick:o})=>{const l=J.useRef(a);return a&&(l.current=!0),t.user&&l.current?j.createElement(Zf,{style:{opacity:a?1:0}},j.createElement(Kf,null),j.createElement(Xf,{gif:t,onClick:o})):null},Qf=Jf,Yf=({children:t,className:a,onVisibleChange:o,config:l})=>{const u=J.useRef(null);return J.useEffect(()=>{let p;return u.current&&(p=new IntersectionObserver(([m])=>{o&&o(m.isIntersecting)},l),p.observe(u.current)),()=>p==null?void 0:p.disconnect()},[o,u,l]),j.createElement("div",{ref:u,className:a},t)},Zs=Yf,Js=t=>(a,o,l,u={})=>{a.analytics_response_payload&&Cr.pingback({analyticsResponsePayload:a.analytics_response_payload,userId:o,actionType:t,attributes:Bt({position:JSON.stringify(ke.getClientRect(l))},u)})},ed=(t,a,o,l={})=>{t.analytics_response_payload&&Cr.pingback({analyticsResponsePayload:t.analytics_response_payload,userId:a,actionType:"SEEN",attributes:Bt({position:JSON.stringify(o)},l)})},td=Js("CLICK"),nd=Js("HOVER"),No=J.createContext({}),rd=({attributes:t,children:a})=>{const{attributes:o={}}=J.useContext(No);return j.createElement(No.Provider,{value:{attributes:Cr.mergeAttributes(o,t,"layout_type")}},a)},Qs=rd,id=te.div`
    position: relative;
    display: block;
    picture {
        display: block;
        width: 100%;
        height: 100%;
    }
    img {
        display: block;
    }
    .${Lo.className} {
        g {
            fill: white;
        }
    }
    .${Lo.checkMarkClassName} {
        opacity: 0;
    }
`,ns=[Ho,ys,bs,ws,Cs],od=()=>ns[Math.round(Math.random()*(ns.length-1))],ad=200,rs="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",sd=!!(typeof window<"u"&&window.document&&window.document.createElement),Pn=()=>{},ld=({children:t})=>{const[a,o]=J.useState(!1);return J.useEffect(()=>{o(!0)},[]),a?j.createElement(j.Fragment,null,t):null},sn=({gif:t,gif:{bottle_data:a={}},width:o,percentWidth:l,height:u,onGifRightClick:p=Pn,className:m="",onGifClick:T=Pn,onGifKeyPress:A=Pn,onGifSeen:b=Pn,onGifVisible:w=Pn,user:E={},backgroundColor:$,overlay:d,hideAttribution:O=!1,noLink:k=!1,borderRadius:N=4,style:B,tabIndex:L})=>{var K;const[X,F]=J.useState(!1),[oe,ue]=J.useState(!1),[se,W]=J.useState(!sd),[Se,ye]=J.useState(""),ce=J.useRef(od()),je=J.useRef(null),nt=J.useRef(null),we=J.useRef(),xe=J.useRef(),ve=J.useRef(),Ve=J.useRef(Pn),_e=Object.keys(a).length>0,{attributes:Pe}=J.useContext(No);let ft=d;!ft&&!O&&(ft=Qf);const at=G=>{clearTimeout(ve.current),G.persist(),ue(!0),ve.current=window.setTimeout(()=>{nd(t,E==null?void 0:E.id,G.target,Pe)},ad)},gt=()=>{clearTimeout(ve.current),ue(!1)},I=G=>{td(t,E==null?void 0:E.id,G.target,Pe),T(t,G)},Fe=G=>{A(t,G)};Ve.current=G=>{F(!0),ke.Logger.debug(`GIF ${t.id} seen. ${t.title}`),ed(t,E==null?void 0:E.id,G.boundingClientRect,Pe),b==null||b(t,G.boundingClientRect),xe.current&&xe.current.disconnect()};const _t=()=>{xe.current||(xe.current=new IntersectionObserver(([G])=>{G.isIntersecting&&Ve.current(G)},{threshold:[.99]})),!X&&je.current&&xe.current&&xe.current.observe(je.current)},dt=G=>{_t(),w(t,G),ye(sn.imgLoadedClassName)};J.useEffect(()=>{var G,st;(G=nt.current)!=null&&G.complete&&(_t(),w(t)),(st=xe.current)==null||st.disconnect(),F(!1)},[t.id]),J.useEffect(()=>(we.current=new IntersectionObserver(([G])=>{const{isIntersecting:st}=G;W(st),!st&&xe.current&&xe.current.disconnect()}),we.current.observe(je.current),()=>{we.current&&we.current.disconnect(),xe.current&&xe.current.disconnect(),ve.current&&clearTimeout(ve.current)}),[]);const ee=u||ke.getGifHeight(t,o);let fe;l&&(fe=`${Math.round(ee/o*100)}%`);const qe=ke.getBestRendition(t.images,o,ee),ze=t.images[qe.renditionName],pt=$||(t.is_sticker?"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4AQMAAACSSKldAAAABlBMVEUhIiIWFhYoSqvJAAAAGElEQVQY02MAAv7///8PWxqIPwDZw5UGABtgwz2xhFKxAAAAAElFTkSuQmCC') 0 0":ce.current),kt=N?"hidden":"unset";return j.createElement(id,{as:k?"div":"a",href:k?void 0:t.url,"data-giphy-id":t.id,"data-giphy-is-sticker":t.is_sticker,style:Bt({width:l||o,height:fe||ee,overflow:kt,borderRadius:N},B),className:[sn.className,m].join(" "),onMouseOver:at,onMouseLeave:gt,onClick:I,onContextMenu:G=>p(t,G),onKeyPress:Fe,tabIndex:L,ref:je},j.createElement("picture",null,j.createElement("source",{type:"image/webp",srcSet:se?ze.webp:rs,suppressHydrationWarning:!0}),j.createElement("img",{ref:nt,suppressHydrationWarning:!0,className:[sn.imgClassName,Se].join(" "),src:se?ze.url:rs,style:{background:pt},width:"100%",height:"100%",alt:ke.getAltText(t),onLoad:se?dt:()=>{}}),_e&&((K=a==null?void 0:a.tags)==null?void 0:K.map((G,st)=>j.createElement("div",{dangerouslySetInnerHTML:{__html:G},key:st})))),ft&&j.createElement(ld,null,se&&j.createElement(ft,{gif:t,isHovered:oe,width:o,height:ee})))};sn.className="giphy-gif";sn.imgClassName="giphy-gif-img";sn.imgLoadedClassName="giphy-img-loaded";var br=sn,cd=te.div`
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    position: relative;
`,ud=te(br)`
    position: relative;
    display: inline-block;
    list-style: none;
    margin-left: ${t=>t.$ml}px;
    /* make sure gifs are fully visible with a scrollbar */
    margin-bottom: 1px;

    &:first-of-type {
        margin-left: 0;
    }
    .${br.imgClassName} {
        position: absolute;
        top: 0;
        left: 0;
    }
`,fd=te(Zs)`
    display: inline-block;
`,dd=te.div`
    width: 30px;
    display: inline-block;
    opacity: ${t=>t.$isFirstLoad?0:1};
    height: ${t=>t.$height}px;
`,pd=Object.freeze({gutter:6,user:{},initialGifs:[]}),hd=Object.freeze({isFetching:!1,gifs:[],isLoaderVisible:!1,isDoneFetching:!1}),Zo=class Ys extends J.PureComponent{constructor(){super(...arguments),this.state=zo(Bt({},hd),{gifs:this.props.initialGifs||[]}),this.unmounted=!1,this.paginator=Ao(this.props.fetchGifs,this.state.gifs),this.onLoaderVisible=a=>{this.unmounted||this.setState({isLoaderVisible:a},this.onFetch)},this.onFetch=Bo(100,()=>Ko(this,null,function*(){if(this.unmounted)return;const{isFetching:a,isLoaderVisible:o,gifs:l}=this.state;if(!a&&o){this.setState({isFetching:!0});let u;try{u=yield this.paginator()}catch{this.setState({isFetching:!1})}if(u)if(l.length===u.length)this.setState({isDoneFetching:!0});else{this.setState({gifs:u,isFetching:!1});const{onGifsFetched:p}=this.props;p&&p(u),this.onFetch()}}}))}componentDidMount(){this.unmounted=!1,this.onFetch()}componentWillUnmount(){this.unmounted=!0}render(){const{onGifVisible:a,onGifRightClick:o,gifHeight:l,gifWidth:u,gutter:p,className:m=Ys.className,onGifSeen:T,onGifClick:A,onGifKeyPress:b,user:w,overlay:E,hideAttribution:$,noLink:d,noResultsMessage:O,backgroundColor:k,borderRadius:N,tabIndex:B=0,loaderConfig:L,fetchPriority:K}=this.props,{gifs:X,isDoneFetching:F}=this.state,oe=!F,ue=X.length===0;return j.createElement(Qs,{attributes:{layout_type:"CAROUSEL"}},j.createElement(cd,{className:m},X.map(se=>j.createElement(ud,{gif:se,key:se.id,tabIndex:B,width:u||ke.getGifWidth(se,l),height:l,onGifClick:A,onGifKeyPress:b,onGifSeen:T,onGifVisible:a,onGifRightClick:o,user:w,$ml:p,overlay:E,hideAttribution:$,noLink:d,borderRadius:N,backgroundColor:k,fetchPriority:K})),!oe&&X.length===0&&O,oe&&j.createElement(fd,{onVisibleChange:this.onLoaderVisible,config:L},j.createElement(dd,{$isFirstLoad:ue,$height:l}))))}};Zo.className="giphy-carousel";Zo.defaultProps=pd;var gd=Zo,mp=gd,vd=te.div`
    color: ${ms};
    display: flex;
    justify-content: center;
    margin: 30px 0;
    font-family: interface, Helvetica Neue, helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    a {
        color: ${Ho};
        cursor: pointer;
        &:hover {
            color: white;
        }
    }
`,md=({onClick:t})=>j.createElement(vd,null,"Error loading GIFs. ",j.createElement("a",{onClick:t},"Try again?")),yd=md,bd=.75;te.div`
    align-items: center;
    background-color: ${({$backgroundColor:t})=>t};
    border-radius: 16px;
    display: flex;
    max-width: fit-content;
    overflow: hidden;
    padding: 4px 5px 5px 6px;
`;te.div`
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
`;te.div`
    display: inline-flex;
    justify-content: space-between;
    overflow: hidden;
    white-space: nowrap;
    width: ${({$width:t})=>`${t}px`};
`;te.div`
    background-color: ${({$color:t})=>t};
    box-sizing: border-box;
    height: ${({$gifHeight:t})=>`${Math.round(t*bd)}px`};
    margin: ${({$gutter:t})=>`0 ${t}px`};
    width: 2px;
`;te(br)`
    display: inline-block;
    flex-shrink: 0;
    list-style: none;
    /* make sure gifs are fully visible with a scrollbar */
    margin-bottom: 1px;
    position: relative;

    .${br.imgClassName} {
        position: absolute;
        top: 0;
        left: 0;
    }
`;var wd=wr`
     to {
    transform: scale(1.75) translateY(-20px);
  }
`,el=37,Cd=te.div`
    display: flex;
    align-items: center;
    height: ${el}px;
    padding-top: 15px;
    margin: 0 auto;
    text-align: center;
    justify-content: center;
    animation: pulse 0.8s ease-in-out 0s infinite alternate backwards;
`,mr=te.div`
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: ${el}px 10px 10px 10px;
    position: relative;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
    animation: ${wd} cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.75s infinite alternate;
    background: ${t=>t.$color};
    animation-delay: ${t=>t.$delay};
`,Sd=({className:t=""})=>j.createElement(Cd,{className:t},j.createElement(mr,{$color:ys,$delay:"0"}),j.createElement(mr,{$color:Ho,$delay:".1s"}),j.createElement(mr,{$color:bs,$delay:".2s"}),j.createElement(mr,{$color:ws,$delay:".3s"}),j.createElement(mr,{$color:Cs,$delay:".4s"})),_d=Sd;function Ed(t,a=[]){return Array.apply(null,Array(t)).map((o,l)=>a[l]||0)}var Pd=({columns:t,gutter:a,useTransform:o=!0,itemWidth:l,itemHeights:u,children:p,columnOffsets:m=[]})=>{const T={};function A(){let b;const w=Ed(t,m),E=j.Children.map(p,($,d)=>{const O={position:"absolute"};b=w.indexOf(Math.min.apply(Math,w));const k=`${w[b]}px`,N=`${b*l+b*a}px`;o?O.transform=`translate3d(${N}, ${k}, 0)`:(O.top=k,O.left=N);const B=u[d];return B&&(w[b]+=B+a),j.cloneElement($,{style:O})});return T.position="relative",T.width=`${t*l+(t-1)*a}px`,T.height=`${Math.max.apply(Math,w)-a}px`,E}return j.createElement("div",{style:T},A())},Id=J.memo(Pd),Td=te.div`
    opacity: ${t=>t.$isFirstLoad?0:1};
`,Ad=Object.freeze({gutter:6,user:{},initialGifs:[]}),Od=Object.freeze({isFetching:!1,isError:!1,gifWidth:0,gifs:[],isLoaderVisible:!1,isDoneFetching:!1}),Sr=class li extends J.PureComponent{constructor(){super(...arguments),this.state=zo(Bt({},Od),{gifs:this.props.initialGifs||[]}),this.unmounted=!1,this.paginator=Ao(this.props.fetchGifs,this.state.gifs),this.onLoaderVisible=a=>{this.unmounted||this.setState({isLoaderVisible:a},this.onFetch)},this.onFetch=Bo(li.fetchDebounce,()=>Ko(this,null,function*(){if(this.unmounted)return;const{isFetching:a,isLoaderVisible:o}=this.state,{externalGifs:l,fetchGifs:u}=this.props,p=(l||this.state.gifs).length;if(l&&(this.paginator=Ao(u,l)),!a&&o){this.setState({isFetching:!0,isError:!1});let m;try{if(m=yield this.paginator(),this.unmounted)return}catch(T){if(this.unmounted)return;this.setState({isFetching:!1,isError:!0});const{onGifsFetchError:A}=this.props;A&&A(T)}if(m)if(p===m.length)this.setState({isDoneFetching:!0});else{this.setState({gifs:m,isFetching:!1});const{onGifsFetched:T}=this.props;T&&T(m),this.onFetch()}}}))}componentDidMount(){this.unmounted=!1,this.onFetch()}componentWillUnmount(){this.unmounted=!0}render(){const{onGifVisible:a,onGifRightClick:o,className:l=li.className,onGifSeen:u,onGifClick:p,onGifKeyPress:m,user:T,overlay:A,hideAttribution:b,noLink:w,borderRadius:E,noResultsMessage:$,columns:d,width:O,gutter:k,useTransform:N,columnOffsets:B,backgroundColor:L,loaderConfig:K,tabIndex:X=0,layoutType:F="GRID",loader:oe=_d,fetchPriority:ue}=this.props,{gifWidth:se,gifs:W,isError:Se,isDoneFetching:ye}=this.state,ce=!ye,je=W.length===0,nt=W.map(we=>ke.getGifHeight(we,se));return j.createElement(Qs,{attributes:{layout_type:F}},j.createElement("div",{className:l,style:{width:O}},j.createElement(Id,{itemHeights:nt,useTransform:N,itemWidth:se,columns:d,gutter:k,columnOffsets:B},W.map(we=>j.createElement(br,{gif:we,tabIndex:X,key:we.id,width:se,onGifClick:p,onGifKeyPress:m,onGifSeen:u,onGifVisible:a,onGifRightClick:o,user:T,overlay:A,backgroundColor:L,hideAttribution:b,noLink:w,borderRadius:E,fetchPriority:ue}))),!ce&&W.length===0&&$,Se?j.createElement(yd,{onClick:this.onFetch}):ce&&j.createElement(Zs,{onVisibleChange:this.onLoaderVisible,config:K},j.createElement(Td,{$isFirstLoad:je},j.createElement(oe,{className:li.loaderClassName})))))}};Sr.className="giphy-grid";Sr.loaderClassName="loader";Sr.fetchDebounce=250;Sr.defaultProps=Ad;Sr.getDerivedStateFromProps=({columns:t,gutter:a,width:o,externalGifs:l},u)=>{const p=a*(t-1),m=Math.floor((o-p)/t);return u.gifWidth!==m?{gifWidth:m}:l&&l!==u.gifs?{gifs:l}:null};var Ne={searchbarHeight:"--searchbar-height",bgColor:"--searchbar-bg-color",bgColor2:"--searchbar-bg-color-2",fgColor:"--searchbar-fg-color",cancelButtonDisplay:"--searchbar-cancel-button-display"};te.div`
    ${Ne.searchbarHeight}: ${t=>t.$searchbarHeight||42}px;
    @media (${t=>t.$mobileMediaQuery}) {
        ${Ne.searchbarHeight}: ${t=>t.$mobileSearchbarHeight||35}px;
    }
    ${Ne.bgColor}: ${si};
    ${Ne.bgColor2}: ${si};
    ${Ne.fgColor}: ${To};
    ${t=>t.$darkMode&&as`
            ${Ne.fgColor}: ${si};
            ${Ne.bgColor}: ${To};
            ${Ne.bgColor2}: ${Au};
        `}
    ${Ne.cancelButtonDisplay}: ${t=>t.$hideCancelButton?"none":"block"};
`;J.createContext({});J.createContext({});te.svg`
    position: relative;
    right: 10px;
    margin-left: 5px;
    cursor: pointer;
    display: var(${Ne.cancelButtonDisplay});
`;var tl=6,Jo=`calc(var(${Ne.searchbarHeight}) - ${tl*2}px)`,Rd=wr`
to {
    width: ${Jo};
}
`;te(mi)`
    height: ${Jo};
    margin: 0;
    width: 0;
    animation: ${Rd} 100ms ease-in-out forwards;
`;te.div`
    background: var(${Ne.bgColor2});
    display: flex;
    align-items: center;
    padding-left: ${tl}px;
`;te.div`
    background: ${Ou};
    display: flex;
    padding: 0 4px;
    color: ${Tu};
    font-family: interface, Helvetica Neue, helvetica, sans-serif;
    font-weight: 600;
    font-size: 12px;
    align-items: center;
    height: ${Jo};
    @media (max-width: 480px) {
        display: none;
    }
`;var kd=({className:t=""})=>j.createElement("svg",{viewBox:"0 0 30 30",version:"1.1",className:t},j.createElement("defs",null,j.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"})),j.createElement("g",{id:"search",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"icons/search"},j.createElement("mask",{id:"giphy-search-icon-mask-2",fill:"white"},j.createElement("use",{xlinkHref:"#giphy-search-icon-path-1"})),j.createElement("use",{id:"Mask",fill:"#FFFFFF",fillRule:"nonzero",xlinkHref:"#giphy-search-icon-path-1"}),j.createElement("g",{mask:"url(#giphy-search-icon-mask-2)"},j.createElement("g",{transform:"translate(0.250000, 0.250000)"},j.createElement("g",null)))))),xd=kd,Fd="2s",Io="#E646B6",is="#FF6666",nl="cubic-bezier(0.920, 0.240, 0.185, 0.730)",Ld=wr`
    0% {
      transform: rotate(34deg) translate(-10px, 80px);
    };
    
    100% {
      transform: rotate(34deg) translate(-10px, -20px);
    }
`,Nd=wr`
    0% { 
      transform: translate(0px, 0px);
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      transform: translate(10px, -17px);
      opacity: 0;
    }
`,Md=wr`
    0% {
      opacity: 0;
      transform: translateX(-400%);
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: translateX(0);
    }
`;te.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(${Ne.searchbarHeight});
    width: var(${Ne.searchbarHeight});
`;te.div`
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(45deg, ${Io} 0%, ${is} 100%);
    border-radius: 0 4px 4px 0;
    overflow: hidden;
    &:before {
        animation: ${Md} ${Fd} linear 0s infinite;
        background-image: linear-gradient(45deg, ${Io} 0%, ${is} 50%, ${Io} 100%);
        background-size: 400%;
        background-position: 0% 100%;
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        width: 400%;
    }
`;te.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: ${Nd} 1s ${nl} 0s 1 forwards;
    }
`;te.div`
    position: absolute;
    width: 200%;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(34deg) translate(-10px, -20px);
    animation: ${Ld} 1s ${nl} 0s 1;
    filter: blur(1px);
`;te(xd)`
    z-index: 1;
    display: flex;
    width: 50%;
    height: 50%;
`;te.div`
    display: flex;
    background: white;
    align-items: center;
    border-radius: 4px;
    height: var(${Ne.searchbarHeight});
    background: var(${Ne.bgColor2});
`;te.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(${Ne.fgColor});
    &::placeholder {
        color: ${ms};
    }
    min-width: 150px;
    flex: 1;
    ${t=>t.$isUsernameSearch&&as`
            color: ${Ru};
        `}
`;var Dd=({size:t=18,className:a})=>j.createElement("svg",{width:t,height:t,viewBox:"0 0 18 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:a},j.createElement("g",{id:"trending",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},j.createElement("g",null,j.createElement("rect",{id:"Rectangle",stroke:"#979797",fill:"#D8D8D8",opacity:"0",x:"0.5",y:"0.5",width:"17",height:"17"}),j.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) "})))),jd=Dd,rl=9;te.div`
    background: ${vs};
    display: flex;
    padding-right: 4px;
    align-items: center;
    margin-right: ${rl}px;
    cursor: pointer;
`;te.div`
    background: ${vs};
    display: flex;
    padding: 14px;
    align-items: center;
    margin-right: ${rl}px;
    white-space: nowrap;
    cursor: pointer;
    font-style: italic;
    border-radius: 20px;
`;te(mi)`
    height: var(${Ne.searchbarHeight});
    width: var(${Ne.searchbarHeight});
`;te(jd)`
    margin-right: 2px;
`;te.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(${Ne.searchbarHeight});
`;var $d=({onClick:t})=>j.createElement("svg",{width:"66px",height:"13px",viewBox:"0 0 66 13",onClick:t},j.createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{transform:"translate(-1060.000000, -462.000000)",fill:"#FFFFFF",fillRule:"nonzero"},j.createElement("g",{transform:"translate(931.000000, 286.375671)"},j.createElement("g",{transform:"translate(86.000000, 136.124329)"},j.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"})))))),Ud=$d,Hd=te.div`
    display: flex;
    align-items: center;
    font-family: interface, helvetica, arial;
    cursor: pointer;
`,Bd=te(mi)`
    flex-shrink: 0;
`,Gd=te.div`
    display: flex;
    flex-direction: column;
`,Qo=({gif:t,className:a,onClick:o})=>{const{user:l}=t;return!(l!=null&&l.username)&&!(l!=null&&l.display_name)?null:j.createElement(Hd,{className:[Qo.className,a].join(" "),onClick:u=>{if(u.preventDefault(),u.stopPropagation(),o)o(t);else{const p=l.profile_url;p&&window.open(p,"_blank")}}},j.createElement(Bd,{user:l}),j.createElement(Gd,null,j.createElement(Ud,{onClick:u=>{u.preventDefault(),u.stopPropagation(),o?o(t):t.url&&window.open(t.url,"_blank")}}),j.createElement(Xs,{user:l})))};Qo.className="giphy-attribution";var Wd=Qo,il=25,Vd=({size:t=il,onClick:a=()=>{}})=>j.createElement("svg",{width:t,height:t,viewBox:"0 0 26 23",onClick:a},j.createElement("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{transform:"translate(1.000000, 0.000000)",fill:"#FFF",fillRule:"nonzero"},j.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"}),j.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"}),j.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"})))),qd=({size:t=il,onClick:a=()=>{}})=>j.createElement("svg",{onClick:a,height:t,width:t,viewBox:"0 0 26 23",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},j.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},j.createElement("g",{id:"Group",transform:"translate(1.000000, 0.000000)",fill:"#FFFFFF",fillRule:"nonzero"},j.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"})),j.createElement("g",{id:"Group",transform:"translate(14.887009, 6.947630)",fill:"#FFFFFF",fillRule:"nonzero"},j.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"})))),zd=te.div`
    background: ${si};
    height: ${t=>t.$barHeight}px;
    position: absolute;
    width: 5px;
    bottom: 0;
    left: 0;
    opacity: 0.95;
`,Kd=({videoEl:t})=>{xf(2147483647,100);const a=(t==null?void 0:t.currentTime)||0,o=(t==null?void 0:t.duration)||0,l=a/o;let u=Math.round(l*100),p=5;return(t==null?void 0:t.height)<200?p=3:(t==null?void 0:t.height)<300&&(p=4),u=o<10&&u>98?100:u,j.createElement(zd,{style:{width:`${u}%`},$barHeight:p,className:"hide-in-percy"})},Xd=Kd,Zd=(t,a="")=>{switch(t){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 "${a.split(".").pop()}" on this platform.`;default:return""}},Jd=(t,a,o,l,u)=>{const p=u+t;return!l.has(p)&&o>0&&a>o*t?(l.add(p),!0):!1},Qd=[.25,.5,.75],ol="giphy-video",Yd={EMPTY:0,IDLE:1,LOADING:2,NO_SOURCE:3},al=({muted:t,ccEnabled:a=!1,ccLanguage:o="en",loop:l=!0,onStateChange:u,onTimeUpdate:p,onCanPlay:m,onFirstPlay:T,onWaiting:A,onMuted:b,onError:w,onEnded:E,onLoop:$,onQuartile:d,onEndFullscreen:O,setVideoEl:k,gif:N,width:B,height:L,volume:K=.7,className:X=ol})=>{var F,oe,ue;const se=L||ke.getGifHeight(N,B),[W,Se]=J.useState(ke.getBestVideo(N.video,B,se)),ye=J.useRef(0);W||console.warn(`GiphyJS No video content for id: ${N.id}`);const ce=J.useRef(Date.now()),je=J.useRef(!1),nt=J.useRef(0),we=J.useRef(0),xe=J.useRef(new Set);J.useEffect(()=>{ce.current=Date.now(),je.current=!1,nt.current=1,we.current=0,xe.current=new Set},[N.id]);const ve=J.useRef(null);J.useEffect(()=>{const ee=ke.getBestVideo(N.video,B,se);ve.current&&(W!=null&&W.url)&&ee.url!==W.url&&(W.url.indexOf(String(N.id))!==-1&&(ye.current=ve.current.currentTime),Se(ee))},[B,L,N.video,se,W==null?void 0:W.url,N.id]),J.useEffect(()=>{ve.current&&(W!=null&&W.url)&&ye.current&&(ve.current.currentTime=ye.current,ye.current=0)},[W==null?void 0:W.url,ye]);const Ve=J.useCallback(()=>{var ee;const fe=ve.current,qe=(ee=fe==null?void 0:fe.error)==null?void 0:ee.code;if(qe&&(fe!=null&&fe.src)){const ze=Zd(qe,fe==null?void 0:fe.src);console.error(ze),w==null||w(qe)}},[w]),_e=J.useCallback(()=>{u==null||u("playing"),je.current||(je.current=!0,N.analytics_response_payload&&Cr.pingback({actionType:"START",analyticsResponsePayload:N.analytics_response_payload}),T==null||T(Date.now()-ce.current))},[T,u,N]),Pe=J.useCallback(()=>u==null?void 0:u("paused"),[u]),ft=J.useCallback(()=>{const ee=ve.current;if(ee){const fe=ee.currentTime;Qd.some(qe=>Jd(qe,fe,ee.duration,xe.current,nt.current)?(d==null||d(qe),!0):!1),p==null||p(fe||0)}},[d,p]),at=J.useCallback(()=>m==null?void 0:m(),[m]),gt=J.useCallback(()=>{const ee=ve.current;(ee==null?void 0:ee.currentTime)!==0&&(ee==null?void 0:ee.networkState)!==Yd.IDLE&&(A==null||A(++we.current))},[A]),I=J.useCallback(()=>{je.current&&(l&&ve.current&&ve.current.play(),$==null||$(nt.current),nt.current=nt.current+1,E==null||E())},[E,l,$]),Fe=J.useCallback(()=>O==null?void 0:O(),[O]),_t=J.useCallback(ee=>Ko(void 0,null,function*(){if(ee){const fe=ee.play();if(fe!==void 0)try{yield fe,b==null||b(!1)}catch{ee.muted=!0,b==null||b(!0),ee.play()}}}),[b]);J.useEffect(()=>{const ee=ve.current;ee&&(_t(ee),k==null||k(ee),isNaN(K)||(ee.volume=K))},[]),J.useEffect(()=>{const ee=ve.current;return ee&&(ee.addEventListener("play",_e),ee.addEventListener("pause",Pe),ee.addEventListener("error",Ve),ee.addEventListener("timeupdate",ft),ee.addEventListener("canplay",at),ee.addEventListener("ended",I),ee.addEventListener("waiting",gt),ee.addEventListener("webkitendfullscreen",Fe)),()=>{ee&&(ee.removeEventListener("play",_e),ee.removeEventListener("pause",Pe),ee.removeEventListener("error",Ve),ee.removeEventListener("timeupdate",ft),ee.removeEventListener("canplay",at),ee.removeEventListener("ended",I),ee.removeEventListener("waiting",gt),ee.removeEventListener("webkitendfullscreen",Fe))}},[_e,Pe,Ve,ft,at,I,gt,Fe]);const dt=(ue=(oe=(F=N.video)==null?void 0:F.captions)==null?void 0:oe[o])==null?void 0:ue.vtt;return W!=null&&W.url?j.createElement("video",{crossOrigin:"anonymous",draggable:!0,className:X,width:B,height:se,muted:t,autoPlay:!0,playsInline:!0,ref:ve,src:W==null?void 0:W.url,"data-giphy-id":N.id},a&&dt&&j.createElement("track",{label:"English",kind:"subtitles",srcLang:o,src:dt,default:!0})):null};al.className=ol;var sl=al,ep=te.div`
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: black;
    font-family: interface, helvetica, arial;
    -webkit-font-smoothing: antialiased;
`,tp=te.div`
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
`,np=te.div`
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    opacity: ${t=>t.$isHovered?1:0};
    transition: opacity ease-out 250ms;
    align-items: flex-start;
`,rp=te.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;
`,ip=te.div`
    position: relative;
    min-width: 0;
`,op=te.div`
    &:before {
        background: linear-gradient(rgba(18, 18, 18, 0.6), rgba(0, 0, 0, 0));
        content: '';
        height: ${t=>t.$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: ${t=>t.$isLargePlayer?125:75}px;
        left: 0;
        pointer-events: none;
        position: absolute;
        bottom: 0;
        width: 100%;
    }
`,ap=300,sp=4e3,lp=t=>{const{width:a,hideMute:o,hideAttribution:l,hideProgressBar:u,className:p,persistentControls:m,gif:T,overlay:A}=t,[b,w]=J.useState(!1),[E,$]=J.useState(null),[d,O]=J.useState(t.muted),[k,N]=J.useState(!1),{setVideoEl:B,onMuted:L,onUserMuted:K}=t,X=t.height||ke.getGifHeight(T,a),[,F,oe]=Pf(()=>{w(!1)},sp),ue=J.useCallback(ce=>{L==null||L(ce),N(ce)},[N,L]),se=J.useCallback(ce=>{B==null||B(ce),$(ce)},[B,$]),W=()=>{k?(N(!1),O(!1)):O(!d)};J.useEffect(()=>{O(t.muted)},[t.muted]);const Se=m||b,ye=X>=ap;return J.useEffect(()=>(Se?oe():F(),()=>F()),[Se,F,oe]),j.createElement(ep,{className:p,style:{width:a,height:X},onMouseOver:()=>w(!0),onMouseLeave:()=>w(!1),onMouseMove:()=>{w(!0),oe()},onClick:ce=>{K==null||K(!(d||k)),E==null||E.play(),ce.preventDefault(),W()}},j.createElement(sl,zo(Bt({},t),{onMuted:ue,setVideoEl:se,muted:d})),Se&&j.createElement(op,{$isLargePlayer:ye}),j.createElement(np,{$isHovered:Se},j.createElement(ip,null,ye&&j.createElement(rp,{onClick:ce=>{ce.preventDefault(),ce.stopPropagation(),window.open(T.url,"_blank")}},T.title),E&&!l?j.createElement(Wd,{gif:T}):null),!o&&j.createElement(tp,null,d||k?j.createElement(qd,null):j.createElement(Vd,null))),Se&&!u&&E?j.createElement(Xd,{videoEl:E}):null,A&&j.createElement(A,{gif:T,isHovered:b,width:a,height:X}))},cp=t=>(t.overlay&&!t.controls&&console.warn(`${ke.Logger.PREFIX}: Overlays only work when controls are enabled`),t.controls?j.createElement(lp,Bt({},t)):j.createElement(sl,Bt({},t))),up=cp;te.div`
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
`;te(up)`
    height: 100%;
    display: inline-block;
    object-fit: fill;
    pointer-events: none;
    background: rgb(0, 0, 0, 0);
`;te.div`
    position: absolute;
    top: 6px;
    right: 6px;
    cursor: pointer;
    opacity: ${t=>t.$isHovered?1:.8};
    transition: opacity ease-out 800ms;
`;ke.appendGiphySDKRequestHeader("X-GIPHY-SDK-NAME","ReactSDK");var ll={exports:{}};/*!
 * Intro.js v4.3.0
 * https://introjs.com
 *
 * Copyright (C) 2012-2021 Afshin Mehrabani (@afshinmeh).
 * https://raw.githubusercontent.com/usablica/intro.js/master/license.md
 *
 * Date: Sat, 06 Nov 2021 14:22:05 GMT
 */(function(t,a){(function(o,l){t.exports=l()})(he,function(){function o(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(r){return typeof r}:o=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},o(n)}function l(n,r){var c={},h;for(h in n)c[h]=n[h];for(h in r)c[h]=r[h];return c}var u=function(){var n={};return function(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"introjs-stamp";return n[h]=n[h]||0,c[h]===void 0&&(c[h]=n[h]++),c[h]}}();function p(n,r,c){if(n)for(var h=0,v=n.length;h<v;h++)r(n[h],h);typeof c=="function"&&c()}var m=function(){function n(){var r="introjs_event";this._id=function(c,h,v,_){return h+u(v)+(_?"_".concat(u(_)):"")},this.on=function(c,h,v,_,y){var S=this._id.apply(this,arguments),R=function(M){return v.call(_||c,M||window.event)};"addEventListener"in c?c.addEventListener(h,R,y):"attachEvent"in c&&c.attachEvent("on".concat(h),R),c[r]=c[r]||{},c[r][S]=R},this.off=function(c,h,v,_,y){var S=this._id.apply(this,arguments),R=c[r]&&c[r][S];R&&("removeEventListener"in c?c.removeEventListener(h,R,y):"detachEvent"in c&&c.detachEvent("on".concat(h),R),c[r][S]=null)}}return new n}(),T=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof he<"u"?he:typeof self<"u"?self:{};function A(n,r){return r={exports:{}},n(r,r.exports),r.exports}var b=function(n){return n&&n.Math==Math&&n},w=b(typeof globalThis=="object"&&globalThis)||b(typeof window=="object"&&window)||b(typeof self=="object"&&self)||b(typeof T=="object"&&T)||function(){return this}()||Function("return this")(),E=function(n){try{return!!n()}catch{return!0}},$=!E(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),d=Function.prototype.call,O=d.bind?d.bind(d):function(){return d.apply(d,arguments)},k={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,B=N&&!k.call({1:2},1),L=B?function(r){var c=N(this,r);return!!c&&c.enumerable}:k,K={f:L},X=function(n,r){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:r}},F=Function.prototype,oe=F.bind,ue=F.call,se=oe&&oe.bind(ue),W=oe?function(n){return n&&se(ue,n)}:function(n){return n&&function(){return ue.apply(n,arguments)}},Se=W({}.toString),ye=W("".slice),ce=function(n){return ye(Se(n),8,-1)},je=w.Object,nt=W("".split),we=E(function(){return!je("z").propertyIsEnumerable(0)})?function(n){return ce(n)=="String"?nt(n,""):je(n)}:je,xe=w.TypeError,ve=function(n){if(n==null)throw xe("Can't call method on "+n);return n},Ve=function(n){return we(ve(n))},_e=function(n){return typeof n=="function"},Pe=function(n){return typeof n=="object"?n!==null:_e(n)},ft=function(n){return _e(n)?n:void 0},at=function(n,r){return arguments.length<2?ft(w[n]):w[n]&&w[n][r]},gt=W({}.isPrototypeOf),I=at("navigator","userAgent")||"",Fe=w.process,_t=w.Deno,dt=Fe&&Fe.versions||_t&&_t.version,ee=dt&&dt.v8,fe,qe;ee&&(fe=ee.split("."),qe=fe[0]>0&&fe[0]<4?1:+(fe[0]+fe[1])),!qe&&I&&(fe=I.match(/Edge\/(\d+)/),(!fe||fe[1]>=74)&&(fe=I.match(/Chrome\/(\d+)/),fe&&(qe=+fe[1])));var ze=qe,pt=!!Object.getOwnPropertySymbols&&!E(function(){var n=Symbol();return!String(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&ze&&ze<41}),kt=pt&&!Symbol.sham&&typeof Symbol.iterator=="symbol",G=w.Object,st=kt?function(n){return typeof n=="symbol"}:function(n){var r=at("Symbol");return _e(r)&&gt(r.prototype,G(n))},_r=w.String,An=function(n){try{return _r(n)}catch{return"Object"}},On=w.TypeError,Rn=function(n){if(_e(n))return n;throw On(An(n)+" is not a function")},ln=function(n,r){var c=n[r];return c==null?void 0:Rn(c)},kn=w.TypeError,vt=function(n,r){var c,h;if(r==="string"&&_e(c=n.toString)&&!Pe(h=O(c,n))||_e(c=n.valueOf)&&!Pe(h=O(c,n))||r!=="string"&&_e(c=n.toString)&&!Pe(h=O(c,n)))return h;throw kn("Can't convert object to primitive value")},cn=Object.defineProperty,lt=function(n,r){try{cn(w,n,{value:r,configurable:!0,writable:!0})}catch{w[n]=r}return r},$e="__core-js_shared__",Ce=w[$e]||lt($e,{}),mt=Ce,xn=A(function(n){(n.exports=function(r,c){return mt[r]||(mt[r]=c!==void 0?c:{})})("versions",[]).push({version:"3.19.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),yi=w.Object,Ie=function(n){return yi(ve(n))},bi=W({}.hasOwnProperty),Ye=Object.hasOwn||function(r,c){return bi(Ie(r),c)},Er=0,ie=Math.random(),Be=W(1 .toString),et=function(n){return"Symbol("+(n===void 0?"":n)+")_"+Be(++Er+ie,36)},xt=xn("wks"),Et=w.Symbol,Pr=Et&&Et.for,wi=kt?Et:Et&&Et.withoutSetter||et,Ke=function(n){if(!Ye(xt,n)||!(pt||typeof xt[n]=="string")){var r="Symbol."+n;pt&&Ye(Et,n)?xt[n]=Et[n]:kt&&Pr?xt[n]=Pr(r):xt[n]=wi(r)}return xt[n]},Ci=w.TypeError,Ir=Ke("toPrimitive"),Fn=function(n,r){if(!Pe(n)||st(n))return n;var c=ln(n,Ir),h;if(c){if(r===void 0&&(r="default"),h=O(c,n,r),!Pe(h)||st(h))return h;throw Ci("Can't convert object to primitive value")}return r===void 0&&(r="number"),vt(n,r)},U=function(n){var r=Fn(n,"string");return st(r)?r:r+""},Le=w.document,Si=Pe(Le)&&Pe(Le.createElement),Tr=function(n){return Si?Le.createElement(n):{}},yt=!$&&!E(function(){return Object.defineProperty(Tr("div"),"a",{get:function(){return 7}}).a!=7}),Ue=Object.getOwnPropertyDescriptor,Ln=$?Ue:function(r,c){if(r=Ve(r),c=U(c),yt)try{return Ue(r,c)}catch{}if(Ye(r,c))return X(!O(K.f,r,c),r[c])},Oe={f:Ln},bt=w.String,_i=w.TypeError,D=function(n){if(Pe(n))return n;throw _i(bt(n)+" is not an object")},Ei=w.TypeError,Nn=Object.defineProperty,Pi=$?Nn:function(r,c,h){if(D(r),c=U(c),D(h),yt)try{return Nn(r,c,h)}catch{}if("get"in h||"set"in h)throw Ei("Accessors not supported");return"value"in h&&(r[c]=h.value),r},Gt={f:Pi},Wt=$?function(n,r,c){return Gt.f(n,r,X(1,c))}:function(n,r,c){return n[r]=c,n},Ii=W(Function.toString);_e(mt.inspectSource)||(mt.inspectSource=function(n){return Ii(n)});var un=mt.inspectSource,Ar=w.WeakMap,Ti=_e(Ar)&&/native code/.test(un(Ar)),Vt=xn("keys"),qt=function(n){return Vt[n]||(Vt[n]=et(n))},Ft={},fn="Object already initialized",zt=w.TypeError,Mn=w.WeakMap,Lt,Kt,Xt,Or=function(n){return Xt(n)?Kt(n):Lt(n,{})},Rr=function(n){return function(r){var c;if(!Pe(r)||(c=Kt(r)).type!==n)throw zt("Incompatible receiver, "+n+" required");return c}};if(Ti||mt.state){var Ge=mt.state||(mt.state=new Mn),Ai=W(Ge.get),kr=W(Ge.has),Oi=W(Ge.set);Lt=function(n,r){if(kr(Ge,n))throw new zt(fn);return r.facade=n,Oi(Ge,n,r),r},Kt=function(n){return Ai(Ge,n)||{}},Xt=function(n){return kr(Ge,n)}}else{var Nt=qt("state");Ft[Nt]=!0,Lt=function(n,r){if(Ye(n,Nt))throw new zt(fn);return r.facade=n,Wt(n,Nt,r),r},Kt=function(n){return Ye(n,Nt)?n[Nt]:{}},Xt=function(n){return Ye(n,Nt)}}var Dn={set:Lt,get:Kt,has:Xt,enforce:Or,getterFor:Rr},xr=Function.prototype,Ri=$&&Object.getOwnPropertyDescriptor,jn=Ye(xr,"name"),ki=jn&&(function(){}).name==="something",$n=jn&&(!$||$&&Ri(xr,"name").configurable),Un={EXISTS:jn,PROPER:ki,CONFIGURABLE:$n},Zt=A(function(n){var r=Un.CONFIGURABLE,c=Dn.get,h=Dn.enforce,v=String(String).split("String");(n.exports=function(_,y,S,R){var x=R?!!R.unsafe:!1,M=R?!!R.enumerable:!1,Y=R?!!R.noTargetGet:!1,Z=R&&R.name!==void 0?R.name:y,ae;if(_e(S)&&(String(Z).slice(0,7)==="Symbol("&&(Z="["+String(Z).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ye(S,"name")||r&&S.name!==Z)&&Wt(S,"name",Z),ae=h(S),ae.source||(ae.source=v.join(typeof Z=="string"?Z:""))),_===w){M?_[y]=S:lt(y,S);return}else x?!Y&&_[y]&&(M=!0):delete _[y];M?_[y]=S:Wt(_,y,S)})(Function.prototype,"toString",function(){return _e(this)&&c(this).source||un(this)})}),xi=Math.ceil,Fi=Math.floor,rt=function(n){var r=+n;return r!==r||r===0?0:(r>0?Fi:xi)(r)},Hn=Math.max,Bn=Math.min,Mt=function(n,r){var c=rt(n);return c<0?Hn(c+r,0):Bn(c,r)},Fr=Math.min,Jt=function(n){return n>0?Fr(rt(n),9007199254740991):0},Pt=function(n){return Jt(n.length)},Lr=function(n){return function(r,c,h){var v=Ve(r),_=Pt(v),y=Mt(h,_),S;if(n&&c!=c){for(;_>y;)if(S=v[y++],S!=S)return!0}else for(;_>y;y++)if((n||y in v)&&v[y]===c)return n||y||0;return!n&&-1}},Nr={includes:Lr(!0),indexOf:Lr(!1)},Li=Nr.indexOf,Mr=W([].push),Dr=function(n,r){var c=Ve(n),h=0,v=[],_;for(_ in c)!Ye(Ft,_)&&Ye(c,_)&&Mr(v,_);for(;r.length>h;)Ye(c,_=r[h++])&&(~Li(v,_)||Mr(v,_));return v},dn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ni=dn.concat("length","prototype"),Mi=Object.getOwnPropertyNames||function(r){return Dr(r,Ni)},jr={f:Mi},Di=Object.getOwnPropertySymbols,pn={f:Di},Gn=W([].concat),Wn=at("Reflect","ownKeys")||function(r){var c=jr.f(D(r)),h=pn.f;return h?Gn(c,h(r)):c},Vn=function(n,r){for(var c=Wn(r),h=Gt.f,v=Oe.f,_=0;_<c.length;_++){var y=c[_];Ye(n,y)||h(n,y,v(r,y))}},qn=/#|\.prototype\./,It=function(n,r){var c=Qt[zn(n)];return c==Xn?!0:c==Kn?!1:_e(r)?E(r):!!r},zn=It.normalize=function(n){return String(n).replace(qn,".").toLowerCase()},Qt=It.data={},Kn=It.NATIVE="N",Xn=It.POLYFILL="P",Zn=It,Jn=Oe.f,it=function(n,r){var c=n.target,h=n.global,v=n.stat,_,y,S,R,x,M;if(h?y=w:v?y=w[c]||lt(c,{}):y=(w[c]||{}).prototype,y)for(S in r){if(x=r[S],n.noTargetGet?(M=Jn(y,S),R=M&&M.value):R=y[S],_=Zn(h?S:c+(v?".":"#")+S,n.forced),!_&&R!==void 0){if(typeof x==typeof R)continue;Vn(x,R)}(n.sham||R&&R.sham)&&Wt(x,"sham",!0),Zt(y,S,x,n)}},Qn=Ke("toStringTag"),hn={};hn[Qn]="z";var gn=String(hn)==="[object z]",ji=Ke("toStringTag"),$i=w.Object,Ui=ce(function(){return arguments}())=="Arguments",Hi=function(n,r){try{return n[r]}catch{}},Yn=gn?ce:function(n){var r,c,h;return n===void 0?"Undefined":n===null?"Null":typeof(c=Hi(r=$i(n),ji))=="string"?c:Ui?ce(r):(h=ce(r))=="Object"&&_e(r.callee)?"Arguments":h},Bi=w.String,Ae=function(n){if(Yn(n)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Bi(n)},$r=function(){var n=D(this),r="";return n.global&&(r+="g"),n.ignoreCase&&(r+="i"),n.multiline&&(r+="m"),n.dotAll&&(r+="s"),n.unicode&&(r+="u"),n.sticky&&(r+="y"),r},Ur=w.RegExp,Gi=E(function(){var n=Ur("a","y");return n.lastIndex=2,n.exec("abcd")!=null}),Wi=E(function(){var n=Ur("^r","gy");return n.lastIndex=2,n.exec("str")!=null}),er={UNSUPPORTED_Y:Gi,BROKEN_CARET:Wi},vn=Object.keys||function(r){return Dr(r,dn)},Vi=$?Object.defineProperties:function(r,c){D(r);for(var h=Ve(c),v=vn(c),_=v.length,y=0,S;_>y;)Gt.f(r,S=v[y++],h[S]);return r},qi=at("document","documentElement"),Hr=">",Br="<",tr="prototype",nr="script",Gr=qt("IE_PROTO"),rr=function(){},Wr=function(n){return Br+nr+Hr+n+Br+"/"+nr+Hr},Vr=function(n){n.write(Wr("")),n.close();var r=n.parentWindow.Object;return n=null,r},zi=function(){var n=Tr("iframe"),r="java"+nr+":",c;return n.style.display="none",qi.appendChild(n),n.src=String(r),c=n.contentWindow.document,c.open(),c.write(Wr("document.F=Object")),c.close(),c.F},mn,yn=function(){try{mn=new ActiveXObject("htmlfile")}catch{}yn=typeof document<"u"?document.domain&&mn?Vr(mn):zi():Vr(mn);for(var n=dn.length;n--;)delete yn[tr][dn[n]];return yn()};Ft[Gr]=!0;var qr=Object.create||function(r,c){var h;return r!==null?(rr[tr]=D(r),h=new rr,rr[tr]=null,h[Gr]=r):h=yn(),c===void 0?h:Vi(h,c)},Ki=w.RegExp,ir=E(function(){var n=Ki(".","s");return!(n.dotAll&&n.exec(`
`)&&n.flags==="s")}),or=w.RegExp,ar=E(function(){var n=or("(?<a>b)","g");return n.exec("b").groups.a!=="b"||"b".replace(n,"$<a>c")!=="bc"}),sr=Dn.get,lr=xn("native-string-replace",String.prototype.replace),Dt=RegExp.prototype.exec,Yt=Dt,cr=W("".charAt),Xi=W("".indexOf),e=W("".replace),s=W("".slice),i=function(){var n=/a/,r=/b*/g;return O(Dt,n,"a"),O(Dt,r,"a"),n.lastIndex!==0||r.lastIndex!==0}(),f=er.UNSUPPORTED_Y||er.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,P=i||g||f||ir||ar;P&&(Yt=function(r){var c=this,h=sr(c),v=Ae(r),_=h.raw,y,S,R,x,M,Y,Z;if(_)return _.lastIndex=c.lastIndex,y=O(Yt,_,v),c.lastIndex=_.lastIndex,y;var ae=h.groups,Re=f&&c.sticky,be=O($r,c),me=c.source,Ee=0,Me=v;if(Re&&(be=e(be,"y",""),Xi(be,"g")===-1&&(be+="g"),Me=s(v,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&cr(v,c.lastIndex-1)!==`
`)&&(me="(?: "+me+")",Me=" "+Me,Ee++),S=new RegExp("^(?:"+me+")",be)),g&&(S=new RegExp("^"+me+"$(?!\\s)",be)),i&&(R=c.lastIndex),x=O(Dt,Re?S:c,Me),Re?x?(x.input=s(x.input,Ee),x[0]=s(x[0],Ee),x.index=c.lastIndex,c.lastIndex+=x[0].length):c.lastIndex=0:i&&x&&(c.lastIndex=c.global?x.index+x[0].length:R),g&&x&&x.length>1&&O(lr,x[0],S,function(){for(M=1;M<arguments.length-2;M++)arguments[M]===void 0&&(x[M]=void 0)}),x&&ae)for(x.groups=Y=qr(null),M=0;M<ae.length;M++)Z=ae[M],Y[Z[0]]=x[Z[1]];return x});var C=Yt;it({target:"RegExp",proto:!0,forced:/./.exec!==C},{exec:C});var H=Ke("species"),z=RegExp.prototype,q=function(n,r,c,h){var v=Ke(n),_=!E(function(){var x={};return x[v]=function(){return 7},""[n](x)!=7}),y=_&&!E(function(){var x=!1,M=/a/;return n==="split"&&(M={},M.constructor={},M.constructor[H]=function(){return M},M.flags="",M[v]=/./[v]),M.exec=function(){return x=!0,null},M[v](""),!x});if(!_||!y||c){var S=W(/./[v]),R=r(v,""[n],function(x,M,Y,Z,ae){var Re=W(x),be=M.exec;return be===C||be===z.exec?_&&!ae?{done:!0,value:S(M,Y,Z)}:{done:!0,value:Re(Y,M,Z)}:{done:!1}});Zt(String.prototype,n,R[0]),Zt(z,v,R[1])}h&&Wt(z[v],"sham",!0)},re=W("".charAt),He=W("".charCodeAt),Te=W("".slice),Q=function(n){return function(r,c){var h=Ae(ve(r)),v=rt(c),_=h.length,y,S;return v<0||v>=_?n?"":void 0:(y=He(h,v),y<55296||y>56319||v+1===_||(S=He(h,v+1))<56320||S>57343?n?re(h,v):y:n?Te(h,v,v+2):(y-55296<<10)+(S-56320)+65536)}},de={codeAt:Q(!1),charAt:Q(!0)},V=de.charAt,ne=function(n,r,c){return r+(c?V(n,r).length:1)},ge=w.TypeError,le=function(n,r){var c=n.exec;if(_e(c)){var h=O(c,n,r);return h!==null&&D(h),h}if(ce(n)==="RegExp")return O(C,n,r);throw ge("RegExp#exec called on incompatible receiver")};q("match",function(n,r,c){return[function(v){var _=ve(this),y=v==null?void 0:ln(v,n);return y?O(y,v,_):new RegExp(v)[n](Ae(_))},function(h){var v=D(this),_=Ae(h),y=c(r,v,_);if(y.done)return y.value;if(!v.global)return le(v,_);var S=v.unicode;v.lastIndex=0;for(var R=[],x=0,M;(M=le(v,_))!==null;){var Y=Ae(M[0]);R[x]=Y,Y===""&&(v.lastIndex=ne(_,Jt(v.lastIndex),S)),x++}return x===0?null:R}]});var tt=Array.isArray||function(r){return ce(r)=="Array"},Tt=function(n,r,c){var h=U(r);h in n?Gt.f(n,h,X(0,c)):n[h]=c},ur=function(){},cl=[],Yo=at("Reflect","construct"),Zi=/^\s*(?:class|function)\b/,ul=W(Zi.exec),fl=!Zi.exec(ur),fr=function(n){if(!_e(n))return!1;try{return Yo(ur,cl,n),!0}catch{return!1}},dl=function(n){if(!_e(n))return!1;switch(Yn(n)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return fl||!!ul(Zi,un(n))},Ji=!Yo||E(function(){var n;return fr(fr.call)||!fr(Object)||!fr(function(){n=!0})||n})?dl:fr,pl=Ke("species"),ea=w.Array,hl=function(n){var r;return tt(n)&&(r=n.constructor,Ji(r)&&(r===ea||tt(r.prototype))?r=void 0:Pe(r)&&(r=r[pl],r===null&&(r=void 0))),r===void 0?ea:r},Qi=function(n,r){return new(hl(n))(r===0?0:r)},gl=Ke("species"),zr=function(n){return ze>=51||!E(function(){var r=[],c=r.constructor={};return c[gl]=function(){return{foo:1}},r[n](Boolean).foo!==1})},ta=Ke("isConcatSpreadable"),na=9007199254740991,ra="Maximum allowed index exceeded",ia=w.TypeError,vl=ze>=51||!E(function(){var n=[];return n[ta]=!1,n.concat()[0]!==n}),ml=zr("concat"),yl=function(n){if(!Pe(n))return!1;var r=n[ta];return r!==void 0?!!r:tt(n)},bl=!vl||!ml;it({target:"Array",proto:!0,forced:bl},{concat:function(r){var c=Ie(this),h=Qi(c,0),v=0,_,y,S,R,x;for(_=-1,S=arguments.length;_<S;_++)if(x=_===-1?c:arguments[_],yl(x)){if(R=Pt(x),v+R>na)throw ia(ra);for(y=0;y<R;y++,v++)y in x&&Tt(h,v,x[y])}else{if(v>=na)throw ia(ra);Tt(h,v++,x)}return h.length=v,h}});var wl=gn?{}.toString:function(){return"[object "+Yn(this)+"]"};gn||Zt(Object.prototype,"toString",wl,{unsafe:!0});var Cl=Un.PROPER,Yi="toString",eo=RegExp.prototype,oa=eo[Yi],Sl=W($r),_l=E(function(){return oa.call({source:"a",flags:"b"})!="/a/b"}),El=Cl&&oa.name!=Yi;(_l||El)&&Zt(RegExp.prototype,Yi,function(){var r=D(this),c=Ae(r.source),h=r.flags,v=Ae(h===void 0&&gt(eo,r)&&!("flags"in eo)?Sl(r):h);return"/"+c+"/"+v},{unsafe:!0});var to=Function.prototype,aa=to.apply,Pl=to.bind,sa=to.call,la=typeof Reflect=="object"&&Reflect.apply||(Pl?sa.bind(aa):function(){return sa.apply(aa,arguments)}),Il=Ke("match"),ca=function(n){var r;return Pe(n)&&((r=n[Il])!==void 0?!!r:ce(n)=="RegExp")},Tl=w.TypeError,Al=function(n){if(Ji(n))return n;throw Tl(An(n)+" is not a constructor")},Ol=Ke("species"),Rl=function(n,r){var c=D(n).constructor,h;return c===void 0||(h=D(c)[Ol])==null?r:Al(h)},dr=W([].slice),bn=er.UNSUPPORTED_Y,ua=4294967295,kl=Math.min,fa=[].push,xl=W(/./.exec),wn=W(fa),pr=W("".slice),Fl=!E(function(){var n=/(?:)/,r=n.exec;n.exec=function(){return r.apply(this,arguments)};var c="ab".split(n);return c.length!==2||c[0]!=="a"||c[1]!=="b"});q("split",function(n,r,c){var h;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?h=function(v,_){var y=Ae(ve(this)),S=_===void 0?ua:_>>>0;if(S===0)return[];if(v===void 0)return[y];if(!ca(v))return O(r,y,v,S);for(var R=[],x=(v.ignoreCase?"i":"")+(v.multiline?"m":"")+(v.unicode?"u":"")+(v.sticky?"y":""),M=0,Y=new RegExp(v.source,x+"g"),Z,ae,Re;(Z=O(C,Y,y))&&(ae=Y.lastIndex,!(ae>M&&(wn(R,pr(y,M,Z.index)),Z.length>1&&Z.index<y.length&&la(fa,R,dr(Z,1)),Re=Z[0].length,M=ae,R.length>=S)));)Y.lastIndex===Z.index&&Y.lastIndex++;return M===y.length?(Re||!xl(Y,""))&&wn(R,""):wn(R,pr(y,M)),R.length>S?dr(R,0,S):R}:"0".split(void 0,0).length?h=function(v,_){return v===void 0&&_===0?[]:O(r,this,v,_)}:h=r,[function(_,y){var S=ve(this),R=_==null?void 0:ln(_,n);return R?O(R,_,S,y):O(h,Ae(S),_,y)},function(v,_){var y=D(this),S=Ae(v),R=c(h,y,S,_,h!==r);if(R.done)return R.value;var x=Rl(y,RegExp),M=y.unicode,Y=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(bn?"g":"y"),Z=new x(bn?"^(?:"+y.source+")":y,Y),ae=_===void 0?ua:_>>>0;if(ae===0)return[];if(S.length===0)return le(Z,S)===null?[S]:[];for(var Re=0,be=0,me=[];be<S.length;){Z.lastIndex=bn?0:be;var Ee=le(Z,bn?pr(S,be):S),Me;if(Ee===null||(Me=kl(Jt(Z.lastIndex+(bn?be:0)),S.length))===Re)be=ne(S,be,M);else{if(wn(me,pr(S,Re,be)),me.length===ae)return me;for(var De=1;De<=Ee.length-1;De++)if(wn(me,Ee[De]),me.length===ae)return me;be=Re=Me}}return wn(me,pr(S,Re)),me}]},!Fl,bn);function wt(n,r){if(n instanceof SVGElement){var c=n.getAttribute("class")||"";c.match(r)||n.setAttribute("class","".concat(c," ").concat(r))}else if(n.classList!==void 0){var h=r.split(" ");p(h,function(v){n.classList.add(v)})}else n.className.match(r)||(n.className+=" ".concat(r))}function no(n,r){var c="";return n.currentStyle?c=n.currentStyle[r]:document.defaultView&&document.defaultView.getComputedStyle&&(c=document.defaultView.getComputedStyle(n,null).getPropertyValue(r)),c&&c.toLowerCase?c.toLowerCase():c}function Ll(n){var r=n.element;wt(r,"introjs-showElement");var c=no(r,"position");c!=="absolute"&&c!=="relative"&&c!=="sticky"&&c!=="fixed"&&wt(r,"introjs-relativePosition")}function Nl(n){var r=window.getComputedStyle(n),c=r.position==="absolute",h=/(auto|scroll)/;if(r.position==="fixed")return document.body;for(var v=n;v=v.parentElement;)if(r=window.getComputedStyle(v),!(c&&r.position==="static")&&h.test(r.overflow+r.overflowY+r.overflowX))return v;return document.body}function da(n){var r=n.element;if(this._options.scrollToElement){var c=Nl(r);c!==document.body&&(c.scrollTop=r.offsetTop-c.offsetTop)}}function ro(){if(window.innerWidth!==void 0)return{width:window.innerWidth,height:window.innerHeight};var n=document.documentElement;return{width:n.clientWidth,height:n.clientHeight}}function Ml(n){var r=n.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom+80<=window.innerHeight&&r.right<=window.innerWidth}function pa(n,r,c){var h=r.element;if(n!=="off"){var v;if(this._options.scrollToElement&&(n==="tooltip"?v=c.getBoundingClientRect():v=h.getBoundingClientRect(),!Ml(h))){var _=ro().height,y=v.bottom-(v.bottom-v.top);y<0||h.clientHeight>_?window.scrollBy(0,v.top-(_/2-v.height/2)-this._options.scrollPadding):window.scrollBy(0,v.top-(_/2-v.height/2)+this._options.scrollPadding)}}}function hr(n){n.setAttribute("role","button"),n.tabIndex=0}var Cn=Object.assign,ha=Object.defineProperty,Dl=W([].concat),ga=!Cn||E(function(){if($&&Cn({b:1},Cn(ha({},"a",{enumerable:!0,get:function(){ha(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var n={},r={},c=Symbol(),h="abcdefghijklmnopqrst";return n[c]=7,h.split("").forEach(function(v){r[v]=v}),Cn({},n)[c]!=7||vn(Cn({},r)).join("")!=h})?function(r,c){for(var h=Ie(r),v=arguments.length,_=1,y=pn.f,S=K.f;v>_;)for(var R=we(arguments[_++]),x=y?Dl(vn(R),y(R)):vn(R),M=x.length,Y=0,Z;M>Y;)Z=x[Y++],(!$||O(S,R,Z))&&(h[Z]=R[Z]);return h}:Cn;it({target:"Object",stat:!0,forced:Object.assign!==ga},{assign:ga});function Kr(n){var r=n.parentNode;return!r||r.nodeName==="HTML"?!1:no(n,"position")==="fixed"?!0:Kr(r)}function Sn(n,r){var c=document.body,h=document.documentElement,v=window.pageYOffset||h.scrollTop||c.scrollTop,_=window.pageXOffset||h.scrollLeft||c.scrollLeft;r=r||c;var y=n.getBoundingClientRect(),S=r.getBoundingClientRect(),R=no(r,"position"),x={width:y.width,height:y.height};return r.tagName.toLowerCase()!=="body"&&R==="relative"||R==="sticky"?Object.assign(x,{top:y.top-S.top,left:y.left-S.left}):Kr(n)?Object.assign(x,{top:y.top,left:y.left}):Object.assign(x,{top:y.top+v,left:y.left+_})}var jl=Math.floor,io=W("".charAt),$l=W("".replace),oo=W("".slice),Ul=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Hl=/\$([$&'`]|\d{1,2})/g,Bl=function(n,r,c,h,v,_){var y=c+n.length,S=h.length,R=Hl;return v!==void 0&&(v=Ie(v),R=Ul),$l(_,R,function(x,M){var Y;switch(io(M,0)){case"$":return"$";case"&":return n;case"`":return oo(r,0,c);case"'":return oo(r,y);case"<":Y=v[oo(M,1,-1)];break;default:var Z=+M;if(Z===0)return x;if(Z>S){var ae=jl(Z/10);return ae===0?x:ae<=S?h[ae-1]===void 0?io(M,1):h[ae-1]+io(M,1):x}Y=h[Z-1]}return Y===void 0?"":Y})},ao=Ke("replace"),Gl=Math.max,Wl=Math.min,Vl=W([].concat),so=W([].push),va=W("".indexOf),ma=W("".slice),ql=function(n){return n===void 0?n:String(n)},zl=function(){return"a".replace(/./,"$0")==="$0"}(),ya=function(){return/./[ao]?/./[ao]("a","$0")==="":!1}(),Kl=!E(function(){var n=/./;return n.exec=function(){var r=[];return r.groups={a:"7"},r},"".replace(n,"$<a>")!=="7"});q("replace",function(n,r,c){var h=ya?"$":"$0";return[function(_,y){var S=ve(this),R=_==null?void 0:ln(_,ao);return R?O(R,_,S,y):O(r,Ae(S),_,y)},function(v,_){var y=D(this),S=Ae(v);if(typeof _=="string"&&va(_,h)===-1&&va(_,"$<")===-1){var R=c(r,y,S,_);if(R.done)return R.value}var x=_e(_);x||(_=Ae(_));var M=y.global;if(M){var Y=y.unicode;y.lastIndex=0}for(var Z=[];;){var ae=le(y,S);if(ae===null||(so(Z,ae),!M))break;var Re=Ae(ae[0]);Re===""&&(y.lastIndex=ne(S,Jt(y.lastIndex),Y))}for(var be="",me=0,Ee=0;Ee<Z.length;Ee++){ae=Z[Ee];for(var Me=Ae(ae[0]),De=Gl(Wl(rt(ae.index),S.length),0),Ct=[],Ot=1;Ot<ae.length;Ot++)so(Ct,ql(ae[Ot]));var rn=ae.groups;if(x){var En=Vl([Me],Ct,De,S);rn!==void 0&&so(En,rn);var Ba=Ae(la(_,void 0,En))}else Ba=Bl(Me,S,De,Ct,rn,_);De>=me&&(be+=ma(S,me,De)+Ba,me=De+Me.length)}return be+ma(S,me)}]},!Kl||!zl||ya);function lo(n,r){if(n instanceof SVGElement){var c=n.getAttribute("class")||"";n.setAttribute("class",c.replace(r,"").replace(/^\s+|\s+$/g,""))}else n.className=n.className.replace(r,"").replace(/^\s+|\s+$/g,"")}function jt(n,r){var c="";if(n.style.cssText&&(c+=n.style.cssText),typeof r=="string")c+=r;else for(var h in r)c+="".concat(h,":").concat(r[h],";");n.style.cssText=c}function At(n){if(n){if(!this._introItems[this._currentStep])return;var r=this._introItems[this._currentStep],c=Sn(r.element,this._targetElement),h=this._options.helperElementPadding;Kr(r.element)?wt(n,"introjs-fixedTooltip"):lo(n,"introjs-fixedTooltip"),r.position==="floating"&&(h=0),jt(n,{width:"".concat(c.width+h,"px"),height:"".concat(c.height+h,"px"),top:"".concat(c.top-h/2,"px"),left:"".concat(c.left-h/2,"px")})}}var co=Ke("unscopables"),uo=Array.prototype;uo[co]==null&&Gt.f(uo,co,{configurable:!0,value:qr(null)});var Xl=function(n){uo[co][n]=!0},Zl=Nr.includes;it({target:"Array",proto:!0},{includes:function(r){return Zl(this,r,arguments.length>1?arguments[1]:void 0)}}),Xl("includes");var Jl=zr("slice"),Ql=Ke("species"),fo=w.Array,Yl=Math.max;it({target:"Array",proto:!0,forced:!Jl},{slice:function(r,c){var h=Ve(this),v=Pt(h),_=Mt(r,v),y=Mt(c===void 0?v:c,v),S,R,x;if(tt(h)&&(S=h.constructor,Ji(S)&&(S===fo||tt(S.prototype))?S=void 0:Pe(S)&&(S=S[Ql],S===null&&(S=void 0)),S===fo||S===void 0))return dr(h,_,y);for(R=new(S===void 0?fo:S)(Yl(y-_,0)),x=0;_<y;_++,x++)_ in h&&Tt(R,x,h[_]);return R.length=x,R}});var ec=w.TypeError,tc=function(n){if(ca(n))throw ec("The method doesn't accept regular expressions");return n},nc=Ke("match"),rc=function(n){var r=/./;try{"/./"[n](r)}catch{try{return r[nc]=!1,"/./"[n](r)}catch{}}return!1},ic=W("".indexOf);it({target:"String",proto:!0,forced:!rc("includes")},{includes:function(r){return!!~ic(Ae(ve(this)),Ae(tc(r)),arguments.length>1?arguments[1]:void 0)}});var ba=function(n,r){var c=[][n];return!!c&&E(function(){c.call(null,r||function(){throw 1},1)})},oc=W([].join),ac=we!=Object,sc=ba("join",",");it({target:"Array",proto:!0,forced:ac||!sc},{join:function(r){return oc(Ve(this),r===void 0?",":r)}});var wa=W(W.bind),lc=function(n,r){return Rn(n),r===void 0?n:wa?wa(n,r):function(){return n.apply(r,arguments)}},Ca=W([].push),$t=function(n){var r=n==1,c=n==2,h=n==3,v=n==4,_=n==6,y=n==7,S=n==5||_;return function(R,x,M,Y){for(var Z=Ie(R),ae=we(Z),Re=lc(x,M),be=Pt(ae),me=0,Ee=Y||Qi,Me=r?Ee(R,be):c||y?Ee(R,0):void 0,De,Ct;be>me;me++)if((S||me in ae)&&(De=ae[me],Ct=Re(De,me,Z),n))if(r)Me[me]=Ct;else if(Ct)switch(n){case 3:return!0;case 5:return De;case 6:return me;case 2:Ca(Me,De)}else switch(n){case 4:return!1;case 7:Ca(Me,De)}return _?-1:h||v?v:Me}},cc={forEach:$t(0),map:$t(1),filter:$t(2),some:$t(3),every:$t(4),find:$t(5),findIndex:$t(6),filterReject:$t(7)},uc=cc.filter,fc=zr("filter");it({target:"Array",proto:!0,forced:!fc},{filter:function(r){return uc(this,r,arguments.length>1?arguments[1]:void 0)}});function Xr(n,r,c,h,v){return n.left+r+c.width>h.width?(v.style.left="".concat(h.width-c.width-n.left,"px"),!1):(v.style.left="".concat(r,"px"),!0)}function Zr(n,r,c,h){return n.left+n.width-r-c.width<0?(h.style.left="".concat(-n.left,"px"),!1):(h.style.right="".concat(r,"px"),!0)}var dc=zr("splice"),pc=w.TypeError,hc=Math.max,gc=Math.min,vc=9007199254740991,mc="Maximum allowed length exceeded";it({target:"Array",proto:!0,forced:!dc},{splice:function(r,c){var h=Ie(this),v=Pt(h),_=Mt(r,v),y=arguments.length,S,R,x,M,Y,Z;if(y===0?S=R=0:y===1?(S=0,R=v-_):(S=y-2,R=gc(hc(rt(c),0),v-_)),v+S-R>vc)throw pc(mc);for(x=Qi(h,R),M=0;M<R;M++)Y=_+M,Y in h&&Tt(x,M,h[Y]);if(x.length=R,S<R){for(M=_;M<v-R;M++)Y=M+R,Z=M+S,Y in h?h[Z]=h[Y]:delete h[Z];for(M=v;M>v-R+S;M--)delete h[M-1]}else if(S>R)for(M=v-R;M>_;M--)Y=M+R-1,Z=M+S-1,Y in h?h[Z]=h[Y]:delete h[Z];for(M=0;M<S;M++)h[M+_]=arguments[M+2];return h.length=v-R+S,x}});function en(n,r){n.includes(r)&&n.splice(n.indexOf(r),1)}function yc(n,r,c,h){var v=c.width,_=r/2,y=Math.min(v,window.screen.width),S=["-left-aligned","-middle-aligned","-right-aligned"],R="";return y-n<r&&en(S,"-left-aligned"),(n<_||y-n<_)&&en(S,"-middle-aligned"),n<r&&en(S,"-right-aligned"),S.length?S.includes(h)?R=h:R=S[0]:R="-middle-aligned",R}function bc(n,r,c){var h=this._options.positionPrecedence.slice(),v=ro(),_=Sn(r).height+10,y=Sn(r).width+20,S=n.getBoundingClientRect(),R="floating";S.bottom+_>v.height&&en(h,"bottom"),S.top-_<0&&en(h,"top"),S.right+y>v.width&&en(h,"right"),S.left-y<0&&en(h,"left");var x=function(M){var Y=M.indexOf("-");return Y!==-1?M.substr(Y):""}(c||"");return c&&(c=c.split("-")[0]),h.length&&(h.includes(c)?R=c:R=h[0]),["top","bottom"].includes(R)&&(R+=yc(S.left,y,v,x)),R}function Jr(n,r,c,h){var v="",_,y,S,R,x;if(h=h||!1,r.style.top=null,r.style.right=null,r.style.bottom=null,r.style.left=null,r.style.marginLeft=null,r.style.marginTop=null,c.style.display="inherit",!!this._introItems[this._currentStep]){_=this._introItems[this._currentStep],typeof _.tooltipClass=="string"?v=_.tooltipClass:v=this._options.tooltipClass,r.className=["introjs-tooltip",v].filter(Boolean).join(" "),r.setAttribute("role","dialog"),x=this._introItems[this._currentStep].position,x!=="floating"&&this._options.autoPosition&&(x=bc.call(this,n,r,x));var M;switch(S=Sn(n),y=Sn(r),R=ro(),wt(r,"introjs-".concat(x)),x){case"top-right-aligned":c.className="introjs-arrow bottom-right";var Y=0;Zr(S,Y,y,r),r.style.bottom="".concat(S.height+20,"px");break;case"top-middle-aligned":c.className="introjs-arrow bottom-middle";var Z=S.width/2-y.width/2;h&&(Z+=5),Zr(S,Z,y,r)&&(r.style.right=null,Xr(S,Z,y,R,r)),r.style.bottom="".concat(S.height+20,"px");break;case"top-left-aligned":case"top":c.className="introjs-arrow bottom",M=h?0:15,Xr(S,M,y,R,r),r.style.bottom="".concat(S.height+20,"px");break;case"right":r.style.left="".concat(S.width+20,"px"),S.top+y.height>R.height?(c.className="introjs-arrow left-bottom",r.style.top="-".concat(y.height-S.height-20,"px")):c.className="introjs-arrow left";break;case"left":!h&&this._options.showStepNumbers===!0&&(r.style.top="15px"),S.top+y.height>R.height?(r.style.top="-".concat(y.height-S.height-20,"px"),c.className="introjs-arrow right-bottom"):c.className="introjs-arrow right",r.style.right="".concat(S.width+20,"px");break;case"floating":c.style.display="none",r.style.left="50%",r.style.top="50%",r.style.marginLeft="-".concat(y.width/2,"px"),r.style.marginTop="-".concat(y.height/2,"px");break;case"bottom-right-aligned":c.className="introjs-arrow top-right",Y=0,Zr(S,Y,y,r),r.style.top="".concat(S.height+20,"px");break;case"bottom-middle-aligned":c.className="introjs-arrow top-middle",Z=S.width/2-y.width/2,h&&(Z+=5),Zr(S,Z,y,r)&&(r.style.right=null,Xr(S,Z,y,R,r)),r.style.top="".concat(S.height+20,"px");break;default:c.className="introjs-arrow top",M=0,Xr(S,M,y,R,r),r.style.top="".concat(S.height+20,"px")}}}function Sa(){var n=document.querySelectorAll(".introjs-showElement");p(n,function(r){lo(r,/introjs-[a-zA-Z]+/g)})}function pe(n,r){var c=document.createElement(n);r=r||{};var h=/^(?:role|data-|aria-)/;for(var v in r){var _=r[v];v==="style"?jt(c,_):v.match(h)?c.setAttribute(v,_):c[v]=_}return c}function _a(n,r,c){if(c){var h=r.style.opacity||"1";jt(r,{opacity:"0"}),window.setTimeout(function(){jt(r,{opacity:h})},10)}n.appendChild(r)}function Qr(){var n=parseInt(this._currentStep+1,10);return n/this._introItems.length*100}function wc(){var n=document.querySelector(".introjs-disableInteraction");n===null&&(n=pe("div",{className:"introjs-disableInteraction"}),this._targetElement.appendChild(n)),At.call(this,n)}function Ea(n){var r=this,c=pe("div",{className:"introjs-bullets"});this._options.showBullets===!1&&(c.style.display="none");var h=pe("ul");h.setAttribute("role","tablist");var v=function(){r.goToStep(this.getAttribute("data-stepnumber"))};return p(this._introItems,function(_,y){var S=_.step,R=pe("li"),x=pe("a");R.setAttribute("role","presentation"),x.setAttribute("role","tab"),x.onclick=v,y===n.step-1&&(x.className="active"),hr(x),x.innerHTML="&nbsp;",x.setAttribute("data-stepnumber",S),R.appendChild(x),h.appendChild(R)}),c.appendChild(h),c}function Cc(n,r){if(this._options.showBullets){var c=document.querySelector(".introjs-bullets");c.parentNode.replaceChild(Ea.call(this,r),c)}}function Sc(n,r){this._options.showBullets&&(n.querySelector(".introjs-bullets li > a.active").className="",n.querySelector('.introjs-bullets li > a[data-stepnumber="'.concat(r.step,'"]')).className="active")}function _c(){var n=pe("div");n.className="introjs-progress",this._options.showProgress===!1&&(n.style.display="none");var r=pe("div",{className:"introjs-progressbar"});return this._options.progressBarAdditionalClass&&(r.className+=" "+this._options.progressBarAdditionalClass),r.setAttribute("role","progress"),r.setAttribute("aria-valuemin",0),r.setAttribute("aria-valuemax",100),r.setAttribute("aria-valuenow",Qr.call(this)),r.style.cssText="width:".concat(Qr.call(this),"%;"),n.appendChild(r),n}function Pa(n){n.querySelector(".introjs-progress .introjs-progressbar").style.cssText="width:".concat(Qr.call(this),"%;"),n.querySelector(".introjs-progress .introjs-progressbar").setAttribute("aria-valuenow",Qr.call(this))}function Ia(n){var r=this;typeof this._introChangeCallback<"u"&&this._introChangeCallback.call(this,n.element);var c=this,h=document.querySelector(".introjs-helperLayer"),v=document.querySelector(".introjs-tooltipReferenceLayer"),_="introjs-helperLayer",y,S,R;if(typeof n.highlightClass=="string"&&(_+=" ".concat(n.highlightClass)),typeof this._options.highlightClass=="string"&&(_+=" ".concat(this._options.highlightClass)),h!==null&&v!==null){var x=v.querySelector(".introjs-helperNumberLayer"),M=v.querySelector(".introjs-tooltiptext"),Y=v.querySelector(".introjs-tooltip-title"),Z=v.querySelector(".introjs-arrow"),ae=v.querySelector(".introjs-tooltip");R=v.querySelector(".introjs-skipbutton"),S=v.querySelector(".introjs-prevbutton"),y=v.querySelector(".introjs-nextbutton"),h.className=_,ae.style.opacity=0,ae.style.display="none",da.call(c,n),At.call(c,h),At.call(c,v),Sa(),c._lastShowElementTimer&&window.clearTimeout(c._lastShowElementTimer),c._lastShowElementTimer=window.setTimeout(function(){x!==null&&(x.innerHTML="".concat(n.step," of ").concat(r._introItems.length)),M.innerHTML=n.intro,Y.innerHTML=n.title,ae.style.display="block",Jr.call(c,n.element,ae,Z),Sc.call(c,v,n),Pa.call(c,v),ae.style.opacity=1,(typeof y<"u"&&y!==null&&/introjs-donebutton/gi.test(y.className)||typeof y<"u"&&y!==null)&&y.focus(),pa.call(c,n.scrollTo,n,M)},350)}else{var Re=pe("div",{className:_}),be=pe("div",{className:"introjs-tooltipReferenceLayer"}),me=pe("div",{className:"introjs-arrow"}),Ee=pe("div",{className:"introjs-tooltip"}),Me=pe("div",{className:"introjs-tooltiptext"}),De=pe("div",{className:"introjs-tooltip-header"}),Ct=pe("h1",{className:"introjs-tooltip-title"}),Ot=pe("div");jt(Re,{"box-shadow":"0 0 1px 2px rgba(33, 33, 33, 0.8), rgba(33, 33, 33, ".concat(c._options.overlayOpacity.toString(),") 0 0 0 5000px")}),da.call(c,n),At.call(c,Re),At.call(c,be),_a(this._targetElement,Re,!0),_a(this._targetElement,be),Me.innerHTML=n.intro,Ct.innerHTML=n.title,Ot.className="introjs-tooltipbuttons",this._options.showButtons===!1&&(Ot.style.display="none"),De.appendChild(Ct),Ee.appendChild(De),Ee.appendChild(Me),Ee.appendChild(Ea.call(this,n)),Ee.appendChild(_c.call(this));var rn=pe("div");this._options.showStepNumbers===!0&&(rn.className="introjs-helperNumberLayer",rn.innerHTML="".concat(n.step," of ").concat(this._introItems.length),Ee.appendChild(rn)),Ee.appendChild(me),be.appendChild(Ee),y=pe("a"),y.onclick=function(){c._introItems.length-1!==c._currentStep?tn.call(c):/introjs-donebutton/gi.test(y.className)&&(typeof c._introCompleteCallback=="function"&&c._introCompleteCallback.call(c,c._currentStep,"done"),nn.call(c,c._targetElement))},hr(y),y.innerHTML=this._options.nextLabel,S=pe("a"),S.onclick=function(){c._currentStep!==0&&Yr.call(c)},hr(S),S.innerHTML=this._options.prevLabel,R=pe("a",{className:"introjs-skipbutton"}),hr(R),R.innerHTML=this._options.skipLabel,R.onclick=function(){c._introItems.length-1===c._currentStep&&typeof c._introCompleteCallback=="function"&&c._introCompleteCallback.call(c,c._currentStep,"skip"),typeof c._introSkipCallback=="function"&&c._introSkipCallback.call(c),nn.call(c,c._targetElement)},De.appendChild(R),this._introItems.length>1&&Ot.appendChild(S),Ot.appendChild(y),Ee.appendChild(Ot),Jr.call(c,n.element,Ee,me),pa.call(this,n.scrollTo,n,Ee)}var En=c._targetElement.querySelector(".introjs-disableInteraction");En&&En.parentNode.removeChild(En),n.disableInteraction&&wc.call(c),this._currentStep===0&&this._introItems.length>1?(typeof y<"u"&&y!==null&&(y.className="".concat(this._options.buttonClass," introjs-nextbutton"),y.innerHTML=this._options.nextLabel),this._options.hidePrev===!0?(typeof S<"u"&&S!==null&&(S.className="".concat(this._options.buttonClass," introjs-prevbutton introjs-hidden")),typeof y<"u"&&y!==null&&wt(y,"introjs-fullbutton")):typeof S<"u"&&S!==null&&(S.className="".concat(this._options.buttonClass," introjs-prevbutton introjs-disabled"))):this._introItems.length-1===this._currentStep||this._introItems.length===1?(typeof S<"u"&&S!==null&&(S.className="".concat(this._options.buttonClass," introjs-prevbutton")),this._options.hideNext===!0?(typeof y<"u"&&y!==null&&(y.className="".concat(this._options.buttonClass," introjs-nextbutton introjs-hidden")),typeof S<"u"&&S!==null&&wt(S,"introjs-fullbutton")):typeof y<"u"&&y!==null&&(this._options.nextToDone===!0?(y.innerHTML=this._options.doneLabel,wt(y,"".concat(this._options.buttonClass," introjs-nextbutton introjs-donebutton"))):y.className="".concat(this._options.buttonClass," introjs-nextbutton introjs-disabled"))):(typeof S<"u"&&S!==null&&(S.className="".concat(this._options.buttonClass," introjs-prevbutton")),typeof y<"u"&&y!==null&&(y.className="".concat(this._options.buttonClass," introjs-nextbutton"),y.innerHTML=this._options.nextLabel)),typeof S<"u"&&S!==null&&S.setAttribute("role","button"),typeof y<"u"&&y!==null&&y.setAttribute("role","button"),typeof R<"u"&&R!==null&&R.setAttribute("role","button"),typeof y<"u"&&y!==null&&y.focus(),Ll(n),typeof this._introAfterChangeCallback<"u"&&this._introAfterChangeCallback.call(this,n.element)}function Ec(n){this._currentStep=n-2,typeof this._introItems<"u"&&tn.call(this)}function Pc(n){this._currentStepNumber=n,typeof this._introItems<"u"&&tn.call(this)}function tn(){var n=this;this._direction="forward",typeof this._currentStepNumber<"u"&&p(this._introItems,function(h,v){var _=h.step;_===n._currentStepNumber&&(n._currentStep=v-1,n._currentStepNumber=void 0)}),typeof this._currentStep>"u"?this._currentStep=0:++this._currentStep;var r=this._introItems[this._currentStep],c=!0;if(typeof this._introBeforeChangeCallback<"u"&&(c=this._introBeforeChangeCallback.call(this,r&&r.element)),c===!1)return--this._currentStep,!1;if(this._introItems.length<=this._currentStep){typeof this._introCompleteCallback=="function"&&this._introCompleteCallback.call(this,this._currentStep,"end"),nn.call(this,this._targetElement);return}Ia.call(this,r)}function Yr(){if(this._direction="backward",this._currentStep===0)return!1;--this._currentStep;var n=this._introItems[this._currentStep],r=!0;if(typeof this._introBeforeChangeCallback<"u"&&(r=this._introBeforeChangeCallback.call(this,n&&n.element)),r===!1)return++this._currentStep,!1;Ia.call(this,n)}function Ic(){return this._currentStep}function Ta(n){var r=n.code===void 0?n.which:n.code;if(r===null&&(r=n.charCode===null?n.keyCode:n.charCode),(r==="Escape"||r===27)&&this._options.exitOnEsc===!0)nn.call(this,this._targetElement);else if(r==="ArrowLeft"||r===37)Yr.call(this);else if(r==="ArrowRight"||r===39)tn.call(this);else if(r==="Enter"||r==="NumpadEnter"||r===13){var c=n.target||n.srcElement;c&&c.className.match("introjs-prevbutton")?Yr.call(this):c&&c.className.match("introjs-skipbutton")?(this._introItems.length-1===this._currentStep&&typeof this._introCompleteCallback=="function"&&this._introCompleteCallback.call(this,this._currentStep,"skip"),nn.call(this,this._targetElement)):c&&c.getAttribute("data-stepnumber")?c.click():tn.call(this),n.preventDefault?n.preventDefault():n.returnValue=!1}}function po(n){if(n===null||o(n)!=="object"||typeof n.nodeType<"u")return n;var r={};for(var c in n)typeof window.jQuery<"u"&&n[c]instanceof window.jQuery?r[c]=n[c]:r[c]=po(n[c]);return r}function Tc(n,r){var c=this,h;return function(){for(var v=arguments.length,_=new Array(v),y=0;y<v;y++)_[y]=arguments[y];clearTimeout(h),h=setTimeout(function(){n.apply(c,_)},r)}}function _n(n){var r=document.querySelector(".introjs-hints");return r?r.querySelectorAll(n):[]}function ho(n){var r=_n('.introjs-hint[data-step="'.concat(n,'"]'))[0];ei.call(this),r&&wt(r,"introjs-hidehint"),typeof this._hintCloseCallback<"u"&&this._hintCloseCallback.call(this,n)}function Ac(){var n=this,r=_n(".introjs-hint");p(r,function(c){ho.call(n,c.getAttribute("data-step"))})}function Oc(){var n=this,r=_n(".introjs-hint");r&&r.length?p(r,function(c){Aa.call(n,c.getAttribute("data-step"))}):xa.call(this,this._targetElement)}function Aa(n){var r=_n('.introjs-hint[data-step="'.concat(n,'"]'))[0];r&&lo(r,/introjs-hidehint/g)}function Rc(){var n=this,r=_n(".introjs-hint");p(r,function(c){Oa.call(n,c.getAttribute("data-step"))}),m.off(document,"click",ei,this,!1),m.off(window,"resize",ti,this,!0),this._hintsAutoRefreshFunction&&m.off(window,"scroll",this._hintsAutoRefreshFunction,this,!0)}function Oa(n){var r=_n('.introjs-hint[data-step="'.concat(n,'"]'))[0];r&&r.parentNode.removeChild(r)}function kc(){var n=this,r=this,c=document.querySelector(".introjs-hints");c===null&&(c=pe("div",{className:"introjs-hints"}));var h=function(_){return function(y){var S=y||window.event;S.stopPropagation&&S.stopPropagation(),S.cancelBubble!==null&&(S.cancelBubble=!0),ka.call(r,_)}};p(this._introItems,function(v,_){if(!document.querySelector('.introjs-hint[data-step="'.concat(_,'"]'))){var y=pe("a",{className:"introjs-hint"});hr(y),y.onclick=h(_),v.hintAnimation||wt(y,"introjs-hint-no-anim"),Kr(v.element)&&wt(y,"introjs-fixedhint");var S=pe("div",{className:"introjs-hint-dot"}),R=pe("div",{className:"introjs-hint-pulse"});y.appendChild(S),y.appendChild(R),y.setAttribute("data-step",_),v.targetElement=v.element,v.element=y,Ra.call(n,v.hintPosition,y,v.targetElement),c.appendChild(y)}}),document.body.appendChild(c),typeof this._hintsAddedCallback<"u"&&this._hintsAddedCallback.call(this),this._options.hintAutoRefreshInterval>=0&&(this._hintsAutoRefreshFunction=Tc(function(){return ti.call(n)},this._options.hintAutoRefreshInterval),m.on(window,"scroll",this._hintsAutoRefreshFunction,this,!0))}function Ra(n,r,c){var h=r.style,v=Sn.call(this,c),_=20,y=20;switch(n){default:case"top-left":h.left="".concat(v.left,"px"),h.top="".concat(v.top,"px");break;case"top-right":h.left="".concat(v.left+v.width-_,"px"),h.top="".concat(v.top,"px");break;case"bottom-left":h.left="".concat(v.left,"px"),h.top="".concat(v.top+v.height-y,"px");break;case"bottom-right":h.left="".concat(v.left+v.width-_,"px"),h.top="".concat(v.top+v.height-y,"px");break;case"middle-left":h.left="".concat(v.left,"px"),h.top="".concat(v.top+(v.height-y)/2,"px");break;case"middle-right":h.left="".concat(v.left+v.width-_,"px"),h.top="".concat(v.top+(v.height-y)/2,"px");break;case"middle-middle":h.left="".concat(v.left+(v.width-_)/2,"px"),h.top="".concat(v.top+(v.height-y)/2,"px");break;case"bottom-middle":h.left="".concat(v.left+(v.width-_)/2,"px"),h.top="".concat(v.top+v.height-y,"px");break;case"top-middle":h.left="".concat(v.left+(v.width-_)/2,"px"),h.top="".concat(v.top,"px");break}}function ka(n){var r=document.querySelector('.introjs-hint[data-step="'.concat(n,'"]')),c=this._introItems[n];typeof this._hintClickCallback<"u"&&this._hintClickCallback.call(this,r,c,n);var h=ei.call(this);if(parseInt(h,10)!==n){var v=pe("div",{className:"introjs-tooltip"}),_=pe("div"),y=pe("div"),S=pe("div");v.onclick=function(M){M.stopPropagation?M.stopPropagation():M.cancelBubble=!0},_.className="introjs-tooltiptext";var R=pe("p");if(R.innerHTML=c.hint,_.appendChild(R),this._options.hintShowButton){var x=pe("a");x.className=this._options.buttonClass,x.setAttribute("role","button"),x.innerHTML=this._options.hintButtonLabel,x.onclick=ho.bind(this,n),_.appendChild(x)}y.className="introjs-arrow",v.appendChild(y),v.appendChild(_),this._currentStep=r.getAttribute("data-step"),S.className="introjs-tooltipReferenceLayer introjs-hintReference",S.setAttribute("data-step",r.getAttribute("data-step")),At.call(this,S),S.appendChild(v),document.body.appendChild(S),Jr.call(this,r,v,y,!0)}}function ei(){var n=document.querySelector(".introjs-hintReference");if(n){var r=n.getAttribute("data-step");return n.parentNode.removeChild(n),r}}function xa(n){var r=this;if(this._introItems=[],this._options.hints)p(this._options.hints,function(h){var v=po(h);typeof v.element=="string"&&(v.element=document.querySelector(v.element)),v.hintPosition=v.hintPosition||r._options.hintPosition,v.hintAnimation=v.hintAnimation||r._options.hintAnimation,v.element!==null&&r._introItems.push(v)});else{var c=n.querySelectorAll("*[data-hint]");if(!c||!c.length)return!1;p(c,function(h){var v=h.getAttribute("data-hintanimation");v?v=v==="true":v=r._options.hintAnimation,r._introItems.push({element:h,hint:h.getAttribute("data-hint"),hintPosition:h.getAttribute("data-hintposition")||r._options.hintPosition,hintAnimation:v,tooltipClass:h.getAttribute("data-tooltipclass"),position:h.getAttribute("data-position")||r._options.tooltipPosition})})}kc.call(this),m.on(document,"click",ei,this,!1),m.on(window,"resize",ti,this,!0)}function ti(){var n=this;p(this._introItems,function(r){var c=r.targetElement,h=r.hintPosition,v=r.element;typeof c>"u"||Ra.call(n,h,v,c)})}var xc=Math.floor,go=function(n,r){var c=n.length,h=xc(c/2);return c<8?Fc(n,r):Lc(n,go(dr(n,0,h),r),go(dr(n,h),r),r)},Fc=function(n,r){for(var c=n.length,h=1,v,_;h<c;){for(_=h,v=n[h];_&&r(n[_-1],v)>0;)n[_]=n[--_];_!==h++&&(n[_]=v)}return n},Lc=function(n,r,c,h){for(var v=r.length,_=c.length,y=0,S=0;y<v||S<_;)n[y+S]=y<v&&S<_?h(r[y],c[S])<=0?r[y++]:c[S++]:y<v?r[y++]:c[S++];return n},Nc=go,Fa=I.match(/firefox\/(\d+)/i),La=!!Fa&&+Fa[1],Mc=/MSIE|Trident/.test(I),Na=I.match(/AppleWebKit\/(\d+)\./),Ma=!!Na&&+Na[1],Ut=[],Da=W(Ut.sort),Dc=W(Ut.push),jc=E(function(){Ut.sort(void 0)}),$c=E(function(){Ut.sort(null)}),Uc=ba("sort"),ja=!E(function(){if(ze)return ze<70;if(!(La&&La>3)){if(Mc)return!0;if(Ma)return Ma<603;var n="",r,c,h,v;for(r=65;r<76;r++){switch(c=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:h=3;break;case 68:case 71:h=4;break;default:h=2}for(v=0;v<47;v++)Ut.push({k:c+v,v:h})}for(Ut.sort(function(_,y){return y.v-_.v}),v=0;v<Ut.length;v++)c=Ut[v].k.charAt(0),n.charAt(n.length-1)!==c&&(n+=c);return n!=="DGBEFHACIJK"}}),Hc=jc||!$c||!Uc||!ja,Bc=function(n){return function(r,c){return c===void 0?-1:r===void 0?1:n!==void 0?+n(r,c)||0:Ae(r)>Ae(c)?1:-1}};it({target:"Array",proto:!0,forced:Hc},{sort:function(r){r!==void 0&&Rn(r);var c=Ie(this);if(ja)return r===void 0?Da(c):Da(c,r);var h=[],v=Pt(c),_,y;for(y=0;y<v;y++)y in c&&Dc(h,c[y]);for(Nc(h,Bc(r)),_=h.length,y=0;y<_;)c[y]=h[y++];for(;y<v;)delete c[y++];return c}});function $a(n){var r=this,c=n.querySelectorAll("*[data-intro]"),h=[];if(this._options.steps)p(this._options.steps,function(x){var M=po(x);if(M.step=h.length+1,M.title=M.title||"",typeof M.element=="string"&&(M.element=document.querySelector(M.element)),typeof M.element>"u"||M.element===null){var Y=document.querySelector(".introjsFloatingElement");Y===null&&(Y=pe("div",{className:"introjsFloatingElement"}),document.body.appendChild(Y)),M.element=Y,M.position="floating"}M.position=M.position||r._options.tooltipPosition,M.scrollTo=M.scrollTo||r._options.scrollTo,typeof M.disableInteraction>"u"&&(M.disableInteraction=r._options.disableInteraction),M.element!==null&&h.push(M)});else{var v=c.length,_;if(v<1)return[];p(c,function(x){if(!(r._options.group&&x.getAttribute("data-intro-group")!==r._options.group)&&x.style.display!=="none"){var M=parseInt(x.getAttribute("data-step"),10);x.hasAttribute("data-disable-interaction")?_=!!x.getAttribute("data-disable-interaction"):_=r._options.disableInteraction,M>0&&(h[M-1]={element:x,title:x.getAttribute("data-title")||"",intro:x.getAttribute("data-intro"),step:parseInt(x.getAttribute("data-step"),10),tooltipClass:x.getAttribute("data-tooltipclass"),highlightClass:x.getAttribute("data-highlightclass"),position:x.getAttribute("data-position")||r._options.tooltipPosition,scrollTo:x.getAttribute("data-scrollto")||r._options.scrollTo,disableInteraction:_})}});var y=0;p(c,function(x){if(!(r._options.group&&x.getAttribute("data-intro-group")!==r._options.group)&&x.getAttribute("data-step")===null){for(;!(typeof h[y]>"u");)y++;x.hasAttribute("data-disable-interaction")?_=!!x.getAttribute("data-disable-interaction"):_=r._options.disableInteraction,h[y]={element:x,title:x.getAttribute("data-title")||"",intro:x.getAttribute("data-intro"),step:y+1,tooltipClass:x.getAttribute("data-tooltipclass"),highlightClass:x.getAttribute("data-highlightclass"),position:x.getAttribute("data-position")||r._options.tooltipPosition,scrollTo:x.getAttribute("data-scrollto")||r._options.scrollTo,disableInteraction:_}}})}for(var S=[],R=0;R<h.length;R++)h[R]&&S.push(h[R]);return h=S,h.sort(function(x,M){return x.step-M.step}),h}function Ua(n){var r=document.querySelector(".introjs-tooltipReferenceLayer"),c=document.querySelector(".introjs-helperLayer"),h=document.querySelector(".introjs-disableInteraction");if(At.call(this,c),At.call(this,r),At.call(this,h),n&&(this._introItems=$a.call(this,this._targetElement),Cc.call(this,r,this._introItems[this._currentStep]),Pa.call(this,r)),this._currentStep!==void 0&&this._currentStep!==null){var v=document.querySelector(".introjs-arrow"),_=document.querySelector(".introjs-tooltip");_&&v&&Jr.call(this,this._introItems[this._currentStep].element,_,v)}return ti.call(this),this}function Ha(){Ua.call(this)}function gr(n,r){if(!(!n||!n.parentElement)){var c=n.parentElement;r?(jt(n,{opacity:"0"}),window.setTimeout(function(){try{c.removeChild(n)}catch{}},500)):c.removeChild(n)}}function nn(n,r){var c=!0;if(this._introBeforeExitCallback!==void 0&&(c=this._introBeforeExitCallback.call(this)),!(!r&&c===!1)){var h=n.querySelectorAll(".introjs-overlay");h&&h.length&&p(h,function(R){return gr(R)});var v=n.querySelector(".introjs-helperLayer");gr(v,!0);var _=n.querySelector(".introjs-tooltipReferenceLayer");gr(_);var y=n.querySelector(".introjs-disableInteraction");gr(y);var S=document.querySelector(".introjsFloatingElement");gr(S),Sa(),m.off(window,"keydown",Ta,this,!0),m.off(window,"resize",Ha,this,!0),this._introExitCallback!==void 0&&this._introExitCallback.call(this),this._currentStep=void 0}}function Gc(n){var r=this,c=pe("div",{className:"introjs-overlay"});return jt(c,{top:0,bottom:0,left:0,right:0,position:"fixed"}),n.appendChild(c),this._options.exitOnOverlayClick===!0&&(jt(c,{cursor:"pointer"}),c.onclick=function(){nn.call(r,n)}),!0}function Wc(n){this._introStartCallback!==void 0&&this._introStartCallback.call(this,n);var r=$a.call(this,n);return r.length===0||(this._introItems=r,Gc.call(this,n)&&(tn.call(this),this._options.keyboardNavigation&&m.on(window,"keydown",Ta,this,!0),m.on(window,"resize",Ha,this,!0))),!1}var Vc="4.3.0";function vr(n){this._targetElement=n,this._introItems=[],this._options={nextLabel:"Next",prevLabel:"Back",skipLabel:"×",doneLabel:"Done",hidePrev:!1,hideNext:!1,nextToDone:!0,tooltipPosition:"bottom",tooltipClass:"",group:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!1,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,scrollTo:"element",scrollPadding:30,overlayOpacity:.5,autoPosition:!0,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,helperElementPadding:10,hintPosition:"top-middle",hintButtonLabel:"Got it",hintShowButton:!0,hintAutoRefreshInterval:10,hintAnimation:!0,buttonClass:"introjs-button",progressBarAdditionalClass:!1}}var ni=function n(r){var c;if(o(r)==="object")c=new vr(r);else if(typeof r=="string"){var h=document.querySelector(r);if(h)c=new vr(h);else throw new Error("There is no element with given selector.")}else c=new vr(document.body);return n.instances[u(c,"introjs-instance")]=c,c};return ni.version=Vc,ni.instances={},ni.fn=vr.prototype={clone:function(){return new vr(this)},setOption:function(r,c){return this._options[r]=c,this},setOptions:function(r){return this._options=l(this._options,r),this},start:function(){return Wc.call(this,this._targetElement),this},goToStep:function(r){return Ec.call(this,r),this},addStep:function(r){return this._options.steps||(this._options.steps=[]),this._options.steps.push(r),this},addSteps:function(r){if(r.length){for(var c=0;c<r.length;c++)this.addStep(r[c]);return this}},goToStepNumber:function(r){return Pc.call(this,r),this},nextStep:function(){return tn.call(this),this},previousStep:function(){return Yr.call(this),this},currentStep:function(){return Ic.call(this)},exit:function(r){return nn.call(this,this._targetElement,r),this},refresh:function(r){return Ua.call(this,r),this},onbeforechange:function(r){if(typeof r=="function")this._introBeforeChangeCallback=r;else throw new Error("Provided callback for onbeforechange was not a function");return this},onchange:function(r){if(typeof r=="function")this._introChangeCallback=r;else throw new Error("Provided callback for onchange was not a function.");return this},onafterchange:function(r){if(typeof r=="function")this._introAfterChangeCallback=r;else throw new Error("Provided callback for onafterchange was not a function");return this},oncomplete:function(r){if(typeof r=="function")this._introCompleteCallback=r;else throw new Error("Provided callback for oncomplete was not a function.");return this},onhintsadded:function(r){if(typeof r=="function")this._hintsAddedCallback=r;else throw new Error("Provided callback for onhintsadded was not a function.");return this},onhintclick:function(r){if(typeof r=="function")this._hintClickCallback=r;else throw new Error("Provided callback for onhintclick was not a function.");return this},onhintclose:function(r){if(typeof r=="function")this._hintCloseCallback=r;else throw new Error("Provided callback for onhintclose was not a function.");return this},onstart:function(r){if(typeof r=="function")this._introStartCallback=r;else throw new Error("Provided callback for onstart was not a function.");return this},onexit:function(r){if(typeof r=="function")this._introExitCallback=r;else throw new Error("Provided callback for onexit was not a function.");return this},onskip:function(r){if(typeof r=="function")this._introSkipCallback=r;else throw new Error("Provided callback for onskip was not a function.");return this},onbeforeexit:function(r){if(typeof r=="function")this._introBeforeExitCallback=r;else throw new Error("Provided callback for onbeforeexit was not a function.");return this},addHints:function(){return xa.call(this,this._targetElement),this},hideHint:function(r){return ho.call(this,r),this},hideHints:function(){return Ac.call(this),this},showHint:function(r){return Aa.call(this,r),this},showHints:function(){return Oc.call(this),this},removeHints:function(){return Rc.call(this),this},removeHint:function(r){return Oa().call(this,r),this},showHintDialog:function(r){return ka.call(this,r),this}},ni})})(ll);var fp=ll.exports;const yp=os(fp);export{hp as M,vp as a,mp as c,yp as i};
//# sourceMappingURL=external-f04454ad.js.map
