1import{g as yr}from"./_commonjsHelpers-Cpj98o6Y.js";var _r={exports:{}};(function(H){(function(s,a){var f=a(s,s.document,Date);s.lazySizes=f,H.exports&&(H.exports=f)})(typeof window<"u"?window:{},function(a,f,P){var v,c;if(function(){var b,g={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};c=a.lazySizesConfig||a.lazysizesConfig||{};for(b in g)b in c||(c[b]=g[b])}(),!f||!f.getElementsByClassName)return{init:function(){},cfg:c,noSupport:!0};var q=f.documentElement,L=a.HTMLPictureElement,oe="addEventListener",T="getAttribute",R=a[oe].bind(a),y=a.setTimeout,A=a.requestAnimationFrame||y,O=a.requestIdleCallback,m=/^picture$/i,u=["load","error","lazyincluded","_lazyloaded"],d={},w=Array.prototype.forEach,N=function(b,g){return d[g]||(d[g]=new RegExp("(\\s|^)"+g+"(\\s|$)")),d[g].test(b[T]("class")||"")&&d[g]},B=function(b,g){N(b,g)||b.setAttribute("class",(b[T]("class")||"").trim()+" "+g)},W=function(b,g){var x;(x=N(b,g))&&b.setAttribute("class",(b[T]("class")||"").replace(x," "))},ee=function(b,g,x){var F=x?oe:"removeEventListener";x&&ee(b,g),u.forEach(function(j){b[F](j,g)})},te=function(b,g,x,F,j){var z=f.createEvent("Event");return x||(x={}),x.instance=v,z.initEvent(g,!F,!j),z.detail=x,b.dispatchEvent(z),z},Z=function(b,g){var x;!L&&(x=a.picturefill||c.pf)?(g&&g.src&&!b[T]("srcset")&&b.setAttribute("srcset",g.src),x({reevaluate:!0,elements:[b]})):g&&g.src&&(b.src=g.src)},ne=function(b,g){return(getComputedStyle(b,null)||{})[g]},le=function(b,g,x){for(x=x||b.offsetWidth;x<c.minSize&&g&&!b._lazysizesWidth;)x=g.offsetWidth,g=g.parentNode;return x},me=function(){var b,g,x=[],F=[],j=x,z=function(){var S=j;for(j=x.length?F:x,b=!0,g=!1;S.length;)S.shift()();b=!1},$=function(S,E){b&&!E?S.apply(this,arguments):(j.push(S),g||(g=!0,(f.hidden?y:A)(z)))};return $._lsFlush=z,$}(),pe=function(b,g){return g?function(){me(b)}:function(){var x=this,F=arguments;me(function(){b.apply(x,F)})}},Te=function(b){var g,x=0,F=c.throttleDelay,j=c.ricTimeout,z=function(){g=!1,x=P.now(),b()},$=O&&j>49?function(){O(z,{timeout:j}),j!==c.ricTimeout&&(j=c.ricTimeout)}:pe(function(){y(z)},!0);return function(S){var E;(S=S===!0)&&(j=33),!g&&(g=!0,E=F-(P.now()-x),E<0&&(E=0),S||E<9?$():y($,E))}},ze=function(b){var g,x,F=99,j=function(){g=null,b()},z=function(){var $=P.now()-x;$<F?y(z,F-$):(O||j)(j)};return function(){x=P.now(),g||(g=y(z,F))}},Ie=function(){var b,g,x,F,j,z,$,S,E,re,he,Q,Ne=/^img$/i,Ve=/^iframe$/i,ye="onscroll"in a&&!/(gle|ing)bot/.test(navigator.userAgent),je=0,_e=0,ae=0,ge=-1,Ue=function(l){ae--,(!l||ae<0||!l.target)&&(ae=0)},Le=function(l){return Q==null&&(Q=ne(f.body,"visibility")=="hidden"),Q||!(ne(l.parentNode,"visibility")=="hidden"&&ne(l,"visibility")=="hidden")},Ge=function(l,_){var U,X=l,V=Le(l);for(S-=_,he+=_,E-=_,re+=_;V&&(X=X.offsetParent)&&X!=f.body&&X!=q;)V=(ne(X,"opacity")||1)>0,V&&ne(X,"overflow")!="visible"&&(U=X.getBoundingClientRect(),V=re>U.left&&E<U.right&&he>U.top-1&&S<U.bottom+1);return V},Me=function(){var l,_,U,X,V,K,de,ue,G,fe,ce,be,se=v.elements;if((F=c.loadMode)&&ae<8&&(l=se.length)){for(_=0,ge++;_<l;_++)if(!(!se[_]||se[_]._lazyRace)){if(!ye||v.prematureUnveil&&v.prematureUnveil(se[_])){we(se[_]);continue}if((!(ue=se[_][T]("data-expand"))||!(K=ue*1))&&(K=_e),fe||(fe=!c.expand||c.expand<1?q.clientHeight>500&&q.clientWidth>500?500:370:c.expand,v._defEx=fe,ce=fe*c.expFactor,be=c.hFac,Q=null,_e<ce&&ae<1&&ge>2&&F>2&&!f.hidden?(_e=ce,ge=0):F>1&&ge>1&&ae<6?_e=fe:_e=je),G!==K&&(z=innerWidth+K*be,$=innerHeight+K,de=K*-1,G=K),U=se[_].getBoundingClientRect(),(he=U.bottom)>=de&&(S=U.top)<=$&&(re=U.right)>=de*be&&(E=U.left)<=z&&(he||re||E||S)&&(c.loadHidden||Le(se[_]))&&(g&&ae<3&&!ue&&(F<3||ge<4)||Ge(se[_],K))){if(we(se[_]),V=!0,ae>9)break}else!V&&g&&!X&&ae<4&&ge<4&&F>2&&(b[0]||c.preloadAfterLoad)&&(b[0]||!ue&&(he||re||E||S||se[_][T](c.sizesAttr)!="auto"))&&(X=b[0]||se[_])}X&&!V&&we(X)}},ie=Te(Me),De=function(l){var _=l.target;if(_._lazyCache){delete _._lazyCache;return}Ue(l),B(_,c.loadedClass),W(_,c.loadingClass),ee(_,He),te(_,"lazyloaded")},Pe=pe(De),He=function(l){Pe({target:l.target})},D=function(l,_){var U=l.getAttribute("data-load-mode")||c.iframeLoadMode;U==0?l.contentWindow.location.replace(_):U==1&&(l.src=_)},Qe=function(l){var _,U=l[T](c.srcsetAttr);(_=c.customMedia[l[T]("data-media")||l[T]("media")])&&l.setAttribute("media",_),U&&l.setAttribute("srcset",U)},Ke=pe(function(l,_,U,X,V){var K,de,ue,G,fe,ce;(fe=te(l,"lazybeforeunveil",_)).defaultPrevented||(X&&(U?B(l,c.autosizesClass):l.setAttribute("sizes",X)),de=l[T](c.srcsetAttr),K=l[T](c.srcAttr),V&&(ue=l.parentNode,G
1=ue&&m.test(ue.nodeName||"")),ce=_.firesLoad||"src"in l&&(de||K||G),fe={target:l},B(l,c.loadingClass),ce&&(clearTimeout(x),x=y(Ue,2500),ee(l,He,!0)),G&&w.call(ue.getElementsByTagName("source"),Qe),de?l.setAttribute("srcset",de):K&&!G&&(Ve.test(l.nodeName)?D(l,K):l.src=K),V&&(de||G)&&Z(l,{src:K})),l._lazyRace&&delete l._lazyRace,W(l,c.lazyClass),me(function(){var be=l.complete&&l.naturalWidth>1;(!ce||be)&&(be&&B(l,c.fastLoadedClass),De(fe),l._lazyCache=!0,y(function(){"_lazyCache"in l&&delete l._lazyCache},9)),l.loading=="lazy"&&ae--},!0)}),we=function(l){if(!l._lazyRace){var _,U=Ne.test(l.nodeName),X=U&&(l[T](c.sizesAttr)||l[T]("sizes")),V=X=="auto";(V||!g)&&U&&(l[T]("src")||l.srcset)&&!l.complete&&!N(l,c.errorClass)&&N(l,c.lazyClass)||(_=te(l,"lazyunveilread").detail,V&&Ae.updateElem(l,!0,l.offsetWidth),l._lazyRace=!0,ae++,Ke(l,_,V,X,U))}},Ye=ze(function(){c.loadMode=3,ie()}),qe=function(){c.loadMode==3&&(c.loadMode=2),Ye()},Ee=function(){if(!g){if(P.now()-j<999){y(Ee,999);return}g=!0,c.loadMode=3,ie(),R("scroll",qe,!0)}};return{_:function(){j=P.now(),v.elements=f.getElementsByClassName(c.lazyClass),b=f.getElementsByClassName(c.lazyClass+" "+c.preloadClass),R("scroll",ie,!0),R("resize",ie,!0),R("pageshow",function(l){if(l.persisted){var _=f.querySelectorAll("."+c.loadingClass);_.length&&_.forEach&&A(function(){_.forEach(function(U){U.complete&&we(U)})})}}),a.MutationObserver?new MutationObserver(ie).observe(q,{childList:!0,subtree:!0,attributes:!0}):(q[oe]("DOMNodeInserted",ie,!0),q[oe]("DOMAttrModified",ie,!0),setInterval(ie,999)),R("hashchange",ie,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(l){f[oe](l,ie,!0)}),/d$|^c/.test(f.readyState)?Ee():(R("load",Ee),f[oe]("DOMContentLoaded",ie),y(Ee,2e4)),v.elements.length?(Me(),me._lsFlush()):ie()},checkElems:ie,unveil:we,_aLSL:qe}}(),Ae=function(){var b,g=pe(function(z,$,S,E){var re,he,Q;if(z._lazysizesWidth=E,E+="px",z.setAttribute("sizes",E),m.test($.nodeName||""))for(re=$.getElementsByTagName("source"),he=0,Q=re.length;he<Q;he++)re[he].setAttribute("sizes",E);S.detail.dataAttr||Z(z,S.detail)}),x=function(z,$,S){var E,re=z.parentNode;re&&(S=le(z,re,S),E=te(z,"lazybeforesizes",{width:S,dataAttr:!!$}),E.defaultPrevented||(S=E.detail.width,S&&S!==z._lazysizesWidth&&g(z,re,E,S)))},F=function(){var z,$=b.length;if($)for(z=0;z<$;z++)x(b[z])},j=ze(F);return{_:function(){b=f.getElementsByClassName(c.autosizesClass),R("resize",j)},checkElems:j,updateElem:x}}(),xe=function(){!xe.i&&f.getElementsByClassName&&(xe.i=!0,Ae._(),Ie._())};return y(function(){c.init&&xe()}),v={cfg:c,autoSizer:Ae,loader:Ie,init:xe,uP:Z,aC:B,rC:W,hC:N,fire:te,gW:le,rAF:me},v})})(_r);class ht{listenForWhisper(s,a){return this.listen(".client-"+s,a)}notification(s){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",s)}stopListeningForWhisper(s,a){return this.stopListening(".client-"+s,a)}}class Ot{constructor(s){this.namespace=s}format(s){return[".","\\"].includes(s.charAt(0))?s.substring(1):(this.namespace&&(s=this.namespace+"."+s),s.replace(/\./g,"\\"))}setNamespace(s){this.namespace=s}}function wr(H){try{new H}catch(s){if(s instanceof Error&&s.message.includes("is not a constructor"))return!1}return!0}class ut extends ht{constructor(s,a,f){super(),this.name=a,this.pusher=s,this.options=f,this.eventFormatter=new Ot(this.options.namespace),this.subscribe()}subscribe(){this.subscription=this.pusher.subscribe(this.name)}unsubscribe(){this.pusher.unsubscribe(this.name)}listen(s,a){return this.on(this.eventFormatter.format(s),a),this}listenToAll(s){return this.subscription.bind_global((a,f)=>{if(a.startsWith("pusher:"))return;let P=String(this.options.namespace??"").replace(/\./g,"\\"),v=a.startsWith(P)?a.substring(P.length+1):"."+a;s(v,f)}),this}stopListening(s,a){return a?this.subscription.unbind(this.eventFormatter.format(s),a):this.subscription.unbind(this.eventFormatter.format(s)),this}stopListeningToAll(s){return s?this.subscription.unbind_global(s):this.subscription.unbind_global(),this}subscribed(s){return this.on("pusher:subscription_succeeded",()=>{s()}),this}error(s){return this.on("pusher:subscription_error",a=>{s(a)}),this}on(s,a){return this.subscription.bind(s,a),this}}class zt extends ut{whisper(s,a){return this.pusher.channels.channels[this.name].trigger(`client-${s}`,a),this}}class Sr extends ut{whisper(s,a){return this.pusher.channels.channels[this.name].trigger(`client-${s}`,a),this}}class Cr extends zt{here(s){return this.on("pusher:subscription_succeeded",a=>{s(Object.keys(a.members).map(f=>a.members[f]))}),this}joining(s){return this.on("pusher:member_added",a=>{s(a.info)}),this}whisper(s,a){return this.pusher.channels.channels[this.name].trigger(`client-${s}`,a),this}leaving(s){return this.on("pusher:member_removed",a=>{s(a.info)}),this}}class It extends ht{constructor(s,a,f){super(),this.events={},this.listeners={},this.name=a,this.socket=s,this.options=f,this.eventFormatter=new Ot(this.options.namespace),this.subscribe()}subscribe(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}unsubscribe(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}listen(s,a){return this.on(this.eventFormatter.format(s),a),this}stopListening(s,a){return this.unbindEvent(this.eventFormatter.format(s),a),this}subscribed(s){return this.on("connect",a=>{s(a)}),this}error(s){return this}on(s,a){return this.listeners[s]=this.listeners[s]||[],this.events[s]||(this.events[s]=(f,P)=>
1{this.name===f&&this.listeners[s]&&this.listeners[s].forEach(v=>v(P))},this.socket.on(s,this.events[s])),this.listeners[s].push(a),this}unbind(){Object.keys(this.events).forEach(s=>{this.unbindEvent(s)})}unbindEvent(s,a){this.listeners[s]=this.listeners[s]||[],a&&(this.listeners[s]=this.listeners[s].filter(f=>f!==a)),(!a||this.listeners[s].length===0)&&(this.events[s]&&(this.socket.removeListener(s,this.events[s]),delete this.events[s]),delete this.listeners[s])}}class Nt extends It{whisper(s,a){return this.socket.emit("client event",{channel:this.name,event:`client-${s}`,data:a}),this}}class kr extends Nt{here(s){return this.on("presence:subscribed",a=>{s(a.map(f=>f.user_info))}),this}joining(s){return this.on("presence:joining",a=>s(a.user_info)),this}whisper(s,a){return this.socket.emit("client event",{channel:this.name,event:`client-${s}`,data:a}),this}leaving(s){return this.on("presence:leaving",a=>s(a.user_info)),this}}class Je extends ht{subscribe(){}unsubscribe(){}listen(s,a){return this}listenToAll(s){return this}stopListening(s,a){return this}subscribed(s){return this}error(s){return this}on(s,a){return this}}class jt extends Je{whisper(s,a){return this}}class Tr extends Je{whisper(s,a){return this}}class xr extends jt{here(s){return this}joining(s){return this}whisper(s,a){return this}leaving(s){return this}}const Ut=class Mt{constructor(s){this.setOptions(s),this.connect()}setOptions(s){this.options={...Mt._defaultOptions,...s,broadcaster:s.broadcaster};let a=this.csrfToken();a&&(this.options.auth.headers["X-CSRF-TOKEN"]=a,this.options.userAuthentication.headers["X-CSRF-TOKEN"]=a),a=this.options.bearerToken,a&&(this.options.auth.headers.Authorization="Bearer "+a,this.options.userAuthentication.headers.Authorization="Bearer "+a)}csrfToken(){var s,a;return((s=window==null?void 0:window.Laravel)==null?void 0:s.csrfToken)??this.options.csrfToken??((a=document==null?void 0:document.querySelector('meta[name="csrf-token"]'))==null?void 0:a.getAttribute("content"))??null}};Ut._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",userAuthentication:{endpoint:"/broadcasting/user-auth",headers:{}},csrfToken:null,bearerToken:null,host:null,key:null,namespace:"App.Events"};let lt=Ut;class Xe extends lt{constructor(){super(...arguments),this.channels={}}connect(){if(typeof this.options.client<"u")this.pusher=this.options.client;else if(this.options.Pusher)this.pusher=new this.options.Pusher(this.options.key,this.options);else if(typeof window<"u"&&typeof window.Pusher<"u")this.pusher=new window.Pusher(this.options.key,this.options);else throw new Error("Pusher client not found. Should be globally available or passed via options.client")}signin(){this.pusher.signin()}listen(s,a,f){return this.channel(s).listen(a,f)}channel(s){return this.channels[s]||(this.channels[s]=new ut(this.pusher,s,this.options)),this.channels[s]}privateChannel(s){return this.channels["private-"+s]||(this.channels["private-"+s]=new zt(this.pusher,"private-"+s,this.options)),this.channels["private-"+s]}encryptedPrivateChannel(s){return this.channels["private-encrypted-"+s]||(this.channels["private-encrypted-"+s]=new Sr(this.pusher,"private-encrypted-"+s,this.options)),this.channels["private-encrypted-"+s]}presenceChannel(s){return this.channels["presence-"+s]||(this.channels["presence-"+s]=new Cr(this.pusher,"presence-"+s,this.options)),this.channels["presence-"+s]}leave(s){[s,"private-"+s,"private-encrypted-"+s,"presence-"+s].forEach(a=>{this.leaveChannel(a)})}leaveChannel(s){this.channels[s]&&(this.channels[s].unsubscribe(),delete this.channels[s])}socketId(){return this.pusher.connection.socket_id}disconnect(){this.pusher.disconnect()}}class Pr extends lt{constructor(){super(...arguments),this.channels={}}connect(){let s=this.getSocketIO();this.socket=s(this.options.host??void 0,this.options),this.socket.on("reconnect",()=>{Object.values(this.channels).forEach(a=>{a.subscribe()})})}getSocketIO(){if(typeof this.options.client<"u")return this.options.client;if(typeof window<"u"&&typeof window.io<"u")return window.io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}listen(s,a,f){return this.channel(s).listen(a,f)}channel(s){return this.channels[s]||(this.channels[s]=new It(this.socket,s,this.options)),this.channels[s]}privateChannel(s){return this.channels["private-"+s]||(this.channels["private-"+s]=new Nt(this.socket,"private-"+s,this.options)),this.channels["private-"+s]}presenceChannel(s){return this.channels["presence-"+s]||(this.channels["presence-"+s]=new kr(this.socket,"presence-"+s,this.options)),this.channels["presence-"+s]}
1leave(s){[s,"private-"+s,"presence-"+s].forEach(a=>{this.leaveChannel(a)})}leaveChannel(s){this.channels[s]&&(this.channels[s].unsubscribe(),delete this.channels[s])}socketId(){return this.socket.id}disconnect(){this.socket.disconnect()}}class Rt extends lt{constructor(){super(...arguments),this.channels={}}connect(){}listen(s,a,f){return new Je}channel(s){return new Je}privateChannel(s){return new jt}encryptedPrivateChannel(s){return new Tr}presenceChannel(s){return new xr}leave(s){}leaveChannel(s){}socketId(){return"fake-socket-id"}disconnect(){}}class Or{constructor(s){this.options=s,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}channel(s){return this.connector.channel(s)}connect(){if(this.options.broadcaster==="reverb")this.connector=new Xe({...this.options,cluster:""});else if(this.options.broadcaster==="pusher")this.connector=new Xe(this.options);else if(this.options.broadcaster==="ably")this.connector=new Xe({...this.options,cluster:"",broadcaster:"pusher"});else if(this.options.broadcaster==="socket.io")this.connector=new Pr(this.options);else if(this.options.broadcaster==="null")this.connector=new Rt(this.options);else if(typeof this.options.broadcaster=="function"&&wr(this.options.broadcaster))this.connector=new this.options.broadcaster(this.options);else throw new Error(`Broadcaster ${typeof this.options.broadcaster} ${String(this.options.broadcaster)} is not supported.`)}disconnect(){this.connector.disconnect()}join(s){return this.connector.presenceChannel(s)}leave(s){this.connector.leave(s)}leaveChannel(s){this.connector.leaveChannel(s)}leaveAllChannels(){for(const s in this.connector.channels)this.leaveChannel(s)}listen(s,a,f){return this.connector.listen(s,a,f)}private(s){return this.connector.privateChannel(s)}encryptedPrivate(s){if(this.connectorSupportsEncryptedPrivateChannels(this.connector))return this.connector.encryptedPrivateChannel(s);throw new Error(`Broadcaster ${typeof this.options.broadcaster} ${String(this.options.broadcaster)} does not support encrypted private channels.`)}connectorSupportsEncryptedPrivateChannels(s){return s instanceof Xe||s instanceof Rt}socketId(){return this.connector.socketId()}registerInterceptors(){typeof Vue<"u"&&Vue!=null&&Vue.http&&this.registerVueRequestInterceptor(),typeof axios=="function"&&this.registerAxiosRequestInterceptor(),typeof jQuery=="function"&&this.registerjQueryAjaxSetup(),typeof Turbo=="object"&&this.registerTurboRequestInterceptor()}registerVueRequestInterceptor(){Vue.http.interceptors.push((s,a)=>{this.socketId()&&s.headers.set("X-Socket-ID",this.socketId()),a()})}registerAxiosRequestInterceptor(){axios.interceptors.request.use(s=>(this.socketId()&&(s.headers["X-Socket-Id"]=this.socketId()),s))}registerjQueryAjaxSetup(){typeof jQuery.ajax<"u"&&jQuery.ajaxPrefilter((s,a,f)=>{this.socketId()&&f.setRequestHeader("X-Socket-Id",this.socketId())})}registerTurboRequestInterceptor(){document.addEventListener("turbo:before-fetch-request",s=>{s.detail.fetchOptions.headers["X-Socket-Id"]=this.socketId()})}}var Dt={exports:{}};/*! 2 * Pusher JavaScript Library v8.4.0 3 * https://pusher.com/ 4 * 5 * Copyright 2020, Pusher 6 * Released under the MIT licence. 7 */(function(H,s){(function(f,P){H.exports=P()})(window,function(){return function(a){var f={};function P(v){if(f[v])return f[v].exports;var c=f[v]={i:v,l:!1,exports:{}};return a[v].call(c.exports,c,c.exports,P),c.l=!0,c.exports}return P.m=a,P.c=f,P.d=function(v,c,q){P.o(v,c)||Object.defineProperty(v,c,{enumerable:!0,get:q})},P.r=function(v){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})},P.t=function(v,c){if(c&1&&(v=P(v)),c&8||c&4&&typeof v=="object"&&v&&v.__esModule)return v;var q=Object.create(null);if(P.r(q),Object.defineProperty(q,"default",{enumerable:!0,value:v}),c&2&&typeof v!="string")for(var L in v)P.d(q,L,(function(oe){return v[oe]}).bind(null,L));return q},P.n=function(v){var c=v&&v.__esModule?function(){return v.default}:function(){return v};return P.d(c,"a",c),c},P.o=function(v,c){return Object.prototype.hasOwnProperty.call(v,c)},P.p="",P(P.s=2)}([function(a,f,P){var v=this&&this.__extends||function(){var m=function(u,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,N){w.__proto__=N}||function(w,N){for(var B in N)N.hasOwnProperty(B)&&(w[B]=N[B])},m(u,d)};return function(u,d){m(u,d);function w(){this.constructor=u}
7u.prototype=d===null?Object.create(d):(w.prototype=d.prototype,new w)}}();Object.defineProperty(f,"__esModule",{value:!0});var c=256,q=function(){function m(u){u===void 0&&(u="="),this._paddingCharacter=u}return m.prototype.encodedLength=function(u){return this._paddingCharacter?(u+2)/3*4|0:(u*8+5)/6|0},m.prototype.encode=function(u){for(var d="",w=0;w<u.length-2;w+=3){var N=u[w]<<16|u[w+1]<<8|u[w+2];d+=this._encodeByte(N>>>3*6&63),d+=this._encodeByte(N>>>2*6&63),d+=this._encodeByte(N>>>1*6&63),d+=this._encodeByte(N>>>0*6&63)}var B=u.length-w;if(B>0){var N=u[w]<<16|(B===2?u[w+1]<<8:0);d+=this._encodeByte(N>>>3*6&63),d+=this._encodeByte(N>>>2*6&63),B===2?d+=this._encodeByte(N>>>1*6&63):d+=this._paddingCharacter||"",d+=this._paddingCharacter||""}return d},m.prototype.maxDecodedLength=function(u){return this._paddingCharacter?u/4*3|0:(u*6+7)/8|0},m.prototype.decodedLength=function(u){return this.maxDecodedLength(u.length-this._getPaddingLength(u))},m.prototype.decode=function(u){if(u.length===0)return new Uint8Array(0);for(var d=this._getPaddingLength(u),w=u.length-d,N=new Uint8Array(this.maxDecodedLength(w)),B=0,W=0,ee=0,te=0,Z=0,ne=0,le=0;W<w-4;W+=4)te=this._decodeChar(u.charCodeAt(W+0)),Z=this._decodeChar(u.charCodeAt(W+1)),ne=this._decodeChar(u.charCodeAt(W+2)),le=this._decodeChar(u.charCodeAt(W+3)),N[B++]=te<<2|Z>>>4,N[B++]=Z<<4|ne>>>2,N[B++]=ne<<6|le,ee|=te&c,ee|=Z&c,ee|=ne&c,ee|=le&c;if(W<w-1&&(te=this._decodeChar(u.charCodeAt(W)),Z=this._decodeChar(u.charCodeAt(W+1)),N[B++]=te<<2|Z>>>4,ee|=te&c,ee|=Z&c),W<w-2&&(ne=this._decodeChar(u.charCodeAt(W+2)),N[B++]=Z<<4|ne>>>2,ee|=ne&c),W<w-3&&(le=this._decodeChar(u.charCodeAt(W+3)),N[B++]=ne<<6|le,ee|=le&c),ee!==0)throw new Error("Base64Coder: incorrect characters for decoding");return N},m.prototype._encodeByte=function(u){var d=u;return d+=65,d+=25-u>>>8&6,d+=51-u>>>8&-75,d+=61-u>>>8&-15,d+=62-u>>>8&3,String.fromCharCode(d)},m.prototype._decodeChar=function(u){var d=c;return d+=(42-u&u-44)>>>8&-c+u-43+62,d+=(46-u&u-48)>>>8&-c+u-47+63,d+=(47-u&u-58)>>>8&-c+u-48+52,d+=(64-u&u-91)>>>8&-c+u-65+0,d+=(96-u&u-123)>>>8&-c+u-97+26,d},m.prototype._getPaddingLength=function(u){var d=0;if(this._paddingCharacter){for(var w=u.length-1;w>=0&&u[w]===this._paddingCharacter;w--)d++;if(u.length<4||d>2)throw new Error("Base64Coder: incorrect padding")}return d},m}();f.Coder=q;var L=new q;function oe(m){return L.encode(m)}f.encode=oe;function T(m){return L.decode(m)}f.decode=T;var R=function(m){v(u,m);function u(){return m!==null&&m.apply(this,arguments)||this}return u.prototype._encodeByte=function(d){var w=d;return w+=65,w+=25-d>>>8&6,w+=51-d>>>8&-75,w+=61-d>>>8&-13,w+=62-d>>>8&49,String.fromCharCode(w)},u.prototype._decodeChar=function(d){var w=c;return w+=(44-d&d-46)>>>8&-c+d-45+62,w+=(94-d&d-96)>>>8&-c+d-95+63,w+=(47-d&d-58)>>>8&-c+d-48+52,w+=(64-d&d-91)>>>8&-c+d-65+0,w+=(96-d&d-123)>>>8&-c+d-97+26,w},u}(q);f.URLSafeCoder=R;var y=new R;function A(m){return y.encode(m)}f.encodeURLSafe=A;function O(m){return y.decode(m)}f.decodeURLSafe=O,f.encodedLength=function(m){return L.encodedLength(m)},f.maxDecodedLength=function(m){return L.maxDecodedLength(m)},f.decodedLength=function(m){return L.decodedLength(m)}},function(a,f,P){Object.defineProperty(f,"__esModule",{value:!0});var v="utf8: invalid string",c="utf8: invalid source encoding";function q(T){for(var R=new Uint8Array(L(T)),y=0,A=0;A<T.length;A++){var O=T.charCodeAt(A);O<128?R[y++]=O:O<2048?(R[y++]=192|O>>6,R[y++]=128|O&63):O<55296?(R[y++]=224|O>>12,R[y++]=128|O>>6&63,R[y++]=128|O&63):(A++,O=(O&1023)<<10,O|=T.charCodeAt(A)&1023,O+=65536,R[y++]=240|O>>18,R[y++]=128|O>>12&63,R[y++]=128|O>>6&63,R[y++]=128|O&63)}return R}f.encode=q;function L(T){for(var R=0,y=0;y<T.length;y++){var A=T.charCodeAt(y);if(A<128)R+=1;else if(A<2048)R+=2;else if(A<55296)R+=3;else if(A<=57343){if(y>=T.length-1)throw new Error(v);y++,R+=4}else throw new Error(v)}return R}f.encodedLength=L;function oe(T){for(var R=[],y=0;y<T.length;y++){var A=T[y];if(A&128){var O=void 0;if(A<224){if(y>=T.length)throw new Error(c);var m=T[++y];if((m&192)!==128)throw new Error(c);A=(A&31)<<6|m&63,O=128}else if(A<240){if(y>=T.length-1)throw new Error(c);var m=T[++y],u=T[++y];if((m&192)!==128||(u&192)!==128)throw new Error(c);A=(A&15)<<12|(m&63)<<6|u&63,O=2048}else if(A<248){if(y>=T.length-2)throw new Error(c);var m=T[++y],u=T[++y],d=T[++y];if((m&192)!==128||(u&192)!==128||(d&192)!==128)throw new Error(c);A=(A&15)<<18|(m&63)<<12|(u&63)<<6|d&63,O=65536}else throw new Error(c);if(A<O||A>=55296&&A<=57343)throw new Error(c);if(A>
7=65536){if(A>1114111)throw new Error(c);A-=65536,R.push(String.fromCharCode(55296|A>>10)),A=56320|A&1023}}R.push(String.fromCharCode(A))}return R.join("")}f.decode=oe},function(a,f,P){a.exports=P(3).default},function(a,f,P){P.r(f);class v{constructor(e,t){this.lastId=0,this.prefix=e,this.name=t}create(e){this.lastId++;var t=this.lastId,r=this.prefix+t,i=this.name+"["+t+"]",o=!1,h=function(){o||(e.apply(null,arguments),o=!0)};return this[t]=h,{number:t,id:r,name:i,callback:h}}remove(e){delete this[e.number]}}var c=new v("_pusher_script_","Pusher.ScriptReceivers"),q={VERSION:"8.4.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},L=q;class oe{constructor(e){this.options=e,this.receivers=e.receivers||c,this.loading={}}load(e,t,r){var i=this;if(i.loading[e]&&i.loading[e].length>0)i.loading[e].push(r);else{i.loading[e]=[r];var o=k.createScriptRequest(i.getPath(e,t)),h=i.receivers.create(function(p){if(i.receivers.remove(h),i.loading[e]){var C=i.loading[e];delete i.loading[e];for(var I=function(J){J||o.cleanup()},M=0;M<C.length;M++)C[M](p,I)}});o.send(h)}}getRoot(e){var t,r=k.getDocument().location.protocol;return e&&e.useTLS||r==="https:"?t=this.options.cdn_https:t=this.options.cdn_http,t.replace(/\/*$/,"")+"/"+this.options.version}getPath(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"}}var T=new v("_pusher_dependencies","Pusher.DependenciesReceivers"),R=new oe({cdn_http:L.cdn_http,cdn_https:L.cdn_https,version:L.VERSION,suffix:L.dependency_suffix,receivers:T});const y={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}};var O={buildLogSuffix:function(n){const e="See:",t=y.urls[n];if(!t)return"";let r;return t.fullUrl?r=t.fullUrl:t.path&&(r=y.baseUrl+t.path),r?`${e} ${r}`:""}},m;(function(n){n.UserAuthentication="user-authentication",n.ChannelAuthorization="channel-authorization"})(m||(m={}));class u extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class d extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class w extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class N extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class B extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class W extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class ee extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class te extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}
7class Z extends Error{constructor(e,t){super(t),this.status=e,Object.setPrototypeOf(this,new.target.prototype)}}var le=function(n,e,t,r,i){const o=k.createXHR();o.open("POST",t.endpoint,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var h in t.headers)o.setRequestHeader(h,t.headers[h]);if(t.headersProvider!=null){let p=t.headersProvider();for(var h in p)o.setRequestHeader(h,p[h])}return o.onreadystatechange=function(){if(o.readyState===4)if(o.status===200){let p,C=!1;try{p=JSON.parse(o.responseText),C=!0}catch{i(new Z(200,`JSON returned from ${r.toString()} endpoint was invalid, yet status code was 200. Data was: ${o.responseText}`),null)}C&&i(null,p)}else{let p="";switch(r){case m.UserAuthentication:p=O.buildLogSuffix("authenticationEndpoint");break;case m.ChannelAuthorization:p=`Clients must be authorized to join private or presence channels. ${O.buildLogSuffix("authorizationEndpoint")}`;break}i(new Z(o.status,`Unable to retrieve auth string from ${r.toString()} endpoint - received status: ${o.status} from ${t.endpoint}. ${p}`),null)}},o.send(e),o};function me(n){return xe(Ie(n))}var pe=String.fromCharCode,Te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ze=function(n){var e=n.charCodeAt(0);return e<128?n:e<2048?pe(192|e>>>6)+pe(128|e&63):pe(224|e>>>12&15)+pe(128|e>>>6&63)+pe(128|e&63)},Ie=function(n){return n.replace(/[^\x00-\x7F]/g,ze)},Ae=function(n){var e=[0,2,1][n.length%3],t=n.charCodeAt(0)<<16|(n.length>1?n.charCodeAt(1):0)<<8|(n.length>2?n.charCodeAt(2):0),r=[Te.charAt(t>>>18),Te.charAt(t>>>12&63),e>=2?"=":Te.charAt(t>>>6&63),e>=1?"=":Te.charAt(t&63)];return r.join("")},xe=window.btoa||function(n){return n.replace(/[\s\S]{1,3}/g,Ae)};
7class b{constructor(e,t,r,i){this.clear=t,this.timer=e(()=>{this.timer&&(this.timer=i(this.timer))},r)}isRunning(){return this.timer!==null}ensureAborted(){this.timer&&(this.clear(this.timer),this.timer=null)}}var g=b;function x(n){window.clearTimeout(n)}function F(n){window.clearInterval(n)}class j extends g{constructor(e,t){super(setTimeout,x,e,function(r){return t(),null})}}class z extends g{constructor(e,t){super(setInterval,F,e,function(r){return t(),r})}}var $={now(){return Date.now?Date.now():new Date().valueOf()},defer(n){return new j(0,n)},method(n,...e){var t=Array.prototype.slice.call(arguments,1);return function(r){return r[n].apply(r,t.concat(arguments))}}},S=$;function E(n,...e){for(var t=0;t<e.length;t++){var r=e[t];for(var i in r)r[i]&&r[i].constructor&&r[i].constructor===Object?n[i]=E(n[i]||{},r[i]):n[i]=r[i]}return n}function re(){for(var n=["Pusher"],e=0;e<arguments.length;e++)typeof arguments[e]=="string"?n.push(arguments[e]):n.push(Pe(arguments[e]));return n.join(" : ")}function he(n,e){var t=Array.prototype.indexOf;if(n===null)return-1;if(t&&n.indexOf===t)return n.indexOf(e);for(var r=0,i=n.length;r<i;r++)if(n[r]===e)return r;return-1}function Q(n,e){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e(n[t],t,n)}function Ne(n){var e=[];return Q(n,function(t,r){e.push(r)}),e}function Ve(n){var e=[];return Q(n,function(t){e.push(t)}),e}function ye(n,e,t){for(var r=0;r<n.length;r++)e.call(t||window,n[r],r,n)}function je(n,e){for(var t=[],r=0;r<n.length;r++)t.push(e(n[r],r,n,t));return t}function _e(n,e){var t={};return Q(n,function(r,i){t[i]=e(r)}),t}function ae(n,e){e=e||function(i){return!!i};for(var t=[],r=0;r<n.length;r++)e(n[r],r,n,t)&&t.push(n[r]);return t}function ge(n,e){var t={};return Q(n,function(r,i){(e&&e(r,i,n,t)||r)&&(t[i]=r)}),t}function Ue(n){var e=[];return Q(n,function(t,r){e.push([r,t])}),e}function Le(n,e){for(var t=0;t<n.length;t++)if(e(n[t],t,n))return!0;return!1}function Ge(n,e){for(var t=0;t<n.length;t++)if(!e(n[t],t,n))return!1;return!0}function Me(n){return _e(n,function(e){return typeof e=="object"&&(e=Pe(e)),encodeURIComponent(me(e.toString()))})}function ie(n){var e=ge(n,function(r){return r!==void 0}),t=je(Ue(Me(e)),S.method("join","=")).join("&");return t}function De(n){var e=[],t=[];return function r(i,o){var h,p,C;switch(typeof i){case"object":if(!i)return null;for(h=0;h<e.length;h+=1)if(e[h]===i)return{$ref:t[h]};if(e.push(i),t.push(o),Object.prototype.toString.apply(i)==="[object Array]")for(C=[],h=0;h<i.length;h+=1)C[h]=r(i[h],o+"["+h+"]");else{C={};for(p in i)Object.prototype.hasOwnProperty.call(i,p)&&(C[p]=r(i[p],o+"["+JSON.stringify(p)+"]"))}return C;case"number":case"string":case"boolean":return i}}(n,"$")}function Pe(n){try{return JSON.stringify(n)}catch{return JSON.stringify(De(n))}}class He{constructor(){this.globalLog=e=>{window.console&&window.console.log&&window.console.log(e)}}debug(...e){this.log(this.globalLog,e)}warn(...e){this.log(this.globalLogWarn,e)}error(...e){this.log(this.globalLogError,e)}globalLogWarn(e){window.console&&window.console.warn?window.console.warn(e):this.globalLog(e)}globalLogError(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)}log(e,...t){var r=re.apply(this,arguments);ot.log?ot.log(r):ot.logToConsole&&e.bind(this)(r)}}var D=new He,Qe=function(n,e,t,r,i){(t.headers!==void 0||t.headersProvider!=null)&&D.warn(`To send headers with the ${r.toString()} request, you must use AJAX, rather than JSONP.`);var o=n.nextAuthCallbackID.toString();n.nextAuthCallbackID++;var h=n.getDocument(),p=h.createElement("script");n.auth_callbacks[o]=function(M){i(null,M)};var C="Pusher.auth_callbacks['"+o+"']";p.src=t.endpoint+"?callback="+encodeURIComponent(C)+"&"+e;var I=h.getElementsByTagName("head")[0]||h.documentElement;I.insertBefore(p,I.firstChild)},Ke=Qe;class we{constructor(e){this.src=e}send(e){var t=this,r="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(r)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){(t.script.readyState==="loaded"||t.script.readyState==="complete")&&e.callback(null)},t.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+r+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var i=document.getElementsByTagName("head")[0];i.insertBefore(t.script,i.firstChild),t.errorScript&&i.insertBefore(t.errorScript,t.script.nextSibling)}cleanup(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}class Ye{constructor(e,t){this.url=e,this.data=t}send(e){if(!this.request){var t=ie(this.data),r=this.url+"/"+e.number+"?"+t;this.request=k.createScriptRequest(r),this.request.send(e)}}cleanup(){this.request&&this.request.cleanup()}}var qe=function(n,e){return function(t,r){var i="http"+(e?"s":"")+"://",o=i+(n.host||n.options.host)+n.options.path,h=k.createJSONPRequest(o,t),p=k.ScriptReceivers.create(function(C,I){c.remove(p),h.cleanup(),I&&I.host&&(n.host=I.host),r&&r(C,I)});h.send(p)}},Ee={name:"jsonp",getAgent:qe},l=Ee;function _(n,e,t){var r=n+(e.useTLS?"s":""),i=e.useTLS?e.hostTLS:e.hostNonTLS;return r+"://"+i+t}function U(n,e){var t="/app/"+n,r="?protocol="+L.PROTOCOL+"&client=js&ver
7sion="+L.VERSION+(e?"&"+e:"");return t+r}var X={getInitial:function(n,e){var t=(e.httpPath||"")+U(n,"flash=false");return _("ws",e,t)}},V={getInitial:function(n,e){var t=(e.httpPath||"/pusher")+U(n);return _("http",e,t)}},K={getInitial:function(n,e){return _("http",e,e.httpPath||"/pusher")},getPath:function(n,e){return U(n)}};class de{constructor(){this._callbacks={}}get(e){return this._callbacks[ue(e)]}add(e,t,r){var i=ue(e);this._callbacks[i]=this._callbacks[i]||[],this._callbacks[i].push({fn:t,context:r})}remove(e,t,r){if(!e&&!t&&!r){this._callbacks={};return}var i=e?[ue(e)]:Ne(this._callbacks);t||r?this.removeCallback(i,t,r):this.removeAllCallbacks(i)}removeCallback(e,t,r){ye(e,function(i){this._callbacks[i]=ae(this._callbacks[i]||[],function(o){return t&&t!==o.fn||r&&r!==o.context}),this._callbacks[i].length===0&&delete this._callbacks[i]},this)}removeAllCallbacks(e){ye(e,function(t){delete this._callbacks[t]},this)}}function ue(n){return"_"+n}class G{constructor(e){this.callbacks=new de,this.global_callbacks=[],this.failThrough=e}bind(e,t,r){return this.callbacks.add(e,t,r),this}bind_global(e){return this.global_callbacks.push(e),this}unbind(e,t,r){return this.callbacks.remove(e,t,r),this}unbind_global(e){return e?(this.global_callbacks=ae(this.global_callbacks||[],t=>t!==e),this):(this.global_callbacks=[],this)}unbind_all(){return this.unbind(),this.unbind_global(),this}emit(e,t,r){for(var i=0;i<this.global_callbacks.length;i++)this.global_callbacks[i](e,t);var o=this.callbacks.get(e),h=[];if(r?h.push(t,r):t&&h.push(t),o&&o.length>0)for(var i=0;i<o.length;i++)o[i].fn.apply(o[i].context||window,h);else this.failThrough&&this.failThrough(e,t);return this}}class fe extends G{constructor(e,t,r,i,o){super(),this.initialize=k.transportConnectionInitializer,this.hooks=e,this.name=t,this.priority=r,this.key=i,this.options=o,this.state="new",this.timeline=o.timeline,this.activityTimeout=o.activityTimeout,this.id=this.timeline.generateUniqueID()}handlesActivityChecks(){return!!this.hooks.handlesActivityChecks}supportsPing(){return!!this.hooks.supportsPing}connect(){if(this.socket||this.state!=="initialized")return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(t){return S.defer(()=>{this.onError(t),this.changeState("closed")}),!1}return this.bindListeners(),D.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0}close(){return this.socket?(this.socket.close(),!0):!1}send(e){return this.state==="open"?(S.defer(()=>{this.socket&&this.socket.send(e)}),!0):!1}ping(){this.state==="open"&&this.supportsPing()&&this.socket.ping()}onOpen(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}onError(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))}onClose(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}onMessage(e){this.emit("message",e)}onActivity(){this.emit("activity")}bindListeners(){this.socket.onopen=()=>{this.onOpen()},this.socket.onerror=e=>{this.onError(e)},this.socket.onclose=e=>{this.onClose(e)},this.socket.onmessage=e=>{this.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=()=>{this.onActivity()})}unbindListeners(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}changeState(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)}buildTimelineMessage(e){return E({cid:this.id},e)}}class ce{constructor(e){this.hooks=e}isSupported(e){return this.hooks.isSupported(e)}createConnection(e,t,r,i){return new fe(this.hooks,e,t,r,i)}}var be=new ce({urls:X,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!k.getWebSocketAPI()},isSupported:function(){return!!k.getWebSocketAPI()},getSocket:function(n){return k.createWebSocket(n)}}),se={urls:V,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},dt=E({getSocket:function(n){return k.HTTPFactory.createStreamingSocket(n)}},se),ft=E({getSocket:function(n){return k.HTTPFactory.createPollingSocket(n)}}
7,se),pt={isSupported:function(){return k.isXHRSupported()}},Ht=new ce(E({},dt,pt)),qt=new ce(E({},ft,pt)),Ft={ws:be,xhr_streaming:Ht,xhr_polling:qt},Fe=Ft,Bt=new ce({file:"sockjs",urls:K,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(n,e){return new window.SockJS(n,null,{js_path:R.getPath("sockjs",{useTLS:e.useTLS}),ignore_null_origin:e.ignoreNullOrigin})},beforeOpen:function(n,e){n.send(JSON.stringify({path:e}))}}),gt={isSupported:function(n){var e=k.isXDRSupported(n.useTLS);return e}},$t=new ce(E({},dt,gt)),Wt=new ce(E({},ft,gt));Fe.xdr_streaming=$t,Fe.xdr_polling=Wt,Fe.sockjs=Bt;var Xt=Fe;class Jt extends G{constructor(){super();var e=this;window.addEventListener!==void 0&&(window.addEventListener("online",function(){e.emit("online")},!1),window.addEventListener("offline",function(){e.emit("offline")},!1))}isOnline(){return window.navigator.onLine===void 0?!0:window.navigator.onLine}}var Vt=new Jt;class Gt{constructor(e,t,r){this.manager=e,this.transport=t,this.minPingDelay=r.minPingDelay,this.maxPingDelay=r.maxPingDelay,this.pingDelay=void 0}createConnection(e,t,r,i){i=E({},i,{activityTimeout:this.pingDelay});var o=this.transport.createConnection(e,t,r,i),h=null,p=function(){o.unbind("open",p),o.bind("closed",C),h=S.now()},C=I=>{if(o.unbind("closed",C),I.code===1002||I.code===1003)this.manager.reportDeath();else if(!I.wasClean&&h){var M=S.now()-h;M<2*this.maxPingDelay&&(this.manager.reportDeath(),this.pingDelay=Math.max(M/2,this.minPingDelay))}};return o.bind("open",p),o}isSupported(e){return this.manager.isAlive()&&this.transport.isSupported(e)}}const vt={decodeMessage:function(n){try{var e=JSON.parse(n.data),t=e.data;if(typeof t=="string")try{t=JSON.parse(e.data)}catch{}var r={event:e.event,channel:e.channel,data:t};return e.user_id&&(r.user_id=e.user_id),r}catch(i){throw{type:"MessageParseError",error:i,data:n.data}}},encodeMessage:function(n){return JSON.stringify(n)},processHandshake:function(n){var e=vt.decodeMessage(n);if(e.event==="pusher:connection_established"){if(!e.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:e.data.socket_id,activityTimeout:e.data.activity_timeout*1e3}}else{if(e.event==="pusher:error")return{action:this.getCloseAction(e.data),error:this.getCloseError(e.data)};throw"Invalid handshake"}},getCloseAction:function(n){return n.code<4e3?n.code>=1002&&n.code<=1004?"backoff":null:n.code===4e3?"tls_only":n.code<4100?"refused":n.code<4200?"backoff":n.code<4300?"retry":"refused"},getCloseError:function(n){return n.code!==1e3&&n.code!==1001?{type:"PusherError",data:{code:n.code,message:n.reason||n.message}}:null}};var Se=vt;class Qt extends G{constructor(e,t){super(),this.id=e,this.transport=t,this.activityTimeout=t.activityTimeout,this.bindListeners()}handlesActivityChecks(){return this.transport.handlesActivityChecks()}send(e){return this.transport.send(e)}send_event(e,t,r){var i={event:e,data:t};return r&&(i.channel=r),D.debug("Event sent",i),this.send(Se.encodeMessage(i))}ping(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}close(){this.transport.close()}bindListeners(){var e={message:r=>{var i;try{i=Se.decodeMessage(r)}catch(o){this.emit("error",{type:"MessageParseError",error:o,data:r.data})}if(i!==void 0){switch(D.debug("Event recd",i),i.event){case"pusher:error":this.emit
7("error",{type:"PusherError",data:i.data});break;case"pusher:ping":this.emit("ping");break;case"pusher:pong":this.emit("pong");break}this.emit("message",i)}},activity:()=>{this.emit("activity")},error:r=>{this.emit("error",r)},closed:r=>{t(),r&&r.code&&this.handleCloseEvent(r),this.transport=null,this.emit("closed")}},t=()=>{Q(e,(r,i)=>{this.transport.unbind(i,r)})};Q(e,(r,i)=>{this.transport.bind(i,r)})}handleCloseEvent(e){var t=Se.getCloseAction(e),r=Se.getCloseError(e);r&&this.emit("error",r),t&&this.emit(t,{action:t,error:r})}}class Kt{constructor(e,t){this.transport=e,this.callback=t,this.bindListeners()}close(){this.unbindListeners(),this.transport.close()}bindListeners(){this.onMessage=e=>{this.unbindListeners();var t;try{t=Se.processHandshake(e)}catch(r){this.finish("error",{error:r}),this.transport.close();return}t.action==="connected"?this.finish("connected",{connection:new Qt(t.id,this.transport),activityTimeout:t.activityTimeout}):(this.finish(t.action,{error:t.error}),this.transport.close())},this.onClosed=e=>{this.unbindListeners();var t=Se.getCloseAction(e)||"backoff",r=Se.getCloseError(e);this.finish(t,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}unbindListeners(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}finish(e,t){this.callback(E({transport:this.transport,action:e},t))}}class Yt{constructor(e,t){this.timeline=e,this.options=t||{}}send(e,t){this.timeline.isEmpty()||this.timeline.send(k.TimelineTransport.getAgent(this,e),t)}}class Ze extends G{constructor(e,t){super(function(r,i){D.debug("No callbacks on "+e+" for "+r)}),this.name=e,this.pusher=t,this.subscribed=!1,this.subscriptionPending=!1,this.subscriptionCancelled=!1}authorize(e,t){return t(null,{auth:""})}trigger(e,t){if(e.indexOf("client-")!==0)throw new u("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var r=O.buildLogSuffix("triggeringClientEvents");D.warn(`Client event triggered before channel 'subscription_succeeded' event . ${r}`)}return this.pusher.send_event(e,t,this.name)}disconnect(){this.subscribed=!1,this.subscriptionPending=!1}handleEvent(e){var t=e.event,r=e.data;if(t==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(e);else if(t==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(e);else if(t.indexOf("pusher_internal:")!==0){var i={};this.emit(t,r,i)}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)}handleSubscriptionCountEvent(e){e.data.subscription_count&&(this.subscriptionCount=e.data.subscription_count),this.emit("pusher:subscription_count",e.data)}subscribe(){this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(e,t)=>{e?(this.subscriptionPending=!1,D.error(e.toString()),this.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof Z?{status:e.status}:{}))):this.pusher.send_event("pusher:subscribe",{auth:t.auth,channel_data:t.channel_data,channel:this.name})}))}unsubscribe(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}cancelSubscription(){this.subscriptionCancelled=!0}reinstateSubscription(){this.subscriptionCancelled=!1}}class et extends Ze{authorize(e,t){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},t)}}class Zt{constructor(){this.reset()}get(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}each(e){Q(this.members,(t,r)=>{e(this.get(r))})}setMyID(e){this.myID=e}onSubscription(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)}addMember(e){return this.get(e.user_id)===null&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}removeMember(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t}reset(){this.members={},this.count=0,this.myID=null,this.me=null}}var en=function(n,e,t,r){function i(o){return o instanceof t?o:new t(function(h){h(o)})}return new(t||(t=Promise))(function(o,h){function p(M){try{I(r.next(M))}catch(J){h(J)}}function C(M){try{I(r.throw(M))}catch(J){h(J)}}function I(M){M.done?o(M.value):i(M.value).then(p,C)}I((r=r.apply(n,e||[])).next())})};class tn extends et{constructor(e,t){super(e,t),this.members=new Zt}authorize(e,t){super.authorize(e,(r,i)=>en(this,void 0,void 0,function*(){if(!r)if(i=i,i.channel_data!=null){var o=JSON.parse(i.channel_data);
7this.members.setMyID(o.user_id)}else if(yield this.pusher.user.signinDonePromise,this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else{let h=O.buildLogSuffix("authorizationEndpoint");D.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${h}, or the user should be signed in.`),t("Invalid auth response");return}t(r,i)}))}handleEvent(e){var t=e.event;if(t.indexOf("pusher_internal:")===0)this.handleInternalEvent(e);else{var r=e.data,i={};e.user_id&&(i.user_id=e.user_id),this.emit(t,r,i)}}handleInternalEvent(e){var t=e.event,r=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var i=this.members.addMember(r);this.emit("pusher:member_added",i);break;case"pusher_internal:member_removed":var o=this.members.removeMember(r);o&&this.emit("pusher:member_removed",o);break}}handleSubscriptionSucceededEvent(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))}disconnect(){this.members.reset(),super.disconnect()}}var nn=P(1),tt=P(0);class rn extends et{constructor(e,t,r){super(e,t),this.key=null,this.nacl=r}authorize(e,t){super.authorize(e,(r,i)=>{if(r){t(r,i);return}let o=i.shared_secret;if(!o){t(new Error(`No shared_secret key in auth payload for encrypted channel: ${this.name}`),null);return}this.key=Object(tt.decode)(o),delete i.shared_secret,t(null,i)})}trigger(e,t){throw new W("Client events are not currently supported for encrypted channels")}handleEvent(e){var t=e.event,r=e.data;if(t.indexOf("pusher_internal:")===0||t.indexOf("pusher:")===0){super.handleEvent(e);return}this.handleEncryptedEvent(t,r)}handleEncryptedEvent(e,t){if(!this.key){D.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!t.ciphertext||!t.nonce){D.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);return}let r=Object(tt.decode)(t.ciphertext);if(r.length<this.nacl.secretbox.overheadLength){D.error(`Expected encrypted event ciphertext length to be ${this.nacl.secretbox.overheadLength}, got: ${r.length}`);return}let i=Object(tt.decode)(t.nonce);if(i.length<this.nacl.secretbox.nonceLength){D.error(`Expected encrypted event nonce length to be ${this.nacl.secretbox.nonceLength}, got: ${i.length}`);return}let o=this.nacl.secretbox.open(r,i,this.key);if(o===null){D.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,(h,p)=>{if(h){D.error(`Failed to make a request to the authEndpoint: ${p}. Unable to fetch new key, so dropping encrypted event`);return}if(o=this.nacl.secretbox.open(r,i,this.key),o===null){D.error("Failed to decrypt event with new key. Dropping encrypted event");return}this.emit(e,this.getDataToEmit(o))});return}this.emit(e,this.getDataToEmit(o))}getDataToEmit(e){let t=Object(nn.decode)(e);try{return JSON.parse(t)}catch{return t}}}class sn extends G{constructor(e,t){super(),this.state="initialized",this.connection=null,this.key=e,this.options=t,this.timeline=this.options.timeline,this.usingTLS=this.options.useTLS,this.errorCallbacks=this.buildErrorCallbacks(),this.connectionCallbacks=this.buildConnectionCallbacks(this.errorCallbacks),this.handshakeCallbacks=this.buildHandshakeCallbacks(this.errorCallbacks);var r=k.getNetwork();r.bind("online",()=>{this.timeline.info({netinfo:"online"}),(this.state==="connecting"||this.state==="unavailable")&&this.retryIn(0)}),r.bind("offline",()=>{this.timeline.info({netinfo:"offline"}),this.connection&&this.sendActivityCheck()}),this.updateStrategy()}connect(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}}send(e){return this.connection?this.connection.send(e):!1}send_event(e,t,r){return this.connection?this.connection.send_event(e,t,r):!1}disconnect(){this.disconnectInternally(),this.updateState("disconnected")}isUsingTLS(){return this.usingTLS}startConnecting(){var e=(t,r)=>{t?this.runner=this.strategy.connect(0,e):r.action==="error"?(this.emit
7("error",{type:"HandshakeError",error:r.error}),this.timeline.error({handshakeError:r.error})):(this.abortConnecting(),this.handshakeCallbacks[r.action](r))};this.runner=this.strategy.connect(0,e)}abortConnecting(){this.runner&&(this.runner.abort(),this.runner=null)}disconnectInternally(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var e=this.abandonConnection();e.close()}}updateStrategy(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}retryIn(e){this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new j(e||0,()=>{this.disconnectInternally(),this.connect()})}clearRetryTimer(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}setUnavailableTimer(){this.unavailableTimer=new j(this.options.unavailableTimeout,()=>{this.updateState("unavailable")})}clearUnavailableTimer(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}sendActivityCheck(){this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new j(this.options.pongTimeout,()=>{this.timeline.error({pong_timed_out:this.options.pongTimeout}),this.retryIn(0)})}resetActivityCheck(){this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new j(this.activityTimeout,()=>{this.sendActivityCheck()}))}stopActivityCheck(){this.activityTimer&&this.activityTimer.ensureAborted()}buildConnectionCallbacks(e){return E({},e,{message:t=>{this.resetActivityCheck(),this.emit("message",t)},ping:()=>{this.send_event("pusher:pong",{})},activity:()=>{this.resetActivityCheck()},error:t=>{this.emit("error",t)},closed:()=>{this.abandonConnection(),this.shouldRetry()&&this.retryIn(1e3)}})}buildHandshakeCallbacks(e){return E({},e,{connected:t=>{this.activityTimeout=Math.min(this.options.activityTimeout,t.activityTimeout,t.connection.activityTimeout||1/0),this.clearUnavailableTimer(),this.setConnection(t.connection),this.socket_id=this.connection.id,this.updateState("connected",{socket_id:this.socket_id})}})}buildErrorCallbacks(){let e=t=>r=>{r.error&&this.emit("error",{type:"WebSocketError",error:r.error}),t(r)};return{tls_only:e(()=>{this.usingTLS=!0,this.updateStrategy(),this.retryIn(0)}),refused:e(()=>{this.disconnect()}),backoff:e(()=>{this.retryIn(1e3)}),retry:e(()=>{this.retryIn(0)})}}setConnection(e){this.connection=e;for(var t in this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()}abandonConnection(){if(this.connection){this.stopActivityCheck();for(var e in this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}}updateState(e,t){var r=this.state;if(this.state=e,r!==e){var i=e;i==="connected"&&(i+=" with new socket ID "+t.socket_id),D.debug("State changed",r+" -> "+i),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:r,current:e}),this.emit(e,t)}}shouldRetry(){return this.state==="connecting"||this.state==="connected"}}class on{constructor(){this.channels={}}add(e,t){return this.channels[e]||(this.channels[e]=an(e,t)),this.channels[e]}all(){return Ve(this.channels)}find(e){return this.channels[e]}remove(e){var t=this.channels[e];return delete this.channels[e],t}disconnect(){Q(this.channels,function(e){e.disconnect()})}}function an(n,e){if(n.indexOf("private-encrypted-")===0){if(e.config.nacl)return ve.createEncryptedChannel(n,e,e.config.nacl);let t="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",r=O.buildLogSuffix("encryptedChannelSupport");throw new W(`${t}. ${r}`)}else{if(n.indexOf("private-")===0)return ve.createPrivateChannel(n,e);if(n.indexOf("presence-")===0)return ve.createPresenceChannel(n,e);if(n.indexOf("#")===0)throw new d('Cannot create a channel with name "'+n+'".');return ve.createChannel(n,e)}}var cn={createChannels(){return new on},createConnectionManager(n,e){return new sn(n,e)},createChannel(n,e){return new Ze(n,e)},createPrivateChannel(n,e){return new et(n,e)},createPresenceChannel(n,e){return new tn(n,e)}
7,createEncryptedChannel(n,e,t){return new rn(n,e,t)},createTimelineSender(n,e){return new Yt(n,e)},createHandshake(n,e){return new Kt(n,e)},createAssistantToTheTransportManager(n,e,t){return new Gt(n,e,t)}},ve=cn;class bt{constructor(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}getAssistant(e){return ve.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}isAlive(){return this.livesLeft>0}reportDeath(){this.livesLeft-=1}}class Ce{constructor(e,t){this.strategies=e,this.loop=!!t.loop,this.failFast=!!t.failFast,this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}isSupported(){return Le(this.strategies,S.method("isSupported"))}connect(e,t){var r=this.strategies,i=0,o=this.timeout,h=null,p=(C,I)=>{I?t(null,I):(i=i+1,this.loop&&(i=i%r.length),i<r.length?(o&&(o=o*2,this.timeoutLimit&&(o=Math.min(o,this.timeoutLimit))),h=this.tryStrategy(r[i],e,{timeout:o,failFast:this.failFast},p)):t(!0))};return h=this.tryStrategy(r[i],e,{timeout:o,failFast:this.failFast},p),{abort:function(){h.abort()},forceMinPriority:function(C){e=C,h&&h.forceMinPriority(C)}}}tryStrategy(e,t,r,i){var o=null,h=null;return r.timeout>0&&(o=new j(r.timeout,function(){h.abort(),i(!0)})),h=e.connect(t,function(p,C){p&&o&&o.isRunning()&&!r.failFast||(o&&o.ensureAborted(),i(p,C))}),{abort:function(){o&&o.ensureAborted(),h.abort()},forceMinPriority:function(p){h.forceMinPriority(p)}}}}class nt{constructor(e){this.strategies=e}isSupported(){return Le(this.strategies,S.method("isSupported"))}connect(e,t){return hn(this.strategies,e,function(r,i){return function(o,h){if(i[r].error=o,o){un(i)&&t(!0);return}ye(i,function(p){p.forceMinPriority(h.transport.priority)}),t(null,h)}})}}function hn(n,e,t){var r=je(n,function(i,o,h,p){return i.connect(e,t(o,p))});return{abort:function(){ye(r,ln)},forceMinPriority:function(i){ye(r,function(o){o.forceMinPriority(i)})}}}function un(n){return Ge(n,function(e){return!!e.error})}function ln(n){!n.error&&!n.aborted&&(n.abort(),n.aborted=!0)}class dn{constructor(e,t,r){this.strategy=e,this.transports=t,this.ttl=r.ttl||1800*1e3,this.usingTLS=r.useTLS,this.timeline=r.timeline}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.usingTLS,i=fn(r),o=i&&i.cacheSkipCount?i.cacheSkipCount:0,h=[this.strategy];if(i&&i.timestamp+this.ttl>=S.now()){var p=this.transports[i.transport];p&&(["ws","wss"].includes(i.transport)||o>3?(this.timeline.info({cached:!0,transport:i.transport,latency:i.latency}),h.push(new Ce([p],{timeout:i.latency*2+1e3,failFast:!0}))):o++)}var C=S.now(),I=h.pop().connect(e,function M(J,We){J?(mt(r),h.length>0?(C=S.now(),I=h.pop().connect(e,M)):t(J)):(pn(r,We.transport.name,S.now()-C,o),t(null,We))});return{abort:function(){I.abort()},forceMinPriority:function(M){e=M,I&&I.forceMinPriority(M)}}}}function rt(n){return"pusherTransport"+(n?"TLS":"NonTLS")}function fn(n){var e=k.getLocalStorage();if(e)try{var t=e[rt(n)];if(t)return JSON.parse(t)}catch{mt(n)}return null}function pn(n,e,t,r){var i=k.getLocalStorage();if(i)try{i[rt(n)]=Pe({timestamp:S.now(),transport:e,latency:t,cacheSkipCount:r})}catch{}}function mt(n){var e=k.getLocalStorage();if(e)try{delete e[rt(n)]}catch{}}class Be{constructor(e,{delay:t}){this.strategy=e,this.options={delay:t}}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.strategy,i,o=new j(this.options.delay,function(){i=r.connect(e,t)});return{abort:function(){o.ensureAborted(),i&&i.abort()},forceMinPriority:function(h){e=h,i&&i.forceMinPriority(h)}}}}class Re{constructor(e,t,r){this.test=e,this.trueBranch=t,this.falseBranch=r}isSupported(){var e=this.test()?this.trueBranch:this.falseBranch;return e.isSupported()}connect(e,t){var r=this.test()?this.trueBranch:this.falseBranch;return r.connect(e,t)}}class gn{constructor(e){this.strategy=e}isSupported(){return this.strategy.isSupported()}connect(e,t){var r=this.strategy.connect(e,function(i,o){o&&r.abort(),t(i,o)});return r}}function Oe(n){return function(){return n.isSupported()}}var vn=function(n,e,t){var r={};function i(At,gr,vr,br,mr){var Lt=t(n,At,gr,vr,br,mr);return r[At]=Lt,Lt}var o=Object.assign({},e,{hostNonTLS:n.wsHost+":"+n.wsPort,hostTLS:n.wsHost+":"+n.wssPort,httpPath:n.wsPath}),h=Object.assign({},o,{useTLS:!0}),p=Object.assign({},e,{hostNonTLS:n.httpHost+":"+n.httpPort,hostTLS:n.httpHost+":"+n.httpsPort,httpPath:n.httpPath}),C={loop:!0,timeout:15e3,timeoutLimit:6e4},I=new bt({minPingDelay:1e4,maxPingDelay:n.activityTimeout}),M=new bt({lives:2,minPingDelay:1e4,maxPingDelay:n.activityTimeout}),J=i("ws","ws",3,o,I),We=i("wss","ws",3,h,I),ur=i("sockjs","sockjs",1,p),Ct=i("xhr_streaming","xhr_streaming",1,p,M),lr=i("xdr_streaming","xdr_streaming",1,p,M),kt=i("xhr_polling","xhr_polling",1,p),dr=i("xdr_polling","xdr_polling",1,p),Tt=new Ce([J],C),fr=new Ce([We],C),pr=new Ce([ur],C),xt=new Ce([new Re(Oe(Ct),Ct,lr)],C),Pt=new Ce([new Re(Oe(kt),kt,dr)],C),Et=new Ce([new Re(Oe(xt),new nt([xt,new Be(Pt,{delay:4e3})]),Pt)],C),at=new Re(Oe(Et),Et,pr),ct;return e.useTLS?ct=new nt([Tt,new Be(at,{delay:2e3})]):ct=new nt([Tt,new Be(fr,{delay:2e3}),new Be(at,{delay:5e3})]),new dn(new gn(new Re(Oe(J),ct,at)),r,{ttl:18e5,timeline:e.timeline,useTLS:e.useTLS})},bn=vn,mn=function(){var n=this;n.timeline.info(n.buildTimelineMessage({transport:n.name+(n.options.useTLS?"s":"")})),n.hooks.isInitialized()?n.changeState("initialized"):n.hooks.file?(n.changeState("initializing"),R.load(n.hooks.file,{useTLS:n.options.useTLS},function(e,t){n.hooks.isInitialized()?(n.changeState("initialized"),t(!0)):(e&&n.onError(e),n.onClose(),t(!1))})):n.onClose()},yn={getRequest:function(n){var e=new window.XDomainRequest;return e.ontimeout=function(){n.emit("error",new w),n.close()},e.onerror=function(t){n.emit("error",t),n.close()}
7,e.onprogress=function(){e.responseText&&e.responseText.length>0&&n.onChunk(200,e.responseText)},e.onload=function(){e.responseText&&e.responseText.length>0&&n.onChunk(200,e.responseText),n.emit("finished",200),n.close()},e},abortRequest:function(n){n.ontimeout=n.onerror=n.onprogress=n.onload=null,n.abort()}},_n=yn;const wn=256*1024;class Sn extends G{constructor(e,t,r){super(),this.hooks=e,this.method=t,this.url=r}start(e){this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=()=>{this.close()},k.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}close(){this.unloader&&(k.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}onChunk(e,t){for(;;){var r=this.advanceBuffer(t);if(r)this.emit("chunk",{status:e,data:r});else break}this.isBufferTooLong(t)&&this.emit("buffer_too_long")}advanceBuffer(e){var t=e.slice(this.position),r=t.indexOf(` 8`);return r!==-1?(this.position+=r+1,t.slice(0,r)):null}isBufferTooLong(e){return this.position===e.length&&e.length>wn}}var it;(function(n){n[n.CONNECTING=0]="CONNECTING",n[n.OPEN=1]="OPEN",n[n.CLOSED=3]="CLOSED"})(it||(it={}));var ke=it,Cn=1;class kn{constructor(e,t){this.hooks=e,this.session=_t(1e3)+"/"+En(8),this.location=Tn(t),this.readyState=ke.CONNECTING,this.openStream()}send(e){return this.sendRaw(JSON.stringify([e]))}ping(){this.hooks.sendHeartbeat(this)}close(e,t){this.onClose(e,t,!0)}sendRaw(e){if(this.readyState===ke.OPEN)try{return k.createSocketRequest("POST",yt(xn(this.location,this.session))).start(e),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(e,t,r){this.closeStream(),this.readyState=ke.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:r})}onChunk(e){if(e.status===200){this.readyState===ke.OPEN&&this.onActivity();var t,r=e.data.slice(0,1);switch(r){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var i=0;i<t.length;i++)this.onEvent(t[i]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0);break}}}onOpen(e){this.readyState===ke.CONNECTING?(e&&e.hostname&&(this.location.base=Pn(this.location.base,e.hostname)),this.readyState=ke.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(e){this.readyState===ke.OPEN&&this.onmessage&&this.onmessage({data:e})}onActivity(){this.onactivity&&this.onactivity()}onError(e){this.onerror&&this.onerror(e)}openStream(){this.stream=k.createSocketRequest("POST",yt(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",e=>{this.onChunk(e)}),this.stream.bind("finished",e=>{this.hooks.onFinished(this,e)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(e){S.defer(()=>{this.onError(e),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function Tn(n){var e=/([^\?]*)\/*(\??.*)/.exec(n);return{base:e[1],queryString:e[2]}}function xn(n,e){return n.base+"/"+e+"/xhr_send"}function yt(n){var e=n.indexOf("?")===-1?"?":"&";return n+e+"t="+ +new Date+"&n="+Cn++}function Pn(n,e){var t=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(n);return t[1]+e+t[3]}function _t(n){return k.randomInt(n)}function En(n){for(var e=[],t=0;t<n;t++)e.push(_t(32).toString(32));return e.join("")}var An=kn,Ln={getReceiveURL:function(n,e){return n.base+"/"+e+"/xhr_streaming"+n.queryString},onHeartbeat:function(n){n.sendRaw("[]")},sendHeartbeat:function(n){n.sendRaw("[]")},onFinished:function(n,e){n.onClose(1006,"Connection interrupted ("+e+")",!1)}},Rn=Ln,On={getReceiveURL:function(n,e){return n.base+"/"+e+"/xhr"+n.queryString},onHeartbeat:function(){},sendHeartbeat:function(n){n.sendRaw("[]")},onFinished:function(n,e){e===200?n.reconnect():n.onClose(1006,"Connection interrupted ("+e+")",!1)}},zn=On,In={getRequest:function(n){var e=k.getXHRAPI(),t=new e;return t.onreadystatechange=t.onprogress=function(){switch(t.readyState){case 3:t.responseText&&t.responseText.length>0&&n.onChunk(t.status,t.responseText);break;case 4:t.responseText&&t.responseText.length>0&&n.onChunk(t.status,t.responseText),n.emit("finished",t.status),n.close();break}},t},abortRequest:function(n){n.onreadystatechange=null,n.abort()}},Nn=In,jn={createStreamingSocket(n){return this.createSocket(Rn,n)},createPollingSocket(n){return this.createSocket(zn,n)},createSocket(n,e){return new An(n,e)},createXHR(n,e){return this.createRequest(Nn,n,e)},createRequest(n,e,t){return new Sn(n,e,t)}},wt=jn;wt.createXDR=function(n,e){return this.createRequest(_n,n,e)};var Un=wt,Mn={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:c,DependenciesReceivers:T,getDefaultStrategy:bn,Transports:Xt,transportConnectionInitializer:mn,HTTPFactory:Un,TimelineTransport:l,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket}
8,setup(n){window.Pusher=n;var e=()=>{this.onDocumentBody(n.ready)};window.JSON?e():R.load("json2",{},e)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:le,jsonp:Ke}},onDocumentBody(n){document.body?n():setTimeout(()=>{this.onDocumentBody(n)},0)},createJSONPRequest(n,e){return new Ye(n,e)},createScriptRequest(n){return new we(n)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var n=this.getXHRAPI();return new n},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return Vt},createWebSocket(n){var e=this.getWebSocketAPI();return new e(n)},createSocketRequest(n,e){if(this.isXHRSupported())return this.HTTPFactory.createXHR(n,e);if(this.isXDRSupported(e.indexOf("https:")===0))return this.HTTPFactory.createXDR(n,e);throw"Cross-origin HTTP requests are not supported"},isXHRSupported(){var n=this.getXHRAPI();return!!n&&new n().withCredentials!==void 0},isXDRSupported(n){var e=n?"https:":"http:",t=this.getProtocol();return!!window.XDomainRequest&&t===e},addUnloadListener(n){window.addEventListener!==void 0?window.addEventListener("unload",n,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",n)},removeUnloadListener(n){window.addEventListener!==void 0?window.removeEventListener("unload",n,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",n)},randomInt(n){return Math.floor(function(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)}()*n)}},k=Mn,st;(function(n){n[n.ERROR=3]="ERROR",n[n.INFO=6]="INFO",n[n.DEBUG=7]="DEBUG"})(st||(st={}));var $e=st;class Dn{constructor(e,t,r){this.key=e,this.session=t,this.events=[],this.options=r||{},this.sent=0,this.uniqueID=0}log(e,t){e<=this.options.level&&(this.events.push(E({},t,{timestamp:S.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}error(e){this.log($e.ERROR,e)}info(e){this.log($e.INFO,e)}debug(e){this.log($e.DEBUG,e)}isEmpty(){return this.events.length===0}send(e,t){var r=E({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(r,(i,o)=>{i||this.sent++,t&&t(i,o)}),!0}generateUniqueID(){return this.uniqueID++,this.uniqueID}}
8class Hn{constructor(e,t,r,i){this.name=e,this.priority=t,this.transport=r,this.options=i||{}}isSupported(){return this.transport.isSupported({useTLS:this.options.useTLS})}connect(e,t){if(this.isSupported()){if(this.priority<e)return St(new N,t)}else return St(new te,t);var r=!1,i=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),o=null,h=function(){i.unbind("initialized",h),i.connect()},p=function(){o=ve.createHandshake(i,function(J){r=!0,M(),t(null,J)})},C=function(J){M(),t(J)},I=function(){M();var J;J=Pe(i),t(new B(J))},M=function(){i.unbind("initialized",h),i.unbind("open",p),i.unbind("error",C),i.unbind("closed",I)};return i.bind("initialized",h),i.bind("open",p),i.bind("error",C),i.bind("closed",I),i.initialize(),{abort:()=>{r||(M(),o?o.close():i.close())},forceMinPriority:J=>{r||this.priority<J&&(o?o.close():i.close())}}}}function St(n,e){return S.defer(function(){e(n)}),{abort:function(){},forceMinPriority:function(){}}}const{Transports:qn}=k;var Fn=function(n,e,t,r,i,o){var h=qn[t];if(!h)throw new ee(t);var p=(!n.enabledTransports||he(n.enabledTransports,e)!==-1)&&(!n.disabledTransports||he(n.disabledTransports,e)===-1),C;return p?(i=Object.assign({ignoreNullOrigin:n.ignoreNullOrigin},i),C=new Hn(e,r,o?o.getAssistant(h):h,i)):C=Bn,C},Bn={isSupported:function(){return!1},connect:function(n,e){var t=S.defer(function(){e(new te)});return{abort:function(){t.ensureAborted()},forceMinPriority:function(){}}}};function $n(n){if(n==null)throw"You must pass an options object";if(n.cluster==null)throw"Options object must provide a cluster";"disableStats"in n&&D.warn("The disableStats option is deprecated in favor of enableStats")}const Wn=(n,e)=>{var t="socket_id="+encodeURIComponent(n.socketId);for(var r in e.params)t+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e.params[r]);if(e.paramsProvider!=null){let i=e.paramsProvider();for(var r in i)t+="&"+encodeURIComponent(r)+"="+encodeURIComponent(i[r])}return t};var Xn=n=>{if(typeof k.getAuthorizers()[n.transport]>"u")throw`'${n.transport}' is not a recognized auth transport`;return(e,t)=>{const r=Wn(e,n);k.getAuthorizers()[n.transport](k,r,n,m.UserAuthentication,t)}};const Jn=(n,e)=>{var t="socket_id="+encodeURIComponent(n.socketId);t+="&channel_name="+encodeURIComponent(n.channelName);for(var r in e.params)t+="&"+encodeURIComponent(r)+"="+encodeURIComponent(e.params[r]);if(e.paramsProvider!=null){let i=e.paramsProvider();for(var r in i)t+="&"+encodeURIComponent(r)+"="+encodeURIComponent(i[r])}return t};var Vn=n=>{if(typeof k.getAuthorizers()[n.transport]>"u")throw`'${n.transport}' is not a recognized auth transport`;return(e,t)=>{const r=Jn(e,n);k.getAuthorizers()[n.transport](k,r,n,m.ChannelAuthorization,t)}};const Gn=(n,e,t)=>{const r={authTransport:e.transport,authEndpoint:e.endpoint,auth:{params:e.params,headers:e.headers}};return(i,o)=>{const h=n.channel(i.channelName);t(h,r).authorize(i.socketId,o)}};function Qn(n,e){let t={activityTimeout:n.activityTimeout||L.activityTimeout,cluster:n.cluster,httpPath:n.httpPath||L.httpPath,httpPort:n.httpPort||L.httpPort,httpsPort:n.httpsPort||L.httpsPort,pongTimeout:n.pongTimeout||L.pongTimeout,statsHost:n.statsHost||L.stats_host,unavailableTimeout:n.unavailableTimeout||L.unavailableTimeout,wsPath:n.wsPath||L.wsPath,wsPort:n.wsPort||L.wsPort,wssPort:n.wssPort||L.wssPort,enableStats:tr(n),httpHost:Kn(n),useTLS:er(n),wsHost:Yn(n),userAuthenticator:nr(n),channelAuthorizer:ir(n,e)};return"disabledTransports"in n&&(t.disabledTransports=n.disabledTransports),"enabledTransports"in n&&(t.enabledTransports=n.enabledTransports),"ignoreNullOrigin"in n&&(t.ignoreNullOrigin=n.ignoreNullOrigin),"timelineParams"in n&&(t.timelineParams=n.timelineParams),"nacl"in n&&(t.nacl=n.nacl),t}function Kn(n){return n.httpHost?n.httpHost:n.cluster?`sockjs-${n.cluster}.pusher.com`:L.httpHost}function Yn(n){return n.wsHost?n.wsHost:Zn(n.cluster)}function Zn(n){return`ws-${n}.pusher.com`}function er(n){return k.getProtocol()==="https:"?!0:n.forceTLS!==!1}function tr(n){return"enableStats"in n?n.enableStats:"disableStats"in n?!n.disableStats:!1}function nr(n){const e=Object.assign(Object.assign({},L.userAuthentication),n.userAuthentication);return"customHandler"in e&&e.customHandler!=null?e.customHandler:Xn(e)}function rr(n,e){let t;return"channelAuthorization"in n?t=Object.assign(Object.assign({},L.channelAuthorization),n.channelAuthorization):(t={transport:n.authTransport||L.authTransport,endpoint:n.authEndpoint||L.authEndpoint},"auth"in n&&("params"in n.auth&&(t.params=n.auth.params),"headers"in n.auth&&(t.headers=n.auth.headers)),"authorizer"in n&&(t.customHandler=Gn(e,t,n.authorizer))),t}function ir(n,e){const t=rr(n,e);return"customHandler"in t&&t.customHandler!=null?t.customHandler:Vn(t)}class sr extends G{constructor(e){super(function(t,r){D.debug(`No callbacks on watchlist events for ${t}`)}),this.pusher=e,this.bindWatchlistInternalEvent()}
8handleEvent(e){e.data.events.forEach(t=>{this.emit(t.name,t)})}bindWatchlistInternalEvent(){this.pusher.connection.bind("message",e=>{var t=e.event;t==="pusher_internal:watchlist_events"&&this.handleEvent(e)})}}function or(){let n,e;return{promise:new Promise((r,i)=>{n=r,e=i}),resolve:n,reject:e}}var ar=or;class cr extends G{constructor(e){super(function(t,r){D.debug("No callbacks on user for "+t)}),this.signin_requested=!1,this.user_data=null,this.serverToUserChannel=null,this.signinDonePromise=null,this._signinDoneResolve=null,this._onAuthorize=(t,r)=>{if(t){D.warn(`Error during signin: ${t}`),this._cleanup();return}this.pusher.send_event("pusher:signin",{auth:r.auth,user_data:r.user_data})},this.pusher=e,this.pusher.connection.bind("state_change",({previous:t,current:r})=>{t!=="connected"&&r==="connected"&&this._signin(),t==="connected"&&r!=="connected"&&(this._cleanup(),this._newSigninPromiseIfNeeded())}),this.watchlist=new sr(e),this.pusher.connection.bind("message",t=>{var r=t.event;r==="pusher:signin_success"&&this._onSigninSuccess(t.data),this.serverToUserChannel&&this.serverToUserChannel.name===t.channel&&this.serverToUserChannel.handleEvent(t)})}signin(){this.signin_requested||(this.signin_requested=!0,this._signin())}_signin(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}_onSigninSuccess(e){try{this.user_data=JSON.parse(e.user_data)}catch{D.error(`Failed parsing user data after signin: ${e.user_data}`),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){D.error(`user_data doesn't contain an id. user_data: ${this.user_data}`),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()}_subscribeChannels(){const e=t=>{t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():!t.subscriptionPending&&this.pusher.connection.state==="connected"&&t.subscribe()};this.serverToUserChannel=new Ze(`#server-to-user-${this.user_data.id}`,this.pusher),this.serverToUserChannel.bind_global((t,r)=>{t.indexOf("pusher_internal:")===0||t.indexOf("pusher:")===0||this.emit(t,r)}),e(this.serverToUserChannel)}_cleanup(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}_newSigninPromiseIfNeeded(){if(!this.signin_requested||this.signinDonePromise&&!this.signinDonePromise.done)return;const{promise:e,resolve:t,reject:r}=ar();e.done=!1;const i=()=>{e.done=!0};e.then(i).catch(i),this.signinDonePromise=e,this._signinDoneResolve=t}}class Y{static ready(){Y.isReady=!0;for(var e=0,t=Y.instances.length;e<t;e++)Y.instances[e].connect()}static getClientFeatures(){return Ne(ge({ws:k.Transports.ws},function(e){return e.isSupported({})}))}constructor(e,t){hr(e),$n(t),this.key=e,this.config=Qn(t,this),this.channels=ve.createChannels(),this.global_emitter=new G,this.sessionID=k.randomInt(1e9),this.timeline=new Dn(this.key,this.sessionID,{cluster:this.config.cluster,features:Y.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:$e.INFO,version:L.VERSION}),this.config.enableStats&&(this.timelineSender=ve.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+k.TimelineTransport.name}));var r=i=>k.getDefaultStrategy(this.config,i,Fn);this.connection=ve.createConnectionManager(this.key,{getStrategy:r,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",()=>{this.subscribeAll(),this.timelineSender&&this.timelineSender.send(this.connection.isUsingTLS())}),this.connection.bind("message",i=>{var o=i.event,h=o.indexOf("pusher_internal:")===0;if(i.channel){var p=this.channel(i.channel);p&&p.handleEvent(i)}h||this.global_emitter.emit(i.event,i.data)}),this.connection.bind("connecting",()=>{this.channels.disconnect()}),this.connection.bind("disconnected",()=>{this.channels.disconnect()}),this.connection.bind("error",i=>{D.warn(i)}),Y.instances.push(this),this.timeline.info({instances:Y.instances.length}),this.user=new cr(this),Y.isReady&&this.connect()}channel(e){return this.channels.find(e)}allChannels(){return this.channels.all()}connect(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new z(6e4,function(){t.send(e)})}}disconnect(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}bind(e,t,r){return this.global_emitter.bind(e,t,r),this}unbind(e,t,r){return this.global_emitter.unbind(e,t,r),this}bind_global(e){return this.global_emitter.bind_global(e),this}unbind_global(e){return this.global_emitter.unbind_global(e),this}unbind_all(e){return this.global_emitter.unbind_all(),this}subscribeAll(){var e;
8for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)}subscribe(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():!t.subscriptionPending&&this.connection.state==="connected"&&t.subscribe(),t}unsubscribe(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e),t&&t.subscribed&&t.unsubscribe())}send_event(e,t,r){return this.connection.send_event(e,t,r)}shouldUseTLS(){return this.config.useTLS}signin(){this.user.signin()}}Y.instances=[],Y.isReady=!1,Y.logToConsole=!1,Y.Runtime=k,Y.ScriptReceivers=k.ScriptReceivers,Y.DependenciesReceivers=k.DependenciesReceivers,Y.auth_callbacks=k.auth_callbacks;var ot=f.default=Y;function hr(n){if(n==null)throw"You must pass your app key when you instantiate Pusher."}k.setup(Y)}])})})(Dt);var Er=Dt.exports;const zr=yr(Er);export{Or as E,zr as P};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.