isometrik-chat 1.4.9 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{221:function(e,t,n){var r;!function(n,a){"use strict";"object"==typeof e.exports?e.exports=a(n,document):void 0===(r=function(){return a(n,document)}.apply(t,[]))||(e.exports=r)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n,r={x:0,y:0},a={enabled:!0,debug:!1,autoplay:!1,loop:!1,seekTime:10,volume:10,volumeMin:0,volumeMax:10,volumeStep:1,duration:null,displayDuration:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/2.0.18/plyr.svg",blankUrl:"https://cdn.plyr.io/static/blank.mp4",clickToPlay:!0,hideControls:!0,showPosterOnEnd:!1,disableContextMenu:!0,keyboardShorcuts:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},selectors:{html5:"video, audio",embed:"[data-type]",editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{seek:'[data-plyr="seek"]',play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',forward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',fullscreen:'[data-plyr="fullscreen"]'},volume:{input:'[data-plyr="volume"]',display:".plyr__volume--display"},progress:{container:".plyr__progress",buffer:".plyr__progress--buffer",played:".plyr__progress--played"},captions:".plyr__captions",currentTime:".plyr__time--current",duration:".plyr__time--duration"},classes:{setup:"plyr--setup",ready:"plyr--ready",videoWrapper:"plyr__video-wrapper",embedWrapper:"plyr__video-embed",type:"plyr--{0}",stopped:"plyr--stopped",playing:"plyr--playing",muted:"plyr--muted",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback",active:"plyr--fullscreen-active"},tabFocus:"tab-focus"},captions:{defaultActive:!1},fullscreen:{enabled:!0,fallback:!0,allowAudio:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","fullscreen"],i18n:{restart:"Restart",rewind:"Rewind {seektime} secs",play:"Play",pause:"Pause",forward:"Forward {seektime} secs",played:"played",buffered:"buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",toggleMute:"Toggle Mute",toggleCaptions:"Toggle Captions",toggleFullscreen:"Toggle Fullscreen",frameTitle:"Player for {title}"},types:{embed:["youtube","vimeo","soundcloud"],html5:["video","audio"]},urls:{vimeo:{api:"https://player.vimeo.com/api/player.js"},youtube:{api:"https://www.youtube.com/iframe_api"},soundcloud:{api:"https://w.soundcloud.com/player/api.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,forward:null,mute:null,volume:null,captions:null,fullscreen:null},events:["ready","ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied"],logPrefix:"[Plyr]"};function s(){var e,n,r,a=navigator.userAgent,s=navigator.appName,o=""+parseFloat(navigator.appVersion),i=parseInt(navigator.appVersion,10),l=!1,u=!1,c=!1,d=!1;return-1!==navigator.appVersion.indexOf("Windows NT")&&-1!==navigator.appVersion.indexOf("rv:11")?(l=!0,s="IE",o="11"):-1!==(n=a.indexOf("MSIE"))?(l=!0,s="IE",o=a.substring(n+5)):-1!==(n=a.indexOf("Chrome"))?(c=!0,s="Chrome",o=a.substring(n+7)):-1!==(n=a.indexOf("Safari"))?(d=!0,s="Safari",o=a.substring(n+7),-1!==(n=a.indexOf("Version"))&&(o=a.substring(n+8))):-1!==(n=a.indexOf("Firefox"))?(u=!0,s="Firefox",o=a.substring(n+8)):(e=a.lastIndexOf(" ")+1)<(n=a.lastIndexOf("/"))&&(s=a.substring(e,n),o=a.substring(n+1),s.toLowerCase()===s.toUpperCase()&&(s=navigator.appName)),-1!==(r=o.indexOf(";"))&&(o=o.substring(0,r)),-1!==(r=o.indexOf(" "))&&(o=o.substring(0,r)),i=parseInt(""+o,10),isNaN(i)&&(o=""+parseFloat(navigator.appVersion),i=parseInt(navigator.appVersion,10)),{name:s,version:i,isIE:l,isFirefox:u,isChrome:c,isSafari:d,isIos:/(iPad|iPhone|iPod)/g.test(navigator.platform),isIphone:/(iPhone|iPod)/g.test(navigator.userAgent),isTouch:"ontouchstart"in t.documentElement}}function o(e){if(!t.querySelectorAll('script[src="'+e+'"]').length){var n=t.createElement("script");n.src=e;var r=t.getElementsByTagName("script")[0];r.parentNode.insertBefore(n,r)}}function i(e,t){return Array.prototype.indexOf&&-1!==e.indexOf(t)}function l(e,t,n){return e.replace(new RegExp(t.replace(/([.*+?\^=!:${}()|\[\]\/\\])/g,"\\$1"),"g"),n)}function u(e,t){e.length||(e=[e]);for(var n=e.length-1;n>=0;n--){var r=n>0?t.cloneNode(!0):t,a=e[n],s=a.parentNode,o=a.nextSibling;return r.appendChild(a),o?s.insertBefore(r,o):s.appendChild(r),r}}function c(e){e&&e.parentNode.removeChild(e)}function d(e,t){e.insertBefore(t,e.firstChild)}function p(e,t){for(var n in t)e.setAttribute(n,S.boolean(t[n])&&t[n]?"":t[n])}function m(e,n,r){var a=t.createElement(e);p(a,r),d(n,a)}function f(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(/\s+/g," ").replace(" "+t+" ","");e.className=r+(n?" "+t:"")}}function y(e,t){return!!e&&(e.classList?e.classList.contains(t):new RegExp("(\\s|^)"+t+"(\\s|$)").test(e.className))}function b(e,n){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(e){return-1!==[].indexOf.call(t.querySelectorAll(e),this)}).call(e,n)}function v(e,t,n,r,a){n&&h(e,t,(function(t){n.apply(e,[t])}),a),h(e,t,(function(t){r.apply(e,[t])}),a)}function g(e,t,n,r,a){var s=t.split(" ");if(S.boolean(a)||(a=!1),e instanceof NodeList)for(var o=0;o<e.length;o++)e[o]instanceof Node&&g(e[o],arguments[1],arguments[2],arguments[3]);else for(var i=0;i<s.length;i++)e[r?"addEventListener":"removeEventListener"](s[i],n,a)}function h(e,t,n,r){e&&g(e,t,n,!0,r)}function k(e,t,n,r){if(e&&t){S.boolean(n)||(n=!1);var a=new CustomEvent(t,{bubbles:n,detail:r});e.dispatchEvent(a)}}function w(e,t){if(e)return t=S.boolean(t)?t:!e.getAttribute("aria-pressed"),e.setAttribute("aria-pressed",t),t}function x(e,t){return 0===e||0===t||isNaN(e)||isNaN(t)?0:(e/t*100).toFixed(2)}function T(){var e=arguments;if(e.length){if(1===e.length)return e[0];for(var t=Array.prototype.shift.call(e),n=e.length,r=0;r<n;r++){var a=e[r];for(var s in a)a[s]&&a[s].constructor&&a[s].constructor===Object?(t[s]=t[s]||{},T(t[s],a[s])):t[s]=a[s]}return t}}var S={object:function(e){return null!==e&&"object"==typeof e},array:function(e){return null!==e&&"object"==typeof e&&e.constructor===Array},number:function(e){return null!==e&&("number"==typeof e&&!isNaN(e-0)||"object"==typeof e&&e.constructor===Number)},string:function(e){return null!==e&&("string"==typeof e||"object"==typeof e&&e.constructor===String)},boolean:function(e){return null!==e&&"boolean"==typeof e},nodeList:function(e){return null!==e&&e instanceof NodeList},htmlElement:function(e){return null!==e&&e instanceof HTMLElement},function:function(e){return null!==e&&"function"==typeof e},undefined:function(e){return null!==e&&void 0===e}};var E=function(){try{e.localStorage.setItem("___test","OK");var t=e.localStorage.getItem("___test");return e.localStorage.removeItem("___test"),"OK"===t}catch(e){return!1}return!1}();function _(_,I){var N,P=this,M={};P.media=_;var O=_.cloneNode(!0);function L(e,t,n,r){k(e,t,n,T({},r,{plyr:N}))}function j(t,n){I.debug&&e.console&&(n=Array.prototype.slice.call(n),S.string(I.logPrefix)&&I.logPrefix.length&&n.unshift(I.logPrefix),console[t].apply(console,n))}var R=function(){j("log",arguments)},V=function(){j("warn",arguments)};function q(){return{url:I.iconUrl,absolute:0===I.iconUrl.indexOf("http")||P.browser.isIE&&!e.svg4everybody}}function D(){if(P.supported.full&&("audio"!==P.type||I.fullscreen.allowAudio)&&I.fullscreen.enabled){var t=n.supportsFullScreen;t||I.fullscreen.fallback&&!function(){try{return e.self!==e.top}catch(e){return!0}}()?(R((t?"Native":"Fallback")+" fullscreen enabled"),t||f(P.container,I.classes.fullscreen.fallback,!0),f(P.container,I.classes.fullscreen.enabled,!0)):R("Fullscreen not supported and fallback disabled"),P.buttons&&P.buttons.fullscreen&&w(P.buttons.fullscreen,!1),X()}}function H(){if("video"===P.type){B(I.selectors.captions)||P.videoContainer.insertAdjacentHTML("afterbegin",'<div class="'+(I.selectors.captions.replace(".","")+'"></div>')),P.usingTextTracks=!1,P.media.textTracks&&(P.usingTextTracks=!0);for(var e,t="",n=P.media.childNodes,r=0;r<n.length;r++)"track"===n[r].nodeName.toLowerCase()&&("captions"!==(e=n[r].kind)&&"subtitles"!==e||(t=n[r].getAttribute("src")));if(P.captionExists=!0,""===t?(P.captionExists=!1,R("No caption track found")):R("Caption track found; URI: "+t),P.captionExists){for(var a=P.media.textTracks,s=0;s<a.length;s++)a[s].mode="hidden";if(function(){if(!P.buttons.captions)return;f(P.container,I.classes.captions.enabled,!0);var e=P.storage.captionsEnabled;S.boolean(e)||(e=I.captions.defaultActive);e&&(f(P.container,I.classes.captions.active,!0),w(P.buttons.captions,!0))}(),(P.browser.isIE&&P.browser.version>=10||P.browser.isFirefox&&P.browser.version>=31)&&(R("Detected browser with known TextTrack issues - using manual fallback"),P.usingTextTracks=!1),P.usingTextTracks){R("TextTracks supported");for(var o=0;o<a.length;o++){var i=a[o];"captions"!==i.kind&&"subtitles"!==i.kind||h(i,"cuechange",(function(){this.activeCues[0]&&"text"in this.activeCues[0]?U(this.activeCues[0].getCueAsHTML()):U()}))}}else if(R("TextTracks not supported so rendering captions manually"),P.currentCaption="",P.captions=[],""!==t){var l=new XMLHttpRequest;l.onreadystatechange=function(){if(4===l.readyState)if(200===l.status){var e,t,n=l.responseText,r="\r\n";-1===n.indexOf(r+r)&&(r=-1!==n.indexOf("\r\r")?"\r":"\n"),e=n.split(r+r);for(var a=0;a<e.length;a++){t=e[a],P.captions[a]=[];var s=t.split(r),o=0;-1===s[o].indexOf(":")&&(o=1),P.captions[a]=[s[o],s[o+1]]}P.captions.shift(),R("Successfully loaded the caption file via AJAX")}else V(I.logPrefix+"There was a problem loading the caption file via AJAX")},l.open("get",t,!0),l.send()}}else f(P.container,I.classes.captions.enabled)}}function U(e){var n=B(I.selectors.captions),r=t.createElement("span");n.innerHTML="",S.undefined(e)&&(e=""),S.string(e)?r.innerHTML=e.trim():r.appendChild(e),n.appendChild(r);n.offsetHeight}function W(e){function t(e,t){var n=[];n=e.split(" --\x3e ");for(var r=0;r<n.length;r++)n[r]=n[r].replace(/(\d+:\d+:\d+\.\d+).*/,"$1");return function(e){if(null==e)return 0;var t,n=[];return n=e.split(","),t=n[0].split(":"),Math.floor(60*t[0]*60)+Math.floor(60*t[1])+Math.floor(t[2])}(n[t])}function n(e){return t(e,1)}if(!P.usingTextTracks&&"video"===P.type&&P.supported.full&&(P.subcount=0,e=S.number(e)?e:P.media.currentTime,P.captions[P.subcount])){for(;n(P.captions[P.subcount][0])<e.toFixed(1);)if(P.subcount++,P.subcount>P.captions.length-1){P.subcount=P.captions.length-1;break}P.media.currentTime.toFixed(1)>=t(P.captions[P.subcount][0],0)&&P.media.currentTime.toFixed(1)<=n(P.captions[P.subcount][0])?(P.currentCaption=P.captions[P.subcount][1],U(P.currentCaption)):U()}}function Y(e){return P.container.querySelectorAll(e)}function B(e){return Y(e)[0]}function X(){var e=Y("input:not([disabled]), button:not([disabled])"),t=e[0],n=e[e.length-1];h(P.container,"keydown",(function(e){9===e.which&&P.isFullscreen&&(e.target!==n||e.shiftKey?e.target===t&&e.shiftKey&&(e.preventDefault(),n.focus()):(e.preventDefault(),t.focus()))}))}function J(e,t){if(S.string(t))m(e,P.media,{src:t});else if(t.constructor===Array)for(var n=t.length-1;n>=0;n--)m(e,P.media,t[n])}function $(){if(I.loadSprite){var e=q();e.absolute?(R("AJAX loading absolute SVG sprite"+(P.browser.isIE?" (due to IE)":"")),C(e.url,"sprite-plyr")):R("Sprite will be used as external resource directly")}var n,r=I.html;if(R("Injecting custom controls"),r||(r=function(){var e=[],t=q(),n=(t.absolute?"":t.url)+"#"+I.iconPrefix;return i(I.controls,"play-large")&&e.push('<button type="button" data-plyr="play" class="plyr__play-large">','<svg><use xlink:href="'+n+'-play" /></svg>','<span class="plyr__sr-only">'+I.i18n.play+"</span>","</button>"),e.push('<div class="plyr__controls">'),i(I.controls,"restart")&&e.push('<button type="button" data-plyr="restart">','<svg><use xlink:href="'+n+'-restart" /></svg>','<span class="plyr__sr-only">'+I.i18n.restart+"</span>","</button>"),i(I.controls,"rewind")&&e.push('<button type="button" data-plyr="rewind">','<svg><use xlink:href="'+n+'-rewind" /></svg>','<span class="plyr__sr-only">'+I.i18n.rewind+"</span>","</button>"),i(I.controls,"play")&&e.push('<button type="button" data-plyr="play">','<svg><use xlink:href="'+n+'-play" /></svg>','<span class="plyr__sr-only">'+I.i18n.play+"</span>","</button>",'<button type="button" data-plyr="pause">','<svg><use xlink:href="'+n+'-pause" /></svg>','<span class="plyr__sr-only">'+I.i18n.pause+"</span>","</button>"),i(I.controls,"fast-forward")&&e.push('<button type="button" data-plyr="fast-forward">','<svg><use xlink:href="'+n+'-fast-forward" /></svg>','<span class="plyr__sr-only">'+I.i18n.forward+"</span>","</button>"),i(I.controls,"progress")&&(e.push('<span class="plyr__progress">','<label for="seek{id}" class="plyr__sr-only">Seek</label>','<input id="seek{id}" class="plyr__progress--seek" type="range" min="0" max="100" step="0.1" value="0" data-plyr="seek">','<progress class="plyr__progress--played" max="100" value="0" role="presentation"></progress>','<progress class="plyr__progress--buffer" max="100" value="0">',"<span>0</span>% "+I.i18n.buffered,"</progress>"),I.tooltips.seek&&e.push('<span class="plyr__tooltip">00:00</span>'),e.push("</span>")),i(I.controls,"current-time")&&e.push('<span class="plyr__time">','<span class="plyr__sr-only">'+I.i18n.currentTime+"</span>",'<span class="plyr__time--current">00:00</span>',"</span>"),i(I.controls,"duration")&&e.push('<span class="plyr__time">','<span class="plyr__sr-only">'+I.i18n.duration+"</span>",'<span class="plyr__time--duration">00:00</span>',"</span>"),i(I.controls,"mute")&&e.push('<button type="button" data-plyr="mute">','<svg class="icon--muted"><use xlink:href="'+n+'-muted" /></svg>','<svg><use xlink:href="'+n+'-volume" /></svg>','<span class="plyr__sr-only">'+I.i18n.toggleMute+"</span>","</button>"),i(I.controls,"volume")&&e.push('<span class="plyr__volume">','<label for="volume{id}" class="plyr__sr-only">'+I.i18n.volume+"</label>",'<input id="volume{id}" class="plyr__volume--input" type="range" min="'+I.volumeMin+'" max="'+I.volumeMax+'" value="'+I.volume+'" data-plyr="volume">','<progress class="plyr__volume--display" max="'+I.volumeMax+'" value="'+I.volumeMin+'" role="presentation"></progress>',"</span>"),i(I.controls,"captions")&&e.push('<button type="button" data-plyr="captions">','<svg class="icon--captions-on"><use xlink:href="'+n+'-captions-on" /></svg>','<svg><use xlink:href="'+n+'-captions-off" /></svg>','<span class="plyr__sr-only">'+I.i18n.toggleCaptions+"</span>","</button>"),i(I.controls,"fullscreen")&&e.push('<button type="button" data-plyr="fullscreen">','<svg class="icon--exit-fullscreen"><use xlink:href="'+n+'-exit-fullscreen" /></svg>','<svg><use xlink:href="'+n+'-enter-fullscreen" /></svg>','<span class="plyr__sr-only">'+I.i18n.toggleFullscreen+"</span>","</button>"),e.push("</div>"),e.join("")}()),r=l(r,"{seektime}",I.seekTime),r=l(r,"{id}",Math.floor(1e4*Math.random())),I.title&&(r=l(r,"{title}",I.title)),S.string(I.selectors.controls.container)&&(n=t.querySelector(I.selectors.controls.container)),S.htmlElement(n)||(n=P.container),n.insertAdjacentHTML("beforeend",r),I.tooltips.controls)for(var a=Y([I.selectors.controls.wrapper," ",I.selectors.labels," .",I.classes.hidden].join("")),s=a.length-1;s>=0;s--){var o=a[s];f(o,I.classes.hidden,!1),f(o,I.classes.tooltip,!0)}}function z(){f(P.container,I.selectors.container.replace(".",""),P.supported.full)}function G(e){e&&i(I.types.html5,P.type)?P.media.setAttribute("controls",""):P.media.removeAttribute("controls")}function K(e){var t=I.i18n.play;if(S.string(I.title)&&I.title.length&&(t+=", "+I.title,P.container.setAttribute("aria-label",I.title)),P.supported.full&&P.buttons.play)for(var n=P.buttons.play.length-1;n>=0;n--)P.buttons.play[n].setAttribute("aria-label",t);S.htmlElement(e)&&e.setAttribute("title",I.i18n.frameTitle.replace("{title}",I.title))}function Q(t){E&&I.storage.enabled&&(T(P.storage,t),e.localStorage.setItem(I.storage.key,JSON.stringify(P.storage)))}function Z(){if(P.media){if(P.supported.full&&(f(P.container,I.classes.type.replace("{0}",P.type),!0),i(I.types.embed,P.type)&&f(P.container,I.classes.type.replace("{0}","video"),!0),f(P.container,I.classes.stopped,I.autoplay),f(P.container,I.classes.isIos,P.browser.isIos),f(P.container,I.classes.isTouch,P.browser.isTouch),"video"===P.type)){var n=t.createElement("div");n.setAttribute("class",I.classes.videoWrapper),u(P.media,n),P.videoContainer=n}i(I.types.embed,P.type)&&function(){var n,r=t.createElement("div"),a=P.type+"-"+Math.floor(1e4*Math.random());switch(P.type){case"youtube":s=P.embedId,n=s.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)?RegExp.$2:s;break;case"vimeo":n=function(e){return e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}(P.embedId);break;default:n=P.embedId}var s;for(var i=Y('[id^="'+P.type+'-"]'),l=i.length-1;l>=0;l--)c(i[l]);if(f(P.media,I.classes.videoWrapper,!0),f(P.media,I.classes.embedWrapper,!0),"youtube"===P.type)P.media.appendChild(r),r.setAttribute("id",a),S.object(e.YT)?te(n,r):(o(I.urls.youtube.api),e.onYouTubeReadyCallbacks=e.onYouTubeReadyCallbacks||[],e.onYouTubeReadyCallbacks.push((function(){te(n,r)})),e.onYouTubeIframeAPIReady=function(){e.onYouTubeReadyCallbacks.forEach((function(e){e()}))});else if("vimeo"===P.type)if(P.supported.full?P.media.appendChild(r):r=P.media,r.setAttribute("id",a),S.object(e.Vimeo))ne(n,r);else{o(I.urls.vimeo.api);var u=e.setInterval((function(){S.object(e.Vimeo)&&(e.clearInterval(u),ne(n,r))}),50)}else if("soundcloud"===P.type){var d=t.createElement("iframe");d.loaded=!1,h(d,"load",(function(){d.loaded=!0})),p(d,{src:"https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/"+n,id:a}),r.appendChild(d),P.media.appendChild(r),e.SC||o(I.urls.soundcloud.api);var m=e.setInterval((function(){e.SC&&d.loaded&&(e.clearInterval(m),re.call(d))}),50)}}()}else V("No media element found!")}function ee(){P.supported.full&&(Ne(),Pe()),K(B("iframe"))}function te(t,n){P.embed=new e.YT.Player(n.id,{videoId:t,playerVars:{autoplay:I.autoplay?1:0,controls:P.supported.full?0:1,rel:0,showinfo:0,iv_load_policy:3,cc_load_policy:I.captions.defaultActive?1:0,cc_lang_pref:"en",wmode:"transparent",modestbranding:1,disablekb:1,origin:"*"},events:{onError:function(e){L(P.container,"error",!0,{code:e.data,embed:e.target})},onReady:function(t){var n=t.target;P.media.play=function(){n.playVideo(),P.media.paused=!1},P.media.pause=function(){n.pauseVideo(),P.media.paused=!0},P.media.stop=function(){n.stopVideo(),P.media.paused=!0},P.media.duration=n.getDuration(),P.media.paused=!0,P.media.currentTime=0,P.media.muted=n.isMuted(),"function"==typeof n.getVideoData&&(I.title=n.getVideoData().title),P.supported.full&&P.media.querySelector("iframe").setAttribute("tabindex","-1"),ee(),L(P.media,"timeupdate"),L(P.media,"durationchange"),e.clearInterval(M.buffering),M.buffering=e.setInterval((function(){P.media.buffered=n.getVideoLoadedFraction(),(null===P.media.lastBuffered||P.media.lastBuffered<P.media.buffered)&&L(P.media,"progress"),P.media.lastBuffered=P.media.buffered,1===P.media.buffered&&(e.clearInterval(M.buffering),L(P.media,"canplaythrough"))}),200)},onStateChange:function(t){var n=t.target;switch(e.clearInterval(M.playing),t.data){case 0:P.media.paused=!0,L(P.media,"ended");break;case 1:P.media.paused=!1,P.media.seeking&&L(P.media,"seeked"),P.media.seeking=!1,L(P.media,"play"),L(P.media,"playing"),M.playing=e.setInterval((function(){P.media.currentTime=n.getCurrentTime(),L(P.media,"timeupdate")}),100),P.media.duration!==n.getDuration()&&(P.media.duration=n.getDuration(),L(P.media,"durationchange"));break;case 2:P.media.paused=!0,L(P.media,"pause")}L(P.container,"statechange",!1,{code:t.data})}}})}function ne(n,r){var a=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}({loop:I.loop,autoplay:I.autoplay,byline:!1,portrait:!1,title:!1,speed:!0,transparent:0}),s=t.createElement("iframe"),o="https://player.vimeo.com/video/"+n+"?"+a;s.setAttribute("src",o),s.setAttribute("allowfullscreen",""),r.appendChild(s),P.embed=new e.Vimeo.Player(s),P.media.play=function(){P.embed.play(),P.media.paused=!1},P.media.pause=function(){P.embed.pause(),P.media.paused=!0},P.media.stop=function(){P.embed.stop(),P.media.paused=!0},P.media.paused=!0,P.media.currentTime=0,ee(),P.embed.getCurrentTime().then((function(e){P.media.currentTime=e,L(P.media,"timeupdate")})),P.embed.getDuration().then((function(e){P.media.duration=e,L(P.media,"durationchange")})),P.embed.on("loaded",(function(){S.htmlElement(P.embed.element)&&P.supported.full&&P.embed.element.setAttribute("tabindex","-1")})),P.embed.on("play",(function(){P.media.paused=!1,L(P.media,"play"),L(P.media,"playing")})),P.embed.on("pause",(function(){P.media.paused=!0,L(P.media,"pause")})),P.embed.on("timeupdate",(function(e){P.media.seeking=!1,P.media.currentTime=e.seconds,L(P.media,"timeupdate")})),P.embed.on("progress",(function(e){P.media.buffered=e.percent,L(P.media,"progress"),1===parseInt(e.percent)&&L(P.media,"canplaythrough")})),P.embed.on("seeked",(function(){P.media.seeking=!1,L(P.media,"seeked"),L(P.media,"play")})),P.embed.on("ended",(function(){P.media.paused=!0,L(P.media,"ended")}))}function re(){P.embed=e.SC.Widget(this),P.embed.bind(e.SC.Widget.Events.READY,(function(){P.media.play=function(){P.embed.play(),P.media.paused=!1},P.media.pause=function(){P.embed.pause(),P.media.paused=!0},P.media.stop=function(){P.embed.seekTo(0),P.embed.pause(),P.media.paused=!0},P.media.paused=!0,P.media.currentTime=0,P.embed.getDuration((function(e){P.media.duration=e/1e3,ee()})),P.embed.getPosition((function(e){P.media.currentTime=e,L(P.media,"timeupdate")})),P.embed.bind(e.SC.Widget.Events.PLAY,(function(){P.media.paused=!1,L(P.media,"play"),L(P.media,"playing")})),P.embed.bind(e.SC.Widget.Events.PAUSE,(function(){P.media.paused=!0,L(P.media,"pause")})),P.embed.bind(e.SC.Widget.Events.PLAY_PROGRESS,(function(e){P.media.seeking=!1,P.media.currentTime=e.currentPosition/1e3,L(P.media,"timeupdate")})),P.embed.bind(e.SC.Widget.Events.LOAD_PROGRESS,(function(e){P.media.buffered=e.loadProgress,L(P.media,"progress"),1===parseInt(e.loadProgress)&&L(P.media,"canplaythrough")})),P.embed.bind(e.SC.Widget.Events.FINISH,(function(){P.media.paused=!0,L(P.media,"ended")}))}))}function ae(){"play"in P.media&&P.media.play()}function se(){"pause"in P.media&&P.media.pause()}function oe(e){return S.boolean(e)||(e=P.media.paused),e?ae():se(),e}function ie(e){S.number(e)||(e=I.seekTime),ue(P.media.currentTime-e)}function le(e){S.number(e)||(e=I.seekTime),ue(P.media.currentTime+e)}function ue(e){var t=0,n=P.media.paused,r=ce();S.number(e)?t=e:S.object(e)&&i(["input","change"],e.type)&&(t=e.target.value/e.target.max*r),t<0?t=0:t>r&&(t=r),Ee(t);try{P.media.currentTime=t.toFixed(4)}catch(e){}if(i(I.types.embed,P.type)){switch(P.type){case"youtube":P.embed.seekTo(t);break;case"vimeo":P.embed.setCurrentTime(t.toFixed(0));break;case"soundcloud":P.embed.seekTo(1e3*t)}n&&se(),L(P.media,"timeupdate"),P.media.seeking=!0,L(P.media,"seeking")}R("Seeking to "+P.media.currentTime+" seconds"),W(t)}function ce(){var e=parseInt(I.duration),t=0;return null===P.media.duration||isNaN(P.media.duration)||(t=P.media.duration),isNaN(e)?t:e}function de(){f(P.container,I.classes.playing,!P.media.paused),f(P.container,I.classes.stopped,P.media.paused),Ce(P.media.paused)}function pe(a){var s=n.supportsFullScreen;if(s){if(!a||a.type!==n.fullScreenEventName)return n.isFullScreen(P.container)?n.cancelFullScreen():(r={x:e.pageXOffset||0,y:e.pageYOffset||0},n.requestFullScreen(P.container)),void(P.isFullscreen=n.isFullScreen(P.container));P.isFullscreen=n.isFullScreen(P.container)}else P.isFullscreen=!P.isFullscreen,t.body.style.overflow=P.isFullscreen?"hidden":"";f(P.container,I.classes.fullscreen.active,P.isFullscreen),X(P.isFullscreen),P.buttons&&P.buttons.fullscreen&&w(P.buttons.fullscreen,P.isFullscreen),L(P.container,P.isFullscreen?"enterfullscreen":"exitfullscreen",!0),!P.isFullscreen&&s&&e.scrollTo(r.x,r.y)}function me(e){if(S.boolean(e)||(e=!P.media.muted),w(P.buttons.mute,e),P.media.muted=e,0===P.media.volume&&fe(I.volume),i(I.types.embed,P.type)){switch(P.type){case"youtube":P.embed[P.media.muted?"mute":"unMute"]();break;case"vimeo":case"soundcloud":P.embed.setVolume(P.media.muted?0:parseFloat(I.volume/I.volumeMax))}L(P.media,"volumechange")}}function fe(e){var t=I.volumeMax,n=I.volumeMin;if(S.undefined(e)&&(e=P.storage.volume),(null===e||isNaN(e))&&(e=I.volume),e>t&&(e=t),e<n&&(e=n),P.media.volume=parseFloat(e/t),P.volume.display&&(P.volume.display.value=e),i(I.types.embed,P.type)){switch(P.type){case"youtube":P.embed.setVolume(100*P.media.volume);break;case"vimeo":case"soundcloud":P.embed.setVolume(P.media.volume)}L(P.media,"volumechange")}0===e?P.media.muted=!0:P.media.muted&&e>0&&me()}function ye(e){var t=P.media.muted?0:P.media.volume*I.volumeMax;S.number(e)||(e=I.volumeStep),fe(t+e)}function be(e){var t=P.media.muted?0:P.media.volume*I.volumeMax;S.number(e)||(e=I.volumeStep),fe(t-e)}function ve(){var e=P.media.muted?0:P.media.volume*I.volumeMax;P.supported.full&&(P.volume.input&&(P.volume.input.value=e),P.volume.display&&(P.volume.display.value=e)),Q({volume:e}),f(P.container,I.classes.muted,0===e),P.supported.full&&P.buttons.mute&&w(P.buttons.mute,0===e)}function ge(e){P.supported.full&&P.buttons.captions&&(S.boolean(e)||(e=-1===P.container.className.indexOf(I.classes.captions.active)),P.captionsEnabled=e,w(P.buttons.captions,P.captionsEnabled),f(P.container,I.classes.captions.active,P.captionsEnabled),L(P.container,P.captionsEnabled?"captionsenabled":"captionsdisabled",!0),Q({captionsEnabled:P.captionsEnabled}))}function he(e){var t="waiting"===e.type;clearTimeout(M.loading),M.loading=setTimeout((function(){f(P.container,I.classes.loading,t),Ce(t)}),t?250:0)}function ke(e){if(P.supported.full){var t,n=P.progress.played,r=0,a=ce();if(e)switch(e.type){case"timeupdate":case"seeking":if(P.controls.pressed)return;r=x(P.media.currentTime,a),"timeupdate"===e.type&&P.buttons.seek&&(P.buttons.seek.value=r);break;case"playing":case"progress":n=P.progress.buffer,r=(t=P.media.buffered)&&t.length?x(t.end(0),a):S.number(t)?100*t:0}we(n,r)}}function we(e,t){if(P.supported.full){if(S.undefined(t)&&(t=0),S.undefined(e)){if(!P.progress||!P.progress.buffer)return;e=P.progress.buffer}S.htmlElement(e)?e.value=t:e&&(e.bar&&(e.bar.value=t),e.text&&(e.text.innerHTML=t))}}function xe(e,t){if(t){isNaN(e)&&(e=0),P.secs=parseInt(e%60),P.mins=parseInt(e/60%60),P.hours=parseInt(e/60/60%60);var n=parseInt(ce()/60/60%60)>0;P.secs=("0"+P.secs).slice(-2),P.mins=("0"+P.mins).slice(-2),t.innerHTML=(n?P.hours+":":"")+P.mins+":"+P.secs}}function Te(){if(P.supported.full){var e=ce()||0;!P.duration&&I.displayDuration&&P.media.paused&&xe(e,P.currentTime),P.duration&&xe(e,P.duration),_e()}}function Se(e){xe(P.media.currentTime,P.currentTime),e&&"timeupdate"===e.type&&P.media.seeking||ke(e)}function Ee(e){S.number(e)||(e=0);var t=x(e,ce());P.progress&&P.progress.played&&(P.progress.played.value=t),P.buttons&&P.buttons.seek&&(P.buttons.seek.value=t)}function _e(e){var t=ce();if(I.tooltips.seek&&P.progress.container&&0!==t){var n=P.progress.container.getBoundingClientRect(),r=0,a=I.classes.tooltip+"--visible";if(e)r=100/n.width*(e.pageX-n.left);else{if(!y(P.progress.tooltip,a))return;r=P.progress.tooltip.style.left.replace("%","")}r<0?r=0:r>100&&(r=100),xe(t/100*r,P.progress.tooltip),P.progress.tooltip.style.left=r+"%",e&&i(["mouseenter","mouseleave"],e.type)&&f(P.progress.tooltip,a,"mouseenter"===e.type)}}function Ce(t){if(I.hideControls&&"audio"!==P.type){var n=0,r=!1,a=t,s=y(P.container,I.classes.loading);if(S.boolean(t)||(t&&t.type?(r="enterfullscreen"===t.type,a=i(["mousemove","touchstart","mouseenter","focus"],t.type),i(["mousemove","touchmove"],t.type)&&(n=2e3),"focus"===t.type&&(n=3e3)):a=y(P.container,I.classes.hideControls)),e.clearTimeout(M.hover),a||P.media.paused||s){if(f(P.container,I.classes.hideControls,!1),P.media.paused||s)return;P.browser.isTouch&&(n=3e3)}a&&P.media.paused||(M.hover=e.setTimeout((function(){(!P.controls.pressed&&!P.controls.hover||r)&&f(P.container,I.classes.hideControls,!0)}),n))}}function Fe(){f(B("."+I.classes.tabFocus),I.classes.tabFocus,!1)}function Ae(){var r=P.browser.isIE?"change":"input";function a(){var e=oe(),t=P.buttons[e?"play":"pause"],n=P.buttons[e?"pause":"play"];if(n&&(n=n.length>1?n[n.length-1]:n[0]),n){var r=y(t,I.classes.tabFocus);setTimeout((function(){n.focus(),r&&(f(t,I.classes.tabFocus,!1),f(n,I.classes.tabFocus,!0))}),100)}}function s(){var e=t.activeElement;return e=e&&e!==t.body?t.querySelector(":focus"):null}function o(e){return e.keyCode?e.keyCode:e.which}if(I.keyboardShorcuts.focused){var l=null;I.keyboardShorcuts.global&&h(e,"keydown keyup",(function(e){var t=o(e),n=s();1!==A().length||!i([48,49,50,51,52,53,54,56,57,75,77,70,67],t)||S.htmlElement(n)&&b(n,I.selectors.editable)||u(e)})),h(P.container,"keydown keyup",u)}function u(e){var t,r=o(e),a="keydown"===e.type,s=a&&r===l;if(S.number(r))if(a){switch(i([48,49,50,51,52,53,54,56,57,32,75,38,40,77,39,37,70,67],r)&&(e.preventDefault(),e.stopPropagation()),r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:s||(t=P.media.duration,S.number(t)&&ue(t/10*(r-48)));break;case 32:case 75:s||oe();break;case 38:ye();break;case 40:be();break;case 77:s||me();break;case 39:le();break;case 37:ie();break;case 70:pe();break;case 67:s||ge()}!n.supportsFullScreen&&P.isFullscreen&&27===r&&pe(),l=r}else l=null}for(var c in h(e,"keyup",(function(e){var t=o(e),n=s();9===t&&function(e){for(var t in P.buttons){var n=P.buttons[t];if(S.nodeList(n))for(var r=0;r<n.length;r++)f(n[r],I.classes.tabFocus,n[r]===e);else f(n,I.classes.tabFocus,n===e)}}(n)})),h(t.body,"click",Fe),P.buttons){var d=P.buttons[c];h(d,"blur",(function(){f(d,"tab-focus",!1)}))}v(P.buttons.play,"click",I.listeners.play,a),v(P.buttons.pause,"click",I.listeners.pause,a),v(P.buttons.restart,"click",I.listeners.restart,ue),v(P.buttons.rewind,"click",I.listeners.rewind,ie),v(P.buttons.forward,"click",I.listeners.forward,le),v(P.buttons.seek,r,I.listeners.seek,ue),v(P.volume.input,r,I.listeners.volume,(function(){fe(P.volume.input.value)})),v(P.buttons.mute,"click",I.listeners.mute,me),v(P.buttons.fullscreen,"click",I.listeners.fullscreen,pe),n.supportsFullScreen&&h(t,n.fullScreenEventName,pe),v(P.buttons.captions,"click",I.listeners.captions,ge),h(P.progress.container,"mouseenter mouseleave mousemove",_e),I.hideControls&&(h(P.container,"mouseenter mouseleave mousemove touchstart touchend touchcancel touchmove enterfullscreen",Ce),h(P.controls,"mouseenter mouseleave",(function(e){P.controls.hover="mouseenter"===e.type})),h(P.controls,"mousedown mouseup touchstart touchend touchcancel",(function(e){P.controls.pressed=i(["mousedown","touchstart"],e.type)})),h(P.controls,"focus blur",Ce,!0)),h(P.volume.input,"wheel",(function(e){e.preventDefault();var t=e.webkitDirectionInvertedFromDevice,n=I.volumeStep/5;(e.deltaY<0||e.deltaX>0)&&(t?be(n):ye(n)),(e.deltaY>0||e.deltaX<0)&&(t?ye(n):be(n))}))}function Ie(n,r){if(!P.init)return null;switch(P.type){case"youtube":e.clearInterval(M.buffering),e.clearInterval(M.playing),P.embed.destroy(),a();break;case"vimeo":P.embed.unload().then(a),M.cleanUp=e.setTimeout(a,200);break;case"video":case"audio":G(!0),a()}function a(){clearTimeout(M.cleanUp),S.boolean(r)||(r=!0),S.function(n)&&n.call(O),r&&(P.init=!1,P.container.parentNode.replaceChild(O,P.container),P.container=null,t.body.style.overflow="",function(e,t,n,r){e&&g(e,t,n,!1,r)}(t.body,"click",Fe),L(O,"destroyed",!0))}}function Ne(){if(!P.supported.full)return V("Basic support only",P.type),c(B(I.selectors.controls.wrapper)),c(B(I.selectors.buttons.play)),void G(!0);var e=!Y(I.selectors.controls.wrapper).length;e&&$(),function(){try{return P.controls=B(I.selectors.controls.wrapper),P.buttons={},P.buttons.seek=B(I.selectors.buttons.seek),P.buttons.play=Y(I.selectors.buttons.play),P.buttons.pause=B(I.selectors.buttons.pause),P.buttons.restart=B(I.selectors.buttons.restart),P.buttons.rewind=B(I.selectors.buttons.rewind),P.buttons.forward=B(I.selectors.buttons.forward),P.buttons.fullscreen=B(I.selectors.buttons.fullscreen),P.buttons.mute=B(I.selectors.buttons.mute),P.buttons.captions=B(I.selectors.buttons.captions),P.progress={},P.progress.container=B(I.selectors.progress.container),P.progress.buffer={},P.progress.buffer.bar=B(I.selectors.progress.buffer),P.progress.buffer.text=P.progress.buffer.bar&&P.progress.buffer.bar.getElementsByTagName("span")[0],P.progress.played=B(I.selectors.progress.played),P.progress.tooltip=P.progress.container&&P.progress.container.querySelector("."+I.classes.tooltip),P.volume={},P.volume.input=B(I.selectors.volume.input),P.volume.display=B(I.selectors.volume.display),P.duration=B(I.selectors.duration),P.currentTime=B(I.selectors.currentTime),P.seekTime=Y(I.selectors.seekTime),!0}catch(e){return V("It looks like there is a problem with your controls HTML"),G(!0),!1}}()&&(e&&Ae(),function(){if(h(P.media,"timeupdate seeking",Se),h(P.media,"timeupdate",W),h(P.media,"durationchange loadedmetadata",Te),h(P.media,"ended",(function(){"video"===P.type&&I.showPosterOnEnd&&("video"===P.type&&U(),ue(),P.media.load())})),h(P.media,"progress playing",ke),h(P.media,"volumechange",ve),h(P.media,"play pause ended",de),h(P.media,"waiting canplay seeked",he),I.clickToPlay&&"audio"!==P.type){var e=B("."+I.classes.videoWrapper);if(!e)return;e.style.cursor="pointer",h(e,"click",(function(){I.hideControls&&P.browser.isTouch&&!P.media.paused||(P.media.paused?ae():P.media.ended?(ue(),ae()):se())}))}I.disableContextMenu&&h(P.media,"contextmenu",(function(e){e.preventDefault()})),h(P.media,I.events.concat(["keyup","keydown"]).join(" "),(function(e){L(P.container,e.type,!0)}))}(),G(),D(),H(),fe(),ve(),Se(),de(),Te())}function Pe(){e.setTimeout((function(){L(P.media,"ready")}),0),f(P.media,a.classes.setup,!0),f(P.container,I.classes.ready,!0),P.media.plyr=N,I.autoplay&&ae()}return R("Config",I),N={getOriginal:function(){return O},getContainer:function(){return P.container},getEmbed:function(){return P.embed},getMedia:function(){return P.media},getType:function(){return P.type},getDuration:ce,getCurrentTime:function(){return P.media.currentTime},getVolume:function(){return P.media.volume},isMuted:function(){return P.media.muted},isReady:function(){return y(P.container,I.classes.ready)},isLoading:function(){return y(P.container,I.classes.loading)},isPaused:function(){return P.media.paused},on:function(e,t){return h(P.container,e,t),this},play:ae,pause:se,stop:function(){se(),ue()},restart:ue,rewind:ie,forward:le,seek:ue,source:function(e){if(S.undefined(e)){var n;switch(P.type){case"youtube":n=P.embed.getVideoUrl();break;case"vimeo":P.embed.getVideoUrl.then((function(e){n=e}));break;case"soundcloud":P.embed.getCurrentSound((function(e){n=e.permalink_url}));break;default:n=P.media.currentSrc}return n||""}!function(e){if(!S.object(e)||!("sources"in e)||!e.sources.length)return void V("Invalid source format");f(P.container,I.classes.ready,!1),se(),Ee(),we(),function(){if(!i(I.types.html5,P.type))return;for(var e=P.media.querySelectorAll("source"),t=0;t<e.length;t++)c(e[t]);P.media.setAttribute("src",I.blankUrl),P.media.load(),R("Cancelled network requests")}(),Ie((function(){if(P.embed=null,c(P.media),"video"===P.type&&P.videoContainer&&c(P.videoContainer),P.container&&P.container.removeAttribute("class"),"type"in e&&(P.type=e.type,"video"===P.type)){var n=e.sources[0];"type"in n&&i(I.types.embed,n.type)&&(P.type=n.type)}switch(P.supported=F(P.type),P.type){case"video":P.media=t.createElement("video");break;case"audio":P.media=t.createElement("audio");break;case"youtube":case"vimeo":case"soundcloud":P.media=t.createElement("div"),P.embedId=e.sources[0].src}d(P.container,P.media),S.boolean(e.autoplay)&&(I.autoplay=e.autoplay),i(I.types.html5,P.type)&&(I.crossorigin&&P.media.setAttribute("crossorigin",""),I.autoplay&&P.media.setAttribute("autoplay",""),"poster"in e&&P.media.setAttribute("poster",e.poster),I.loop&&P.media.setAttribute("loop","")),f(P.container,I.classes.fullscreen.active,P.isFullscreen),f(P.container,I.classes.captions.active,P.captionsEnabled),z(),i(I.types.html5,P.type)&&J("source",e.sources),Z(),i(I.types.html5,P.type)&&("tracks"in e&&J("track",e.tracks),P.media.load()),(i(I.types.html5,P.type)||i(I.types.embed,P.type)&&!P.supported.full)&&(Ne(),Pe()),I.title=e.title,K()}),!1)}(e)},poster:function(e){"video"===P.type&&P.media.setAttribute("poster",e)},setVolume:fe,togglePlay:oe,toggleMute:me,toggleCaptions:ge,toggleFullscreen:pe,toggleControls:Ce,isFullscreen:function(){return P.isFullscreen||!1},support:function(e){return function(e,t){var n=e.media;if("video"===e.type)switch(t){case"video/webm":return!(!n.canPlayType||!n.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/no/,""));case"video/mp4":return!(!n.canPlayType||!n.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,""));case"video/ogg":return!(!n.canPlayType||!n.canPlayType('video/ogg; codecs="theora"').replace(/no/,""))}else if("audio"===e.type)switch(t){case"audio/mpeg":return!(!n.canPlayType||!n.canPlayType("audio/mpeg;").replace(/no/,""));case"audio/ogg":return!(!n.canPlayType||!n.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/,""));case"audio/wav":return!(!n.canPlayType||!n.canPlayType('audio/wav; codecs="1"').replace(/no/,""))}return!1}(P,e)},destroy:Ie},function(){if(P.init)return null;if(n=function(){var e={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",element:null,prefix:""},n="webkit o moz ms khtml".split(" ");if(S.undefined(t.cancelFullScreen))for(var r=0,a=n.length;r<a;r++){if(e.prefix=n[r],!S.undefined(t[e.prefix+"CancelFullScreen"])){e.supportsFullScreen=!0;break}if(!S.undefined(t.msExitFullscreen)&&t.msFullscreenEnabled){e.prefix="ms",e.supportsFullScreen=!0;break}}else e.supportsFullScreen=!0;return e.supportsFullScreen&&(e.fullScreenEventName="ms"===e.prefix?"MSFullscreenChange":e.prefix+"fullscreenchange",e.isFullScreen=function(e){switch(S.undefined(e)&&(e=t.body),this.prefix){case"":return t.fullscreenElement===e;case"moz":return t.mozFullScreenElement===e;default:return t[this.prefix+"FullscreenElement"]===e}},e.requestFullScreen=function(e){return S.undefined(e)&&(e=t.body),""===this.prefix?e.requestFullScreen():e[this.prefix+("ms"===this.prefix?"RequestFullscreen":"RequestFullScreen")]()},e.cancelFullScreen=function(){return""===this.prefix?t.cancelFullScreen():t[this.prefix+("ms"===this.prefix?"ExitFullscreen":"CancelFullScreen")]()},e.element=function(){return""===this.prefix?t.fullscreenElement:t[this.prefix+"FullscreenElement"]}),e}(),P.browser=s(),S.htmlElement(P.media)){var r;P.storage={},E&&I.storage.enabled&&(e.localStorage.removeItem("plyr-volume"),(r=e.localStorage.getItem(I.storage.key))&&(/^\d+(\.\d+)?$/.test(r)?Q({volume:parseFloat(r)}):P.storage=JSON.parse(r)));var a=_.tagName.toLowerCase();"div"===a?(P.type=_.getAttribute("data-type"),P.embedId=_.getAttribute("data-video-id"),_.removeAttribute("data-type"),_.removeAttribute("data-video-id")):(P.type=a,I.crossorigin=null!==_.getAttribute("crossorigin"),I.autoplay=I.autoplay||null!==_.getAttribute("autoplay"),I.loop=I.loop||null!==_.getAttribute("loop")),P.supported=F(P.type),P.supported.basic&&(P.container=u(_,t.createElement("div")),P.container.setAttribute("tabindex",0),z(),R(P.browser.name+" "+P.browser.version),Z(),(i(I.types.html5,P.type)||i(I.types.embed,P.type)&&!P.supported.full)&&(Ne(),Pe(),K()),P.init=!0)}}(),P.init?N:null}function C(e,n){var r=new XMLHttpRequest;if(!S.string(n)||!S.htmlElement(t.querySelector("#"+n))){var a=t.createElement("div");a.setAttribute("hidden",""),S.string(n)&&a.setAttribute("id",n),t.body.insertBefore(a,t.body.childNodes[0]),"withCredentials"in r&&(r.open("GET",e,!0),r.onload=function(){a.innerHTML=r.responseText},r.send())}}function F(e){var n=s(),r=n.isIE&&n.version<=9,a=n.isIos,o=n.isIphone,i=!!t.createElement("audio").canPlayType,l=!!t.createElement("video").canPlayType,u=!1,c=!1;switch(e){case"video":c=(u=l)&&!r&&!o;break;case"audio":c=(u=i)&&!r;break;case"vimeo":u=!0,c=!r&&!a;break;case"youtube":u=!0,c=!r&&!a,a&&!o&&n.version>=10&&(c=!0);break;case"soundcloud":u=!0,c=!r&&!o;break;default:c=(u=i&&l)&&!r}return{basic:u,full:c}}function A(e){if(S.string(e)?e=t.querySelector(e):S.undefined(e)&&(e=t.body),S.htmlElement(e)){var n=e.querySelectorAll("."+a.classes.setup),r=[];return Array.prototype.slice.call(n).forEach((function(e){S.object(e.plyr)&&r.push(e.plyr)})),r}return[]}return{setup:function(e,n){var r=[],s=[],o=[a.selectors.html5,a.selectors.embed].join(",");if(S.string(e)?e=t.querySelectorAll(e):S.htmlElement(e)?e=[e]:S.nodeList(e)||S.array(e)||S.string(e)||(S.undefined(n)&&S.object(e)&&(n=e),e=t.querySelectorAll(o)),S.nodeList(e)&&(e=Array.prototype.slice.call(e)),!F().basic||!e.length)return!1;function i(e,t){y(t,a.classes.hook)||r.push({target:e,media:t})}for(var l=0;l<e.length;l++){var u=e[l],c=u.querySelectorAll(o);if(c.length)for(var d=0;d<c.length;d++)i(u,c[d]);else b(u,o)&&i(u,u)}return r.forEach((function(e){var t=e.target,r=e.media;var o={};try{o=JSON.parse(t.getAttribute("data-plyr"))}catch(e){}var i=T({},a,n,o);if(!i.enabled)return null;var l=new _(r,i);if(S.object(l)){if(i.debug){var u=i.events.concat(["setup","statechange","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled"]);h(l.getContainer(),u.join(" "),(function(e){console.log([i.logPrefix,"event:",e.type].join(" "),e.detail.plyr)}))}k(l.getContainer(),"setup",!0,{plyr:l}),s.push(l)}})),s},supported:F,loadSprite:C,get:A}})),function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}()}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{225:function(e,t,n){var r;!function(n,a){"use strict";"object"==typeof e.exports?e.exports=a(n,document):void 0===(r=function(){return a(n,document)}.apply(t,[]))||(e.exports=r)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n,r={x:0,y:0},a={enabled:!0,debug:!1,autoplay:!1,loop:!1,seekTime:10,volume:10,volumeMin:0,volumeMax:10,volumeStep:1,duration:null,displayDuration:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/2.0.18/plyr.svg",blankUrl:"https://cdn.plyr.io/static/blank.mp4",clickToPlay:!0,hideControls:!0,showPosterOnEnd:!1,disableContextMenu:!0,keyboardShorcuts:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},selectors:{html5:"video, audio",embed:"[data-type]",editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{seek:'[data-plyr="seek"]',play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',forward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',fullscreen:'[data-plyr="fullscreen"]'},volume:{input:'[data-plyr="volume"]',display:".plyr__volume--display"},progress:{container:".plyr__progress",buffer:".plyr__progress--buffer",played:".plyr__progress--played"},captions:".plyr__captions",currentTime:".plyr__time--current",duration:".plyr__time--duration"},classes:{setup:"plyr--setup",ready:"plyr--ready",videoWrapper:"plyr__video-wrapper",embedWrapper:"plyr__video-embed",type:"plyr--{0}",stopped:"plyr--stopped",playing:"plyr--playing",muted:"plyr--muted",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback",active:"plyr--fullscreen-active"},tabFocus:"tab-focus"},captions:{defaultActive:!1},fullscreen:{enabled:!0,fallback:!0,allowAudio:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","fullscreen"],i18n:{restart:"Restart",rewind:"Rewind {seektime} secs",play:"Play",pause:"Pause",forward:"Forward {seektime} secs",played:"played",buffered:"buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",toggleMute:"Toggle Mute",toggleCaptions:"Toggle Captions",toggleFullscreen:"Toggle Fullscreen",frameTitle:"Player for {title}"},types:{embed:["youtube","vimeo","soundcloud"],html5:["video","audio"]},urls:{vimeo:{api:"https://player.vimeo.com/api/player.js"},youtube:{api:"https://www.youtube.com/iframe_api"},soundcloud:{api:"https://w.soundcloud.com/player/api.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,forward:null,mute:null,volume:null,captions:null,fullscreen:null},events:["ready","ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied"],logPrefix:"[Plyr]"};function s(){var e,n,r,a=navigator.userAgent,s=navigator.appName,o=""+parseFloat(navigator.appVersion),i=parseInt(navigator.appVersion,10),l=!1,u=!1,c=!1,d=!1;return-1!==navigator.appVersion.indexOf("Windows NT")&&-1!==navigator.appVersion.indexOf("rv:11")?(l=!0,s="IE",o="11"):-1!==(n=a.indexOf("MSIE"))?(l=!0,s="IE",o=a.substring(n+5)):-1!==(n=a.indexOf("Chrome"))?(c=!0,s="Chrome",o=a.substring(n+7)):-1!==(n=a.indexOf("Safari"))?(d=!0,s="Safari",o=a.substring(n+7),-1!==(n=a.indexOf("Version"))&&(o=a.substring(n+8))):-1!==(n=a.indexOf("Firefox"))?(u=!0,s="Firefox",o=a.substring(n+8)):(e=a.lastIndexOf(" ")+1)<(n=a.lastIndexOf("/"))&&(s=a.substring(e,n),o=a.substring(n+1),s.toLowerCase()===s.toUpperCase()&&(s=navigator.appName)),-1!==(r=o.indexOf(";"))&&(o=o.substring(0,r)),-1!==(r=o.indexOf(" "))&&(o=o.substring(0,r)),i=parseInt(""+o,10),isNaN(i)&&(o=""+parseFloat(navigator.appVersion),i=parseInt(navigator.appVersion,10)),{name:s,version:i,isIE:l,isFirefox:u,isChrome:c,isSafari:d,isIos:/(iPad|iPhone|iPod)/g.test(navigator.platform),isIphone:/(iPhone|iPod)/g.test(navigator.userAgent),isTouch:"ontouchstart"in t.documentElement}}function o(e){if(!t.querySelectorAll('script[src="'+e+'"]').length){var n=t.createElement("script");n.src=e;var r=t.getElementsByTagName("script")[0];r.parentNode.insertBefore(n,r)}}function i(e,t){return Array.prototype.indexOf&&-1!==e.indexOf(t)}function l(e,t,n){return e.replace(new RegExp(t.replace(/([.*+?\^=!:${}()|\[\]\/\\])/g,"\\$1"),"g"),n)}function u(e,t){e.length||(e=[e]);for(var n=e.length-1;n>=0;n--){var r=n>0?t.cloneNode(!0):t,a=e[n],s=a.parentNode,o=a.nextSibling;return r.appendChild(a),o?s.insertBefore(r,o):s.appendChild(r),r}}function c(e){e&&e.parentNode.removeChild(e)}function d(e,t){e.insertBefore(t,e.firstChild)}function p(e,t){for(var n in t)e.setAttribute(n,S.boolean(t[n])&&t[n]?"":t[n])}function m(e,n,r){var a=t.createElement(e);p(a,r),d(n,a)}function f(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(/\s+/g," ").replace(" "+t+" ","");e.className=r+(n?" "+t:"")}}function y(e,t){return!!e&&(e.classList?e.classList.contains(t):new RegExp("(\\s|^)"+t+"(\\s|$)").test(e.className))}function b(e,n){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(e){return-1!==[].indexOf.call(t.querySelectorAll(e),this)}).call(e,n)}function v(e,t,n,r,a){n&&h(e,t,(function(t){n.apply(e,[t])}),a),h(e,t,(function(t){r.apply(e,[t])}),a)}function g(e,t,n,r,a){var s=t.split(" ");if(S.boolean(a)||(a=!1),e instanceof NodeList)for(var o=0;o<e.length;o++)e[o]instanceof Node&&g(e[o],arguments[1],arguments[2],arguments[3]);else for(var i=0;i<s.length;i++)e[r?"addEventListener":"removeEventListener"](s[i],n,a)}function h(e,t,n,r){e&&g(e,t,n,!0,r)}function k(e,t,n,r){if(e&&t){S.boolean(n)||(n=!1);var a=new CustomEvent(t,{bubbles:n,detail:r});e.dispatchEvent(a)}}function w(e,t){if(e)return t=S.boolean(t)?t:!e.getAttribute("aria-pressed"),e.setAttribute("aria-pressed",t),t}function x(e,t){return 0===e||0===t||isNaN(e)||isNaN(t)?0:(e/t*100).toFixed(2)}function T(){var e=arguments;if(e.length){if(1===e.length)return e[0];for(var t=Array.prototype.shift.call(e),n=e.length,r=0;r<n;r++){var a=e[r];for(var s in a)a[s]&&a[s].constructor&&a[s].constructor===Object?(t[s]=t[s]||{},T(t[s],a[s])):t[s]=a[s]}return t}}var S={object:function(e){return null!==e&&"object"==typeof e},array:function(e){return null!==e&&"object"==typeof e&&e.constructor===Array},number:function(e){return null!==e&&("number"==typeof e&&!isNaN(e-0)||"object"==typeof e&&e.constructor===Number)},string:function(e){return null!==e&&("string"==typeof e||"object"==typeof e&&e.constructor===String)},boolean:function(e){return null!==e&&"boolean"==typeof e},nodeList:function(e){return null!==e&&e instanceof NodeList},htmlElement:function(e){return null!==e&&e instanceof HTMLElement},function:function(e){return null!==e&&"function"==typeof e},undefined:function(e){return null!==e&&void 0===e}};var E=function(){try{e.localStorage.setItem("___test","OK");var t=e.localStorage.getItem("___test");return e.localStorage.removeItem("___test"),"OK"===t}catch(e){return!1}return!1}();function _(_,I){var N,P=this,M={};P.media=_;var O=_.cloneNode(!0);function L(e,t,n,r){k(e,t,n,T({},r,{plyr:N}))}function j(t,n){I.debug&&e.console&&(n=Array.prototype.slice.call(n),S.string(I.logPrefix)&&I.logPrefix.length&&n.unshift(I.logPrefix),console[t].apply(console,n))}var R=function(){j("log",arguments)},V=function(){j("warn",arguments)};function q(){return{url:I.iconUrl,absolute:0===I.iconUrl.indexOf("http")||P.browser.isIE&&!e.svg4everybody}}function D(){if(P.supported.full&&("audio"!==P.type||I.fullscreen.allowAudio)&&I.fullscreen.enabled){var t=n.supportsFullScreen;t||I.fullscreen.fallback&&!function(){try{return e.self!==e.top}catch(e){return!0}}()?(R((t?"Native":"Fallback")+" fullscreen enabled"),t||f(P.container,I.classes.fullscreen.fallback,!0),f(P.container,I.classes.fullscreen.enabled,!0)):R("Fullscreen not supported and fallback disabled"),P.buttons&&P.buttons.fullscreen&&w(P.buttons.fullscreen,!1),X()}}function H(){if("video"===P.type){B(I.selectors.captions)||P.videoContainer.insertAdjacentHTML("afterbegin",'<div class="'+(I.selectors.captions.replace(".","")+'"></div>')),P.usingTextTracks=!1,P.media.textTracks&&(P.usingTextTracks=!0);for(var e,t="",n=P.media.childNodes,r=0;r<n.length;r++)"track"===n[r].nodeName.toLowerCase()&&("captions"!==(e=n[r].kind)&&"subtitles"!==e||(t=n[r].getAttribute("src")));if(P.captionExists=!0,""===t?(P.captionExists=!1,R("No caption track found")):R("Caption track found; URI: "+t),P.captionExists){for(var a=P.media.textTracks,s=0;s<a.length;s++)a[s].mode="hidden";if(function(){if(!P.buttons.captions)return;f(P.container,I.classes.captions.enabled,!0);var e=P.storage.captionsEnabled;S.boolean(e)||(e=I.captions.defaultActive);e&&(f(P.container,I.classes.captions.active,!0),w(P.buttons.captions,!0))}(),(P.browser.isIE&&P.browser.version>=10||P.browser.isFirefox&&P.browser.version>=31)&&(R("Detected browser with known TextTrack issues - using manual fallback"),P.usingTextTracks=!1),P.usingTextTracks){R("TextTracks supported");for(var o=0;o<a.length;o++){var i=a[o];"captions"!==i.kind&&"subtitles"!==i.kind||h(i,"cuechange",(function(){this.activeCues[0]&&"text"in this.activeCues[0]?U(this.activeCues[0].getCueAsHTML()):U()}))}}else if(R("TextTracks not supported so rendering captions manually"),P.currentCaption="",P.captions=[],""!==t){var l=new XMLHttpRequest;l.onreadystatechange=function(){if(4===l.readyState)if(200===l.status){var e,t,n=l.responseText,r="\r\n";-1===n.indexOf(r+r)&&(r=-1!==n.indexOf("\r\r")?"\r":"\n"),e=n.split(r+r);for(var a=0;a<e.length;a++){t=e[a],P.captions[a]=[];var s=t.split(r),o=0;-1===s[o].indexOf(":")&&(o=1),P.captions[a]=[s[o],s[o+1]]}P.captions.shift(),R("Successfully loaded the caption file via AJAX")}else V(I.logPrefix+"There was a problem loading the caption file via AJAX")},l.open("get",t,!0),l.send()}}else f(P.container,I.classes.captions.enabled)}}function U(e){var n=B(I.selectors.captions),r=t.createElement("span");n.innerHTML="",S.undefined(e)&&(e=""),S.string(e)?r.innerHTML=e.trim():r.appendChild(e),n.appendChild(r);n.offsetHeight}function W(e){function t(e,t){var n=[];n=e.split(" --\x3e ");for(var r=0;r<n.length;r++)n[r]=n[r].replace(/(\d+:\d+:\d+\.\d+).*/,"$1");return function(e){if(null==e)return 0;var t,n=[];return n=e.split(","),t=n[0].split(":"),Math.floor(60*t[0]*60)+Math.floor(60*t[1])+Math.floor(t[2])}(n[t])}function n(e){return t(e,1)}if(!P.usingTextTracks&&"video"===P.type&&P.supported.full&&(P.subcount=0,e=S.number(e)?e:P.media.currentTime,P.captions[P.subcount])){for(;n(P.captions[P.subcount][0])<e.toFixed(1);)if(P.subcount++,P.subcount>P.captions.length-1){P.subcount=P.captions.length-1;break}P.media.currentTime.toFixed(1)>=t(P.captions[P.subcount][0],0)&&P.media.currentTime.toFixed(1)<=n(P.captions[P.subcount][0])?(P.currentCaption=P.captions[P.subcount][1],U(P.currentCaption)):U()}}function Y(e){return P.container.querySelectorAll(e)}function B(e){return Y(e)[0]}function X(){var e=Y("input:not([disabled]), button:not([disabled])"),t=e[0],n=e[e.length-1];h(P.container,"keydown",(function(e){9===e.which&&P.isFullscreen&&(e.target!==n||e.shiftKey?e.target===t&&e.shiftKey&&(e.preventDefault(),n.focus()):(e.preventDefault(),t.focus()))}))}function J(e,t){if(S.string(t))m(e,P.media,{src:t});else if(t.constructor===Array)for(var n=t.length-1;n>=0;n--)m(e,P.media,t[n])}function $(){if(I.loadSprite){var e=q();e.absolute?(R("AJAX loading absolute SVG sprite"+(P.browser.isIE?" (due to IE)":"")),C(e.url,"sprite-plyr")):R("Sprite will be used as external resource directly")}var n,r=I.html;if(R("Injecting custom controls"),r||(r=function(){var e=[],t=q(),n=(t.absolute?"":t.url)+"#"+I.iconPrefix;return i(I.controls,"play-large")&&e.push('<button type="button" data-plyr="play" class="plyr__play-large">','<svg><use xlink:href="'+n+'-play" /></svg>','<span class="plyr__sr-only">'+I.i18n.play+"</span>","</button>"),e.push('<div class="plyr__controls">'),i(I.controls,"restart")&&e.push('<button type="button" data-plyr="restart">','<svg><use xlink:href="'+n+'-restart" /></svg>','<span class="plyr__sr-only">'+I.i18n.restart+"</span>","</button>"),i(I.controls,"rewind")&&e.push('<button type="button" data-plyr="rewind">','<svg><use xlink:href="'+n+'-rewind" /></svg>','<span class="plyr__sr-only">'+I.i18n.rewind+"</span>","</button>"),i(I.controls,"play")&&e.push('<button type="button" data-plyr="play">','<svg><use xlink:href="'+n+'-play" /></svg>','<span class="plyr__sr-only">'+I.i18n.play+"</span>","</button>",'<button type="button" data-plyr="pause">','<svg><use xlink:href="'+n+'-pause" /></svg>','<span class="plyr__sr-only">'+I.i18n.pause+"</span>","</button>"),i(I.controls,"fast-forward")&&e.push('<button type="button" data-plyr="fast-forward">','<svg><use xlink:href="'+n+'-fast-forward" /></svg>','<span class="plyr__sr-only">'+I.i18n.forward+"</span>","</button>"),i(I.controls,"progress")&&(e.push('<span class="plyr__progress">','<label for="seek{id}" class="plyr__sr-only">Seek</label>','<input id="seek{id}" class="plyr__progress--seek" type="range" min="0" max="100" step="0.1" value="0" data-plyr="seek">','<progress class="plyr__progress--played" max="100" value="0" role="presentation"></progress>','<progress class="plyr__progress--buffer" max="100" value="0">',"<span>0</span>% "+I.i18n.buffered,"</progress>"),I.tooltips.seek&&e.push('<span class="plyr__tooltip">00:00</span>'),e.push("</span>")),i(I.controls,"current-time")&&e.push('<span class="plyr__time">','<span class="plyr__sr-only">'+I.i18n.currentTime+"</span>",'<span class="plyr__time--current">00:00</span>',"</span>"),i(I.controls,"duration")&&e.push('<span class="plyr__time">','<span class="plyr__sr-only">'+I.i18n.duration+"</span>",'<span class="plyr__time--duration">00:00</span>',"</span>"),i(I.controls,"mute")&&e.push('<button type="button" data-plyr="mute">','<svg class="icon--muted"><use xlink:href="'+n+'-muted" /></svg>','<svg><use xlink:href="'+n+'-volume" /></svg>','<span class="plyr__sr-only">'+I.i18n.toggleMute+"</span>","</button>"),i(I.controls,"volume")&&e.push('<span class="plyr__volume">','<label for="volume{id}" class="plyr__sr-only">'+I.i18n.volume+"</label>",'<input id="volume{id}" class="plyr__volume--input" type="range" min="'+I.volumeMin+'" max="'+I.volumeMax+'" value="'+I.volume+'" data-plyr="volume">','<progress class="plyr__volume--display" max="'+I.volumeMax+'" value="'+I.volumeMin+'" role="presentation"></progress>',"</span>"),i(I.controls,"captions")&&e.push('<button type="button" data-plyr="captions">','<svg class="icon--captions-on"><use xlink:href="'+n+'-captions-on" /></svg>','<svg><use xlink:href="'+n+'-captions-off" /></svg>','<span class="plyr__sr-only">'+I.i18n.toggleCaptions+"</span>","</button>"),i(I.controls,"fullscreen")&&e.push('<button type="button" data-plyr="fullscreen">','<svg class="icon--exit-fullscreen"><use xlink:href="'+n+'-exit-fullscreen" /></svg>','<svg><use xlink:href="'+n+'-enter-fullscreen" /></svg>','<span class="plyr__sr-only">'+I.i18n.toggleFullscreen+"</span>","</button>"),e.push("</div>"),e.join("")}()),r=l(r,"{seektime}",I.seekTime),r=l(r,"{id}",Math.floor(1e4*Math.random())),I.title&&(r=l(r,"{title}",I.title)),S.string(I.selectors.controls.container)&&(n=t.querySelector(I.selectors.controls.container)),S.htmlElement(n)||(n=P.container),n.insertAdjacentHTML("beforeend",r),I.tooltips.controls)for(var a=Y([I.selectors.controls.wrapper," ",I.selectors.labels," .",I.classes.hidden].join("")),s=a.length-1;s>=0;s--){var o=a[s];f(o,I.classes.hidden,!1),f(o,I.classes.tooltip,!0)}}function z(){f(P.container,I.selectors.container.replace(".",""),P.supported.full)}function G(e){e&&i(I.types.html5,P.type)?P.media.setAttribute("controls",""):P.media.removeAttribute("controls")}function K(e){var t=I.i18n.play;if(S.string(I.title)&&I.title.length&&(t+=", "+I.title,P.container.setAttribute("aria-label",I.title)),P.supported.full&&P.buttons.play)for(var n=P.buttons.play.length-1;n>=0;n--)P.buttons.play[n].setAttribute("aria-label",t);S.htmlElement(e)&&e.setAttribute("title",I.i18n.frameTitle.replace("{title}",I.title))}function Q(t){E&&I.storage.enabled&&(T(P.storage,t),e.localStorage.setItem(I.storage.key,JSON.stringify(P.storage)))}function Z(){if(P.media){if(P.supported.full&&(f(P.container,I.classes.type.replace("{0}",P.type),!0),i(I.types.embed,P.type)&&f(P.container,I.classes.type.replace("{0}","video"),!0),f(P.container,I.classes.stopped,I.autoplay),f(P.container,I.classes.isIos,P.browser.isIos),f(P.container,I.classes.isTouch,P.browser.isTouch),"video"===P.type)){var n=t.createElement("div");n.setAttribute("class",I.classes.videoWrapper),u(P.media,n),P.videoContainer=n}i(I.types.embed,P.type)&&function(){var n,r=t.createElement("div"),a=P.type+"-"+Math.floor(1e4*Math.random());switch(P.type){case"youtube":s=P.embedId,n=s.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)?RegExp.$2:s;break;case"vimeo":n=function(e){return e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}(P.embedId);break;default:n=P.embedId}var s;for(var i=Y('[id^="'+P.type+'-"]'),l=i.length-1;l>=0;l--)c(i[l]);if(f(P.media,I.classes.videoWrapper,!0),f(P.media,I.classes.embedWrapper,!0),"youtube"===P.type)P.media.appendChild(r),r.setAttribute("id",a),S.object(e.YT)?te(n,r):(o(I.urls.youtube.api),e.onYouTubeReadyCallbacks=e.onYouTubeReadyCallbacks||[],e.onYouTubeReadyCallbacks.push((function(){te(n,r)})),e.onYouTubeIframeAPIReady=function(){e.onYouTubeReadyCallbacks.forEach((function(e){e()}))});else if("vimeo"===P.type)if(P.supported.full?P.media.appendChild(r):r=P.media,r.setAttribute("id",a),S.object(e.Vimeo))ne(n,r);else{o(I.urls.vimeo.api);var u=e.setInterval((function(){S.object(e.Vimeo)&&(e.clearInterval(u),ne(n,r))}),50)}else if("soundcloud"===P.type){var d=t.createElement("iframe");d.loaded=!1,h(d,"load",(function(){d.loaded=!0})),p(d,{src:"https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/"+n,id:a}),r.appendChild(d),P.media.appendChild(r),e.SC||o(I.urls.soundcloud.api);var m=e.setInterval((function(){e.SC&&d.loaded&&(e.clearInterval(m),re.call(d))}),50)}}()}else V("No media element found!")}function ee(){P.supported.full&&(Ne(),Pe()),K(B("iframe"))}function te(t,n){P.embed=new e.YT.Player(n.id,{videoId:t,playerVars:{autoplay:I.autoplay?1:0,controls:P.supported.full?0:1,rel:0,showinfo:0,iv_load_policy:3,cc_load_policy:I.captions.defaultActive?1:0,cc_lang_pref:"en",wmode:"transparent",modestbranding:1,disablekb:1,origin:"*"},events:{onError:function(e){L(P.container,"error",!0,{code:e.data,embed:e.target})},onReady:function(t){var n=t.target;P.media.play=function(){n.playVideo(),P.media.paused=!1},P.media.pause=function(){n.pauseVideo(),P.media.paused=!0},P.media.stop=function(){n.stopVideo(),P.media.paused=!0},P.media.duration=n.getDuration(),P.media.paused=!0,P.media.currentTime=0,P.media.muted=n.isMuted(),"function"==typeof n.getVideoData&&(I.title=n.getVideoData().title),P.supported.full&&P.media.querySelector("iframe").setAttribute("tabindex","-1"),ee(),L(P.media,"timeupdate"),L(P.media,"durationchange"),e.clearInterval(M.buffering),M.buffering=e.setInterval((function(){P.media.buffered=n.getVideoLoadedFraction(),(null===P.media.lastBuffered||P.media.lastBuffered<P.media.buffered)&&L(P.media,"progress"),P.media.lastBuffered=P.media.buffered,1===P.media.buffered&&(e.clearInterval(M.buffering),L(P.media,"canplaythrough"))}),200)},onStateChange:function(t){var n=t.target;switch(e.clearInterval(M.playing),t.data){case 0:P.media.paused=!0,L(P.media,"ended");break;case 1:P.media.paused=!1,P.media.seeking&&L(P.media,"seeked"),P.media.seeking=!1,L(P.media,"play"),L(P.media,"playing"),M.playing=e.setInterval((function(){P.media.currentTime=n.getCurrentTime(),L(P.media,"timeupdate")}),100),P.media.duration!==n.getDuration()&&(P.media.duration=n.getDuration(),L(P.media,"durationchange"));break;case 2:P.media.paused=!0,L(P.media,"pause")}L(P.container,"statechange",!1,{code:t.data})}}})}function ne(n,r){var a=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}({loop:I.loop,autoplay:I.autoplay,byline:!1,portrait:!1,title:!1,speed:!0,transparent:0}),s=t.createElement("iframe"),o="https://player.vimeo.com/video/"+n+"?"+a;s.setAttribute("src",o),s.setAttribute("allowfullscreen",""),r.appendChild(s),P.embed=new e.Vimeo.Player(s),P.media.play=function(){P.embed.play(),P.media.paused=!1},P.media.pause=function(){P.embed.pause(),P.media.paused=!0},P.media.stop=function(){P.embed.stop(),P.media.paused=!0},P.media.paused=!0,P.media.currentTime=0,ee(),P.embed.getCurrentTime().then((function(e){P.media.currentTime=e,L(P.media,"timeupdate")})),P.embed.getDuration().then((function(e){P.media.duration=e,L(P.media,"durationchange")})),P.embed.on("loaded",(function(){S.htmlElement(P.embed.element)&&P.supported.full&&P.embed.element.setAttribute("tabindex","-1")})),P.embed.on("play",(function(){P.media.paused=!1,L(P.media,"play"),L(P.media,"playing")})),P.embed.on("pause",(function(){P.media.paused=!0,L(P.media,"pause")})),P.embed.on("timeupdate",(function(e){P.media.seeking=!1,P.media.currentTime=e.seconds,L(P.media,"timeupdate")})),P.embed.on("progress",(function(e){P.media.buffered=e.percent,L(P.media,"progress"),1===parseInt(e.percent)&&L(P.media,"canplaythrough")})),P.embed.on("seeked",(function(){P.media.seeking=!1,L(P.media,"seeked"),L(P.media,"play")})),P.embed.on("ended",(function(){P.media.paused=!0,L(P.media,"ended")}))}function re(){P.embed=e.SC.Widget(this),P.embed.bind(e.SC.Widget.Events.READY,(function(){P.media.play=function(){P.embed.play(),P.media.paused=!1},P.media.pause=function(){P.embed.pause(),P.media.paused=!0},P.media.stop=function(){P.embed.seekTo(0),P.embed.pause(),P.media.paused=!0},P.media.paused=!0,P.media.currentTime=0,P.embed.getDuration((function(e){P.media.duration=e/1e3,ee()})),P.embed.getPosition((function(e){P.media.currentTime=e,L(P.media,"timeupdate")})),P.embed.bind(e.SC.Widget.Events.PLAY,(function(){P.media.paused=!1,L(P.media,"play"),L(P.media,"playing")})),P.embed.bind(e.SC.Widget.Events.PAUSE,(function(){P.media.paused=!0,L(P.media,"pause")})),P.embed.bind(e.SC.Widget.Events.PLAY_PROGRESS,(function(e){P.media.seeking=!1,P.media.currentTime=e.currentPosition/1e3,L(P.media,"timeupdate")})),P.embed.bind(e.SC.Widget.Events.LOAD_PROGRESS,(function(e){P.media.buffered=e.loadProgress,L(P.media,"progress"),1===parseInt(e.loadProgress)&&L(P.media,"canplaythrough")})),P.embed.bind(e.SC.Widget.Events.FINISH,(function(){P.media.paused=!0,L(P.media,"ended")}))}))}function ae(){"play"in P.media&&P.media.play()}function se(){"pause"in P.media&&P.media.pause()}function oe(e){return S.boolean(e)||(e=P.media.paused),e?ae():se(),e}function ie(e){S.number(e)||(e=I.seekTime),ue(P.media.currentTime-e)}function le(e){S.number(e)||(e=I.seekTime),ue(P.media.currentTime+e)}function ue(e){var t=0,n=P.media.paused,r=ce();S.number(e)?t=e:S.object(e)&&i(["input","change"],e.type)&&(t=e.target.value/e.target.max*r),t<0?t=0:t>r&&(t=r),Ee(t);try{P.media.currentTime=t.toFixed(4)}catch(e){}if(i(I.types.embed,P.type)){switch(P.type){case"youtube":P.embed.seekTo(t);break;case"vimeo":P.embed.setCurrentTime(t.toFixed(0));break;case"soundcloud":P.embed.seekTo(1e3*t)}n&&se(),L(P.media,"timeupdate"),P.media.seeking=!0,L(P.media,"seeking")}R("Seeking to "+P.media.currentTime+" seconds"),W(t)}function ce(){var e=parseInt(I.duration),t=0;return null===P.media.duration||isNaN(P.media.duration)||(t=P.media.duration),isNaN(e)?t:e}function de(){f(P.container,I.classes.playing,!P.media.paused),f(P.container,I.classes.stopped,P.media.paused),Ce(P.media.paused)}function pe(a){var s=n.supportsFullScreen;if(s){if(!a||a.type!==n.fullScreenEventName)return n.isFullScreen(P.container)?n.cancelFullScreen():(r={x:e.pageXOffset||0,y:e.pageYOffset||0},n.requestFullScreen(P.container)),void(P.isFullscreen=n.isFullScreen(P.container));P.isFullscreen=n.isFullScreen(P.container)}else P.isFullscreen=!P.isFullscreen,t.body.style.overflow=P.isFullscreen?"hidden":"";f(P.container,I.classes.fullscreen.active,P.isFullscreen),X(P.isFullscreen),P.buttons&&P.buttons.fullscreen&&w(P.buttons.fullscreen,P.isFullscreen),L(P.container,P.isFullscreen?"enterfullscreen":"exitfullscreen",!0),!P.isFullscreen&&s&&e.scrollTo(r.x,r.y)}function me(e){if(S.boolean(e)||(e=!P.media.muted),w(P.buttons.mute,e),P.media.muted=e,0===P.media.volume&&fe(I.volume),i(I.types.embed,P.type)){switch(P.type){case"youtube":P.embed[P.media.muted?"mute":"unMute"]();break;case"vimeo":case"soundcloud":P.embed.setVolume(P.media.muted?0:parseFloat(I.volume/I.volumeMax))}L(P.media,"volumechange")}}function fe(e){var t=I.volumeMax,n=I.volumeMin;if(S.undefined(e)&&(e=P.storage.volume),(null===e||isNaN(e))&&(e=I.volume),e>t&&(e=t),e<n&&(e=n),P.media.volume=parseFloat(e/t),P.volume.display&&(P.volume.display.value=e),i(I.types.embed,P.type)){switch(P.type){case"youtube":P.embed.setVolume(100*P.media.volume);break;case"vimeo":case"soundcloud":P.embed.setVolume(P.media.volume)}L(P.media,"volumechange")}0===e?P.media.muted=!0:P.media.muted&&e>0&&me()}function ye(e){var t=P.media.muted?0:P.media.volume*I.volumeMax;S.number(e)||(e=I.volumeStep),fe(t+e)}function be(e){var t=P.media.muted?0:P.media.volume*I.volumeMax;S.number(e)||(e=I.volumeStep),fe(t-e)}function ve(){var e=P.media.muted?0:P.media.volume*I.volumeMax;P.supported.full&&(P.volume.input&&(P.volume.input.value=e),P.volume.display&&(P.volume.display.value=e)),Q({volume:e}),f(P.container,I.classes.muted,0===e),P.supported.full&&P.buttons.mute&&w(P.buttons.mute,0===e)}function ge(e){P.supported.full&&P.buttons.captions&&(S.boolean(e)||(e=-1===P.container.className.indexOf(I.classes.captions.active)),P.captionsEnabled=e,w(P.buttons.captions,P.captionsEnabled),f(P.container,I.classes.captions.active,P.captionsEnabled),L(P.container,P.captionsEnabled?"captionsenabled":"captionsdisabled",!0),Q({captionsEnabled:P.captionsEnabled}))}function he(e){var t="waiting"===e.type;clearTimeout(M.loading),M.loading=setTimeout((function(){f(P.container,I.classes.loading,t),Ce(t)}),t?250:0)}function ke(e){if(P.supported.full){var t,n=P.progress.played,r=0,a=ce();if(e)switch(e.type){case"timeupdate":case"seeking":if(P.controls.pressed)return;r=x(P.media.currentTime,a),"timeupdate"===e.type&&P.buttons.seek&&(P.buttons.seek.value=r);break;case"playing":case"progress":n=P.progress.buffer,r=(t=P.media.buffered)&&t.length?x(t.end(0),a):S.number(t)?100*t:0}we(n,r)}}function we(e,t){if(P.supported.full){if(S.undefined(t)&&(t=0),S.undefined(e)){if(!P.progress||!P.progress.buffer)return;e=P.progress.buffer}S.htmlElement(e)?e.value=t:e&&(e.bar&&(e.bar.value=t),e.text&&(e.text.innerHTML=t))}}function xe(e,t){if(t){isNaN(e)&&(e=0),P.secs=parseInt(e%60),P.mins=parseInt(e/60%60),P.hours=parseInt(e/60/60%60);var n=parseInt(ce()/60/60%60)>0;P.secs=("0"+P.secs).slice(-2),P.mins=("0"+P.mins).slice(-2),t.innerHTML=(n?P.hours+":":"")+P.mins+":"+P.secs}}function Te(){if(P.supported.full){var e=ce()||0;!P.duration&&I.displayDuration&&P.media.paused&&xe(e,P.currentTime),P.duration&&xe(e,P.duration),_e()}}function Se(e){xe(P.media.currentTime,P.currentTime),e&&"timeupdate"===e.type&&P.media.seeking||ke(e)}function Ee(e){S.number(e)||(e=0);var t=x(e,ce());P.progress&&P.progress.played&&(P.progress.played.value=t),P.buttons&&P.buttons.seek&&(P.buttons.seek.value=t)}function _e(e){var t=ce();if(I.tooltips.seek&&P.progress.container&&0!==t){var n=P.progress.container.getBoundingClientRect(),r=0,a=I.classes.tooltip+"--visible";if(e)r=100/n.width*(e.pageX-n.left);else{if(!y(P.progress.tooltip,a))return;r=P.progress.tooltip.style.left.replace("%","")}r<0?r=0:r>100&&(r=100),xe(t/100*r,P.progress.tooltip),P.progress.tooltip.style.left=r+"%",e&&i(["mouseenter","mouseleave"],e.type)&&f(P.progress.tooltip,a,"mouseenter"===e.type)}}function Ce(t){if(I.hideControls&&"audio"!==P.type){var n=0,r=!1,a=t,s=y(P.container,I.classes.loading);if(S.boolean(t)||(t&&t.type?(r="enterfullscreen"===t.type,a=i(["mousemove","touchstart","mouseenter","focus"],t.type),i(["mousemove","touchmove"],t.type)&&(n=2e3),"focus"===t.type&&(n=3e3)):a=y(P.container,I.classes.hideControls)),e.clearTimeout(M.hover),a||P.media.paused||s){if(f(P.container,I.classes.hideControls,!1),P.media.paused||s)return;P.browser.isTouch&&(n=3e3)}a&&P.media.paused||(M.hover=e.setTimeout((function(){(!P.controls.pressed&&!P.controls.hover||r)&&f(P.container,I.classes.hideControls,!0)}),n))}}function Fe(){f(B("."+I.classes.tabFocus),I.classes.tabFocus,!1)}function Ae(){var r=P.browser.isIE?"change":"input";function a(){var e=oe(),t=P.buttons[e?"play":"pause"],n=P.buttons[e?"pause":"play"];if(n&&(n=n.length>1?n[n.length-1]:n[0]),n){var r=y(t,I.classes.tabFocus);setTimeout((function(){n.focus(),r&&(f(t,I.classes.tabFocus,!1),f(n,I.classes.tabFocus,!0))}),100)}}function s(){var e=t.activeElement;return e=e&&e!==t.body?t.querySelector(":focus"):null}function o(e){return e.keyCode?e.keyCode:e.which}if(I.keyboardShorcuts.focused){var l=null;I.keyboardShorcuts.global&&h(e,"keydown keyup",(function(e){var t=o(e),n=s();1!==A().length||!i([48,49,50,51,52,53,54,56,57,75,77,70,67],t)||S.htmlElement(n)&&b(n,I.selectors.editable)||u(e)})),h(P.container,"keydown keyup",u)}function u(e){var t,r=o(e),a="keydown"===e.type,s=a&&r===l;if(S.number(r))if(a){switch(i([48,49,50,51,52,53,54,56,57,32,75,38,40,77,39,37,70,67],r)&&(e.preventDefault(),e.stopPropagation()),r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:s||(t=P.media.duration,S.number(t)&&ue(t/10*(r-48)));break;case 32:case 75:s||oe();break;case 38:ye();break;case 40:be();break;case 77:s||me();break;case 39:le();break;case 37:ie();break;case 70:pe();break;case 67:s||ge()}!n.supportsFullScreen&&P.isFullscreen&&27===r&&pe(),l=r}else l=null}for(var c in h(e,"keyup",(function(e){var t=o(e),n=s();9===t&&function(e){for(var t in P.buttons){var n=P.buttons[t];if(S.nodeList(n))for(var r=0;r<n.length;r++)f(n[r],I.classes.tabFocus,n[r]===e);else f(n,I.classes.tabFocus,n===e)}}(n)})),h(t.body,"click",Fe),P.buttons){var d=P.buttons[c];h(d,"blur",(function(){f(d,"tab-focus",!1)}))}v(P.buttons.play,"click",I.listeners.play,a),v(P.buttons.pause,"click",I.listeners.pause,a),v(P.buttons.restart,"click",I.listeners.restart,ue),v(P.buttons.rewind,"click",I.listeners.rewind,ie),v(P.buttons.forward,"click",I.listeners.forward,le),v(P.buttons.seek,r,I.listeners.seek,ue),v(P.volume.input,r,I.listeners.volume,(function(){fe(P.volume.input.value)})),v(P.buttons.mute,"click",I.listeners.mute,me),v(P.buttons.fullscreen,"click",I.listeners.fullscreen,pe),n.supportsFullScreen&&h(t,n.fullScreenEventName,pe),v(P.buttons.captions,"click",I.listeners.captions,ge),h(P.progress.container,"mouseenter mouseleave mousemove",_e),I.hideControls&&(h(P.container,"mouseenter mouseleave mousemove touchstart touchend touchcancel touchmove enterfullscreen",Ce),h(P.controls,"mouseenter mouseleave",(function(e){P.controls.hover="mouseenter"===e.type})),h(P.controls,"mousedown mouseup touchstart touchend touchcancel",(function(e){P.controls.pressed=i(["mousedown","touchstart"],e.type)})),h(P.controls,"focus blur",Ce,!0)),h(P.volume.input,"wheel",(function(e){e.preventDefault();var t=e.webkitDirectionInvertedFromDevice,n=I.volumeStep/5;(e.deltaY<0||e.deltaX>0)&&(t?be(n):ye(n)),(e.deltaY>0||e.deltaX<0)&&(t?ye(n):be(n))}))}function Ie(n,r){if(!P.init)return null;switch(P.type){case"youtube":e.clearInterval(M.buffering),e.clearInterval(M.playing),P.embed.destroy(),a();break;case"vimeo":P.embed.unload().then(a),M.cleanUp=e.setTimeout(a,200);break;case"video":case"audio":G(!0),a()}function a(){clearTimeout(M.cleanUp),S.boolean(r)||(r=!0),S.function(n)&&n.call(O),r&&(P.init=!1,P.container.parentNode.replaceChild(O,P.container),P.container=null,t.body.style.overflow="",function(e,t,n,r){e&&g(e,t,n,!1,r)}(t.body,"click",Fe),L(O,"destroyed",!0))}}function Ne(){if(!P.supported.full)return V("Basic support only",P.type),c(B(I.selectors.controls.wrapper)),c(B(I.selectors.buttons.play)),void G(!0);var e=!Y(I.selectors.controls.wrapper).length;e&&$(),function(){try{return P.controls=B(I.selectors.controls.wrapper),P.buttons={},P.buttons.seek=B(I.selectors.buttons.seek),P.buttons.play=Y(I.selectors.buttons.play),P.buttons.pause=B(I.selectors.buttons.pause),P.buttons.restart=B(I.selectors.buttons.restart),P.buttons.rewind=B(I.selectors.buttons.rewind),P.buttons.forward=B(I.selectors.buttons.forward),P.buttons.fullscreen=B(I.selectors.buttons.fullscreen),P.buttons.mute=B(I.selectors.buttons.mute),P.buttons.captions=B(I.selectors.buttons.captions),P.progress={},P.progress.container=B(I.selectors.progress.container),P.progress.buffer={},P.progress.buffer.bar=B(I.selectors.progress.buffer),P.progress.buffer.text=P.progress.buffer.bar&&P.progress.buffer.bar.getElementsByTagName("span")[0],P.progress.played=B(I.selectors.progress.played),P.progress.tooltip=P.progress.container&&P.progress.container.querySelector("."+I.classes.tooltip),P.volume={},P.volume.input=B(I.selectors.volume.input),P.volume.display=B(I.selectors.volume.display),P.duration=B(I.selectors.duration),P.currentTime=B(I.selectors.currentTime),P.seekTime=Y(I.selectors.seekTime),!0}catch(e){return V("It looks like there is a problem with your controls HTML"),G(!0),!1}}()&&(e&&Ae(),function(){if(h(P.media,"timeupdate seeking",Se),h(P.media,"timeupdate",W),h(P.media,"durationchange loadedmetadata",Te),h(P.media,"ended",(function(){"video"===P.type&&I.showPosterOnEnd&&("video"===P.type&&U(),ue(),P.media.load())})),h(P.media,"progress playing",ke),h(P.media,"volumechange",ve),h(P.media,"play pause ended",de),h(P.media,"waiting canplay seeked",he),I.clickToPlay&&"audio"!==P.type){var e=B("."+I.classes.videoWrapper);if(!e)return;e.style.cursor="pointer",h(e,"click",(function(){I.hideControls&&P.browser.isTouch&&!P.media.paused||(P.media.paused?ae():P.media.ended?(ue(),ae()):se())}))}I.disableContextMenu&&h(P.media,"contextmenu",(function(e){e.preventDefault()})),h(P.media,I.events.concat(["keyup","keydown"]).join(" "),(function(e){L(P.container,e.type,!0)}))}(),G(),D(),H(),fe(),ve(),Se(),de(),Te())}function Pe(){e.setTimeout((function(){L(P.media,"ready")}),0),f(P.media,a.classes.setup,!0),f(P.container,I.classes.ready,!0),P.media.plyr=N,I.autoplay&&ae()}return R("Config",I),N={getOriginal:function(){return O},getContainer:function(){return P.container},getEmbed:function(){return P.embed},getMedia:function(){return P.media},getType:function(){return P.type},getDuration:ce,getCurrentTime:function(){return P.media.currentTime},getVolume:function(){return P.media.volume},isMuted:function(){return P.media.muted},isReady:function(){return y(P.container,I.classes.ready)},isLoading:function(){return y(P.container,I.classes.loading)},isPaused:function(){return P.media.paused},on:function(e,t){return h(P.container,e,t),this},play:ae,pause:se,stop:function(){se(),ue()},restart:ue,rewind:ie,forward:le,seek:ue,source:function(e){if(S.undefined(e)){var n;switch(P.type){case"youtube":n=P.embed.getVideoUrl();break;case"vimeo":P.embed.getVideoUrl.then((function(e){n=e}));break;case"soundcloud":P.embed.getCurrentSound((function(e){n=e.permalink_url}));break;default:n=P.media.currentSrc}return n||""}!function(e){if(!S.object(e)||!("sources"in e)||!e.sources.length)return void V("Invalid source format");f(P.container,I.classes.ready,!1),se(),Ee(),we(),function(){if(!i(I.types.html5,P.type))return;for(var e=P.media.querySelectorAll("source"),t=0;t<e.length;t++)c(e[t]);P.media.setAttribute("src",I.blankUrl),P.media.load(),R("Cancelled network requests")}(),Ie((function(){if(P.embed=null,c(P.media),"video"===P.type&&P.videoContainer&&c(P.videoContainer),P.container&&P.container.removeAttribute("class"),"type"in e&&(P.type=e.type,"video"===P.type)){var n=e.sources[0];"type"in n&&i(I.types.embed,n.type)&&(P.type=n.type)}switch(P.supported=F(P.type),P.type){case"video":P.media=t.createElement("video");break;case"audio":P.media=t.createElement("audio");break;case"youtube":case"vimeo":case"soundcloud":P.media=t.createElement("div"),P.embedId=e.sources[0].src}d(P.container,P.media),S.boolean(e.autoplay)&&(I.autoplay=e.autoplay),i(I.types.html5,P.type)&&(I.crossorigin&&P.media.setAttribute("crossorigin",""),I.autoplay&&P.media.setAttribute("autoplay",""),"poster"in e&&P.media.setAttribute("poster",e.poster),I.loop&&P.media.setAttribute("loop","")),f(P.container,I.classes.fullscreen.active,P.isFullscreen),f(P.container,I.classes.captions.active,P.captionsEnabled),z(),i(I.types.html5,P.type)&&J("source",e.sources),Z(),i(I.types.html5,P.type)&&("tracks"in e&&J("track",e.tracks),P.media.load()),(i(I.types.html5,P.type)||i(I.types.embed,P.type)&&!P.supported.full)&&(Ne(),Pe()),I.title=e.title,K()}),!1)}(e)},poster:function(e){"video"===P.type&&P.media.setAttribute("poster",e)},setVolume:fe,togglePlay:oe,toggleMute:me,toggleCaptions:ge,toggleFullscreen:pe,toggleControls:Ce,isFullscreen:function(){return P.isFullscreen||!1},support:function(e){return function(e,t){var n=e.media;if("video"===e.type)switch(t){case"video/webm":return!(!n.canPlayType||!n.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/no/,""));case"video/mp4":return!(!n.canPlayType||!n.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,""));case"video/ogg":return!(!n.canPlayType||!n.canPlayType('video/ogg; codecs="theora"').replace(/no/,""))}else if("audio"===e.type)switch(t){case"audio/mpeg":return!(!n.canPlayType||!n.canPlayType("audio/mpeg;").replace(/no/,""));case"audio/ogg":return!(!n.canPlayType||!n.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/,""));case"audio/wav":return!(!n.canPlayType||!n.canPlayType('audio/wav; codecs="1"').replace(/no/,""))}return!1}(P,e)},destroy:Ie},function(){if(P.init)return null;if(n=function(){var e={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",element:null,prefix:""},n="webkit o moz ms khtml".split(" ");if(S.undefined(t.cancelFullScreen))for(var r=0,a=n.length;r<a;r++){if(e.prefix=n[r],!S.undefined(t[e.prefix+"CancelFullScreen"])){e.supportsFullScreen=!0;break}if(!S.undefined(t.msExitFullscreen)&&t.msFullscreenEnabled){e.prefix="ms",e.supportsFullScreen=!0;break}}else e.supportsFullScreen=!0;return e.supportsFullScreen&&(e.fullScreenEventName="ms"===e.prefix?"MSFullscreenChange":e.prefix+"fullscreenchange",e.isFullScreen=function(e){switch(S.undefined(e)&&(e=t.body),this.prefix){case"":return t.fullscreenElement===e;case"moz":return t.mozFullScreenElement===e;default:return t[this.prefix+"FullscreenElement"]===e}},e.requestFullScreen=function(e){return S.undefined(e)&&(e=t.body),""===this.prefix?e.requestFullScreen():e[this.prefix+("ms"===this.prefix?"RequestFullscreen":"RequestFullScreen")]()},e.cancelFullScreen=function(){return""===this.prefix?t.cancelFullScreen():t[this.prefix+("ms"===this.prefix?"ExitFullscreen":"CancelFullScreen")]()},e.element=function(){return""===this.prefix?t.fullscreenElement:t[this.prefix+"FullscreenElement"]}),e}(),P.browser=s(),S.htmlElement(P.media)){var r;P.storage={},E&&I.storage.enabled&&(e.localStorage.removeItem("plyr-volume"),(r=e.localStorage.getItem(I.storage.key))&&(/^\d+(\.\d+)?$/.test(r)?Q({volume:parseFloat(r)}):P.storage=JSON.parse(r)));var a=_.tagName.toLowerCase();"div"===a?(P.type=_.getAttribute("data-type"),P.embedId=_.getAttribute("data-video-id"),_.removeAttribute("data-type"),_.removeAttribute("data-video-id")):(P.type=a,I.crossorigin=null!==_.getAttribute("crossorigin"),I.autoplay=I.autoplay||null!==_.getAttribute("autoplay"),I.loop=I.loop||null!==_.getAttribute("loop")),P.supported=F(P.type),P.supported.basic&&(P.container=u(_,t.createElement("div")),P.container.setAttribute("tabindex",0),z(),R(P.browser.name+" "+P.browser.version),Z(),(i(I.types.html5,P.type)||i(I.types.embed,P.type)&&!P.supported.full)&&(Ne(),Pe(),K()),P.init=!0)}}(),P.init?N:null}function C(e,n){var r=new XMLHttpRequest;if(!S.string(n)||!S.htmlElement(t.querySelector("#"+n))){var a=t.createElement("div");a.setAttribute("hidden",""),S.string(n)&&a.setAttribute("id",n),t.body.insertBefore(a,t.body.childNodes[0]),"withCredentials"in r&&(r.open("GET",e,!0),r.onload=function(){a.innerHTML=r.responseText},r.send())}}function F(e){var n=s(),r=n.isIE&&n.version<=9,a=n.isIos,o=n.isIphone,i=!!t.createElement("audio").canPlayType,l=!!t.createElement("video").canPlayType,u=!1,c=!1;switch(e){case"video":c=(u=l)&&!r&&!o;break;case"audio":c=(u=i)&&!r;break;case"vimeo":u=!0,c=!r&&!a;break;case"youtube":u=!0,c=!r&&!a,a&&!o&&n.version>=10&&(c=!0);break;case"soundcloud":u=!0,c=!r&&!o;break;default:c=(u=i&&l)&&!r}return{basic:u,full:c}}function A(e){if(S.string(e)?e=t.querySelector(e):S.undefined(e)&&(e=t.body),S.htmlElement(e)){var n=e.querySelectorAll("."+a.classes.setup),r=[];return Array.prototype.slice.call(n).forEach((function(e){S.object(e.plyr)&&r.push(e.plyr)})),r}return[]}return{setup:function(e,n){var r=[],s=[],o=[a.selectors.html5,a.selectors.embed].join(",");if(S.string(e)?e=t.querySelectorAll(e):S.htmlElement(e)?e=[e]:S.nodeList(e)||S.array(e)||S.string(e)||(S.undefined(n)&&S.object(e)&&(n=e),e=t.querySelectorAll(o)),S.nodeList(e)&&(e=Array.prototype.slice.call(e)),!F().basic||!e.length)return!1;function i(e,t){y(t,a.classes.hook)||r.push({target:e,media:t})}for(var l=0;l<e.length;l++){var u=e[l],c=u.querySelectorAll(o);if(c.length)for(var d=0;d<c.length;d++)i(u,c[d]);else b(u,o)&&i(u,u)}return r.forEach((function(e){var t=e.target,r=e.media;var o={};try{o=JSON.parse(t.getAttribute("data-plyr"))}catch(e){}var i=T({},a,n,o);if(!i.enabled)return null;var l=new _(r,i);if(S.object(l)){if(i.debug){var u=i.events.concat(["setup","statechange","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled"]);h(l.getContainer(),u.join(" "),(function(e){console.log([i.logPrefix,"event:",e.type].join(" "),e.detail.plyr)}))}k(l.getContainer(),"setup",!0,{plyr:l}),s.push(l)}})),s},supported:F,loadSprite:C,get:A}})),function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}()}}]);
@@ -0,0 +1,17 @@
1
+ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=30)}({0:function(e,t,n){"use strict";e.exports=n(121)},1:function(e,t){e.exports=require("react")},12:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(32),o=n.n(r),i=function(e,t){o.a.set(e,t)},s=function(e){o.a.remove(e,{expires:1})},a=function(){s("userToken"),s("userId"),window.location.href="/"},c=function(e){return u(e)},u=function(e){return o.a.get(e)}},121:function(e,t,n){"use strict";
2
+ /**
3
+ * @license React
4
+ * react-jsx-runtime.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var r=n(1),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,l=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:l,props:i,_owner:a.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},14:function(e,t,n){"use strict";n.d(t,"r",(function(){return r})),n.d(t,"q",(function(){return o})),n.d(t,"n",(function(){return i})),n.d(t,"f",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"p",(function(){return c})),n.d(t,"u",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"l",(function(){return f})),n.d(t,"m",(function(){return h})),n.d(t,"s",(function(){return p})),n.d(t,"h",(function(){return v})),n.d(t,"i",(function(){return g})),n.d(t,"g",(function(){return y})),n.d(t,"k",(function(){return m})),n.d(t,"j",(function(){return M})),n.d(t,"b",(function(){return w})),n.d(t,"t",(function(){return b})),n.d(t,"o",(function(){return L})),n.d(t,"e",(function(){return I}));var r=25,o=1e3,i=60*o,s=60*i,a=24*s,c=30*a,u=12*c,l="deleteConversationLocally",d="clearConversation",f="messageDelivered",h="messageRead",p="User unblocked successfully.",v=5242880,g=52428800,y=52428800,m="messagesDeleteLocal",M="messagesDeleteForAll",w="Conversations not found.",b="userUnblockConversation",L=420,I="AIzaSyCD81udOzPUpOi14ZEo-7GzPwnClTROIeQ"},30:function(e,t,n){"use strict";n.r(t),n.d(t,"ChatState",(function(){return I}));var r=n(1),o=n(12),i=n(4),s=n(6),a=n(45),c=n(0);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=["children","mqttCreds","chatTheme","manageProfile","onViewProfilleClick","manageMessage","baseImageUrl"];function d(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||M(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof h?t:h,s=Object.create(i.prototype),a=new C(o||[]);return r(s,"_invoke",{value:I(e,n,a)}),s}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var f={};function h(){}function p(){}function g(){}var y={};c(y,i,(function(){return this}));var m=Object.getPrototypeOf,M=m&&m(m(A([])));M&&M!==t&&n.call(M,i)&&(y=M);var w=g.prototype=h.prototype=Object.create(y);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){var o;r(this,"_invoke",{value:function(r,i){function s(){return new t((function(o,s){!function r(o,i,s,a){var c=d(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==u(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,s,a)}),(function(e){r("throw",e,s,a)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,a)}))}a(c.arg)}(r,i,o,s)}))}return o=o?o.then(s,s):s()}})}function I(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=j(s,n);if(a){if(a===f)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function A(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:_}}function _(){return{value:void 0,done:!0}}return p.prototype=g,r(w,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:p,configurable:!0}),p.displayName=c(g,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,a,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},b(L.prototype),c(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new L(l(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},b(w),c(w,a,"Generator"),c(w,i,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(N),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function g(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){g(i,r,o,s,a,"next",e)}function a(e){g(i,r,o,s,a,"throw",e)}s(void 0)}))}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||M(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var L=Object(r.createContext)();t.default=function(e){var t=e.children,n=e.mqttCreds,u=e.chatTheme,f=void 0===u?"light":u,g=e.manageProfile,M=e.onViewProfilleClick,w=void 0===M?function(){}:M,I=e.manageMessage,j=e.baseImageUrl,S=void 0===j?null:j,N=(b(e,l),m(Object(r.useState)("dark"===f),2)),C=N[0],A=N[1],_=m(Object(r.useState)(!0),2),D=_[0],E=_[1],T=m(Object(r.useState)(!1),2),k=T[0],O=T[1],x=m(Object(r.useState)(),2),U=x[0],R=x[1],P=m(Object(r.useState)(!0),2),V=P[0],z=P[1],Y=m(Object(r.useState)({}),2),F=Y[0],W=Y[1],Q=m(Object(r.useState)({selectedConvId:"",messages:{},conversations:[],users:[]}),2),G=Q[0],Z=Q[1],B=Object(o.b)("userId");Object(r.useEffect)((function(){H(),X(),J()}),[]),Object(r.useEffect)((function(){Object(o.c)("theme","dark"===f);var e=Object(o.b)("theme");A("true"===e)}),[f]);var J=function(){try{"serviceWorker"in navigator?window.addEventListener("load",(function(){navigator.serviceWorker.register("/service-worker.js").then((function(e){console.log("Service worker registered:",e)})).catch((function(e){console.log("Service worker registration failed:",e)}))})):console.log("service worker not available")}catch(e){console.log("!! --- Error while registering service worker -- !!!")}},X=function(){var e=y(v().mark((function e(){var t,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(t=Object(o.b)("userToken"))?(null===i.a||void 0===i.a||null===(n=i.a.user)||void 0===n||n.setUserToken(t),O(!0)):O(!1),E(!1),i.a.user.getUserDetails().then((function(e){R(e)}))}catch(e){console.log("Errrroorrr -- ",e)}case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=y(v().mark((function e(){var t,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(s.q)();case 2:t=e.sent,r=Object(o.b)("userId"),i.a.initializeMqtt({hostUri:"wss://connections.isometrik.io:2053/mqtt",clientId:r,licenseKey:n.licenseKey,projectId:n.projectId,keysetId:n.keysetId,accountId:n.accountId,deviceId:t},(function(){Object(o.c)("chatMqttConnected","true")})).on("MESSAGE_RECEIVED",(function(e){var t=JSON.parse(null==e?void 0:e.payloadString);console.log("APPmessage",t),W(t),Z((function(e){var n;return null!=e&&e.messages&&Object.keys(null==e?void 0:e.messages).includes(null==t?void 0:t.conversationId)?(null==t||null===(n=t.body)||void 0===n?void 0:n.length)>0?h(h({},e),{},{messages:h(h({},null==e?void 0:e.messages),{},p({},null==t?void 0:t.conversationId,[t].concat(d(null==e?void 0:e.messages[null==t?void 0:t.conversationId]))))}):h(h({},e),{},{messages:h(h({},null==e?void 0:e.messages),{},p({},null==t?void 0:t.conversationId,d(null==e?void 0:e.messages[null==t?void 0:t.conversationId])))}):h(h({},e),{},{messages:h(h({},null==e?void 0:e.messages),{},p({},null==t?void 0:t.conversationId,[t]))})}))}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(r.useEffect)((function(){Object.keys(F).length&&F.body&&(null==F?void 0:F.senderId)!==B&&function(e,t,n){var r;null===(r=navigator)||void 0===r||null===(r=r.serviceWorker)||void 0===r||null===(r=r.ready)||void 0===r||null===(r=r.then((function(r){r.showNotification(e,{body:t,icon:n})})))||void 0===r||r.catch((function(e){return console.log("error while pushing notifications using sw - ",e)}))}("You have received a new message from ".concat(F.senderName),"".concat(Object(s.h)(F.body)),a.a)}),[F.body]),Object(r.useEffect)((function(){Object(o.c)("theme",C)}),[C]),Object(c.jsx)(L.Provider,{value:{theme:C,onViewProfilleClick:w,baseImageUrl:S,manageProfile:g,manageMessage:I,setTheme:A,mqttCreds:n,setLoading:E,loading:D,setUserloggedIn:O,userloggedIn:k,setUserDetails:R,userDetails:U,setShowLoader:z,showLoader:V,userId:B,findUserId:F,setFindUserId:W,setState:Z,state:G},children:t})};var I=function(){return Object(r.useContext)(L)}},32:function(e,t,n){var r,o;
11
+ /*!
12
+ * JavaScript Cookie v2.2.1
13
+ * https://github.com/js-cookie/js-cookie
14
+ *
15
+ * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
16
+ * Released under the MIT license
17
+ */!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=i(),!!0){var s=window.Cookies,a=window.Cookies=i();a.noConflict=function(){return window.Cookies=s,a}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var s=JSON.stringify(n);/^[\{\[]/.test(s)&&(n=s)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,!0!==i[c]&&(a+="="+i[c].split(";")[0]));return document.cookie=t+"="+n+a}}function s(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],s=0;s<i.length;s++){var a=i[s].split("="),c=a.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=t(a[0]);if(c=(r.read||r)(c,u)||t(c),n)try{c=JSON.parse(c)}catch(e){}if(o[u]=c,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return s(e,!1)},o.getJSON=function(e){return s(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},4:function(e,t,n){"use strict";var r=n(55),o=n.n(r),i=n(56),s=n.n(i);function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,u(e,t)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t,n){return(l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&u(o,n.prototype),o}).apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return l(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,e)})(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var h=function(e){function t(n,r){var o;return(o=e.call(this,r)||this).statusCode=void 0,Object.setPrototypeOf(f(o),(this instanceof t?this.constructor:void 0).prototype),o.name=Error.name,o.statusCode=n,Error.captureStackTrace(f(o)),o}return a(t,e),t}(d(Error)),p=function(e){function t(t,n){var r;return(r=e.call(this,400,"Conversation not found or not allowed to fetch messages count")||this).errorMsg=void 0,r.errorCode=void 0,r.errorMsg=t,r.errorCode=n||0,r}return a(t,e),t}(h),v=function(e){function t(t,n){var r;return(r=e.call(this,404,t)||this).errorMsg=void 0,r.errorCode=void 0,r.errorMsg=t,r.errorCode=n,r}return a(t,e),t}(h),g=function(e){function t(t){var n;return(n=e.call(this,503,"Service Unavailable")||this).errorMsg=void 0,n.errorMsg=t,n}return a(t,e),t}(h),y=function(e){function t(t,n){var r;return(r=e.call(this,422,"Unprocessable entity")||this).errorProperties=void 0,r.errorCode=void 0,r.errorProperties=t,r.errorCode=n||0,r}return a(t,e),t}(h),m=function(e){function t(t,n){var r;return(r=e.call(this,t,"Unknown Error Caught")||this).errorMsg=void 0,r.errorMsg=n,r}return a(t,e),t}(h),M=function(e){function t(t,n){var r;return(r=e.call(this,403,t)||this).errorMsg=void 0,r.errorCode=void 0,r.errorMsg=t,r.errorCode=n,r}return a(t,e),t}(h),w=function(e){function t(t,n){var r;return(r=e.call(this,403,t)||this).errorMsg=void 0,r.errorCode=void 0,r.errorMsg=t,r.errorCode=n,r}return a(t,e),t}(h),b=function(e){function t(t,n){var r;return(r=e.call(this,400,"Conversation not found or not allowed to fetch messages count")||this).errorMsg=void 0,r.errorCode=void 0,r.errorMsg=t,r.errorCode=n||0,r}return a(t,e),t}(h),L=function(){function e(e){this.baseUrl=void 0,this.licenseKey=void 0,this.appSecret=void 0,this.userSecret=void 0,this.userToken=void 0,this.baseUrl=e.baseUrl,this.licenseKey=e.licenseKey,this.appSecret=e.appSecret,this.userSecret=e.userSecret,this.userToken=e.userToken||void 0}var t=e.prototype;return t.updateUserToken=function(e){this.userToken=e},t.invoke=function(e,t){try{return Promise.resolve(function(n,r){try{var i=Promise.resolve(o()(e,t)).then((function(e){if(e.ok)return e.json();var t=new Error(e.statusText);throw t.response=e,t}))}catch(e){return r(e)}return i&&i.then?i.then(void 0,r):i}(0,(function(e){var t=e.response.status;return Promise.resolve(e.response.json()).then((function(e){switch(t){case 400:throw new p(e.error);case 401:throw new w(e.error,e.errorCode);case 403:throw new M(e.error,e.errorCode);case 404:throw new v(e.error,e.errorCode);case 409:throw new b(e.error,e.errorCode);case 422:throw new y(e.errors);case 503:throw new g(e.error);default:throw new m(t,e.error)}}))})))}catch(e){return Promise.reject(e)}},t.get=function(e,t){void 0===t&&(t=!1);var n=""+this.baseUrl+e,r={"Content-type":"application/json",licenseKey:this.licenseKey,appSecret:this.appSecret,userToken:this.userToken};return t&&(r.userSecret=this.userSecret),this.invoke(n,{headers:r})},t.post=function(e,t,n){void 0===n&&(n=!1);var r=""+this.baseUrl+e,o={"Content-type":"application/json",licenseKey:this.licenseKey,appSecret:this.appSecret,userToken:this.userToken};n&&(o.userSecret=this.userSecret);var i={method:"POST",body:JSON.stringify(t),headers:o};return this.invoke(r,i)},t.put=function(e,t,n){void 0===n&&(n=!1);var r=""+this.baseUrl+e,o={"Content-type":"application/json",licenseKey:this.licenseKey,appSecret:this.appSecret,userToken:this.userToken};n&&(o.userSecret=this.userSecret);var i={method:"PUT",body:JSON.stringify(t),headers:o};return this.invoke(r,i)},t.patch=function(e,t,n){void 0===n&&(n=!1);var r=""+this.baseUrl+e,o={"Content-type":"application/json",licenseKey:this.licenseKey,appSecret:this.appSecret,userToken:this.userToken};n&&(o.userSecret=this.userSecret);var i={method:"PATCH",body:JSON.stringify(t),headers:o};return this.invoke(r,i)},t.delete=function(e,t,n){void 0===n&&(n=!1);var r=""+this.baseUrl+e,o={"Content-type":"application/json",licenseKey:this.licenseKey,appSecret:this.appSecret,userToken:this.userToken};n&&(o.userSecret=this.userSecret);var i={method:"DELETE",body:JSON.stringify(t),headers:o};return this.invoke(r,i)},e}(),I=function(){function e(){}return e.getInstance=function(t){return e.instance||(e.instance=new L(t)),e.instance},e}();I.instance=void 0;var j="chat/messages",S=function(){function e(e){this.base=void 0,this.base=I.getInstance(e)}var t=e.prototype;return t.getMessagesForUser=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/"+j+"/user?"+t)},t.getMessagesForMentioned=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/"+j+"/user?"+t)},t.getMessagesCount=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/"+j+"/count?"+t)},t.getMessages=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/"+j+"?"+t)},t.postMessages=function(e){return this.base.post("/chat/message",e)},t.patchMessages=function(e){return this.base.patch("/chat/message",e)},t.postMessagesPresignedurls=function(e){return this.base.post("/chat/messages/presignedurls",e)},t.getMessageReactionType=function(e,t){var n=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/message/"+t+"?"+n)},t.postReaction=function(e){return this.base.post("/chat/reaction",e)},t.deleteReactionType=function(e,t){var n=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.delete("/chat/reaction/"+t+"?"+n)},t.postMessagesForward=function(e){return this.base.post("/chat/message/forward",e)},t.postMessagesbroadcast=function(e){return this.base.post("/chat/message/broadcast",e)},t.getStatus=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/"+j+"/status?"+t)},t.getStatusReadPending=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/message/status/read/pending?"+t)},t.getStatusRead=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/message/status/read?"+t)},t.getStatusDeliveryPending=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/message/status/delivery/pending?"+t)},t.getStatusDelivery=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/message/status/delivery?"+t)},t.postIndicateTyping=function(e){return this.base.post("/chat/indicator/typing",e)},t.putIndicateRead=function(e){return this.base.put("/chat/indicator/read",e)},t.putIndicateDelivered=function(e){return this.base.put("/chat/indicator/delivered",e)},t.getUnreadCount=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/"+j+"/unread/count?"+t)},t.getUnread=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/"+j+"/unread?"+t)},t.putRead=function(e){return this.base.put("/"+j+"/read",e)},t.deleteMessageSelf=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.delete("/"+j+"/self?"+t)},t.deleteMessagesEveryone=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.delete("/"+j+"/everyone?"+t)},e}(),N="chat/conversations",C=function(){function e(e){this.base=void 0,this.base=I.getInstance(e)}var t=e.prototype;return t.getWatchers=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/"+N+"/watchers?"+t)},t.getPublicOrOpen=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/"+N+"/watchers?"+t)},t.getConversationDetails=function(e,t){var n=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/conversation/details/"+t+"?"+n)},t.getConversationCount=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/"+N+"/count?"+t)},t.getConversations=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/"+N+"?"+t)},t.getMessagingStatus=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/conversation/messaging/status?"+t)},t.postConversation=function(e){return this.base.post("/chat/conversation",e)},t.patchTitle=function(e){return this.base.patch("/chat/conversation/title",e)},t.patchSettings=function(e){return this.base.patch("/chat/conversation/settings",e)},t.patchImage=function(e){return this.base.patch("/chat/conversation/image",e)},t.patchDetails=function(e){return this.base.patch("/chat/conversation/details",e)},t.getConversationPresignedurl=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/conversation/presignedurl?"+t)},t.getStatusRead=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/conversation/status/read?"+t)},t.getObserver=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/conversation/members?"+t)},t.deleteObserverLeave=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.delete("/chat/conversation/observer/leave?"+t)},t.putObserverJoin=function(e){return this.base.put("/chat/conversation/observer/join",e)},t.putMembers=function(e){return this.base.put("/chat/conversation/members",e)},t.getConversationMembers=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/conversation/members?"+t)},t.deleteConversationMembers=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.delete("/chat/conversation/members?"+t)},t.getConversationMemberDetails=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/conversation/member/details?"+t)},t.getConversationEligibleMembers=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/conversation/eligible/members?"+t)},t.deleteConversationLeave=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.delete("/chat/conversation/leave?"+t)},t.putConversationJoin=function(e){return this.base.put("/chat/conversation/join",e)},t.putConversationAdmin=function(e){return this.base.put("/chat/conversation/admin",e)},t.deleteConversationAdmin=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.delete("/chat/conversation/admin?"+t)},t.getConversationUnreadCount=function(){return this.base.get("/"+N+"/unread/count")},t.putConversationLastread=function(e){return this.base.put("/chat/conversation/lastread",e)},t.deleteConversationClear=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.delete("/chat/conversation/local?"+t)},t.deleteConversationLocal=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.delete("/chat/conversation/clear?"+t)},e}(),A=function(){function e(e){this.base=void 0,this.base=I.getInstance(e)}var t=e.prototype;return t.getUsers=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/users?"+t,!0)},t.getUserDetails=function(){return this.base.get("/chat/user/details")},t.postUserAuthenticate=function(e){var t=this,n=this.base.post("/chat/user/authenticate",e,!0);return n.then((function(e){t.base.updateUserToken(e.userToken)})),n},t.setUserToken=function(e){this.base.updateUserToken(e)},t.postUser=function(e){return this.base.post("/chat/user",e,!0)},t.patchUser=function(e){return this.base.patch("/chat/user",e)},t.deleteUser=function(){return this.base.delete("/chat/user")},t.postUserUnblock=function(e){return this.base.post("/chat/user/unblock",e)},t.getUserNonblock=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/user/nonblock?"+t)},t.getUserblockCount=function(){return this.base.get("/chat/user/block/count")},t.postUserBlock=function(e){return this.base.post("/chat/user/block",e)},t.getUserBlock=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/user/block?"+t)},t.getPresignedurlUpdate=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/user/presignedurl/update?"+t)},t.getPresignedurlCreate=function(e){var t=e?Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"):"";return this.base.get("/chat/user/presignedurl/update?"+t)},e}(),_=function(){function e(e){var t=this;this.hostUri=void 0,this.clientId=void 0,this.client=void 0,this.licenseKey=void 0,this.projectId=void 0,this.keysetId=void 0,this.accountId=void 0,this.deviceId=void 0,this.hostUri=e.hostUri,this.clientId=e.clientId,this.deviceId=e.deviceId,this.licenseKey=e.licenseKey,this.projectId=e.projectId,this.keysetId=e.keysetId,this.accountId=e.accountId,this.client=new s.a.Client(this.hostUri,this.clientId+this.deviceId),this.client.connect({userName:"2"+this.accountId+this.projectId,password:this.licenseKey+this.keysetId,useSSL:!0,mqttVersion:3,keepAliveInterval:30,cleanSession:!0,reconnect:!0,onFailure:function(e){console.log("Failed COnnection ---\x3e",e,"is the error"),console.log(t,"username","1"+t.accountId+t.projectId,"pass",t.licenseKey+t.keysetId)},onSuccess:function(e){console.log("Isometrick MQTT Connected !!",t.client);try{t.client.subscribe("/"+t.accountId+"/"+t.projectId+"/Message/"+t.clientId,{qos:0,onSuccess:function(e){console.log("Subscribed Successfully:: =>> Message",e)},onFailure:function(e){console.log("Subscribed Failed || >>",e)}}),t.client.subscribe("/"+t.accountId+"/"+t.projectId+"/Status/"+t.clientId,{qos:0,onSuccess:function(e){console.log("Subscribed Successfully:: =>> Status",e)},onFailure:function(e){console.log("Subscribed Failed || >>",e)}})}catch(e){console.error(e)}}})}return e.prototype.on=function(e,t){switch(e){case"MESSAGE_RECEIVED":this.client.onMessageArrived=t;break;case"CONNECTION_LOST":this.client.onConnectionLost=t}},e}(),D={BadRequestError:p,ConflictError:b,ForbiddenErrorRequest:M,NotFoundError:v,ServiceUnavailableError:g,UnauthorizedError:w,UnknownError:m,UnprocessableEntityError:y},E=function(){function e(e){this.message=void 0,this.Conversation=void 0,this.user=void 0,this.error=void 0,this.message=new S(e),this.Conversation=new C(e),this.user=new A(e),this.error=D}return e.prototype.initializeMqtt=function(e){return new _(e)},e}(),T=n(12),k=new E({baseUrl:"https://apis.isometrik.io",licenseKey:"lic-IMKn02Av5QMxJx0HIEbK1z2OH0EoLm9BLDa",appSecret:"SFMyNTY.g3QAAAACZAAEZGF0YXQAAAADbQAAAAlhY2NvdW50SWRtAAAAGDY0M2VhMjk0MjBhYWY1MDAwMTA3MGFjN20AAAAIa2V5c2V0SWRtAAAAJGExYjVkZTZkLTU5OTMtNDFkYi05MWExLWQ0MWQxZWQ2OGEzM20AAAAJcHJvamVjdElkbQAAACQ2NDk0Mjc2NC00OWQzLTQ2NzgtYWU4Yy00ZWNiMDhlMGM3YWFkAAZzaWduZWRuBgDDcacLiQE.6veiLxvBSZxvNIuzoAFWXgJJW1pGj8y3tSxGIk0tSd0",userSecret:"SFMyNTY.g3QAAAACZAAEZGF0YXQAAAADbQAAAAlhY2NvdW50SWRtAAAAGDY0M2VhMjk0MjBhYWY1MDAwMTA3MGFjN20AAAAIa2V5c2V0SWRtAAAAJGExYjVkZTZkLTU5OTMtNDFkYi05MWExLWQ0MWQxZWQ2OGEzM20AAAAJcHJvamVjdElkbQAAACQ2NDk0Mjc2NC00OWQzLTQ2NzgtYWU4Yy00ZWNiMDhlMGM3YWFkAAZzaWduZWRuBgDIcacLiQE._rgzZ--g7aB-vgJos4iKJEqelW3Tac8e5PDUD0TzxFY",userToken:Object(T.b)("userToken")});t.a=k},45:function(e,t,n){"use strict";t.a="data:image/svg+xml;base64,PHN2ZyBpZD0iVmVjdG9yX1NtYXJ0X09iamVjdF9jb3B5XzUiIGRhdGEtbmFtZT0iVmVjdG9yIFNtYXJ0IE9iamVjdCBjb3B5IDUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHdpZHRoPSI4MC40NjkiIGhlaWdodD0iNTAuMDY3IiB2aWV3Qm94PSIwIDAgMTE4LjQ2OSA3MS4wNjciPg0KICA8ZGVmcz4NCiAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImxpbmVhci1ncmFkaWVudCIgeDE9IjAuNzQiIHkxPSIwLjc4IiB4Mj0iMC41IiB5Mj0iMC4xNjIiIGdyYWRpZW50VW5pdHM9Im9iamVjdEJvdW5kaW5nQm94Ij4NCiAgICAgIDxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2Y3NzA2MiIvPg0KICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmU1MTk2Ii8+DQogICAgPC9saW5lYXJHcmFkaWVudD4NCiAgPC9kZWZzPg0KICA8cGF0aCBpZD0iR3JhZGllbnRfT3ZlcmxheSIgZGF0YS1uYW1lPSJHcmFkaWVudCBPdmVybGF5IiBkPSJNLTMxOC44NjUsMTAxLjMzMWwtLjAwNi05LjE0MmgtMTIuNjUzYTQuMjIxLDQuMjIxLDAsMCwxLTQuMjI0LTQuMjE5LDQuMjIzLDQuMjIzLDAsMCwxLDQuMjItNC4yMjVsMTIuNjUyLS4wMDgsMTYuMTQtLjAwOWE0LjIyMSw0LjIyMSwwLDAsMCw0LjIxOS00LjIyNCw0LjIyMiw0LjIyMiwwLDAsMC00LjIyNC00LjIyaDBsLTkuNzEzLjAwNmgtNi40MjZsLTI2LjE4Ny4wMTZhNC4yMjIsNC4yMjIsMCwwLDEtNC4yMjMtNC4yMTksNC4yMjEsNC4yMjEsMCwwLDEsNC4yMTktNC4yMjRoMGwzMi42MTMtLjAyYTQuMTM4LDQuMTM4LDAsMCwxLC42MTMuMDYybDE2LjIxNC0uMDFhNC4yMjIsNC4yMjIsMCwwLDAsNC4yMi00LjIyNCw0LjIyMSw0LjIyMSwwLDAsMC00LjIyNC00LjIxOWgtNy4xMTFsLTE2LjE0LjAwOS05LjU2Mi4wMThhNC4yMjIsNC4yMjIsMCwwLDEtNC4yMjUtNC4yMTksNC4yMjIsNC4yMjIsMCwwLDEsNC4yMi00LjIyNGw5LjU1Ny0uMDA2LS4wMDgtOS4yMDlhNS4yNzQsNS4yNzQsMCwwLDEsNS4yNjMtNS4yODIsNS4yODIsNS4yODIsMCwwLDEsMi42NDQuNzA1bDUyLjM1MSwzMC4yMjFhNS4yODQsNS4yODQsMCwwLDEsMS45MjcsNy4yMTksNS4zLDUuMywwLDAsMS0xLjkyLDEuOTIzbC01Mi4zMTQsMzAuMjgxYTUuMjE5LDUuMjE5LDAsMCwxLTIuNjI5LjcxOEE1LjI4Myw1LjI4MywwLDAsMS0zMTguODY1LDEwMS4zMzFaTS0zNTkuNjg0LDg5LjFhNC4wNTIsNC4wNTIsMCwwLDEsNC4wNTctNC4wNTEsNC4wNTQsNC4wNTQsMCwwLDEsNC4wNSw0LjA1Niw0LjA1NSw0LjA1NSwwLDAsMS00LjA1LDQuMDUyQTQuMDU3LDQuMDU3LDAsMCwxLTM1OS42ODQsODkuMVptMTIuNy0uMzMzYTQuMDU0LDQuMDU0LDAsMCwxLDQuMDU2LTQuMDUxLDQuMDU0LDQuMDU0LDAsMCwxLDQuMDUyLDQuMDU3LDQuMDU1LDQuMDU1LDAsMCwxLTQuMDUyLDQuMDUxLDQuMDU2LDQuMDU2LDAsMCwxLTQuMDU2LTQuMDU3Wm0tMjcuNS0xNi44MDdhNC4wNTQsNC4wNTQsMCwwLDEsNC4wNTctNC4wNTEsNC4wNTQsNC4wNTQsMCwwLDEsNC4wNTEsNC4wNTcsNC4wNTMsNC4wNTMsMCwwLDEtNC4wNTEsNC4wNTFBNC4wNTcsNC4wNTcsMCwwLDEtMzc0LjQ3Nyw3MS45NlptMTIuNy0uMzMyYTQuMDUyLDQuMDUyLDAsMCwxLDQuMDU3LTQuMDUxLDQuMDU0LDQuMDU0LDAsMCwxLDQuMDUxLDQuMDU2LDQuMDU1LDQuMDU1LDAsMCwxLTQuMDUxLDQuMDUyQTQuMDU3LDQuMDU3LDAsMCwxLTM2MS43NzUsNzEuNjI4Wm01LjQtMTcuMzU0YTQuMDU0LDQuMDU0LDAsMCwxLDQuMDU2LTQuMDUxLDQuMDUyLDQuMDUyLDAsMCwxLDQuMDUsNC4wNTcsNC4wNTMsNC4wNTMsMCwwLDEtNC4wNTIsNC4wNTFBNC4wNTYsNC4wNTYsMCwwLDEtMzU2LjM3Niw1NC4yNzRabTEyLjUtLjAwOGE0LjA1NCw0LjA1NCwwLDAsMSw0LjA1Ny00LjA1MSw0LjA1Myw0LjA1MywwLDAsMSw0LjA1MSw0LjA1Nyw0LjA1Myw0LjA1MywwLDAsMS00LjA1MSw0LjA1MSw0LjA1Nyw0LjA1NywwLDAsMS00LjA1Ny00LjA1N1oiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDM3NC40NzcgLTM1LjU0KSIgZmlsbD0idXJsKCNsaW5lYXItZ3JhZGllbnQpIi8+DQo8L3N2Zz4NCg=="},49:function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],s=[],a={},c=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:c,headers:{keys:function(){return i},entries:function(){return s},get:function(e){return a[e.toLowerCase()]},has:function(e){return e.toLowerCase()in a}}}};for(var u in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),s.push([t,n]),a[t]=a[t]?a[t]+","+n:n})),n(c())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(u,t.headers[u]);o.send(t.body||null)}))}},50:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},55:function(e,t,n){e.exports=self.fetch||(self.fetch=n(49).default||n(49))},56:function(e,t,n){(function(t){var n;n=function(){return function(e){var t,n=e.localStorage||(t={},{setItem:function(e,n){t[e]=n},getItem:function(e){return t[e]},removeItem:function(e){delete t[e]}}),r=1,o=2,i=3,s=4,a=5,c=6,u=7,l=8,d=9,f=10,h=11,p=12,v=13,g=14,y=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n)){var r="Unknown property, "+n+". Valid properties are:";for(var o in t)t.hasOwnProperty(o)&&(r=r+" "+o);throw new Error(r)}if(typeof e[n]!==t[n])throw new Error(b(M.INVALID_TYPE,[typeof e[n],n]))}},m=function(e,t){return function(){return e.apply(t,arguments)}},M={OK:{code:0,text:"AMQJSC0000I OK."},CONNECT_TIMEOUT:{code:1,text:"AMQJSC0001E Connect timed out."},SUBSCRIBE_TIMEOUT:{code:2,text:"AMQJS0002E Subscribe timed out."},UNSUBSCRIBE_TIMEOUT:{code:3,text:"AMQJS0003E Unsubscribe timed out."},PING_TIMEOUT:{code:4,text:"AMQJS0004E Ping timed out."},INTERNAL_ERROR:{code:5,text:"AMQJS0005E Internal error. Error Message: {0}, Stack trace: {1}"},CONNACK_RETURNCODE:{code:6,text:"AMQJS0006E Bad Connack return code:{0} {1}."},SOCKET_ERROR:{code:7,text:"AMQJS0007E Socket error:{0}."},SOCKET_CLOSE:{code:8,text:"AMQJS0008I Socket closed."},MALFORMED_UTF:{code:9,text:"AMQJS0009E Malformed UTF data:{0} {1} {2}."},UNSUPPORTED:{code:10,text:"AMQJS0010E {0} is not supported by this browser."},INVALID_STATE:{code:11,text:"AMQJS0011E Invalid state {0}."},INVALID_TYPE:{code:12,text:"AMQJS0012E Invalid type {0} for {1}."},INVALID_ARGUMENT:{code:13,text:"AMQJS0013E Invalid argument {0} for {1}."},UNSUPPORTED_OPERATION:{code:14,text:"AMQJS0014E Unsupported operation."},INVALID_STORED_DATA:{code:15,text:"AMQJS0015E Invalid data in local storage key={0} value={1}."},INVALID_MQTT_MESSAGE_TYPE:{code:16,text:"AMQJS0016E Invalid MQTT message type {0}."},MALFORMED_UNICODE:{code:17,text:"AMQJS0017E Malformed Unicode string:{0} {1}."},BUFFER_FULL:{code:18,text:"AMQJS0018E Message buffer is full, maximum buffer size: {0}."}},w={0:"Connection Accepted",1:"Connection Refused: unacceptable protocol version",2:"Connection Refused: identifier rejected",3:"Connection Refused: server unavailable",4:"Connection Refused: bad user name or password",5:"Connection Refused: not authorized"},b=function(e,t){var n=e.text;if(t)for(var r,o,i=0;i<t.length;i++)if(r="{"+i+"}",(o=n.indexOf(r))>0){var s=n.substring(0,o),a=n.substring(o+r.length);n=s+t[i]+a}return n},L=[0,6,77,81,73,115,100,112,3],I=[0,4,77,81,84,84,4],j=function(e,t){for(var n in this.type=e,t)t.hasOwnProperty(n)&&(this[n]=t[n])};function S(e,t){var n,r=t,l=e[t],f=l>>4,p=l&=15;t+=1;var v=0,g=1;do{if(t==e.length)return[null,r];v+=(127&(n=e[t++]))*g,g*=128}while(0!=(128&n));var y=t+v;if(y>e.length)return[null,r];var m=new j(f);switch(f){case o:1&e[t++]&&(m.sessionPresent=!0),m.returnCode=e[t++];break;case i:var M=p>>1&3,w=A(e,t),b=E(e,t+=2,w);t+=w,M>0&&(m.messageIdentifier=A(e,t),t+=2);var L=new x(e.subarray(t,y));1==(1&p)&&(L.retained=!0),8==(8&p)&&(L.duplicate=!0),L.qos=M,L.destinationName=b,m.payloadMessage=L;break;case s:case a:case c:case u:case h:m.messageIdentifier=A(e,t);break;case d:m.messageIdentifier=A(e,t),t+=2,m.returnCode=e.subarray(t,y)}return[m,y]}function N(e,t,n){return t[n++]=e>>8,t[n++]=e%256,n}function C(e,t,n,r){return D(e,n,r=N(t,n,r)),r+t}function A(e,t){return 256*e[t]+e[t+1]}function _(e){for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r>2047?(55296<=r&&r<=56319&&(n++,t++),t+=3):r>127?t+=2:t++}return t}function D(e,t,n){for(var r=n,o=0;o<e.length;o++){var i=e.charCodeAt(o);if(55296<=i&&i<=56319){var s=e.charCodeAt(++o);if(isNaN(s))throw new Error(b(M.MALFORMED_UNICODE,[i,s]));i=s-56320+(i-55296<<10)+65536}i<=127?t[r++]=i:i<=2047?(t[r++]=i>>6&31|192,t[r++]=63&i|128):i<=65535?(t[r++]=i>>12&15|224,t[r++]=i>>6&63|128,t[r++]=63&i|128):(t[r++]=i>>18&7|240,t[r++]=i>>12&63|128,t[r++]=i>>6&63|128,t[r++]=63&i|128)}return t}function E(e,t,n){for(var r,o="",i=t;i<t+n;){var s=e[i++];if(s<128)r=s;else{var a=e[i++]-128;if(a<0)throw new Error(b(M.MALFORMED_UTF,[s.toString(16),a.toString(16),""]));if(s<224)r=64*(s-192)+a;else{var c=e[i++]-128;if(c<0)throw new Error(b(M.MALFORMED_UTF,[s.toString(16),a.toString(16),c.toString(16)]));if(s<240)r=4096*(s-224)+64*a+c;else{var u=e[i++]-128;if(u<0)throw new Error(b(M.MALFORMED_UTF,[s.toString(16),a.toString(16),c.toString(16),u.toString(16)]));if(!(s<248))throw new Error(b(M.MALFORMED_UTF,[s.toString(16),a.toString(16),c.toString(16),u.toString(16)]));r=262144*(s-240)+4096*a+64*c+u}}}r>65535&&(r-=65536,o+=String.fromCharCode(55296+(r>>10)),r=56320+(1023&r)),o+=String.fromCharCode(r)}return o}j.prototype.encode=function(){var e,t=(15&this.type)<<4,n=0,o=[],s=0;switch(void 0!==this.messageIdentifier&&(n+=2),this.type){case r:switch(this.mqttVersion){case 3:n+=L.length+3;break;case 4:n+=I.length+3}n+=_(this.clientId)+2,void 0!==this.willMessage&&(n+=_(this.willMessage.destinationName)+2,(e=this.willMessage.payloadBytes)instanceof Uint8Array||(e=new Uint8Array(u)),n+=e.byteLength+2),void 0!==this.userName&&(n+=_(this.userName)+2),void 0!==this.password&&(n+=_(this.password)+2);break;case l:t|=2;for(var a=0;a<this.topics.length;a++)o[a]=_(this.topics[a]),n+=o[a]+2;n+=this.requestedQos.length;break;case f:for(t|=2,a=0;a<this.topics.length;a++)o[a]=_(this.topics[a]),n+=o[a]+2;break;case c:t|=2;break;case i:this.payloadMessage.duplicate&&(t|=8),t=t|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(t|=1),n+=(s=_(this.payloadMessage.destinationName))+2;var u=this.payloadMessage.payloadBytes;n+=u.byteLength,u instanceof ArrayBuffer?u=new Uint8Array(u):u instanceof Uint8Array||(u=new Uint8Array(u.buffer))}var d=function(e){var t=new Array(1),n=0;do{var r=e%128;(e>>=7)>0&&(r|=128),t[n++]=r}while(e>0&&n<4);return t}(n),h=d.length+1,p=new ArrayBuffer(n+h),v=new Uint8Array(p);if(v[0]=t,v.set(d,1),this.type==i)h=C(this.payloadMessage.destinationName,s,v,h);else if(this.type==r){switch(this.mqttVersion){case 3:v.set(L,h),h+=L.length;break;case 4:v.set(I,h),h+=I.length}var g=0;this.cleanSession&&(g=2),void 0!==this.willMessage&&(g|=4,g|=this.willMessage.qos<<3,this.willMessage.retained&&(g|=32)),void 0!==this.userName&&(g|=128),void 0!==this.password&&(g|=64),v[h++]=g,h=N(this.keepAliveInterval,v,h)}switch(void 0!==this.messageIdentifier&&(h=N(this.messageIdentifier,v,h)),this.type){case r:h=C(this.clientId,_(this.clientId),v,h),void 0!==this.willMessage&&(h=C(this.willMessage.destinationName,_(this.willMessage.destinationName),v,h),h=N(e.byteLength,v,h),v.set(e,h),h+=e.byteLength),void 0!==this.userName&&(h=C(this.userName,_(this.userName),v,h)),void 0!==this.password&&(h=C(this.password,_(this.password),v,h));break;case i:v.set(u,h);break;case l:for(a=0;a<this.topics.length;a++)h=C(this.topics[a],o[a],v,h),v[h++]=this.requestedQos[a];break;case f:for(a=0;a<this.topics.length;a++)h=C(this.topics[a],o[a],v,h)}return p};var T=function(e,t){this._client=e,this._keepAliveInterval=1e3*t,this.isReset=!1;var n=new j(p).encode(),r=function(e){return function(){return o.apply(e)}},o=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(n),this.timeout=setTimeout(r(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(M.PING_TIMEOUT.code,b(M.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(r(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},k=function(e,t,n,r){t||(t=30),this.timeout=setTimeout(function(e,t,n){return function(){return e.apply(t,n)}}(n,e,r),1e3*t),this.cancel=function(){clearTimeout(this.timeout)}},O=function(t,r,o,i,s){if(!("WebSocket"in e)||null===e.WebSocket)throw new Error(b(M.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in e)||null===e.ArrayBuffer)throw new Error(b(M.UNSUPPORTED,["ArrayBuffer"]));for(var a in this._trace("Paho.Client",t,r,o,i,s),this.host=r,this.port=o,this.path=i,this.uri=t,this.clientId=s,this._wsuri=null,this._localKey=r+":"+o+("/mqtt"!=i?":"+i:"")+":"+s+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,n)0!==a.indexOf("Sent:"+this._localKey)&&0!==a.indexOf("Received:"+this._localKey)||this.restore(a)};O.prototype.host=null,O.prototype.port=null,O.prototype.path=null,O.prototype.uri=null,O.prototype.clientId=null,O.prototype.socket=null,O.prototype.connected=!1,O.prototype.maxMessageIdentifier=65536,O.prototype.connectOptions=null,O.prototype.hostIndex=null,O.prototype.onConnected=null,O.prototype.onConnectionLost=null,O.prototype.onMessageDelivered=null,O.prototype.onMessageArrived=null,O.prototype.traceFunction=null,O.prototype._msg_queue=null,O.prototype._buffered_msg_queue=null,O.prototype._connectTimeout=null,O.prototype.sendPinger=null,O.prototype.receivePinger=null,O.prototype._reconnectInterval=1,O.prototype._reconnecting=!1,O.prototype._reconnectTimeout=null,O.prototype.disconnectedPublishing=!1,O.prototype.disconnectedBufferSize=5e3,O.prototype.receiveBuffer=null,O.prototype._traceBuffer=null,O.prototype._MAX_TRACE_ENTRIES=100,O.prototype.connect=function(e){var t=this._traceMask(e,"password");if(this._trace("Client.connect",t,this.socket,this.connected),this.connected)throw new Error(b(M.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(b(M.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=e,this._reconnectInterval=1,this._reconnecting=!1,e.uris?(this.hostIndex=0,this._doConnect(e.uris[0])):this._doConnect(this.uri)},O.prototype.subscribe=function(e,t){if(this._trace("Client.subscribe",e,t),!this.connected)throw new Error(b(M.INVALID_STATE,["not connected"]));var n=new j(l);n.topics=e.constructor===Array?e:[e],void 0===t.qos&&(t.qos=0),n.requestedQos=[];for(var r=0;r<n.topics.length;r++)n.requestedQos[r]=t.qos;t.onSuccess&&(n.onSuccess=function(e){t.onSuccess({invocationContext:t.invocationContext,grantedQos:e})}),t.onFailure&&(n.onFailure=function(e){t.onFailure({invocationContext:t.invocationContext,errorCode:e,errorMessage:b(e)})}),t.timeout&&(n.timeOut=new k(this,t.timeout,t.onFailure,[{invocationContext:t.invocationContext,errorCode:M.SUBSCRIBE_TIMEOUT.code,errorMessage:b(M.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(n),this._schedule_message(n)},O.prototype.unsubscribe=function(e,t){if(this._trace("Client.unsubscribe",e,t),!this.connected)throw new Error(b(M.INVALID_STATE,["not connected"]));var n=new j(f);n.topics=e.constructor===Array?e:[e],t.onSuccess&&(n.callback=function(){t.onSuccess({invocationContext:t.invocationContext})}),t.timeout&&(n.timeOut=new k(this,t.timeout,t.onFailure,[{invocationContext:t.invocationContext,errorCode:M.UNSUBSCRIBE_TIMEOUT.code,errorMessage:b(M.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(n),this._schedule_message(n)},O.prototype.send=function(e){this._trace("Client.send",e);var t=new j(i);if(t.payloadMessage=e,this.connected)e.qos>0?this._requires_ack(t):this.onMessageDelivered&&(this._notify_msg_sent[t]=this.onMessageDelivered(t.payloadMessage)),this._schedule_message(t);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(b(M.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(b(M.BUFFER_FULL,[this.disconnectedBufferSize]));e.qos>0?this._requires_ack(t):(t.sequence=++this._sequence,this._buffered_msg_queue.unshift(t))}},O.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(b(M.INVALID_STATE,["not connecting or connected"]));var e=new j(g);this._notify_msg_sent[e]=m(this._disconnected,this),this._schedule_message(e)},O.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var e in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",e,this._sentMessages[e]);for(var e in this._receivedMessages)this._trace("_receivedMessages ",e,this._receivedMessages[e]);return this._traceBuffer}},O.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},O.prototype.stopTrace=function(){delete this._traceBuffer},O.prototype._doConnect=function(e){if(this.connectOptions.useSSL){var t=e.split(":");t[0]="wss",e=t.join(":")}this._wsuri=e,this.connected=!1,this.connectOptions.mqttVersion<4?this.socket=new WebSocket(e,["mqttv3.1"]):this.socket=new WebSocket(e,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=m(this._on_socket_open,this),this.socket.onmessage=m(this._on_socket_message,this),this.socket.onerror=m(this._on_socket_error,this),this.socket.onclose=m(this._on_socket_close,this),this.sendPinger=new T(this,this.connectOptions.keepAliveInterval),this.receivePinger=new T(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new k(this,this.connectOptions.timeout,this._disconnected,[M.CONNECT_TIMEOUT.code,b(M.CONNECT_TIMEOUT)])},O.prototype._schedule_message=function(e){this._msg_queue.unshift(e),this.connected&&this._process_queue()},O.prototype.store=function(e,t){var r={type:t.type,messageIdentifier:t.messageIdentifier,version:1};switch(t.type){case i:t.pubRecReceived&&(r.pubRecReceived=!0),r.payloadMessage={};for(var o="",s=t.payloadMessage.payloadBytes,a=0;a<s.length;a++)s[a]<=15?o=o+"0"+s[a].toString(16):o+=s[a].toString(16);r.payloadMessage.payloadHex=o,r.payloadMessage.qos=t.payloadMessage.qos,r.payloadMessage.destinationName=t.payloadMessage.destinationName,t.payloadMessage.duplicate&&(r.payloadMessage.duplicate=!0),t.payloadMessage.retained&&(r.payloadMessage.retained=!0),0===e.indexOf("Sent:")&&(void 0===t.sequence&&(t.sequence=++this._sequence),r.sequence=t.sequence);break;default:throw Error(b(M.INVALID_STORED_DATA,[e+this._localKey+t.messageIdentifier,r]))}n.setItem(e+this._localKey+t.messageIdentifier,JSON.stringify(r))},O.prototype.restore=function(e){var t=n.getItem(e),r=JSON.parse(t),o=new j(r.type,r);switch(r.type){case i:for(var s=r.payloadMessage.payloadHex,a=new ArrayBuffer(s.length/2),c=new Uint8Array(a),u=0;s.length>=2;){var l=parseInt(s.substring(0,2),16);s=s.substring(2,s.length),c[u++]=l}var d=new x(c);d.qos=r.payloadMessage.qos,d.destinationName=r.payloadMessage.destinationName,r.payloadMessage.duplicate&&(d.duplicate=!0),r.payloadMessage.retained&&(d.retained=!0),o.payloadMessage=d;break;default:throw Error(b(M.INVALID_STORED_DATA,[e,t]))}0===e.indexOf("Sent:"+this._localKey)?(o.payloadMessage.duplicate=!0,this._sentMessages[o.messageIdentifier]=o):0===e.indexOf("Received:"+this._localKey)&&(this._receivedMessages[o.messageIdentifier]=o)},O.prototype._process_queue=function(){for(var e=null;e=this._msg_queue.pop();)this._socket_send(e),this._notify_msg_sent[e]&&(this._notify_msg_sent[e](),delete this._notify_msg_sent[e])},O.prototype._requires_ack=function(e){var t=Object.keys(this._sentMessages).length;if(t>this.maxMessageIdentifier)throw Error("Too many messages:"+t);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;e.messageIdentifier=this._message_identifier,this._sentMessages[e.messageIdentifier]=e,e.type===i&&this.store("Sent:",e),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},O.prototype._on_socket_open=function(){var e=new j(r,this.connectOptions);e.clientId=this.clientId,this._socket_send(e)},O.prototype._on_socket_message=function(e){this._trace("Client._on_socket_message",e.data);for(var t=this._deframeMessages(e.data),n=0;n<t.length;n+=1)this._handleMessage(t[n])},O.prototype._deframeMessages=function(e){var t=new Uint8Array(e),n=[];if(this.receiveBuffer){var r=new Uint8Array(this.receiveBuffer.length+t.length);r.set(this.receiveBuffer),r.set(t,this.receiveBuffer.length),t=r,delete this.receiveBuffer}try{for(var o=0;o<t.length;){var i=S(t,o),s=i[0];if(o=i[1],null===s)break;n.push(s)}o<t.length&&(this.receiveBuffer=t.subarray(o))}catch(e){var a="undefined"==e.hasOwnProperty("stack")?e.stack.toString():"No Error Stack Available";return void this._disconnected(M.INTERNAL_ERROR.code,b(M.INTERNAL_ERROR,[e.message,a]))}return n},O.prototype._handleMessage=function(e){this._trace("Client._handleMessage",e);try{switch(e.type){case o:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var t in this._sentMessages){var r=this._sentMessages[t];n.removeItem("Sent:"+this._localKey+r.messageIdentifier)}for(var t in this._sentMessages={},this._receivedMessages){var l=this._receivedMessages[t];n.removeItem("Received:"+this._localKey+l.messageIdentifier)}this._receivedMessages={}}if(0!==e.returnCode){this._disconnected(M.CONNACK_RETURNCODE.code,b(M.CONNACK_RETURNCODE,[e.returnCode,w[e.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var f=[];for(var p in this._sentMessages)this._sentMessages.hasOwnProperty(p)&&f.push(this._sentMessages[p]);if(this._buffered_msg_queue.length>0)for(var y=null;y=this._buffered_msg_queue.pop();)f.push(y),this.onMessageDelivered&&(this._notify_msg_sent[y]=this.onMessageDelivered(y.payloadMessage));f=f.sort((function(e,t){return e.sequence-t.sequence}));for(var m=0,L=f.length;m<L;m++)if((r=f[m]).type==i&&r.pubRecReceived){var I=new j(c,{messageIdentifier:r.messageIdentifier});this._schedule_message(I)}else this._schedule_message(r);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var S=!1;this._reconnecting&&(S=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(S,this._wsuri),this._process_queue();break;case i:this._receivePublish(e);break;case s:(r=this._sentMessages[e.messageIdentifier])&&(delete this._sentMessages[e.messageIdentifier],n.removeItem("Sent:"+this._localKey+e.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(r.payloadMessage));break;case a:(r=this._sentMessages[e.messageIdentifier])&&(r.pubRecReceived=!0,I=new j(c,{messageIdentifier:e.messageIdentifier}),this.store("Sent:",r),this._schedule_message(I));break;case c:l=this._receivedMessages[e.messageIdentifier],n.removeItem("Received:"+this._localKey+e.messageIdentifier),l&&(this._receiveMessage(l),delete this._receivedMessages[e.messageIdentifier]);var N=new j(u,{messageIdentifier:e.messageIdentifier});this._schedule_message(N);break;case u:r=this._sentMessages[e.messageIdentifier],delete this._sentMessages[e.messageIdentifier],n.removeItem("Sent:"+this._localKey+e.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(r.payloadMessage);break;case d:(r=this._sentMessages[e.messageIdentifier])&&(r.timeOut&&r.timeOut.cancel(),128===e.returnCode[0]?r.onFailure&&r.onFailure(e.returnCode):r.onSuccess&&r.onSuccess(e.returnCode),delete this._sentMessages[e.messageIdentifier]);break;case h:(r=this._sentMessages[e.messageIdentifier])&&(r.timeOut&&r.timeOut.cancel(),r.callback&&r.callback(),delete this._sentMessages[e.messageIdentifier]);break;case v:this.sendPinger.reset();break;case g:this._disconnected(M.INVALID_MQTT_MESSAGE_TYPE.code,b(M.INVALID_MQTT_MESSAGE_TYPE,[e.type]));break;default:this._disconnected(M.INVALID_MQTT_MESSAGE_TYPE.code,b(M.INVALID_MQTT_MESSAGE_TYPE,[e.type]))}}catch(e){var C="undefined"==e.hasOwnProperty("stack")?e.stack.toString():"No Error Stack Available";return void this._disconnected(M.INTERNAL_ERROR.code,b(M.INTERNAL_ERROR,[e.message,C]))}},O.prototype._on_socket_error=function(e){this._reconnecting||this._disconnected(M.SOCKET_ERROR.code,b(M.SOCKET_ERROR,[e.data]))},O.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(M.SOCKET_CLOSE.code,b(M.SOCKET_CLOSE))},O.prototype._socket_send=function(e){if(1==e.type){var t=this._traceMask(e,"password");this._trace("Client._socket_send",t)}else this._trace("Client._socket_send",e);this.socket.send(e.encode()),this.sendPinger.reset()},O.prototype._receivePublish=function(e){switch(e.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(e);break;case 1:var t=new j(s,{messageIdentifier:e.messageIdentifier});this._schedule_message(t),this._receiveMessage(e);break;case 2:this._receivedMessages[e.messageIdentifier]=e,this.store("Received:",e);var n=new j(a,{messageIdentifier:e.messageIdentifier});this._schedule_message(n);break;default:throw Error("Invaild qos="+e.payloadMessage.qos)}},O.prototype._receiveMessage=function(e){this.onMessageArrived&&this.onMessageArrived(e.payloadMessage)},O.prototype._connected=function(e,t){this.onConnected&&this.onConnected(e,t)},O.prototype._reconnect=function(){this._trace("Client._reconnect"),this.connected||(this._reconnecting=!0,this.sendPinger.cancel(),this.receivePinger.cancel(),this._reconnectInterval<128&&(this._reconnectInterval=2*this._reconnectInterval),this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri))},O.prototype._disconnected=function(e,t){if(this._trace("Client._disconnected",e,t),void 0!==e&&this._reconnecting)this._reconnectTimeout=new k(this,this._reconnectInterval,this._reconnect);else if(this.sendPinger.cancel(),this.receivePinger.cancel(),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._msg_queue=[],this._buffered_msg_queue=[],this._notify_msg_sent={},this.socket&&(this.socket.onopen=null,this.socket.onmessage=null,this.socket.onerror=null,this.socket.onclose=null,1===this.socket.readyState&&this.socket.close(),delete this.socket),this.connectOptions.uris&&this.hostIndex<this.connectOptions.uris.length-1)this.hostIndex++,this._doConnect(this.connectOptions.uris[this.hostIndex]);else if(void 0===e&&(e=M.OK.code,t=b(M.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:e,errorMessage:t,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),e!==M.OK.code&&this.connectOptions.reconnect)return this._reconnectInterval=1,void this._reconnect()}else 4===this.connectOptions.mqttVersion&&!1===this.connectOptions.mqttVersionExplicit?(this._trace("Failed to connect V4, dropping back to V3"),this.connectOptions.mqttVersion=3,this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri)):this.connectOptions.onFailure&&this.connectOptions.onFailure({invocationContext:this.connectOptions.invocationContext,errorCode:e,errorMessage:t})},O.prototype._trace=function(){if(this.traceFunction){var e=Array.prototype.slice.call(arguments);for(var t in e)void 0!==e[t]&&e.splice(t,1,JSON.stringify(e[t]));var n=e.join("");this.traceFunction({severity:"Debug",message:n})}if(null!==this._traceBuffer){t=0;for(var r=arguments.length;t<r;t++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),0===t||void 0===arguments[t]?this._traceBuffer.push(arguments[t]):this._traceBuffer.push(" "+JSON.stringify(arguments[t]))}},O.prototype._traceMask=function(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=r==t?"******":e[r]);return n};var x=function(e){var t,n;if(!("string"==typeof e||e instanceof ArrayBuffer||ArrayBuffer.isView(e)&&!(e instanceof DataView)))throw b(M.INVALID_ARGUMENT,[e,"newPayload"]);t=e;var r=0,o=!1,i=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof t?t:E(t,0,t.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof t){var e=new ArrayBuffer(_(t)),n=new Uint8Array(e);return D(t,n,0),n}return t}},destinationName:{enumerable:!0,get:function(){return n},set:function(e){if("string"!=typeof e)throw new Error(b(M.INVALID_ARGUMENT,[e,"newDestinationName"]));n=e}},qos:{enumerable:!0,get:function(){return r},set:function(e){if(0!==e&&1!==e&&2!==e)throw new Error("Invalid argument:"+e);r=e}},retained:{enumerable:!0,get:function(){return o},set:function(e){if("boolean"!=typeof e)throw new Error(b(M.INVALID_ARGUMENT,[e,"newRetained"]));o=e}},topic:{enumerable:!0,get:function(){return n},set:function(e){n=e}},duplicate:{enumerable:!0,get:function(){return i},set:function(e){i=e}}})};return{Client:function(e,t,n,r){var o;if("string"!=typeof e)throw new Error(b(M.INVALID_TYPE,[typeof e,"host"]));if(2==arguments.length){r=t;var i=(o=e).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!i)throw new Error(b(M.INVALID_ARGUMENT,[e,"host"]));e=i[4]||i[2],t=parseInt(i[7]),n=i[8]}else{if(3==arguments.length&&(r=n,n="/mqtt"),"number"!=typeof t||t<0)throw new Error(b(M.INVALID_TYPE,[typeof t,"port"]));if("string"!=typeof n)throw new Error(b(M.INVALID_TYPE,[typeof n,"path"]));var s=-1!==e.indexOf(":")&&"["!==e.slice(0,1)&&"]"!==e.slice(-1);o="ws://"+(s?"["+e+"]":e)+":"+t+n}for(var a=0,c=0;c<r.length;c++){var u=r.charCodeAt(c);55296<=u&&u<=56319&&c++,a++}if("string"!=typeof r||a>65535)throw new Error(b(M.INVALID_ARGUMENT,[r,"clientId"]));var l=new O(o,e,t,n,r);Object.defineProperties(this,{host:{get:function(){return e},set:function(){throw new Error(b(M.UNSUPPORTED_OPERATION))}},port:{get:function(){return t},set:function(){throw new Error(b(M.UNSUPPORTED_OPERATION))}},path:{get:function(){return n},set:function(){throw new Error(b(M.UNSUPPORTED_OPERATION))}},uri:{get:function(){return o},set:function(){throw new Error(b(M.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return l.clientId},set:function(){throw new Error(b(M.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return l.onConnected},set:function(e){if("function"!=typeof e)throw new Error(b(M.INVALID_TYPE,[typeof e,"onConnected"]));l.onConnected=e}},disconnectedPublishing:{get:function(){return l.disconnectedPublishing},set:function(e){l.disconnectedPublishing=e}},disconnectedBufferSize:{get:function(){return l.disconnectedBufferSize},set:function(e){l.disconnectedBufferSize=e}},onConnectionLost:{get:function(){return l.onConnectionLost},set:function(e){if("function"!=typeof e)throw new Error(b(M.INVALID_TYPE,[typeof e,"onConnectionLost"]));l.onConnectionLost=e}},onMessageDelivered:{get:function(){return l.onMessageDelivered},set:function(e){if("function"!=typeof e)throw new Error(b(M.INVALID_TYPE,[typeof e,"onMessageDelivered"]));l.onMessageDelivered=e}},onMessageArrived:{get:function(){return l.onMessageArrived},set:function(e){if("function"!=typeof e)throw new Error(b(M.INVALID_TYPE,[typeof e,"onMessageArrived"]));l.onMessageArrived=e}},trace:{get:function(){return l.traceFunction},set:function(e){if("function"!=typeof e)throw new Error(b(M.INVALID_TYPE,[typeof e,"onTrace"]));l.traceFunction=e}}}),this.connect=function(e){if(y(e=e||{},{timeout:"number",userName:"string",password:"string",willMessage:"object",keepAliveInterval:"number",cleanSession:"boolean",useSSL:"boolean",invocationContext:"object",onSuccess:"function",onFailure:"function",hosts:"object",ports:"object",reconnect:"boolean",mqttVersion:"number",mqttVersionExplicit:"boolean",uris:"object"}),void 0===e.keepAliveInterval&&(e.keepAliveInterval=60),e.mqttVersion>4||e.mqttVersion<3)throw new Error(b(M.INVALID_ARGUMENT,[e.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===e.mqttVersion?(e.mqttVersionExplicit=!1,e.mqttVersion=4):e.mqttVersionExplicit=!0,void 0!==e.password&&void 0===e.userName)throw new Error(b(M.INVALID_ARGUMENT,[e.password,"connectOptions.password"]));if(e.willMessage){if(!(e.willMessage instanceof x))throw new Error(b(M.INVALID_TYPE,[e.willMessage,"connectOptions.willMessage"]));if(e.willMessage.stringPayload=null,void 0===e.willMessage.destinationName)throw new Error(b(M.INVALID_TYPE,[typeof e.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(void 0===e.cleanSession&&(e.cleanSession=!0),e.hosts){if(!(e.hosts instanceof Array))throw new Error(b(M.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));if(e.hosts.length<1)throw new Error(b(M.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));for(var t=!1,r=0;r<e.hosts.length;r++){if("string"!=typeof e.hosts[r])throw new Error(b(M.INVALID_TYPE,[typeof e.hosts[r],"connectOptions.hosts["+r+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(e.hosts[r])){if(0===r)t=!0;else if(!t)throw new Error(b(M.INVALID_ARGUMENT,[e.hosts[r],"connectOptions.hosts["+r+"]"]))}else if(t)throw new Error(b(M.INVALID_ARGUMENT,[e.hosts[r],"connectOptions.hosts["+r+"]"]))}if(t)e.uris=e.hosts;else{if(!e.ports)throw new Error(b(M.INVALID_ARGUMENT,[e.ports,"connectOptions.ports"]));if(!(e.ports instanceof Array))throw new Error(b(M.INVALID_ARGUMENT,[e.ports,"connectOptions.ports"]));if(e.hosts.length!==e.ports.length)throw new Error(b(M.INVALID_ARGUMENT,[e.ports,"connectOptions.ports"]));for(e.uris=[],r=0;r<e.hosts.length;r++){if("number"!=typeof e.ports[r]||e.ports[r]<0)throw new Error(b(M.INVALID_TYPE,[typeof e.ports[r],"connectOptions.ports["+r+"]"]));var i=e.hosts[r],s=e.ports[r],a=-1!==i.indexOf(":");o="ws://"+(a?"["+i+"]":i)+":"+s+n,e.uris.push(o)}}}l.connect(e)},this.subscribe=function(e,t){if("string"!=typeof e&&e.constructor!==Array)throw new Error("Invalid argument:"+e);if(y(t=t||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),t.timeout&&!t.onFailure)throw new Error("subscribeOptions.timeout specified with no onFailure callback.");if(void 0!==t.qos&&0!==t.qos&&1!==t.qos&&2!==t.qos)throw new Error(b(M.INVALID_ARGUMENT,[t.qos,"subscribeOptions.qos"]));l.subscribe(e,t)},this.unsubscribe=function(e,t){if("string"!=typeof e&&e.constructor!==Array)throw new Error("Invalid argument:"+e);if(y(t=t||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),t.timeout&&!t.onFailure)throw new Error("unsubscribeOptions.timeout specified with no onFailure callback.");l.unsubscribe(e,t)},this.send=function(e,t,n,r){var o;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(e instanceof x)&&"string"!=typeof e)throw new Error("Invalid argument:"+typeof e);if(void 0===(o=e).destinationName)throw new Error(b(M.INVALID_ARGUMENT,[o.destinationName,"Message.destinationName"]));l.send(o)}else(o=new x(t)).destinationName=e,arguments.length>=3&&(o.qos=n),arguments.length>=4&&(o.retained=r),l.send(o)},this.publish=function(e,t,n,r){var o;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(e instanceof x)&&"string"!=typeof e)throw new Error("Invalid argument:"+typeof e);if(void 0===(o=e).destinationName)throw new Error(b(M.INVALID_ARGUMENT,[o.destinationName,"Message.destinationName"]));l.send(o)}else(o=new x(t)).destinationName=e,arguments.length>=3&&(o.qos=n),arguments.length>=4&&(o.retained=r),l.send(o)},this.disconnect=function(){l.disconnect()},this.getTraceLog=function(){return l.getTraceLog()},this.startTrace=function(){l.startTrace()},this.stopTrace=function(){l.stopTrace()},this.isConnected=function(){return l.connected}},Message:x}}(void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},e.exports=n()}).call(this,n(50))},6:function(e,t,n){"use strict";n.d(t,"q",(function(){return pe})),n.d(t,"v",(function(){return ve})),n.d(t,"w",(function(){return ge})),n.d(t,"C",(function(){return ye})),n.d(t,"r",(function(){return me})),n.d(t,"d",(function(){return Me})),n.d(t,"i",(function(){return we})),n.d(t,"D",(function(){return be})),n.d(t,"b",(function(){return Le})),n.d(t,"z",(function(){return Ie})),n.d(t,"E",(function(){return je})),n.d(t,"l",(function(){return Se})),n.d(t,"g",(function(){return Ne})),n.d(t,"c",(function(){return Ce})),n.d(t,"A",(function(){return Ae})),n.d(t,"B",(function(){return _e})),n.d(t,"u",(function(){return De})),n.d(t,"k",(function(){return Ee})),n.d(t,"j",(function(){return Te})),n.d(t,"p",(function(){return ke})),n.d(t,"x",(function(){return Oe})),n.d(t,"y",(function(){return xe})),n.d(t,"f",(function(){return Ue})),n.d(t,"o",(function(){return Re})),n.d(t,"t",(function(){return Pe})),n.d(t,"a",(function(){return Ve})),n.d(t,"s",(function(){return ze})),n.d(t,"h",(function(){return Ye})),n.d(t,"n",(function(){return Fe})),n.d(t,"m",(function(){return We})),n.d(t,"e",(function(){return Qe}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;function s(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;function a(e,t){return new Promise((function(n){return setTimeout(n,e,t)}))}function c(e){return!!e&&"function"==typeof e.then}function u(e,t){try{var n=e();c(n)?n.then((function(e){return t(!0,e)}),(function(e){return t(!1,e)})):t(!0,n)}catch(e){t(!1,e)}}function l(e,t,n){return void 0===n&&(n=16),o(this,void 0,void 0,(function(){var r,o,s,c;return i(this,(function(i){switch(i.label){case 0:r=Array(e.length),o=Date.now(),s=0,i.label=1;case 1:return s<e.length?(r[s]=t(e[s],s),(c=Date.now())>=o+n?(o=c,[4,a(0)]):[3,3]):[3,4];case 2:i.sent(),i.label=3;case 3:return++s,[3,1];case 4:return[2,r]}}))}))}function d(e){e.then(void 0,(function(){}))}function f(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function h(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function p(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}function v(e,t){return 0===(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function g(e,t){return[e[0]^t[0],e[1]^t[1]]}function y(e){return e=g(e,[0,e[0]>>>1]),e=g(e=h(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=g(e=h(e,[3301882366,444984403]),[0,e[0]>>>1])}function m(e,t){t=t||0;var n,r=(e=e||"").length%16,o=e.length-r,i=[0,t],s=[0,t],a=[0,0],c=[0,0],u=[2277735313,289559509],l=[1291169091,658871167];for(n=0;n<o;n+=16)a=[255&e.charCodeAt(n+4)|(255&e.charCodeAt(n+5))<<8|(255&e.charCodeAt(n+6))<<16|(255&e.charCodeAt(n+7))<<24,255&e.charCodeAt(n)|(255&e.charCodeAt(n+1))<<8|(255&e.charCodeAt(n+2))<<16|(255&e.charCodeAt(n+3))<<24],c=[255&e.charCodeAt(n+12)|(255&e.charCodeAt(n+13))<<8|(255&e.charCodeAt(n+14))<<16|(255&e.charCodeAt(n+15))<<24,255&e.charCodeAt(n+8)|(255&e.charCodeAt(n+9))<<8|(255&e.charCodeAt(n+10))<<16|(255&e.charCodeAt(n+11))<<24],a=p(a=h(a,u),31),i=f(i=p(i=g(i,a=h(a,l)),27),s),i=f(h(i,[0,5]),[0,1390208809]),c=p(c=h(c,l),33),s=f(s=p(s=g(s,c=h(c,u)),31),i),s=f(h(s,[0,5]),[0,944331445]);switch(a=[0,0],c=[0,0],r){case 15:c=g(c,v([0,e.charCodeAt(n+14)],48));case 14:c=g(c,v([0,e.charCodeAt(n+13)],40));case 13:c=g(c,v([0,e.charCodeAt(n+12)],32));case 12:c=g(c,v([0,e.charCodeAt(n+11)],24));case 11:c=g(c,v([0,e.charCodeAt(n+10)],16));case 10:c=g(c,v([0,e.charCodeAt(n+9)],8));case 9:c=h(c=g(c,[0,e.charCodeAt(n+8)]),l),s=g(s,c=h(c=p(c,33),u));case 8:a=g(a,v([0,e.charCodeAt(n+7)],56));case 7:a=g(a,v([0,e.charCodeAt(n+6)],48));case 6:a=g(a,v([0,e.charCodeAt(n+5)],40));case 5:a=g(a,v([0,e.charCodeAt(n+4)],32));case 4:a=g(a,v([0,e.charCodeAt(n+3)],24));case 3:a=g(a,v([0,e.charCodeAt(n+2)],16));case 2:a=g(a,v([0,e.charCodeAt(n+1)],8));case 1:a=h(a=g(a,[0,e.charCodeAt(n)]),u),i=g(i,a=h(a=p(a,31),l))}return i=f(i=g(i,[0,e.length]),s=g(s,[0,e.length])),s=f(s,i),i=f(i=y(i),s=y(s)),s=f(s,i),("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function M(e){return parseInt(e)}function w(e){return parseFloat(e)}function b(e,t){return"number"==typeof e&&isNaN(e)?t:e}function L(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function I(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function j(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function S(e){return"function"!=typeof e}function N(e,t,n){var r=Object.keys(e).filter((function(e){return!function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}(n,e)})),s=l(r,(function(n){return function(e,t){var n=new Promise((function(n){var r=Date.now();u(e.bind(null,t),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=Date.now()-r;if(!e[0])return n((function(){return{error:j(e[1]),duration:o}}));var i=e[1];if(S(i))return n((function(){return{value:i,duration:o}}));n((function(){return new Promise((function(e){var t=Date.now();u(i,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=o+Date.now()-t;if(!n[0])return e({error:j(n[1]),duration:i});e({value:n[1],duration:i})}))}))}))}))}));return d(n),function(){return n.then((function(e){return e()}))}}(e[n],t)}));return d(s),function(){return o(this,void 0,void 0,(function(){var e,t,n,o;return i(this,(function(i){switch(i.label){case 0:return[4,s];case 1:return[4,l(i.sent(),(function(e){var t=e();return d(t),t}))];case 2:return e=i.sent(),[4,Promise.all(e)];case 3:for(t=i.sent(),n={},o=0;o<r.length;++o)n[r[o]]=t[o];return[2,n]}}))}))}}function C(){var e=window,t=navigator;return L(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function A(){var e=window,t=navigator;return L(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function _(){var e=window,t=navigator;return L(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function D(){var e=window;return L(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function E(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function T(){var e=A(),t=function(){var e,t,n=window;return L(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}();if(!e&&!t)return!1;var n=window;return L(["onorientationchange"in n,"orientation"in n,e&&!("SharedWorker"in n),t&&/android/i.test(navigator.appVersion)])>=2}function k(e){var t=new Error(e);return t.name=e,t}function O(e,t,n){var r,s,c;return void 0===n&&(n=50),o(this,void 0,void 0,(function(){var o,u;return i(this,(function(i){switch(i.label){case 0:o=document,i.label=1;case 1:return o.body?[3,3]:[4,a(n)];case 2:return i.sent(),[3,1];case 3:u=o.createElement("iframe"),i.label=4;case 4:return i.trys.push([4,,10,11]),[4,new Promise((function(e,n){var r=!1,i=function(){r=!0,e()};u.onload=i,u.onerror=function(e){r=!0,n(e)};var s=u.style;s.setProperty("display","block","important"),s.position="absolute",s.top="0",s.left="0",s.visibility="hidden",t&&"srcdoc"in u?u.srcdoc=t:u.src="about:blank",o.body.appendChild(u);var a=function(){var e,t;r||("complete"===(null===(t=null===(e=u.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)?i():setTimeout(a,10))};a()}))];case 5:i.sent(),i.label=6;case 6:return(null===(s=null===(r=u.contentWindow)||void 0===r?void 0:r.document)||void 0===s?void 0:s.body)?[3,8]:[4,a(n)];case 7:return i.sent(),[3,6];case 8:return[4,e(u,u.contentWindow)];case 9:return[2,i.sent()];case 10:return null===(c=u.parentNode)||void 0===c||c.removeChild(u),[7];case 11:return[2]}}))}))}function x(e){for(var t=function(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(e),i=o[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,c=function(e,t){s[e]=s[e]||[],s[e].push(t)};;){var u=a.exec(o[2]);if(!u)break;var l=u[0];switch(l[0]){case".":c("class",l.slice(1));break;case"#":c("id",l.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!d)throw new Error(r);c(d[1],null!==(n=null!==(t=d[4])&&void 0!==t?t:d[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[i,s]}(e),n=t[0],r=t[1],o=document.createElement(null!=n?n:"div"),i=0,s=Object.keys(r);i<s.length;i++){var a=s[i],c=r[a].join(" ");"style"===a?U(o.style,c):o.setAttribute(a,c)}return o}function U(e,t){for(var n=0,r=t.split(";");n<r.length;n++){var o=r[n],i=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);if(i){var s=i[1],a=i[2],c=i[4];e.setProperty(s,a,c||"")}}}var R=["monospace","sans-serif","serif"],P=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function V(e){return e.toDataURL()}var z,Y;function F(){var e=this;return function(){if(void 0===Y){var e=function(){var t=W();Q(t)?Y=setTimeout(e,2500):(z=t,Y=void 0)};e()}}(),function(){return o(e,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return Q(e=W())?z?[2,s([],z,!0)]:(n=document).fullscreenElement||n.msFullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement?[4,E()]:[3,2]:[3,2];case 1:t.sent(),e=W(),t.label=2;case 2:return Q(e)||(z=e),[2,e]}var n}))}))}}function W(){var e=screen;return[b(w(e.availTop),null),b(w(e.width)-w(e.availWidth)-b(w(e.availLeft),0),null),b(w(e.height)-w(e.availHeight)-b(w(e.availTop),0),null),b(w(e.availLeft),null)]}function Q(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function G(e){var t;return o(this,void 0,void 0,(function(){var n,r,o,s,c,u,l;return i(this,(function(i){switch(i.label){case 0:for(n=document,r=n.createElement("div"),o=new Array(e.length),s={},Z(r),l=0;l<e.length;++l)"DIALOG"===(c=x(e[l])).tagName&&c.show(),Z(u=n.createElement("div")),u.appendChild(c),r.appendChild(u),o[l]=c;i.label=1;case 1:return n.body?[3,3]:[4,a(50)];case 2:return i.sent(),[3,1];case 3:n.body.appendChild(r);try{for(l=0;l<e.length;++l)o[l].offsetParent||(s[e[l]]=!0)}finally{null===(t=r.parentNode)||void 0===t||t.removeChild(r)}return[2,s]}}))}))}function Z(e){e.style.setProperty("display","block","important")}function B(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function J(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function X(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function H(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function q(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var K=Math,$=function(){return 0};var ee={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var te={fonts:function(){return O((function(e,t){var n=t.document,r=n.body;r.style.fontSize="48px";var o=n.createElement("div"),i={},s={},a=function(e){var t=n.createElement("span"),r=t.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=e,t.textContent="mmMwWLliI0O&1",o.appendChild(t),t},c=R.map(a),u=function(){for(var e={},t=function(t){e[t]=R.map((function(e){return function(e,t){return a("'".concat(e,"',").concat(t))}(t,e)}))},n=0,r=P;n<r.length;n++){t(r[n])}return e}();r.appendChild(o);for(var l=0;l<R.length;l++)i[R[l]]=c[l].offsetWidth,s[R[l]]=c[l].offsetHeight;return P.filter((function(e){return t=u[e],R.some((function(e,n){return t[n].offsetWidth!==i[e]||t[n].offsetHeight!==s[e]}));var t}))}))},domBlockers:function(e){var t=(void 0===e?{}:e).debug;return o(this,void 0,void 0,(function(){var e,n,r,o,s;return i(this,(function(i){switch(i.label){case 0:return _()||T()?(a=atob,e={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',a("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",a("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",a("LnNwb25zb3JpdA=="),".ylamainos",a("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",a("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",a("LmhlYWRlci1ibG9ja2VkLWFk"),a("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",a("I2FkXzMwMFgyNTA="),a("I2Jhbm5lcmZsb2F0MjI="),a("I2NhbXBhaWduLWJhbm5lcg=="),a("I0FkLUNvbnRlbnQ=")],adGuardChinese:[a("LlppX2FkX2FfSA=="),a("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",a("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),a("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",a("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",a("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",a("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),a("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),a("LmFkZ29vZ2xl"),a("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[a("YW1wLWF1dG8tYWRz"),a("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",a("I2FkX2ludmlld19hcmVh")],adGuardRussian:[a("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),a("LnJlY2xhbWE="),'div[id^="smi2adblock"]',a("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[a("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),a("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",a("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),a("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),a("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",a("I3Jla2xhbWk="),a("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),a("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),a("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[a("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",a("LndpZGdldF9wb19hZHNfd2lkZ2V0"),a("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",a("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[a("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),a("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",a("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",a("I3Jla2xhbW5pLWJveA=="),a("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",a("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[a("I2FkdmVydGVudGll"),a("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",a("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",a("LnNwb25zb3JsaW5rZ3J1ZW4="),a("I3dlcmJ1bmdza3k="),a("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),a("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[a("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",a("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[a("LnJla2xhbW9zX3RhcnBhcw=="),a("LnJla2xhbW9zX251b3JvZG9z"),a("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),a("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),a("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[a("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[a("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),a("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",a("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[a("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),a("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),a("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",a("LmFkX19tYWlu"),a("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[a("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[a("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),a("I2xpdmVyZUFkV3JhcHBlcg=="),a("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),a("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[a("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",a("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),a("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),a("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[a("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),a("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),a("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",a("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),a("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),a("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),a("ZGl2I3NrYXBpZWNfYWQ=")],ro:[a("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),a("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[a("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),a("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),a("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",a("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),a("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",a("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},n=Object.keys(e),[4,G((s=[]).concat.apply(s,n.map((function(t){return e[t]}))))]):[2,void 0];case 1:return r=i.sent(),t&&function(e,t){for(var n="DOM blockers debug:\n```",r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];n+="\n".concat(i,":");for(var s=0,a=e[i];s<a.length;s++){var c=a[s];n+="\n ".concat(t[c]?"🚫":"➡️"," ").concat(c)}}console.log("".concat(n,"\n```"))}(e,r),(o=n.filter((function(t){var n=e[t];return L(n.map((function(e){return r[e]})))>.6*n.length}))).sort(),[2,o]}var a}))}))},fontPreferences:function(){return function(e,t){void 0===t&&(t=4e3);return O((function(n,r){var o=r.document,i=o.body,a=i.style;a.width="".concat(t,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",A()?i.style.zoom="".concat(1/r.devicePixelRatio):_()&&(i.style.zoom="reset");var c=o.createElement("div");return c.textContent=s([],Array(t/20<<0),!0).map((function(){return"word"})).join(" "),i.appendChild(c),e(o,i)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((function(e,t){for(var n={},r={},o=0,i=Object.keys(ee);o<i.length;o++){var s=i[o],a=ee[s],c=a[0],u=void 0===c?{}:c,l=a[1],d=void 0===l?"mmMwWLliI0fiflO&1":l,f=e.createElement("span");f.textContent=d,f.style.whiteSpace="nowrap";for(var h=0,p=Object.keys(u);h<p.length;h++){var v=p[h],g=u[v];void 0!==g&&(f.style[v]=g)}n[s]=f,t.appendChild(e.createElement("br")),t.appendChild(f)}for(var y=0,m=Object.keys(ee);y<m.length;y++){r[s=m[y]]=n[s].getBoundingClientRect().width}return r}))},audio:function(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(_()&&!D()&&!function(){var e=window;return L(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var n=new t(1,5e3,44100),r=n.createOscillator();r.type="triangle",r.frequency.value=1e4;var o=n.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,r.connect(o),o.connect(n.destination),r.start(0);var i=function(e){var t=function(){};return[new Promise((function(n,r){var o=!1,i=0,s=0;e.oncomplete=function(e){return n(e.renderedBuffer)};var a=function(){setTimeout((function(){return r(k("timeout"))}),Math.min(500,s+5e3-Date.now()))},u=function(){try{var t=e.startRendering();switch(c(t)&&d(t),e.state){case"running":s=Date.now(),o&&a();break;case"suspended":document.hidden||i++,o&&i>=3?r(k("suspended")):setTimeout(u,500)}}catch(e){r(e)}};u(),t=function(){o||(o=!0,s>0&&a())}})),t]}(n),s=i[0],a=i[1],u=s.then((function(e){return function(e){for(var t=0,n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}(e.getChannelData(0).subarray(4500))}),(function(e){if("timeout"===e.name||"suspended"===e.name)return-3;throw e}));return d(u),function(){return a(),u}},screenFrame:function(){var e=this,t=F();return function(){return o(e,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:return[4,t()];case 1:return e=r.sent(),[2,[(n=function(e){return null===e?null:I(e,10)})(e[0]),n(e[1]),n(e[2]),n(e[3])]]}}))}))}},osCpu:function(){return navigator.oscpu},languages:function(){var e,t=navigator,n=[],r=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==r&&n.push([r]),Array.isArray(t.languages))A()&&L([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||n.push(t.languages);else if("string"==typeof t.languages){var o=t.languages;o&&n.push(o.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return b(w(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return b(M(e),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return b(M(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var n=(new t).resolvedOptions().timeZone;if(n)return n}var r,o=(r=(new Date).getFullYear(),-Math.max(w(new Date(r,0,1).getTimezoneOffset()),w(new Date(r,6,1).getTimezoneOffset())));return"UTC".concat(o>=0?"+":"").concat(Math.abs(o))},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(C()||(e=window,t=navigator,L(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!C())))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&_()&&!D()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return L(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];if(r){for(var o=[],i=0;i<r.length;++i){var s=r[i];o.push({type:s.type,suffixes:s.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:o})}}return t}},canvas:function(){var e,t,n=!1,r=function(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),o=r[0],i=r[1];if(function(e,t){return!(!t||!e.toDataURL)}(o,i)){n=function(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(i),function(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var n="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}(o,i);var s=V(o);s!==V(o)?e=t="unstable":(t=s,function(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var o=r[n],i=o[0],s=o[1],a=o[2];t.fillStyle=i,t.beginPath(),t.arc(s,a,40,0,2*Math.PI,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd")}(o,i),e=V(o))}else e=t="";return{winding:n,geometry:e,text:t}},touchSupport:function(){var e,t=navigator,n=0;void 0!==t.maxTouchPoints?n=M(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(n=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:n,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<n.length;t++){var r=n[t],o=window[r];o&&"object"==typeof o&&e.push(r)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(e){return!1}},colorGamut:function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var n=t[e];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}},invertedColors:function(){return!!B("inverted")||!B("none")&&void 0},forcedColors:function(){return!!J("active")||!J("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function(){return X("no-preference")?0:X("high")||X("more")?1:X("low")||X("less")?-1:X("forced")?10:void 0},reducedMotion:function(){return!!H("reduce")||!H("no-preference")&&void 0},hdr:function(){return!!q("high")||!q("standard")&&void 0},math:function(){var e,t=K.acos||$,n=K.acosh||$,r=K.asin||$,o=K.asinh||$,i=K.atanh||$,s=K.atan||$,a=K.sin||$,c=K.sinh||$,u=K.cos||$,l=K.cosh||$,d=K.tan||$,f=K.tanh||$,h=K.exp||$,p=K.expm1||$,v=K.log1p||$;return{acos:t(.12312423423423424),acosh:n(1e308),acoshPf:(e=1e154,K.log(e+K.sqrt(e*e-1))),asin:r(.12312423423423424),asinh:o(1),asinhPf:function(e){return K.log(e+K.sqrt(e*e+1))}(1),atanh:i(.5),atanhPf:function(e){return K.log((1+e)/(1-e))/2}(.5),atan:s(.5),sin:a(-1e300),sinh:c(1),sinhPf:function(e){return K.exp(e)-1/K.exp(e)/2}(1),cos:u(10.000000000123),cosh:l(1),coshPf:function(e){return(K.exp(e)+1/K.exp(e))/2}(1),tan:d(-1e300),tanh:f(1),tanhPf:function(e){return(K.exp(2*e)-1)/(K.exp(2*e)+1)}(1),exp:h(1),expm1:p(1),expm1Pf:function(e){return K.exp(e)-1}(1),log1p:v(10),log1pPf:function(e){return K.log(1+e)}(10),powPI:function(e){return K.pow(K.PI,e)}(-100)}},videoCard:function(){var e,t=document.createElement("canvas"),n=null!==(e=t.getContext("webgl"))&&void 0!==e?e:t.getContext("experimental-webgl");if(n&&"getExtension"in n){var r=n.getExtension("WEBGL_debug_renderer_info");if(r)return{vendor:(n.getParameter(r.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(n.getParameter(r.UNMASKED_RENDERER_WEBGL)||"").toString()}}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}};function ne(e){var t=function(e){if(T())return.4;if(_())return D()?.5:.3;var t=e.platform.value||"";if(/^Win/.test(t))return.6;if(/^Mac/.test(t))return.5;return.7}(e),n=function(e){return I(.99+.01*e,1e-4)}(t);return{score:t,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(n))}}function re(e){return JSON.stringify(e,(function(e,t){return t instanceof Error?r({name:(n=t).name,message:n.message,stack:null===(o=n.stack)||void 0===o?void 0:o.split("\n")},n):t;var n,o}),2)}function oe(e){return m(function(e){for(var t="",n=0,r=Object.keys(e).sort();n<r.length;n++){var o=r[n],i=e[o],s=i.error?"error":JSON.stringify(i.value);t+="".concat(t?"|":"").concat(o.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return t}(e))}function ie(e){return void 0===e&&(e=50),function(e,t){void 0===t&&(t=1/0);var n=window.requestIdleCallback;return n?new Promise((function(e){return n.call(window,(function(){return e()}),{timeout:t})})):a(Math.min(e,t))}(e,2*e)}function se(e,t){var n=Date.now();return{get:function(r){return o(this,void 0,void 0,(function(){var o,s,a;return i(this,(function(i){switch(i.label){case 0:return o=Date.now(),[4,e()];case 1:return s=i.sent(),a=function(e){var t;return{get visitorId(){return void 0===t&&(t=oe(this.components)),t},set visitorId(e){t=e},confidence:ne(e),components:e,version:"3.4.2"}}(s),(t||(null==r?void 0:r.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(a.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(o-n,"\nvisitorId: ").concat(a.visitorId,"\ncomponents: ").concat(re(s),"\n```")),[2,a]}}))}))}}}var ae={load:function(e){var t=void 0===e?{}:e,n=t.delayFallback,r=t.debug,s=t.monitoring,a=void 0===s||s;return o(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return a&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat("3.4.2","/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),[4,ie(n)];case 1:return e.sent(),[2,se(N(te,{debug:r},[]),r)]}}))}))},hashComponents:oe,componentsToDebugString:re},ce=n(4),ue=n(14);function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */de=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var i=t&&t.prototype instanceof f?t:f,s=Object.create(i.prototype),a=new S(o||[]);return r(s,"_invoke",{value:b(e,n,a)}),s}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function f(){}function h(){}function p(){}var v={};c(v,i,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(N([])));y&&y!==t&&n.call(y,i)&&(v=y);var m=p.prototype=f.prototype=Object.create(v);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var o;r(this,"_invoke",{value:function(r,i){function s(){return new t((function(o,s){!function r(o,i,s,a){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==le(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,a)}),(function(e){r("throw",e,s,a)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,a)}))}a(c.arg)}(r,i,o,s)}))}return o=o?o.then(s,s):s()}})}function b(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=L(s,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function L(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,L(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=l(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function N(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=p,r(m,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,c(e,a,"GeneratorFunction")),e.prototype=Object.create(m),e},e.awrap=function(e){return{__await:e}},M(w.prototype),c(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var s=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},M(m),c(m,a,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=N,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function fe(e,t,n,r,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,o)}function he(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){fe(i,r,o,s,a,"next",e)}function a(e){fe(i,r,o,s,a,"throw",e)}s(void 0)}))}}var pe=function(){var e=he(de().mark((function e(){var t,n;return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ae.load();case 2:return t=e.sent,e.next=5,t.get();case 5:return n=e.sent,e.abrupt("return",n.visitorId);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ve=function(){var e=he(de().mark((function e(t){var n,r;return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,null===ce.a||void 0===ce.a||null===(n=ce.a.Conversation)||void 0===n?void 0:n.getConversations({ids:t});case 3:return r=e.sent,e.abrupt("return",r.conversations[0]);case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0,"error");case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),ge=function(){var e=he(de().mark((function e(t){var n;return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ce.a.Conversation.getConversations(t&&{searchTag:t});case 3:return n=e.sent,e.abrupt("return",n);case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0,"error");case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),ye=function(){var e=he(de().mark((function e(t){var n,r;return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===ce.a||void 0===ce.a||null===(n=ce.a.user)||void 0===n?void 0:n.getPresignedurlUpdate({mediaExtension:t});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=he(de().mark((function e(t,n,r){var o;return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t,{method:"PUT",body:n,headers:{"Content-Type":r}});case 2:return o=e.sent,e.abrupt("return",o);case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),Me=function(){var e=he(de().mark((function e(t){var n;return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce.a.Conversation.deleteConversationLocal({conversationId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),we=function(){var e=he(de().mark((function e(t){var n;return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce.a.Conversation.deleteConversationClear({conversationId:t});case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),be="https://chat-storage.isometrik.io/60b1ef70ffcf750001d0440d/fc4bfc08-3243-420f-884d-1ce37d3f453b/Users/643f9aec09b87e00014625d2_1682328163954.png",Le=function(e){return["image/png","image/jpg","image/jpeg","image/webp"].includes(null==e?void 0:e.type)?(null==e?void 0:e.size)>ue.h?{valid:!1,error:"File size should be less than ".concat(ue.h/1024/1024,"MB")}:{valid:!0}:{valid:!1,error:"Invalid file type"}},Ie=function(e){var t="mp4"===e.type.split("/")[1]?ue.i:ue.h;return["image/png","image/jpg","image/jpeg","video/mp4","image/gif","image/webp","video/mov","video/wmv","video/flv","video/avi"].includes(e.type)?e.size>t?{valid:!1,error:"File size should be less than ".concat(t/1024/1024,"MB")}:{valid:!0}:{valid:!1,error:"Invalid file type"}},je={pdf:"pdf",msword:"msword",csv:"csv",plain:"plain","vnd.ms-excel":"vns.ms-excel"},Se=function(e){return["image/png","image/jpg","image/jpeg","video/mp4","image/gif","text/plain","application/vnd.ms-excel","text/csv","application/msword","application/pdf","image/webp","video/mov","video/wmv","video/flv","video/avi","audio/mp3","audio/wav"].includes(e.type)?e.size>ue.g?{valid:!1,error:"File size should be less than ".concat(ue.g/1024/1024,"MB")}:{valid:!0}:{valid:!1,error:"Invalid file type"}},Ne=function(e,t){var n;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(r,o)}),t)}},Ce=function(e){return e.charAt(0)===e.charAt(0).toUpperCase()},Ae=function(){var e=he(de().mark((function e(t){var n,r;return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={opponentId:t},e.next=4,ce.a.user.postUserBlock(n);case 4:return r=e.sent,e.abrupt("return",r);case 8:e.prev=8,e.t0=e.catch(0),console.error("error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),_e=function(){var e=he(de().mark((function e(t){var n,r;return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={opponentId:t},e.next=4,ce.a.user.postUserUnblock(n);case 4:return r=e.sent,e.abrupt("return",r);case 8:e.prev=8,e.t0=e.catch(0),console.log("error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),De=function(e){return"".concat(e.getHours()%12||12,":").concat(e.getMinutes().toString().padStart(2,"0")," ").concat(e.getHours()<12?"AM":"PM")},Ee=function(){var e=he(de().mark((function e(t,n){var r,o,i,s;return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={conversationId:t,messageIds:n},e.next=4,ce.a.message.deleteMessageSelf(r);case 4:return o=e.sent,e.abrupt("return",o);case 8:e.prev=8,e.t0=e.catch(0),s=JSON.parse(JSON.stringify({error:e.t0})),console.error("error",null==s||null===(i=s.error)||void 0===i?void 0:i.errorMsg);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t,n){return e.apply(this,arguments)}}(),Te=function(){var e=he(de().mark((function e(t,n){var r,o;return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={conversationId:t,messageIds:n},e.next=4,ce.a.message.deleteMessagesEveryone(r);case 4:return o=e.sent,e.abrupt("return",o);case 8:e.prev=8,e.t0=e.catch(0),console.log("error",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t,n){return e.apply(this,arguments)}}(),ke=function(){var e=he(de().mark((function e(t){var n;return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ce.a.message.postMessagesPresignedurls(t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Oe=function(e){return["jpg","jpeg","png","gif","webp"].includes(e.toLowerCase())},xe=function(e){return["mp4","mov","wmv","flv","avi"].includes(e.toLowerCase())};function Ue(e,t){for(var n=e.split(","),r=n[0].match(/:(.*?);/)[1],o=atob(n[1]),i=o.length,s=new Uint8Array(i);i--;)s[i]=o.charCodeAt(i);return new File([s],t,{type:r})}var Re=function(e){var t=new Date(e),n=new Date,r=new Date(n);return r.setDate(r.getDate()-1),t.toDateString()===n.toDateString()?t.toLocaleTimeString([],{hour:"numeric",minute:"2-digit",hour12:!0}).toUpperCase():t.toDateString()===r.toDateString()?"Yesterday":t.getDate().toString().padStart(2,"0")+"/"+(t.getMonth()+1).toString().padStart(2,"0")+"/"+t.getFullYear().toString()};function Pe(e){var t=new Date(e).getMonth(),n=new Date(e).getFullYear(),r=((new Date).getDate(),(new Date).getMonth());return n===(new Date).getFullYear()&&t===r?"THIS MONTH":new Date(e).toLocaleString("default",{month:"long"}).toUpperCase()}var Ve=[{id:0,title:"Camera",imageUrl:"data:image/svg+xml;base64,PHN2ZyBpZD0iR3JvdXBfMTM1Njc5IiBkYXRhLW5hbWU9Ikdyb3VwIDEzNTY3OSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTguNzE1IiBoZWlnaHQ9IjE1LjIyOSIgdmlld0JveD0iMCAwIDE4LjcxNSAxNS4yMjkiPgogIDxwYXRoIGlkPSJQYXRoXzcwOTczIiBkYXRhLW5hbWU9IlBhdGggNzA5NzMiIGQ9Ik0tMjAwLjY4NCwzMTkuMTU5di05LjI0NGMuMDYzLS4wMjIuMDQxLS4wODMuMDUyLS4xMjVhMi4wNTYsMi4wNTYsMCwwLDEsMi4wNjMtMS42cTEuMTY5LS4wMDgsMi4zMzgsMGMuMTMsMCwuMTYxLS4wMzcuMTYxLS4xNjNhMy41LDMuNSwwLDAsMSwuMDUxLS45NjMsMS44LDEuOCwwLDAsMSwxLjg0NS0xLjRxMi4xLDAsNC4yLDBjLjU3MiwwLDEuMTQ1LS4wMDksMS43MTYuMDEyYTEuOCwxLjgsMCwwLDEsMS41NzEsMS4yMjUsMy4zNzQsMy4zNzQsMCwwLDEsLjEsMS4xMmMwLC4xMzUuMDMxLjE3My4xNy4xNzIuODM0LS4wMDUsMS42NjgtLjAxNCwyLjUuMDA3YTIuMDM0LDIuMDM0LDAsMCwxLDEuOTA3LDEuNzA5LDkuMjM5LDkuMjM5LDAsMCwxLC4wMzIsMS4zODVjMCwyLjQ3OCwwLDQuOTU1LDAsNy40MzNhMi4xLDIuMSwwLDAsMS0uMi45NzMsMi4wNTEsMi4wNTEsMCwwLDEtMS45NzIsMS4xOTJxLTcuMTg2LDAtMTQuMzczLDBjLS4wNjcsMC0uMTMzLDAtLjItLjAwNmEyLjA1OCwyLjA1OCwwLDAsMS0xLjg3MS0xLjQ0MkMtMjAwLjYyLDMxOS4zNDgtMjAwLjYxMSwzMTkuMjM5LTIwMC42ODQsMzE5LjE1OVptOS4zNS0uMDUxYTQuNTg1LDQuNTg1LDAsMCwwLDQuNTctNC41NTYsNC41NzgsNC41NzgsMCwwLDAtNC41NjMtNC41OCw0LjU4Miw0LjU4MiwwLDAsMC00LjU3Miw0LjU1M0E0LjU4Nyw0LjU4NywwLDAsMC0xOTEuMzM0LDMxOS4xMDhaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMDAuNjg0IC0zMDUuNjYxKSIgZmlsbD0iIzFkMWMyMSIvPgogIDxwYXRoIGlkPSJQYXRoXzcwOTc0IiBkYXRhLW5hbWU9IlBhdGggNzA5NzQiIGQ9Ik0tMTg0Ljg3LDMxNy43MjVhMy4wMjMsMy4wMjMsMCwwLDEtMy4wMjIsMy4wMTMsMy4wMjIsMy4wMjIsMCwwLDEtMy4wMTEtMy4wMDYsMy4wMjcsMy4wMjcsMCwwLDEsMy4wMTMtMy4wMjRBMy4wMjcsMy4wMjcsMCwwLDEtMTg0Ljg3LDMxNy43MjVaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOTcuMjQgLTMwOC44NDcpIiBmaWxsPSIjMWQxYzIxIi8+Cjwvc3ZnPgo="},{id:1,title:"Document",imageUrl:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0xOC41IDJoLTEzQzMuNiAyIDIgMy42IDIgNS41djEzQzIgMjAuNCAzLjYgMjIgNS41IDIySDE2bDYtNlY1LjVDMjIgMy42IDIwLjQgMiAxOC41IDJtMS42IDEzaC0xLjVjLTEuOSAwLTMuNSAxLjYtMy41IDMuNVYyMEg1LjhjLTEgMC0xLjgtLjgtMS44LTEuOFY1LjhDNCA0LjggNC44IDQgNS44IDRoMTIuNWMxIDAgMS44LjggMS44IDEuOFYxNU03IDdoMTB2Mkg3VjdtMCA0aDEwdjJIN3YtMm0wIDRoNnYySDd2LTJaIi8+PC9zdmc+"},{id:2,title:"Photos & Videos",imageUrl:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDI0IDI0Ij48ZyBmaWxsPSJjdXJyZW50Q29sb3IiPjxwYXRoIGQ9Ik0xOCA4YTIgMiAwIDEgMS00IDBhMiAyIDAgMCAxIDQgMFoiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS45NDMgMS4yNWguMTE0YzIuMzA5IDAgNC4xMTggMCA1LjUzLjE5YzEuNDQ0LjE5NCAyLjU4NC42IDMuNDc5IDEuNDk0Yy44OTUuODk1IDEuMyAyLjAzNSAxLjQ5NCAzLjQ4Yy4xOSAxLjQxMS4xOSAzLjIyLjE5IDUuNTI5di4wODhjMCAxLjkwOSAwIDMuNDcxLS4xMDQgNC43NDNjLS4xMDQgMS4yOC0uMzE3IDIuMzQ3LS43OTUgMy4yMzVjLS4yMS4zOTEtLjQ3Ljc0Mi0uNzg1IDEuMDU3Yy0uODk1Ljg5NS0yLjAzNSAxLjMtMy40OCAxLjQ5NGMtMS40MTEuMTktMy4yMi4xOS01LjUyOS4xOWgtLjExNGMtMi4zMDkgMC00LjExOCAwLTUuNTMtLjE5Yy0xLjQ0NC0uMTk0LTIuNTg0LS42LTMuNDc5LTEuNDk0Yy0uNzkzLS43OTMtMS4yMDMtMS43OC0xLjQyLTMuMDA2Yy0uMjE1LTEuMjAzLS4yNTQtMi43LS4yNjItNC41NThjLS4wMDItLjQ3My0uMDAyLS45NzMtLjAwMi0xLjUwMXYtLjA1OGMwLTIuMzA5IDAtNC4xMTguMTktNS41M2MuMTk0LTEuNDQ0LjYtMi41ODQgMS40OTQtMy40NzljLjg5NS0uODk1IDIuMDM1LTEuMyAzLjQ4LTEuNDk0YzEuNDExLS4xOSAzLjIyLS4xOSA1LjUyOS0uMTlabS01LjMzIDEuNjc2Yy0xLjI3OC4xNzItMi4wNDkuNS0yLjYxOCAxLjA2OWMtLjU3LjU3LS44OTcgMS4zNC0xLjA2OSAyLjYxOWMtLjE3NCAxLjMtLjE3NiAzLjAwOC0uMTc2IDUuMzg2di44NDRsMS4wMDEtLjg3N2EyLjMgMi4zIDAgMCAxIDMuMTQxLjEwNWw0LjI5IDQuMjlhMiAyIDAgMCAwIDIuNTY0LjIyMmwuMjk4LS4yMWEzIDMgMCAwIDEgMy43MzIuMjI1bDIuODMgMi41NDdjLjI4Ni0uNTk4LjQ1NS0xLjM4NC41NDUtMi40OTNjLjA5OC0xLjIwNS4wOTktMi43MDcuMDk5LTQuNjUzYzAtMi4zNzgtLjAwMi00LjA4Ni0uMTc2LTUuMzg2Yy0uMTcyLTEuMjc5LS41LTIuMDUtMS4wNjktMi42MmMtLjU3LS41NjktMS4zNC0uODk2LTIuNjE5LTEuMDY4Yy0xLjMtLjE3NC0zLjAwOC0uMTc2LTUuMzg2LS4xNzZzLTQuMDg2LjAwMi01LjM4Ni4xNzZaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiLz48L2c+PC9zdmc+"}],ze=function(e){var t=new Date,n=new Date(e),r=[n.getDate(),n.getMonth(),n.getFullYear()],o=r[0],i=r[1],s=r[2];return t.getDate()===o&&t.getMonth()===i&&t.getFullYear()===s?"Today":t.getDate()-1===o&&t.getMonth()===i&&t.getFullYear()===s?"Yesterday":"".concat(String(o).padStart("2",0),"/").concat(String(i).padStart("2",0),"/").concat(s)},Ye=function(e){try{return atob(e)}catch(t){return e}},Fe=function(e){return e<1024?e+" b":e<1048576?(e/1024).toFixed(2)+" KB":(e/1048576).toFixed(2)+" MB"},We=function(e){try{return btoa(e)}catch(t){return e}},Qe=function(e){try{var t=Math.floor(e/60),n=e%60;return t<10&&(t="0".concat(t)),n<10&&(n="0".concat(n)),"".concat(t,":").concat(n)}catch(e){}}}});