PageSourceSearch

https://easywebcamsex.com/build/mobile/550.16817f7b.js

js easywebcamsex.com collected 2026-09-25 20:39:49 UTC 872,113 bytes, 2 lines download raw bytes

1/*! For license information please see 550.16817f7b.js.LICENSE.txt */
2(self.webpackChunkxcams=self.webpackChunkxcams||[]).push([[550],{18638(e,t,n){var i=n(85350),r=n(34160);void 0===r.$&&(r.$=i),void 0===r.jQuery&&(r.jQuery=i),e.exports=i},33129(e,t,n){var i=n(37332),r=n(34160);void 0===r._&&(r._=i),e.exports=i},95189(e,t,n){var i=n(72478),r=n(34160);void 0===r.Modal&&(r.Modal=i),e.exports=i},53883(e,t,n){"use strict";n(74423),n(27495),n(25440),n(42762),n(25631),n(97029),n(34995);!function(e,t){var n;void 0===window.dnx&&(window.dnx={}),void 0===window.dnx.chat&&(window.dnx.chat={}),n=window.dnx.chat;var i=null,r=0;n.SocketConnection=function(e){var n=[],o=null;this.destroy=function(){if(null!==o){for(var e=0;e<n.length;e++)o.removeListener(n[e].event,n[e].handler);n=[],o=null,0===--r&&(i.destroy(),i=null)}},this.on=function(e,t){null!==o&&(o.on(e,t),n.push({event:e,handler:t}))},this.emit=function(e,t){null!==o&&o.emit(e,t)},this.isConnected=function(){return null!==o&&o.connected},function(e){null===i&&(i=t(e)),o=i,r++}.call(this,e)},n.SocketConnection.testReconnect=function(){null!==i&&i.io.engine.close()}}("function"==typeof dnxChatGetJQueryFunc?dnxChatGetJQueryFunc():jQuery,window.io);n(3362),n(9391),n(62953),n(3296),n(27208),n(48408),n(61303);r.sessions={},r.isExtensionEnabled=function(){if(navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia)return!0;if(window.navigator.userAgent.match("Chrome")){var e=parseInt(window.navigator.userAgent.match(/Chrome\/(.*) /)[1],10),t=33;return window.navigator.userAgent.match("Linux")&&(t=35),e>=26&&e<=t||r.extension.isInstalled()}return!0};var i={extensionId:"hapfgfdkleiggjjpfpenajgdnfckjpaj",isInstalled:function(){return null!==document.querySelector("#janus-extension-installed")},getScreen:function(e){var t=window.setTimeout((function(){return error=new Error("NavigatorUserMediaError"),error.name='The required Chrome extension is not installed: click <a href="#">here</a> to install it. (NOTE: this will need you to refresh the page)',e(error)}),1e3);this.cache[t]=e,window.postMessage({type:"janusGetScreen",id:t},"*")},init:function(){var e={};this.cache=e,window.addEventListener("message",(function(t){if(t.origin==window.location.origin)if("janusGotScreen"==t.data.type&&e[t.data.id]){var n=e[t.data.id];if(delete e[t.data.id],""===t.data.sourceId){var i=new Error("NavigatorUserMediaError");i.name="You cancelled the request for permission, giving up...",n(i)}else n(null,t.data.sourceId)}else"janusGetScreenPending"==t.data.type&&(console.log("clearing ",t.data.id),window.clearTimeout(t.data.id))}))}};function r(e){if(void 0===r.initDone)return e.error("Library not initialized"),{};if(!r.isWebrtcSupported())return e.error("WebRTC not supported by this browser"),{};if(r.log("Library initialized: "+r.initDone),(e=e||{}).success="function"==typeof e.success?e.success:r.noop,e.error="function"==typeof e.error?e.error:r.noop,e.destroyed="function"==typeof e.destroyed?e.destroyed:r.noop,null===e.server||void 0===e.server)return e.error("Invalid server url"),{};var t=!1,n=null,i={},o=null,a=null,s=0,c=e.server;r.isArray(c)?(r.log("Multiple servers provided ("+c.length+"), will use the first that works"),c=null,a=e.server,r.debug(a)):0===c.indexOf("ws")?(t=!0,r.log("Using WebSockets to contact Janus: "+c)):(t=!1,r.log("Using REST API to contact Janus: "+c));var l=e.iceServers;null==l&&(l=[{urls:"stun:stun.l.google.com:19302"}]);var u=e.iceTransportPolicy,d=e.bundlePolicy,h=e.ipv6;null==h&&(h=!1);var p=!1;void 0!==e.withCredentials&&null!==e.withCredentials&&(p=!0===e.withCredentials);var f=10;void 0!==e.max_poll_events&&null!==e.max_poll_events&&(f=e.max_poll_events),f<1&&(f=1);var m=null;void 0!==e.token&&null!==e.token&&(m=e.token);var g=null;void 0!==e.apisecret&&null!==e.apisecret&&(g=e.apisecret),this.destroyOnUnload=!0,void 0!==e.destroyOnUnload&&null!==e.destroyOnUnload&&(this.destroyOnUnload=!0===e.destroyOnUnload);var v=25e3;void 0!==e.keepAlivePeriod&&null!==e.keepAlivePeriod&&(v=e.keepAlivePeriod),isNaN(v)&&(v=25e3);var y=6e4;void 0!==e.longPollTimeout&&null!==e.longPollTimeout&&(y=e.longPollTimeout),isNaN(y)&&(y=6e4);var w=!1,b=null,C={},T=this,S=0,E={};function x(){if(null!=b)if(r.debug("Long poll..."),w){var t=c+"/"+b+"?rid="+(new Date).getTime();null!=f&&(t=t+"&maxev="+f),null!=m&&(t=t+"&token="+encodeURIComponent(m)),null!=g&&(t=t+"&apisecret="+encodeURIComponent(g)),r.httpAPICall(t,{verb:"GET",withCredentials:p,success:k,timeout:y,error:function(t,n){if(r.error(t+":",n),++S>3)return w=!1,void e.error("Lost connection to the server (is it down?) "+t);x()}})}else r.warn("Is the server down? (connected=false)")}function k(e,i){if(S=0,t||null==b||!0===i||x(),t||!r.isArray(e))if("keepalive"!==e.janus)if("ack"!==e.janus)if("success"!==e.janus)if("trickle"===e.janus){if(null==(l=e.sender))return void r.warn("Missing sender...");if(null==(d=C[l]))return void r.debug("This handle is not attached to this session");var o=e.candidate;r.debug("Got a trickled candidate on session "+b),r.debug(o);var a=d.webrtcStuff;a.pc&&a.remoteSdp?(r.debug("Adding remote candidate:",o),o&&!0!==o.completed?a.pc.addIceCandidate(o):a.pc.addIceCandidate()):(r.debug("We didn't do setRemoteDescription (trickle got here before the offer?), caching c
2andidate"),a.candidates||(a.candidates=[]),a.candidates.push(o),r.debug(a.candidates))}else{if("webrtcup"===e.janus)return r.debug("Got a webrtcup event on session "+b),r.debug(e),null==(l=e.sender)?void r.warn("Missing sender..."):null==(d=C[l])?void r.debug("This handle is not attached to this session"):void d.webrtcState(!0);if("hangup"===e.janus){if(r.debug("Got a hangup event on session "+b),r.debug(e),null==(l=e.sender))return void r.warn("Missing sender...");if(null==(d=C[l]))return void r.debug("This handle is not attached to this session");d.webrtcState(!1,e.reason),d.hangup()}else if("detached"===e.janus){if(r.debug("Got a detached event on session "+b),r.debug(e),null==(l=e.sender))return void r.warn("Missing sender...");if(null==(d=C[l]))return;d.detached=!0,d.ondetached(),d.detach()}else if("media"===e.janus){if(r.debug("Got a media event on session "+b),r.debug(e),null==(l=e.sender))return void r.warn("Missing sender...");if(null==(d=C[l]))return void r.debug("This handle is not attached to this session");
2d.mediaState(e.type,e.receiving)}else if("slowlink"===e.janus){if(r.debug("Got a slowlink event on session "+b),r.debug(e),null==(l=e.sender))return void r.warn("Missing sender...");if(null==(d=C[l]))return void r.debug("This handle is not attached to this session");d.slowLink(e.uplink,e.nacks)}else{if("error"===e.janus){var s,c;if(r.error("Ooops: "+e.error.code+" "+e.error.reason),r.debug(e),null!=(s=e.transaction))null!=(c=E[s])&&c(e),delete E[s];return}if("event"===e.janus){var l;if(r.debug("Got a plugin event on session "+b),r.debug(e),null==(l=e.sender))return void r.warn("Missing sender...");var u=e.plugindata;if(null==u)return void r.warn("Missing plugindata...");r.debug("  -- Event is coming from "+l+" ("+u.plugin+")");var d,h=u.data;if(r.debug(h),null==(d=C[l]))return void r.warn("This handle is not attached to this session");var p=e.jsep;null!=p&&(r.debug("Handling SDP as well..."),r.debug(p));var f=d.onmessage;null!=f?(r.debug("Notifying application..."),f(h,p)):r.debug("No provided notification callback")}else{if("timeout"===e.janus)return r.error("Timeout on session "+b),r.debug(e),void(t&&n.close(3504,"Gateway timeout"));r.warn("Unknown message/event  '"+e.janus+"' on session "+b),r.debug(e)}}}else r.debug("Got a success on session "+b),r.debug(e),null!=(s=e.transaction)&&(null!=(c=E[s])&&c(e),delete E[s]);else r.debug("Got an ack on session "+b),r.debug(e),null!=(s=e.transaction)&&(null!=(c=E[s])&&c(e),delete E[s]);else r.vdebug("Got a keepalive on session "+b);else for(var m=0;m<e.length;m++)k(e[m],!0)}function _(){if(null!==c&&t&&w){o=setTimeout(_,v);var e={janus:"keepalive",session_id:b,transaction:r.randomString(12)};null!=m&&(e.token=m),null!=g&&(e.apisecret=g),n.send(JSON.stringify(e))}}function A(u){var d=r.randomString(12),h={janus:"create",transaction:d};if(u.reconnect&&(w=!1,h.janus="claim",h.session_id=b,n&&(n.onopen=null,n.onerror=null,n.onclose=null,o&&(clearTimeout(o),o=null))),null!=m&&(h.token=m),null!=g&&(h.apisecret=g),null===c&&r.isArray(a)&&(0===(c=a[s]).indexOf("ws")?(t=!0,r.log("Server #"+(s+1)+": trying WebSockets to contact Janus ("+c+")")):(t=!1,r.log("Server #"+(s+1)+": trying REST API to contact Janus ("+c+")"))),t)for(var f in n=r.newWebSocket(c,"janus-protocol"),i={error:function(){if(r.error("Error connecting to the Janus WebSockets server... "+c),r.isArray(a)&&!u.reconnect)return++s==a.length?void u.error("Error connecting to any of the provided Janus servers: Is the server down?"):(c=null,void setTimeout((function(){A(u)}),200));u.error("Error connecting to the Janus WebSockets server: Is the server down?")},open:function(){E[d]=function(e){if(r.debug(e),"success"!==e.janus)return r.error("Ooops: "+e.error.code+" "+e.error.reason),void u.error(e.error.reason);o=setTimeout(_,v),w=!0,b=e.session_id?e.session_id:e.data.id,null!=e.data.iceServers&&null!=e.data.iceServers&&(r.log("Received iceServers from remote"),l=e.data.iceServers),u.reconnect?r.log("Claimed session: "+b):r.log("Created session: "+b),r.sessions[b]=T,u.success()},n.send(JSON.stringify(h))},message:function(e){k(JSON.parse(e.data))},close:function(){null!==c&&w&&(w=!1,e.error("Lost connection to the server (is it down?)"))}})n.addEventListener(f,i[f]);else r.httpAPICall(c,{verb:"POST",withCredentials:p,body:h,success:function(e){if(r.debug(e),"success"!==e.janus)return r.error("Ooops: "+e.error.code+" "+e.error.reason),void u.error(e.error.reason);w=!0,b=e.session_id?e.session_id:e.data.id,null!=e.data.iceServers&&null!=e.data.iceServers&&(r.log("Received iceServers from remote"),l=e.data.iceServers),u.reconnect?r.log("Claimed session: "+b):r.log("Created session: "+b),r.sessions[b]=T,x(),u.success()},error:function(e,t){if(r.error(e+":",t),r.isArray(a)&&!u.reconnect)return++s==a.length?void u.error("Error connecting to any of the provided Janus servers: Is the server down?"):(c=null,void setTimeout((function(){A(u)}),200));""===t?u.error(e+": Is the server down?"):u.error(e+": "+t)}})}function M(e,i){if((i=i||{}).success="function"==typeof i.success?i.success:r.noop,i.error="function"==typeof i.error?i.error:r.noop,!w)return r.warn("Is the server down? (connected=false)"),void i.error("Is the server down? (connected=false)");var o=C[e];if(null==o||null===o.webrtcStuff||void 0===o.webrtcStuff)return r.warn("Invalid handle"),void i.error("Invalid handle");var a=i.message,s=i.jsep,l=r.randomString(12),u={janus:"message",body:a,transaction:l};if(null!==o.token&&void 0!==o.token&&(u.token=o.token),null!=g&&(u.apisecret=g),null!=s&&(u.jsep=s),r.debug("Sending message to plugin (handle="+e+"):"),r.debug(u),t)return u.session_id=b,u.handle_id=e,E[l]=function(e){if(r.debug("Message sent!"),r.debug(e),"success"===e.janus){var t=e.plugindata;if(null==t)return r.warn("Request succeeded, but missing plugindata..."),void i.success();r.log("Synchronous transaction successful ("+t.plugin+")");var n=t.data;return r.debug(n),void i.success(n)}"ack"===e.janus?i.success():void 0!==e.error&&null!==e.error?(r.error("Ooops: "+e.error.code+" "+e.error.reason),i.error(e.error.code+" "+e.error.reason)):(r.error("Unknown error"),i.error("Unknown error"))},void n.send(JSON.stringify(u));r.httpAPICall(c+"/"+b+"/"+e,{verb:"POST",withCredentials:p,body:u,success:function(e){if(r.debug("Message sent!"),r.debug(e),"success"===e.janus){var t=e.plugindata;if(null==t)return r.warn("Request succeeded, but missing plugindata..."),void i.success();r.log("Synchronous transaction successful ("+t.plugin+")");var n=t.data;return r.debug(n),void i.success(n)}"ack"===e.janus?i.success():void 0!==e.error&&null!==e.error?(r.error("Ooops: "+e.error.code+" "+e.error.reason),i.error(e.error.code+" "+e.error.reason)):(r.error("Unknown error"),i.error("Unknown error"))},error:function(e,t){r.error(e+":",t),i.error(e+": "+t)}})}
2function P(e,i){if(w){var o=C[e];if(null!=o&&null!==o.webrtcStuff&&void 0!==o.webrtcStuff){var a={janus:"trickle",candidate:i,transaction:r.randomString(12)};if(null!==o.token&&void 0!==o.token&&(a.token=o.token),null!=g&&(a.apisecret=g),r.vdebug("Sending trickle candidate (handle="+e+"):"),r.vdebug(a),t)return a.session_id=b,a.handle_id=e,void n.send(JSON.stringify(a));r.httpAPICall(c+"/"+b+"/"+e,{verb:"POST",withCredentials:p,body:a,success:function(e){r.vdebug("Candidate sent!"),r.vdebug(e),"ack"===e.janus||r.error("Ooops: "+e.error.code+" "+e.error.reason)},error:function(e,t){r.error(e+":",t)}})}else r.warn("Invalid handle")}else r.warn("Is the server down? (connected=false)")}function R(e,t,n,i){var o=C[e];if(null!=o&&null!==o.webrtcStuff&&void 0!==o.webrtcStuff){var a=o.webrtcStuff,s=function(e){r.log("Received state change on data channel:",e);var t=e.target.label,n=a.dataChannel[t]?a.dataChannel[t].readyState:"null";if(r.log("State change on <"+t+"> data channel: "+n),"open"===n){if(a.dataChannel[t].pending&&a.dataChannel[t].pending.length>0){for(var i in r.log("Sending pending messages on <' + label + '>:",a.dataChannel[t].pending.length),a.dataChannel[t].pending){var s=a.dataChannel[t].pending[i];r.log("Sending string on data channel <"+t+">: "+s),a.dataChannel[t].send(s)}a.dataChannel[t].pending=[]}o.ondataopen(t)}};a.dataChannel[t]=n||a.pc.createDataChannel(t,{ordered:!1}),a.dataChannel[t].onmessage=function(e){r.log("Received message on data channel:",e);var t=e.target.label;o.ondata(e.data,t)},a.dataChannel[t].onopen=s,a.dataChannel[t].onclose=s,a.dataChannel[t].onerror=function(e){r.error("Got error on data channel:",e)},a.dataChannel[t].pending=[],i&&a.dataChannel[t].pending.push(i)}else r.warn("Invalid handle")}function I(e,t){(t=t||{}).success="function"==typeof t.success?t.success:r.noop,t.error="function"==typeof t.error?t.error:r.noop;var n=C[e];if(null==n||null===n.webrtcStuff||void 0===n.webrtcStuff)return r.warn("Invalid handle"),void t.error("Invalid handle");var i=n.webrtcStuff,o=t.text;if(null==o)return r.warn("Invalid text"),void t.error("Invalid text");var a=t.label?t.label:r.dataChanDefaultLabel;return i.dataChannel[a]?"open"!==i.dataChannel[a].readyState?(i.dataChannel[a].pending.push(o),void t.success()):(r.log("Sending string on data channel <"+a+">: "+o),i.dataChannel[a].send(o),void t.success()):(R(e,a,!1,o),void t.success())}function O(e,t){(t=t||{}).success="function"==typeof t.success?t.success:r.noop,t.error="function"==typeof t.error?t.error:r.noop;var n=C[e];if(null==n||null===n.webrtcStuff||void 0===n.webrtcStuff)return r.warn("Invalid handle"),void t.error("Invalid handle");var i=n.webrtcStuff;if(null===i.dtmfSender||void 0===i.dtmfSender){if(void 0!==i.pc&&null!==i.pc){var o=i.pc.getSenders().find((function(e){return e.track&&"audio"===e.track.kind}));if(!o)return r.warn("Invalid DTMF configuration (no audio track)"),void t.error("Invalid DTMF configuration (no audio track)");i.dtmfSender=o.dtmf,i.dtmfSender&&(r.log("Created DTMF Sender"),i.dtmfSender.ontonechange=function(e){r.debug("Sent DTMF tone: "+e.tone)})}if(null===i.dtmfSender||void 0===i.dtmfSender)return r.warn("Invalid DTMF configuration"),void t.error("Invalid DTMF configuration")}var a=t.dtmf;if(null==a)return r.warn("Invalid DTMF parameters"),void t.error("Invalid DTMF parameters");var s=a.tones;if(null==s)return r.warn("Invalid DTMF string"),void t.error("Invalid DTMF string");var c=a.duration;null==c&&(c=500);var l=a.gap;null==l&&(l=50),r.debug("Sending DTMF string "+s+" (duration "+c+"ms, gap "+l+"ms)"),i.dtmfSender.insertDTMF(s,c,l),t.success()}function N(e,i){(i=i||{}).success="function"==typeof i.success?i.success:r.noop,i.error="function"==typeof i.error?i.error:r.noop;var o=!0;void 0!==i.asyncRequest&&null!==i.asyncRequest&&(o=!0===i.asyncRequest);var a=!0;void 0!==i.noRequest&&null!==i.noRequest&&(a=!0===i.noRequest),r.log("Destroying handle "+e+" (async="+o+")"),z(e);var s=C[e];if(null==s||s.detached)return delete C[e],void i.success();if(a)return delete C[e],void i.success();if(!w)return r.warn("Is the server down? (connected=false)"),void i.error("Is the server down? (connected=false)");var l={janus:"detach",transaction:r.randomString(12)};if(null!==s.token&&void 0!==s.token&&(l.token=s.token),null!=g&&(l.apisecret=g),t)return l.session_id=b,l.handle_id=e,n.send(JSON.stringify(l)),delete C[e],void i.success();r.httpAPICall(c+"/"+b+"/"+e,{verb:"POST",async:o,withCredentials:p,body:l,success:function(t){r.log("Destroyed handle:"),r.debug(t),"success"!==t.janus&&r.error("Ooops: "+t.error.code+" "+t.error.reason),delete C[e],i.success()},error:function(t,n){r.error(t+":",n),delete C[e],i.success()}})}function D(e,t,n,i,o){var a=C[e];if(null==a||null===a.webrtcStuff||void 0===a.webrtcStuff)return r.warn("Invalid handle"),void i.error("Invalid handle");var s=a.webrtcStuff;r.debug("streamsDone:",o),o&&(r.debug("  -- Audio tracks:",o.getAudioTracks()),r.debug("  -- Video tracks:",o.getVideoTracks()));var c=!1;if(s.myStream&&n.update&&!s.streamExternal){if((!n.update&&G(n)||n.update&&(n.addAudio||n.replaceAudio))&&o.getAudioTracks()&&o.getAudioTracks().length)if(s.myStream.addTrack(o.getAudioTracks()[0]),"firefox"===r.webRTCAdapter.browserDetails.browser&&r.webRTCAdapter.browserDetails.version>=59||"safari"===r.webRTCAdapter.browserDetails.browser&&window.RTCRtpSender.prototype.replaceTrack||"chrome"===r.webRTCAdapter.browserDetails.browser&&r.webRTCAdapter.browserDetails.version>=72){r.log((n.replaceAudio?"Replacing":"Adding")+" audio track:",o.getAudioTracks()[0]);var p=null;if((m=s.pc.getTransceivers())&&m.length>0)for(var f in m){if((v=m[f]).sender&&v.sender.track&&"audio"===v.sender.track.kind||v.receiver&&v.receiver.track&&"audio"===v.receiver.track.kind){p=v;break}}p&&p.sender?p.sender.replaceTrack(o.getAudioTracks()[0]):s.pc.addTrack(o.getAudioTracks()[0],o)}else r.log((n.replaceAudio?"Replacing":"Adding")+" audio track:",o.getAudioTracks()[0]),s.pc.addTrack(o.getAudioTracks()[0],o);if((!n.update&&W(n)||n.update&&(n.addVideo||n.replaceVideo))&&o.getVideoTracks()&&o.getVideoTracks().length)if(s.myStream.addTrack(o.getVideoTracks()[0]),"firefox"===r.webRTCAdapter.browserDetails.browser&&r.webRTCAdapter.browserDetails.version>=59||"safari"===r.webRTCAdapter.browserDetails.browser&&window.RTCRtpSender.prototype.replaceTrack||"chrome"===r.webRTCAdapter.browserDetails.browser&&r.webRTCAdapter.browserDetails.version>=72){r.log((n.replaceVideo?"Replacing":"Adding")+" video track:",o.getVideoTracks()[0]);var m,g=null;if((m=s.pc.getTransceivers())&&m.length>0)for(var f in m){var v;if((v=m[f]).sender&&v.sender.track&&"video"===v.sender.track.kind||v.receiver&&v.receiver.track&&"video"===v.receiver.track.kind){g=v;break}}g&&g.sender?g.sender.replaceTrack(o.getVideoTracks()[0]):s.pc.addTrack(o.getVideoTracks()[0],o)}else r.log((n.replaceVideo?"Replacing":"Adding")+" video track:",o.getVideoTracks()[0]),s.pc.addTrack(o.getVideoTracks()[0],o)}else s.myStream=o,c=!0;if(!s.pc){var y={iceServers:l,iceTransportPolicy:u,bundlePolicy:d};"chrome"===r.webRTCAdapter.browserDetails.browser&&(y.sdpSemantics=r.webRTCAdapter.browserDetails.version<72?"plan-b":"unified-plan");var w={optional:[{DtlsSrtpKeyAgreement:!0}]};
2if(!0===h&&w.optional.push({googIPv6:!0}),i.rtcConstraints&&"object"==typeof i.rtcConstraints)for(var f in r.debug("Adding custom PeerConnection constraints:",i.rtcConstraints),i.rtcConstraints)w.optional.push(i.rtcConstraints[f]);"edge"===r.webRTCAdapter.browserDetails.browser&&(y.bundlePolicy="max-bundle"),r.log("Creating PeerConnection"),r.debug(w),s.pc=new RTCPeerConnection(y,w),r.debug(s.pc),s.pc.getStats&&(s.volume={},s.bitrate.value="0 kbits/sec"),r.log("Preparing local SDP and gathering candidates (trickle="+s.trickle+")"),s.pc.oniceconnectionstatechange=function(e){s.pc&&a.iceState(s.pc.iceConnectionState)},s.pc.onicecandidate=function(t){if(null==t.candidate||"edge"===r.webRTCAdapter.browserDetails.browser&&t.candidate.candidate.indexOf("endOfCandidates")>0)r.log("End of candidates."),s.iceDone=!0,!0===s.trickle?P(e,{completed:!0}):function(e,t){t=t||{},t.success="function"==typeof t.success?t.success:r.noop,t.error="function"==typeof t.error?t.error:r.noop;var n=C[e];if(null==n||null===n.webrtcStuff||void 0===n.webrtcStuff)return void r.warn("Invalid handle, not sending anything");var i=n.webrtcStuff;if(r.log("Sending offer/answer SDP..."),null===i.mySdp||void 0===i.mySdp)return void r.warn("Local SDP instance is invalid, not sending anything...");i.mySdp={type:i.pc.localDescription.type,sdp:i.pc.localDescription.sdp},!1===i.trickle&&(i.mySdp.trickle=!1);r.debug(t),i.sdpSent=!0,t.success(i.mySdp)}(e,i);else{var n={candidate:t.candidate.candidate,sdpMid:t.candidate.sdpMid,sdpMLineIndex:t.candidate.sdpMLineIndex};!0===s.trickle&&P(e,n)}},s.pc.ontrack=function(e){r.log("Handling Remote Track"),r.debug(e),e.streams&&(s.remoteStream=e.streams[0],a.onremotestream(s.remoteStream),e.track&&!e.track.onended&&(r.log("Adding onended callback to track:",e.track),e.track.onended=function(e){r.log("Remote track removed:",e),s.remoteStream&&(s.remoteStream.removeTrack(e.target),a.onremotestream(s.remoteStream))}))}}if(c&&null!=o){r.log("Adding local stream");var b=!0===i.simulcast2;o.getTracks().forEach((function(e){r.log("Adding local track:",e),b?"audio"===e.kind?s.pc.addTrack(e,o):(r.log("Enabling rid-based simulcasting:",e),s.pc.addTransceiver(e,{direction:"sendrecv",streams:[o],sendEncodings:[{rid:"h",active:!0,maxBitrate:9e5},{rid:"m",active:!0,maxBitrate:3e5,scaleResolutionDownBy:2},{rid:"l",active:!0,maxBitrate:1e5,scaleResolutionDownBy:4}]})):s.pc.addTrack(e,o)}))}(function(e){if(r.debug("isDataEnabled:",e),"edge"==r.webRTCAdapter.browserDetails.browser)return r.warn("Edge doesn't support data channels yet"),!1;return null!=e&&!0===e.data})(n)&&!s.dataChannel[r.dataChanDefaultLabel]&&(r.log("Creating data channel"),R(e,r.dataChanDefaultLabel,!1),s.pc.ondatachannel=function(t){r.log("Data channel created by Janus:",t),R(e,t.channel.label,t.channel)}),s.myStream&&a.onlocalstream(s.myStream),null==t?function(e,t,n){n=n||{},n.success="function"==typeof n.success?n.success:r.noop,n.error="function"==typeof n.error?n.error:r.noop,n.customizeSdp="function"==typeof n.customizeSdp?n.customizeSdp:r.noop;var i=C[e];if(null==i||null===i.webrtcStuff||void 0===i.webrtcStuff)return r.warn("Invalid handle"),void n.error("Invalid handle");var o=i.webrtcStuff,a=!0===n.simulcast;a?r.log("Creating offer (iceDone="+o.iceDone+", simulcast="+a+")"):r.log("Creating offer (iceDone="+o.iceDone+")");var s={};if("firefox"===r.webRTCAdapter.browserDetails.browser&&r.webRTCAdapter.browserDetails.version>=59||"safari"===r.webRTCAdapter.browserDetails.browser&&window.RTCRtpSender.prototype.replaceTrack||"chrome"===r.webRTCAdapter.browserDetails.browser&&r.webRTCAdapter.browserDetails.version>=72){var c=null,l=null,u=o.pc.getTransceivers();if(u&&u.length>0)for(var d in u){var h=u[d];h.sender&&h.sender.track&&"audio"===h.sender.track.kind||h.receiver&&h.receiver.track&&"audio"===h.receiver.track.kind?c||(c=h):(h.sender&&h.sender.track&&"video"===h.sender.track.kind||h.receiver&&h.receiver.track&&"video"===h.receiver.track.kind)&&(l||(l=h))}var p=G(t),f=q(t);p||f?p&&f?c&&(c.setDirection?c.setDirection("sendrecv"):c.direction="sendrecv",r.log("Setting audio transceiver to sendrecv:",c)
2):p&&!f?c&&(c.setDirection?c.setDirection("sendonly"):c.direction="sendonly",r.log("Setting audio transceiver to sendonly:",c)):!p&&f&&(c?(c.setDirection?c.setDirection("recvonly"):c.direction="recvonly",r.log("Setting audio transceiver to recvonly:",c)):(c=o.pc.addTransceiver("audio",{direction:"recvonly"}),r.log("Adding recvonly audio transceiver:",c))):t.removeAudio&&c&&(c.setDirection?c.setDirection("inactive"):c.direction="inactive",r.log("Setting audio transceiver to inactive:",c));var m=W(t),g=$(t);m||g?m&&g?l&&(l.setDirection?l.setDirection("sendrecv"):l.direction="sendrecv",r.log("Setting video transceiver to sendrecv:",l)):m&&!g?l&&(l.setDirection?l.setDirection("sendonly"):l.direction="sendonly",r.log("Setting video transceiver to sendonly:",l)):!m&&g&&(l?(l.setDirection?l.setDirection("recvonly"):l.direction="recvonly",r.log("Setting video transceiver to recvonly:",l)):(l=o.pc.addTransceiver("video",{direction:"recvonly"}),r.log("Adding recvonly video transceiver:",l))):t.removeVideo&&l&&(l.setDirection?l.setDirection("inactive"):l.direction="inactive",r.log("Setting video transceiver to inactive:",l))}else s.offerToReceiveAudio=q(t),s.offerToReceiveVideo=$(t);var v=!0===n.iceRestart;v&&(s.iceRestart=!0);r.debug(s);var y=W(t);if(y&&a&&"firefox"===r.webRTCAdapter.browserDetails.browser){r.log("Enabling Simulcasting for Firefox (RID)");var w=o.pc.getSenders().find((function(e){return"video"==e.track.kind}));if(w){var b=w.getParameters();b||(b={}),b.encodings=[{rid:"h",active:!0,maxBitrate:9e5},{rid:"m",active:!0,maxBitrate:3e5,scaleResolutionDownBy:2},{rid:"l",active:!0,maxBitrate:1e5,scaleResolutionDownBy:4}],w.setParameters(b)}}o.pc.createOffer(s).then((function(e){r.debug(e);var t={type:e.type,sdp:e.sdp};n.customizeSdp(t),e.sdp=t.sdp,r.log("Setting local description"),y&&a&&("chrome"===r.webRTCAdapter.browserDetails.browser||"safari"===r.webRTCAdapter.browserDetails.browser?(r.log("Enabling Simulcasting for Chrome (SDP munging)"),e.sdp=function(e){for(var t=e.split("\r\n"),n=!1,i=[-1],o=[-1],a=null,s=null,c=null,l=null,u=-1,d=0;d<t.length;d++){if(p=t[d].match(/m=(\w+) */)){if("video"===p[1]){if(!(i[0]<0)){u=d;break}n=!0}else if(i[0]>-1){u=d;break}}else if(n){var h=t[d].match(/a=ssrc-group:FID (\d+) (\d+)/);if(h)i[0]=h[1],o[0]=h[2],t.splice(d,1),d--;else{if(i[0]){if((m=t[d].match("a=ssrc:"+i[0]+" cname:(.+)"))&&(a=m[1]),(m=t[d].match("a=ssrc:"+i[0]+" msid:(.+)"))&&(s=m[1]),(m=t[d].match("a=ssrc:"+i[0]+" mslabel:(.+)"))&&(c=m[1]),(m=t[d].match("a=ssrc:"+i[0]+" label:(.+)"))&&(l=m[1]),0===t[d].indexOf("a=ssrc:"+o[0])){t.splice(d,1),d--;continue}if(0===t[d].indexOf("a=ssrc:"+i[0])){t.splice(d,1),d--;continue}}0!=t[d].length||(t.splice(d,1),d--)}}}if(i[0]<0){u=-1,n=!1;for(d=0;d<t.length;d++){var p;if(p=t[d].match(/m=(\w+) */)){if("video"===p[1]){if(!(i[0]<0)){u=d;break}n=!0}else if(i[0]>-1){u=d;break}}else if(n){if(i[0]<0){var f=t[d].match(/a=ssrc:(\d+)/);if(f){i[0]=f[1],t.splice(d,1),d--;continue}}else{var m;if((m=t[d].match("a=ssrc:"+i[0]+" cname:(.+)"))&&(a=m[1]),(m=t[d].match("a=ssrc:"+i[0]+" msid:(.+)"))&&(s=m[1]),(m=t[d].match("a=ssrc:"+i[0]+" mslabel:(.+)"))&&(c=m[1]),(m=t[d].match("a=ssrc:"+i[0]+" label:(.+)"))&&(l=m[1]),0===t[d].indexOf("a=ssrc:"+o[0])){t.splice(d,1),d--;continue}if(0===t[d].indexOf("a=ssrc:"+i[0])){t.splice(d,1),d--;continue}}0!=t[d].length||(t.splice(d,1),d--)}}}if(i[0]<0)return r.warn("Couldn't find the video SSRC, simulcasting NOT enabled"),e;u<0&&(u=t.length);i[1]=Math.floor(4294967295*Math.random()),i[2]=Math.floor(4294967295*Math.random()),o[1]=Math.floor(4294967295*Math.random()),o[2]=Math.floor(4294967295*Math.random());for(d=0;d<i.length;d++)a&&(t.splice(u,0,"a=ssrc:"+i[d]+" cname:"+a),u++),s&&(t.splice(u,0,"a=ssrc:"+i[d]+" msid:"+s),u++),c&&(t.splice(u,0,"a=ssrc:"+i[d]+" mslabel:"+c),u++),l&&(t.splice(u,0,"a=ssrc:"+i[d]+" label:"+l),u++),a&&(t.splice(u,0,"a=ssrc:"+o[d]+" cname:"+a),u++),s&&(t.splice(u,0,"a=ssrc:"+o[d]+" msid:"+s),u++),c&&(t.splice(u,0,"a=ssrc:"+o[d]+" mslabel:"+c),u++),l&&(t.splice(u,0,"a=ssrc:"+o[d]+" label:"+l),u++);t.splice(u,0,"a=ssrc-group:FID "+i[2]+" "+o[2]),t.splice(u,0,"a=ssrc-group:FID "+i[1]+" "+o[1]),t.splice(u,0,"a=ssrc-group:FID "+i[0]+" "+o[0]),t.splice(u,0,"a=ssrc-group:SIM "+i[0]+" "+i[1]+" "+i[2]),(e=t.join("\r\n")).endsWith("\r\n")||(e+="\r\n");return e}(e.sdp)):"firefox"!==r.webRTCAdapter.browserDetails.browser&&r.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring")),o.mySdp=e.sdp,o.pc.setLocalDescription(e).catch(n.error),o.mediaConstraints=s,o.iceDone||o.trickle?(r.log("Offer ready"),r.debug(n),n.success(e)):r.log("Waiting for all candidates...")}),n.error)}(e,n,i):s.pc.setRemoteDescription(t).then((function(){if(r.log("Remote description accepted!"),s.remoteSdp=t.sdp,s.candidates&&s.candidates.length>0){for(var o in s.candidates){var a=s.candidates[o];r.debug("Adding remote candidate:",a),a&&!0!==a.completed?s.pc.addIceCandidate(a):s.pc.addIceCandidate()}s.candidates=[]}!function(e,t,n){n=n||{},n.success="function"==typeof n.success?n.success:r.noop,n.error="function"==typeof n.error?n.error:r.noop,n.customizeSdp="function"==typeof n.customizeSdp?n.customizeSdp:r.noop;var i=C[e];if(null==i||null===i.webrtcStuff||void 0===i.webrtcStuff)return r.warn("Invalid handle"),void n.error("Invalid handle");var o=i.webrtcStuff,a=!0===n.simulcast;a?r.log("Creating answer (iceDone="+o.iceDone+", simulcast="+a+")"):r.log("Creating answer (iceDone="+o.iceDone+")");var s=null;if("firefox"===r.webRTCAdapter.browserDetails.browser&&r.webRTCAdapter.browserDetails.version>=59||"safari"===r.webRTCAdapter.browserDetails.browser&&window.RTCRtpSender.prototype.replaceTrack||"chrome"===r.webRTCAdapter.browserDetails.browser&&r.webRTCAdapter.browserDetails.version>=72){s={};var c=null,l=null,u=o.pc.getTransceivers();if(u&&u.length>0)for(var d in u){var h=u[d];h.sender&&h.sender.track&&"audio"===h.sender.track.kind||h.receiver&&h.receiver.track&&"audio"===h.receiver.track.kind?c||(c=h):(h.sender&&h.sender.track&&"video"===h.sender.track.kind||h.receiver&&h.receiver.track&&"video"===h.receiver.track.kind)&&(l||(l=h))}var p=G(t),f=q(t);p||f?p&&f?c&&(c.setDirection?c.setDirection("sendrecv"):c.direction="sendrecv",r.log("Setting audio transceiver to sendrecv:",c)
2):p&&!f?c&&(c.setDirection?c.setDirection("sendonly"):c.direction="sendonly",r.log("Setting audio transceiver to sendonly:",c)):!p&&f&&(c?(c.setDirection?c.setDirection("recvonly"):c.direction="recvonly",r.log("Setting audio transceiver to recvonly:",c)):(c=o.pc.addTransceiver("audio",{direction:"recvonly"}),r.log("Adding recvonly audio transceiver:",c))):t.removeAudio&&c&&(c.setDirection?c.setDirection("inactive"):c.direction="inactive",r.log("Setting audio transceiver to inactive:",c));var m=W(t),g=$(t);m||g?m&&g?l&&(l.setDirection?l.setDirection("sendrecv"):l.direction="sendrecv",r.log("Setting video transceiver to sendrecv:",l)):m&&!g?l&&(l.setDirection?l.setDirection("sendonly"):l.direction="sendonly",r.log("Setting video transceiver to sendonly:",l)):!m&&g&&(l?(l.setDirection?l.setDirection("recvonly"):l.direction="recvonly",r.log("Setting video transceiver to recvonly:",l)):(l=o.pc.addTransceiver("video",{direction:"recvonly"}),r.log("Adding recvonly video transceiver:",l))):t.removeVideo&&l&&(l.setDirection?l.setDirection("inactive"):l.direction="inactive",r.log("Setting video transceiver to inactive:",l))}else s="firefox"==r.webRTCAdapter.browserDetails.browser||"edge"==r.webRTCAdapter.browserDetails.browser?{offerToReceiveAudio:q(t),offerToReceiveVideo:$(t)}:{mandatory:{OfferToReceiveAudio:q(t),OfferToReceiveVideo:$(t)}};r.debug(s);var v=W(t);if(v&&a&&"firefox"===r.webRTCAdapter.browserDetails.browser){r.log("Enabling Simulcasting for Firefox (RID)");var y=o.pc.getSenders()[1];r.log(y);var w=y.getParameters();r.log(w),y.setParameters({encodings:[{rid:"high",active:!0,priority:"high",maxBitrate:1e6},{rid:"medium",active:!0,priority:"medium",maxBitrate:3e5},{rid:"low",active:!0,priority:"low",maxBitrate:1e5}]})}o.pc.createAnswer(s).then((function(e){r.debug(e);var t={type:e.type,sdp:e.sdp};n.customizeSdp(t),e.sdp=t.sdp,r.log("Setting local description"),v&&a&&("chrome"===r.webRTCAdapter.browserDetails.browser?r.warn("simulcast=true, but this is an answer, and video breaks in Chrome if we enable it"):"firefox"!==r.webRTCAdapter.browserDetails.browser&&r.warn("simulcast=true, but this is not Chrome nor Firefox, ignoring")),o.mySdp=e.sdp,o.pc.setLocalDescription(e).catch(n.error),o.mediaConstraints=s,o.iceDone||o.trickle?n.success(e):r.log("Waiting for all candidates...")}),n.error)}(e,n,i)}),i.error)}function L(e,t,n){(n=n||{}).success="function"==typeof n.success?n.success:r.noop,n.error="function"==typeof n.error?n.error:U;var i=n.jsep;if(t&&i)return r.error("Provided a JSEP to a createOffer"),void n.error("Provided a JSEP to a createOffer");if(!(t||i&&i.type&&i.sdp))return r.error("A valid JSEP is required for createAnswer"),void n.error("A valid JSEP is required for createAnswer");n.media=n.media||{audio:!0,video:!0};var o=n.media,a=C[e];if(null==a||null===a.webrtcStuff||void 0===a.webrtcStuff)return r.warn("Invalid handle"),void n.error("Invalid handle");var s,c=a.webrtcStuff;if(c.trickle=(s=n.trickle,r.debug("isTrickleEnabled:",s),null==s||!0===s),void 0===c.pc||null===c.pc)o.update=!1,o.keepAudio=!1,o.keepVideo=!1;else if(void 0!==c.pc&&null!==c.pc){if(r.log("Updating existing media session"),o.update=!0,null!==n.stream&&void 0!==n.stream)n.stream!==c.myStream&&r.log("Renegotiation involves a new external stream");else{if(o.addAudio){if(o.keepAudio=!1,o.replaceAudio=!1,o.removeAudio=!1,o.audioSend=!0,c.myStream&&c.myStream.getAudioTracks()&&c.myStream.getAudioTracks().length)return r.error("Can't add audio stream, there already is one"),void n.error("Can't add audio stream, there already is one")}else o.removeAudio?(o.keepAudio=!1,o.replaceAudio=!1,o.addAudio=!1,o.audioSend=!1):o.replaceAudio&&(o.keepAudio=!1,o.addAudio=!1,o.removeAudio=!1,o.audioSend=!0);if(null===c.myStream||void 0===c.myStream?(o.replaceAudio&&(o.keepAudio=!1,o.replaceAudio=!1,o.addAudio=!0,o.audioSend=!0),G(o)&&(o.keepAudio=!1,o.addAudio=!0)):null===c.myStream.getAudioTracks()||void 0===c.myStream.getAudioTracks()||0===c.myStream.getAudioTracks().length?(o.replaceAudio&&(o.keepAudio=!1,o.replaceAudio=!1,o.addAudio=!0,o.audioSend=!0),G(o)&&(o.keepVideo=!1,o.addAudio=!0)):!G(o)||o.removeAudio||o.replaceAudio||(o.keepAudio=!0),o.addVideo){if(o.keepVideo=!1,o.replaceVideo=!1,o.removeVideo=!1,o.videoSend=!0,c.myStream&&c.myStream.getVideoTracks()&&c.myStream.getVideoTracks().length)return r.error("Can't add video stream, there already is one"),void n.error("Can't add video stream, there already is one")}else o.removeVideo?(o.keepVideo=!1,o.replaceVideo=!1,o.addVideo=!1,o.videoSend=!1):o.replaceVideo&&(o.keepVideo=!1,o.addVideo=!1,o.removeVideo=!1,o.videoSend=!0);null===c.myStream||void 0===c.myStream||null===c.myStream.getVideoTracks()||void 0===c.myStream.getVideoTracks()||0===c.myStream.getVideoTracks().length?(o.replaceVideo&&(o.keepVideo=!1,o.replaceVideo=!1,o.addVideo=!0,o.videoSend=!0),W(o)&&(o.keepVideo=!1,o.addVideo=!0)):!W(o)||o.removeVideo||o.replaceVideo||(o.keepVideo=!0),o.addData&&(o.data=!0)}if(G(o)&&o.keepAudio&&W(o)&&o.keepVideo)return a.consentDialog(!1),void D(e,i,o,n,c.myStream)}if(o.update&&!c.streamExternal){if(o.removeAudio||o.replaceAudio){if(c.myStream&&c.myStream.getAudioTracks()&&c.myStream.getAudioTracks().length){var l=c.myStream.getAudioTracks()[0];r.log("Removing audio track:",l),c.myStream.removeTrack(l);try{l.stop()}catch(A){}}if(c.pc.getSenders()&&c.pc.getSenders().length){var u=!0;if(o.replaceAudio&&("firefox"===r.webRTCAdapter.browserDetails.browser||"chrome"===r.webRTCAdapter.browserDetails.browser&&r.webRTCAdapter.browserDetails.version>=72)&&(u=!1),u)for(var d in c.pc.getSenders()){(l=c.pc.getSenders()[d])&&l.track&&"audio"===l.track.kind&&(r.log("Removing audio sender:",l),c.pc.removeTrack(l))}}}if(o.removeVideo||o.replaceVideo){if(c.myStream&&c.myStream.getVideoTracks()&&c.myStream.getVideoTracks().length){l=c.myStream.getVideoTracks()[0];r.log("Removing video track:",l),c.myStream.removeTrack(l);try{l.stop()}catch(A){}}if(c.pc.getSenders()&&c.pc.getSenders().length){var h=!0;if(o.replaceVideo&&("firefox"===r.webRTCAdapter.browserDetails.browser||"chrome"===r.webRTCAdapter.browserDetails.browser&&r.webRTCAdapter.browserDetails.version>=72)&&(h=!1),h)for(var d in c.pc.getSenders()){(l=c.pc.getSenders()[d])&&l.track&&"video"===l.track.kind&&(r.log("Removing video sender:",l),c.pc.removeTrack(l))}}}}if(null!==n.stream&&void 0!==n.stream){var p=n.stream;if(r.log("MediaStream provided by the application"),r.debug(p),o.update&&c.myStream&&c.myStream!==n.stream&&!c.streamExternal){try{var f=c.myStream.getTracks();for(var m in f){var g=f[m];r.log(g),null!=g&&g.stop()}}catch(A){}c.myStream=null}return c.streamExternal=!0,a.consentDialog(!1),void D(e,i,o,n,p)}if(G(o)||W(o)){if(!r.isGetUserMediaAvailable())return void n.error("getUserMedia not available");var v={mandatory:{},optional:[]};a.consentDialog(!0);var y=G(o);!0===y&&null!=o&&null!=o&&("object"==typeof o.audio&&(y=o.audio,o.audio.autoGainControl
2=!0,o.audio.echoCancellation=!0,o.audio.noiseSuppression=!0,o.audio.highpassFilter=!0),1==y&&(y={autoGainControl:!0,echoCancellation:!0,highpassFilter:!0,noiseSuppression:!0}));var w=W(o);if(!0===w&&null!=o&&null!=o){var b=!0===n.simulcast,T=!0===n.simulcast2;if(!b&&!T||i||void 0!==o.video&&!1!==o.video||(o.video="hires"),o.video&&"screen"!=o.video&&"window"!=o.video)if("object"==typeof o.video)w=o.video;else{var S=0,E=0;"lowres"===o.video?(E=240,S=320):"lowres-16:9"===o.video?(E=180,S=320):"hires"===o.video||"hires-16:9"===o.video||"hdres"===o.video?(E=720,S=1280):"fhdres"===o.video?(E=1080,S=1920):"4kres"===o.video?(E=2160,S=3840):"stdres"===o.video?(E=480,S=640):"stdres-16:9"===o.video?(E=360,S=640):(r.log("Default video setting is stdres 4:3"),E=480,S=640),r.log("Adding media constraint:",o.video),w={height:{ideal:E},width:{ideal:S}},r.log("Adding video constraint:",w)}else if("screen"===o.video||"window"===o.video){if(o.screenshareFrameRate||(o.screenshareFrameRate=3),navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia)return void navigator.mediaDevices.getDisplayMedia({video:!0}).then((function(t){a.consentDialog(!1),G(o)&&!o.keepAudio?navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then((function(r){t.addTrack(r.getAudioTracks()[0]),D(e,i,o,n,t)})):D(e,i,o,n,t)}),(function(e){a.consentDialog(!1),n.error(e)}));function M(t,r){a.consentDialog(!1),t?n.error(t):D(e,i,o,n,r)}function P(e,t,n){r.log("Adding media constraint (screen capture)"),r.debug(e),navigator.mediaDevices.getUserMedia(e).then((function(e){n?navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then((function(n){e.addTrack(n.getAudioTracks()[0]),t(null,e)})):t(null,e)})).catch((function(e){a.consentDialog(!1),t(e)}))}if("chrome"===r.webRTCAdapter.browserDetails.browser){var x=r.webRTCAdapter.browserDetails.version,k=33;window.navigator.userAgent.match("Linux")&&(k=35),x>=26&&x<=k?P(v={video:{mandatory:{googLeakyBucket:!0,maxWidth:window.screen.width,maxHeight:window.screen.height,minFrameRate:o.screenshareFrameRate,maxFrameRate:o.screenshareFrameRate,chromeMediaSource:"screen"}},audio:G(o)&&!o.keepAudio},M):r.extension.getScreen((function(e,t){if(e)return a.consentDialog(!1),n.error(e);(v={audio:!1,video:{mandatory:{chromeMediaSource:"desktop",maxWidth:window.screen.width,maxHeight:window.screen.height,minFrameRate:o.screenshareFrameRate,maxFrameRate:o.screenshareFrameRate},optional:[{googLeakyBucket:!0},{googTemporalLayeredScreencast:!0}]}}).video.mandatory.chromeMediaSourceId=t,P(v,M,G(o)&&!o.keepAudio)}))}else if("firefox"===r.webRTCAdapter.browserDetails.browser){if(!(r.webRTCAdapter.browserDetails.version>=33)){var _=new Error("NavigatorUserMediaError");return _.name="Your version of Firefox does not support screen sharing, please install Firefox 33 (or more recent versions)",a.consentDialog(!1),void n.error(_)}P(v={video:{mozMediaSource:o.video,mediaSource:o.video},audio:G(o)&&!o.keepAudio},(function(e,t){if(M(e,t),!e)var n=t.currentTime,i=window.setInterval((function(){t||window.clearInterval(i),t.currentTime==n&&(window.clearInterval(i),t.onended&&t.onended()),n=t.currentTime}),500)}))}return}}null!=o&&"screen"===o.video||navigator.mediaDevices.enumerateDevices().then((function(t){var s=t.some((function(e){return"audioinput"===e.kind})),c=function(e){if(r.debug("isScreenSendEnabled:",e),null==e)return!1;if("object"!=typeof e.video||"object"!=typeof e.video.mandatory)return!1;var t=e.video.mandatory;if(t.chromeMediaSource)return"desktop"===t.chromeMediaSource||"screen"===t.chromeMediaSource;if(t.mozMediaSource)return"window"===t.mozMediaSource||"screen"===t.mozMediaSource;if(t.mediaSource)return"window"===t.mediaSource||"screen"===t.mediaSource;return!1}(o)||t.some((function(e){return"videoinput"===e.kind})),l=G(o),u=W(o),d=function(e){return r.debug("isAudioSendRequired:",e),null!=e&&(!1!==e.audio&&!1!==e.audioSend&&(void 0!==e.failIfNoAudio&&null!==e.failIfNoAudio&&!0===e.failIfNoAudio))}(o),h=function(e){return r.debug("isVideoSendRequired:",e),null!=e&&(!1!==e.video&&!1!==e.videoSend&&(void 0!==e.failIfNoVideo&&null!==e.failIfNoVideo&&!0===e.failIfNoVideo))}(o);if(l||u||d||h){var f=!!l&&s,m=!!u&&c;if(!f&&!m)return a.consentDialog(!1),n.error("No capture device found"),!1;if(!f&&d)return a.consentDialog(!1),n.error("Audio capture is required, but no capture device found"),!1;if(!m&&h)return a.consentDialog(!1),n.error("Video capture is required, but no capture device found"),!1}var g={audio:!(!s||o.keepAudio)&&y,video:!(!c||o.keepVideo)&&w};r.debug("getUserMedia constraints",g),g.audio||g.video?navigator.mediaDevices.getUserMedia(g).then((function(t){a.consentDialog(!1),D(e,i,o,n,t)})).catch((function(e){a.consentDialog(!1),n.error({code:e.code,name:e.name,message:e.message})})):(a.consentDialog(!1),D(e,i,o,n,p))})).catch((function(e){a.consentDialog(!1),n.error("enumerateDevices error",e)}))}else D(e,i,o,n)}function B(e,t){(t=t||{}).success="function"==typeof t.success?t.success:r.noop,t.error="function"==typeof t.error?t.error:U;var n=t.jsep,i=C[e];if(null==i||null===i.webrtcStuff||void 0===i.webrtcStuff)return r.warn("Invalid handle"),void t.error("Invalid handle");var o=i.webrtcStuff;if(null!=n){if(null===o.pc)return r.warn("Wait, no PeerConnection?? if this is an answer, use createAnswer and n
2ot handleRemoteJsep"),void t.error("No PeerConnection: if this is an answer, use createAnswer and not handleRemoteJsep");o.pc.setRemoteDescription(n).then((function(){if(r.log("Remote description accepted!"),o.remoteSdp=n.sdp,o.candidates&&o.candidates.length>0){for(var e in o.candidates){var i=o.candidates[e];r.debug("Adding remote candidate:",i),i&&!0!==i.completed?o.pc.addIceCandidate(i):o.pc.addIceCandidate()}o.candidates=[]}t.success()}),t.error)}else t.error("Invalid JSEP")}function j(e,t){var n=C[e];if(null==n||null===n.webrtcStuff||void 0===n.webrtcStuff)return r.warn("Invalid handle"),0;var i=t?"remote":"local",o=n.webrtcStuff;return o.volume[i]||(o.volume[i]={value:0}),o.pc.getStats&&"chrome"===r.webRTCAdapter.browserDetails.browser?!t||null!==o.remoteStream&&void 0!==o.remoteStream?t||null!==o.myStream&&void 0!==o.myStream?null===o.volume[i].timer||void 0===o.volume[i].timer?(r.log("Starting "+i+" volume monitor"),o.volume[i].timer=setInterval((function(){o.pc.getStats((function(e){for(var n=e.result(),r=0;r<n.length;r++){var a=n[r];"ssrc"==a.type&&(t&&a.stat("audioOutputLevel")?o.volume[i].value=parseInt(a.stat("audioOutputLevel")):!t&&a.stat("audioInputLevel")&&(o.volume[i].value=parseInt(a.stat("audioInputLevel"))))}}))}),200),0):o.volume[i].value:(r.warn("Local stream unavailable"),0):(r.warn("Remote stream unavailable"),0):(r.warn("Getting the "+i+" volume unsupported by browser"),0)}function V(e,t){var n=C[e];if(null==n||null===n.webrtcStuff||void 0===n.webrtcStuff)return r.warn("Invalid handle"),!0;var i=n.webrtcStuff;return null===i.pc||void 0===i.pc?(r.warn("Invalid PeerConnection"),!0):void 0===i.myStream||null===i.myStream?
2(r.warn("Invalid local MediaStream"),!0):t?null===i.myStream.getVideoTracks()||void 0===i.myStream.getVideoTracks()||0===i.myStream.getVideoTracks().length?(r.warn("No video track"),!0):!i.myStream.getVideoTracks()[0].enabled:null===i.myStream.getAudioTracks()||void 0===i.myStream.getAudioTracks()||0===i.myStream.getAudioTracks().length?(r.warn("No audio track"),!0):!i.myStream.getAudioTracks()[0].enabled}function F(e,t,n){var i=C[e];if(null==i||null===i.webrtcStuff||void 0===i.webrtcStuff)return r.warn("Invalid handle"),!1;var o=i.webrtcStuff;return null===o.pc||void 0===o.pc?(r.warn("Invalid PeerConnection"),!1):void 0===o.myStream||null===o.myStream?(r.warn("Invalid local MediaStream"),!1):t?null===o.myStream.getVideoTracks()||void 0===o.myStream.getVideoTracks()||0===o.myStream.getVideoTracks().length?(r.warn("No video track"),!1):(o.myStream.getVideoTracks()[0].enabled=!n,!0):null===o.myStream.getAudioTracks()||void 0===o.myStream.getAudioTracks()||0===o.myStream.getAudioTracks().length?(r.warn("No audio track"),!1):(o.myStream.getAudioTracks()[0].enabled=!n,!0)}function H(e){var t=C[e];if(null==t||null===t.webrtcStuff||void 0===t.webrtcStuff)return r.warn("Invalid handle"),"Invalid handle";var n=t.webrtcStuff;return null===n.pc||void 0===n.pc?"Invalid PeerConnection":n.pc.getStats?null===n.bitrate.timer||void 0===n.bitrate.timer?(r.log("Starting bitrate timer (via getStats)"),n.bitrate.timer=setInterval((function(){n.pc.getStats().then((function(e){e.forEach((function(e){if(e){var t=!1;if(("video"===e.mediaType||e.id.toLowerCase().indexOf("video")>-1)&&"inbound-rtp"===e.type&&e.id.indexOf("rtcp")<0?t=!0:"ssrc"!=e.type||!e.bytesReceived||"VP8"!==e.googCodecName&&""!==e.googCodecName||(t=!0),t)if(n.bitrate.bsnow=e.bytesReceived,n.bitrate.tsnow=e.timestamp,null===n.bitrate.bsbefore||null===n.bitrate.tsbefore)n.bitrate.bsbefore=n.bitrate.bsnow,n.bitrate.tsbefore=n.bitrate.tsnow;else{var i=n.bitrate.tsnow-n.bitrate.tsbefore;"safari"==r.webRTCAdapter.browserDetails.browser&&(i/=1e3);var o=Math.round(8*(n.bitrate.bsnow-n.bitrate.bsbefore)/i);"safari"===r.webRTCAdapter.browserDetails.browser&&(o=parseInt(o/1e3)),n.bitrate.value=o+" kbits/sec",n.bitrate.bsbefore=n.bitrate.bsnow,n.bitrate.tsbefore=n.bitrate.tsnow}}}))}))}),1e3),"0 kbits/sec"):n.bitrate.value:(r.warn("Getting the video bitrate unsupported by browser"),"Feature unsupported by browser")}function U(e){r.error("WebRTC error:",e)}function z(e,i){r.log("Cleaning WebRTC stuff");var o=C[e];if(null!=o){var a=o.webrtcStuff;if(null!=a){if(!0===i){var s={janus:"hangup",transaction:r.randomString(12)};null!==o.token&&void 0!==o.token&&(s.token=o.token),null!=g&&(s.apisecret=g),r.debug("Sending hangup request (handle="+e+"):"),r.debug(s),t?(s.session_id=b,s.handle_id=e,n.send(JSON.stringify(s))):r.httpAPICall(c+"/"+b+"/"+e,{verb:"POST",withCredentials:p,body:s})}a.remoteStream=null,a.volume&&(a.volume.local&&a.volume.local.timer&&clearInterval(a.volume.local.timer),a.volume.remote&&a.volume.remote.timer&&clearInterval(a.volume.remote.timer)),a.volume={},a.bitrate.timer&&clearInterval(a.bitrate.timer),a.bitrate.timer=null,a.bitrate.bsnow=null,a.bitrate.bsbefore=null,a.bitrate.tsnow=null,a.bitrate.tsbefore=null,a.bitrate.value=null;try{if(!a.streamExternal&&null!==a.myStream&&void 0!==a.myStream){r.log("Stopping local stream tracks");var l=a.myStream.getTracks();for(var u in l){var d=l[u];r.log(d),null!=d&&d.stop()}}}catch(h){}a.streamExternal=!1,a.myStream=null;try{a.pc.close()}catch(h){}a.pc=null,a.candidates=null,a.mySdp=null,a.remoteSdp=null,a.iceDone=!1,a.dataChannel={},a.dtmfSender=null}o.oncleanup()}}function G(e){return r.debug("isAudioSendEnabled:",e),null==e||!1!==e.audio&&(void 0===e.audioSend||null===e.audioSend||!0===e.audioSend)}function q(e){return r.debug("isAudioRecvEnabled:",e),null==e||!1!==e.audio&&(void 0===e.audioRecv||null===e.audioRecv||!0===e.audioRecv)}function W(e){return r.debug("isVideoSendEnabled:",e),null==e||!1!==e.video&&(void 0===e.videoSend||null===e.videoSend||!0===e.videoSend)}function $(e){return r.debug("isVideoRecvEnabled:",e),null==e||!1!==e.video&&(void 0===e.videoRecv||null===e.videoRecv||!0===e.videoRecv)}
2A(e),this.getServer=function(){return c},this.isConnected=function(){return w},this.reconnect=function(e){(e=e||{}).success="function"==typeof e.success?e.success:r.noop,e.error="function"==typeof e.error?e.error:r.noop,e.reconnect=!0,A(e)},this.getSessionId=function(){return b},this.destroy=function(a){!function(a){a=a||{},a.success="function"==typeof a.success?a.success:r.noop;var s=!0;void 0!==a.asyncRequest&&null!==a.asyncRequest&&(s=!0===a.asyncRequest);var l=!0;void 0!==a.notifyDestroyed&&null!==a.notifyDestroyed&&(l=!0===a.notifyDestroyed);var u=!1;void 0!==a.cleanupHandles&&null!==a.cleanupHandles&&(u=!0===a.cleanupHandles);if(r.log("Destroying session "+b+" (async="+s+")"),!w)return r.warn("Is the server down? (connected=false)"),void a.success();if(null==b)return r.warn("No session to destroy"),a.success(),void(l&&e.destroyed());if(u)for(var d in C)N(d,{noRequest:!0});var h={janus:"destroy",transaction:r.randomString(12)};null!=m&&(h.token=m);null!=g&&(h.apisecret=g);if(t){h.session_id=b;var f=function(){for(var e in i)n.removeEventListener(e,i[e]);n.removeEventListener("message",v),n.removeEventListener("error",y),o&&clearTimeout(o),n.close()},v=function(t){var n=JSON.parse(t.data);n.session_id==h.session_id&&n.transaction==h.transaction&&(f(),a.success(),l&&e.destroyed())},y=function(t){f(),a.error("Failed to destroy the server: Is the server down?"),l&&e.destroyed()};return n.addEventListener("message",v),n.addEventListener("error",y),void n.send(JSON.stringify(h))}r.httpAPICall(c+"/"+b,{verb:"POST",async:s,withCredentials:p,body:h,success:function(t){r.log("Destroyed session:"),r.debug(t),b=null,w=!1,"success"!==t.janus&&r.error("Ooops: "+t.error.code+" "+t.error.reason),a.success(),l&&e.destroyed()},error:function(t,n){r.error(t+":",n),b=null,w=!1,a.success(),l&&e.destroyed()}})}(a)},this.attach=function(e){!function(e){if(e=e||{},e.success="function"==typeof e.success?e.success:r.noop,e.error="function"==typeof e.error?e.error:r.noop,e.consentDialog="function"==typeof e.consentDialog?e.consentDialog:r.noop,e.iceState="function"==typeof e.iceState?e.iceState:r.noop,e.mediaState="function"==typeof e.mediaState?e.mediaState:r.noop,e.webrtcState="function"==typeof e.webrtcState?e.webrtcState:r.noop,e.slowLink="function"==typeof e.slowLink?e.slowLink:r.noop,e.onmessage="function"==typeof e.onmessage?e.onmessage:r.noop,e.onlocalstream="function"==typeof e.onlocalstream?e.onlocalstream:r.noop,e.onremotestream="function"==typeof e.onremotestream?e.onremotestream:r.noop,e.ondata="function"==typeof e.ondata?e.ondata:r.noop,e.ondataopen="function"==typeof e.ondataopen?e.ondataopen:r.noop,e.oncleanup="function"==typeof e.oncleanup?e.oncleanup:r.noop,e.ondetached="function"==typeof e.ondetached?e.ondetached:r.noop,!w)return r.warn("Is the server down? (connected=false)"),void e.error("Is the server down? (connected=false)");var i=e.plugin;if(null==i)return r.error("Invalid plugin"),void e.error("Invalid plugin");var o=e.opaqueId,a=e.token?e.token:m,s=r.randomString(12),l={janus:"attach",plugin:i,opaque_id:o,transaction:s};null!=a&&(l.token=a);null!=g&&(l.apisecret=g);if(t)return E[s]=function(t){if(r.debug(t),"success"!==t.janus)return r.error("Ooops: "+t.error.code+" "+t.error.reason),void e.error("Ooops: "+t.error.code+" "+t.error.reason);var n=t.data.id;r.log("Created handle: "+n);var o={session:T,plugin:i,id:n,token:a,detached:!1,webrtcStuff:{started:!1,myStream:null,streamExternal:!1,remoteStream:null,mySdp:null,mediaConstraints:null,pc:null,dataChannel:{},dtmfSender:null,trickle:!0,iceDone:!1,volume:{value:null,timer:null},bitrate:{value:null,bsnow:null,bsbefore:null,tsnow:null,tsbefore:null,timer:null}},getId:function(){return n},getPlugin:function(){return i},getVolume:function(){return j(n,!0)},getRemoteVolume:function(){return j(n,!0)},getLocalVolume:function(){return j(n,!1)},isAudioMuted:function(){return V(n,!1)},muteAudio:function(){return F(n,!1,!0)},unmuteAudio:function(){return F(n,!1,!1)},isVideoMuted:function(){return V(n,!0)},muteVideo:function(){return F(n,!0,!0)},unmuteVideo:function(){return F(n,!0,!1)},getBitrate:function(){return H(n)},send:function(e){M(n,e)},data:function(e){I(n,e)},dtmf:function(e){O(n,e)},consentDialog:e.consentDialog,iceState:e.iceState,mediaState:e.mediaState,webrtcState:e.webrtcState,slowLink:e.slowLink,onmessage:e.onmessage,createOffer:function(e){L(n,!0,e)},createAnswer:function(e){L(n,!1,e)},handleRemoteJsep:function(e){B(n,e)},onlocalstream:e.onlocalstream,onremotestream:e.onremotestream,ondata:e.ondata,ondataopen:e.ondataopen,oncleanup:e.oncleanup,ondetached:e.ondetached,hangup:function(e){z(n,!0===e)},detach:function(e){N(n,e)}};C[n]=o,e.success(o)},l.session_id=b,void n.send(JSON.stringify(l));r.httpAPICall(c+"/"+b,{verb:"POST",withCredentials:p,body:l,success:function(t){if(r.debug(t),"success"!==t.janus)return r.error("Ooops: "+t.error.code+" "+t.error.reason),void e.error("Ooops: "+t.error.code+" "+t.error.reason);var n=t.data.id;r.log("Created handle: "+n);var o={session:T,plugin:i,id:n,token:a,detached:!1,webrtcStuff:{started:!1,myStream:null,streamExternal:!1,remoteStream:null,mySdp:null,mediaConstraints:null,pc:null,dataChannel:{},dtmfSender:null,trickle:!0,iceDone:!1,volume:{value:null,timer:null},bitrate:{value:null,bsnow:null,bsbefore:null,tsnow:null,tsbefore:null,timer:null}},getId:function(){return n},getPlugin:function(){return i},getVolume:function(){return j(n,!0)},getRemoteVolume:function(){return j(n,!0)},getLocalVolume:function(){return j(n,!1)},isAudioMuted:function(){return V(n,!1)},muteAudio:function(){return F(n,!1,!0)},unmuteAudio:function(){return F(n,!1,!1)},isVideoMuted:function(){return V(n,!0)},muteVideo:function(){return F(n,!0,!0)},unmuteVideo:function(){return F(n,!0,!1)},getBitrate:function(){return H(n)},send:function(e){M(n,e)},data:function(e){I(n,e)},dtmf:function(e){O(n,e)},consentDialog:e.consentDialog,iceState:e.iceState,mediaState:e.mediaState,webrtcState:e.webrtcState,slowLink:e.slowLink,onmessage:e.onmessage,createOffer:function(e){L(n,!0,e)},createAnswer:function(e){L(n,!1,e)},handleRemoteJsep:function(e){B(n,e)},onlocalstream:e.onlocalstream,onremotestream:e.onremotestream,ondata:e.ondata,ondataopen:e.ondataopen,oncleanup:e.oncleanup,ondetached:e.ondetached,hangup:function(e){z(n,!0===e)},detach:function(e){N(n,e)}};C[n]=o,e.success(o)},error:function(t,n){r.error(t+":",n),e.error(t)}})}(e)}}r.useDefaultDependencies=function(e){var t=e&&e.fetch||fetch,n=e&&e.Promise||Promise,o=e&&e.WebSocket||WebSocket;return{newWebSocket:function(e,t){return new o(e,t)},extension:e&&e.extension||i,isArray:function(e){return Array.isArray(e)},webRTCAdapter:e&&e.adapter||adapter,httpAPICall:function(e,i){var o={method:i.verb,headers:{Accept:"application/json, text/plain, */*"},cache:"no-cache"};"POST"===i.verb&&(o.headers["Content-Type"]="application/json"),void 0!==i.withCredentials&&(o.credentials=!0===i.withCredentials?"include":i.withCredentials?i.withCredentials:"omit"),void 0!==i.body&&(o.body=JSON.stringify(i.body));var a=t(e,o).catch((function(e){return n.reject({message:"Probably a network error, is the server down?",error:e})}));if(void 0!==i.timeout){var s=new n((function(e,t){var n=setTimeout((function(){return clearTimeout(n),t({message:"Request timed out",timeout:i.timeout})}),i.timeout)}));a=n.race([a,s])}return a.then((function(e){return e.ok?typeof i.success==typeof r.noop?e.json().then((function(e){i.success(e)})).catch((function(t){return n.reject({message:"Failed to parse response body",error:t,response:e})})):void 0:n.reject({message:"API call failed",response:e})})).catch((function(e){typeof i.error==typeof r.noop&&e.response.text().then((function(t){i.error(t,e)}
2)).catch((function(t){i.error(e.message||"<< internal error >>",e)}))})),a}}},r.useOldDependencies=function(e){var t=e&&e.jQuery||jQuery,n=e&&e.WebSocket||WebSocket;return{newWebSocket:function(e,t){return new n(e,t)},isArray:function(e){return t.isArray(e)},extension:e&&e.extension||i,webRTCAdapter:e&&e.adapter||adapter,httpAPICall:function(e,n){var i=void 0!==n.body?{contentType:"application/json",data:JSON.stringify(n.body)}:{},o=void 0!==n.withCredentials?{xhrFields:{withCredentials:n.withCredentials}}:{};return t.ajax(t.extend(i,o,{url:e,type:n.verb,cache:!1,dataType:"json",async:n.async,timeout:n.timeout,success:function(e){typeof n.success==typeof r.noop&&n.success(e)},error:function(e,t,i){typeof n.error==typeof r.noop&&n.error(t,i)}}))}}},r.noop=function(){},r.dataChanDefaultLabel="JanusDataChannel",r.init=function(e){if((e=e||{}).callback="function"==typeof e.callback?e.callback:r.noop,!0===r.initDone)e.callback();else{if("undefined"!=typeof console&&void 0!==console.log||(console={log:function(){}}),r.trace=r.noop,r.debug=r.noop,r.vdebug=r.noop,r.log=r.noop,r.warn=r.noop,r.error=r.noop,!0===e.debug||"all"===e.debug)r.trace=console.trace.bind(console),r.debug=console.debug.bind(console),r.vdebug=console.debug.bind(console),r.log=console.log.bind(console),r.warn=console.warn.bind(console),r.error=console.error.bind(console);else if(Array.isArray(e.debug))for(var t in e.debug){var n=e.debug[t];switch(n){case"trace":r.trace=console.trace.bind(console);break;case"debug":r.debug=console.debug.bind(console);break;case"vdebug":r.vdebug=console.debug.bind(console);break;case"log":r.log=console.log.bind(console);break;case"warn":r.warn=console.warn.bind(console);break;case"error":r.error=console.error.bind(console);break;default:console.error("Unknown debugging option '"+n+"' (supported: 'trace', 'debug', 'vdebug', 'log', warn', 'error')")}}r.log("Initializing library");var i=e.dependencies||r.useDefaultDependencies();r.isArray=i.isArray,r.webRTCAdapter=i.webRTCAdapter,r.httpAPICall=i.httpAPICall,r.newWebSocket=i.newWebSocket,r.extension=i.extension,r.extension.init(),r.listDevices=function(e,t){e="function"==typeof e?e:r.noop,null==t&&(t={audio:!0,video:!0}),r.isGetUserMediaAvailable()?navigator.mediaDevices.getUserMedia(t).then((function(t){n
2avigator.mediaDevices.enumerateDevices().then((function(n){r.debug(n),e(n);try{var i=t.getTracks();for(var o in i){var a=i[o];null!=a&&a.stop()}}catch(s){}}))})).catch((function(t){r.error(t);try{navigator.mediaDevices.enumerateDevices().then((function(t){r.debug(t),e(t)}))}catch(n){}})):(r.warn("navigator.mediaDevices unavailable"),e([]))},r.attachMediaStream=function(e,t){"chrome"===r.webRTCAdapter.browserDetails.browser?r.webRTCAdapter.browserDetails.version>=52?e.srcObject=t:void 0!==e.src?e.src=URL.createObjectURL(t):r.error("Error attaching stream to element"):e.srcObject=t},r.reattachMediaStream=function(e,t){"chrome"===r.webRTCAdapter.browserDetails.browser?r.webRTCAdapter.browserDetails.version>=52?e.srcObject=t.srcObject:void 0!==e.src?e.src=t.src:r.error("Error reattaching stream to element"):e.srcObject=t.srcObject};var o=["iPad","iPhone","iPod"].indexOf(navigator.platform)>=0?"pagehide":"beforeunload",a=window["on"+o];window.addEventListener(o,(function(e){for(var t in r.log("Closing window"),r.sessions)null!==r.sessions[t]&&void 0!==r.sessions[t]&&r.sessions[t].destroyOnUnload&&(r.log("Destroying session "+t),r.sessions[t].destroy({asyncRequest:!1,notifyDestroyed:!1}));a&&"function"==typeof a&&a()})),r.safariVp8=!1,r.initDone=!0,e.callback()}},r.isWebrtcSupported=function(){return void 0!==window.RTCPeerConnection&&null!==window.RTCPeerConnection},r.isGetUserMediaAvailable=function(){return void 0!==navigator.mediaDevices&&null!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia&&null!==navigator.mediaDevices.getUserMedia},r.randomString=function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",i=0;i<e;i++){var r=Math.floor(62*Math.random());n+=t.substring(r,r+1)}return n},window.Janus=r,function(e,t){var n;void 0===window.dnx&&(window.dnx={}),(n=window.dnx).WebRTCStream=function(i,r,o){var a=this;this.name="WebRTCStream",this.objectId="liveplayer",this.chat={},this.ready=!1,this.webRTCVisitorCam=null;var s=null,c=null,l=null,u=null,d="h264",h={},p=!1,f=!1;this.init=function(){var n=e("#"+a.chat.options.livePlayerSwfWrapperId),i=e("video",n),r=!!h.videoElement;i.length?u=i[0]:(u=r?h.videoElement:document.createElement("video"),(i=e(u)).attr({id:this.objectId,autoplay:!0,width:"100%",height:"100%"}),i.appendTo(n)),m(),a.chat.options.muteVideo&&(u.muted=!0,"undefined"!=typeof _local&&_local.log("[dnx.WebRTCStream] Video muted because muteVideo option passed")),e(document).off("unlockAudio.dnxChat").on("unlockAudio.dnxChat",(function(e,t){u.muted=!1,t()})),t.init({debug:!("undefined"==typeof _local||"undefined"===_local.debug||!_local.debug)&&"all",callback:function(){if(null===c||!c.isConnected()){var n=a.chat.options.webRTCEndpoint+btoa(JSON.stringify({account:s,action:"play",visitorHash:a.chat.vars.visitorHash,codec:d}));c=new t({server:n,success:function(){c.attach({plugin:"janus.plugin.streaming",opaqueId:"streamingtest-"+t.randomString(12),success:function(e){l=e,t.log("Plugin attached! ("+l.getPlugin()+", id="+l.getId()+")"),u.setAttribute("playsinline",!0),a.startVideo()},error:function(e){w(2,e)},onmessage:function(n,i){t.debug("::: Got a message :::"),t.debug(JSON.stringify(n));var r=n.result;if(null!=r){if(void 0!==r.status&&null!==r.status){var o=r.status;"stopped"===o?l&&setTimeout(a.stopVideo(),1):"started"===o&&(e(document).trigger("chatStreamReady.dnxChat").trigger("chatVideoRender.dnxChat"),u.onloadeddata=function(){a.chat.getEventsElement().trigger("chatStreamLoadedData.dnxChat")},g())}}else if(void 0!==n.error&&null!==n.error)return void("undefined"!==n.error.reason&&null!=n.error.reason?w(3,n.error.reason):w(3,n.error));null!=i&&(t.debug("Handling SDP as well..."),t.debug(i),l.createAnswer({jsep:i,customizeSdp:function(e){},media:{audioSend:!1,videoSend:!1},success:function(e){t.debug("Got SDP!"),t.debug(e),l.send({message:{request:"start"},jsep:e,error:function(e){w(3,e)}})},error:function(e){w(4,e)}}))},onremotestream:function(e){t.debug("::: Got a remote stream :::"),t.debug(JSON.stringify(e)),t.attachMediaStream(u,e)},oncleanup:function(){t.log("::: Got a cleanup notification :::"),u.pause(),u.src="",u.load()}})},error:function(e){w(1,e),l&&setTimeout(a.stopVideo(),1)},destroyed:function(){t.log("::: Destroyed :::"),c=null,l=null}})}}})};var m=function(){var e=!1;try{(e=!!u.canPlayType)&&((e=new Boolean(e)).h264=u.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(t){}d=e&&"probably"===e.h264?"h264":"vp8","undefined"!=typeof _local&&_local.log("[dnx.WebRTCStream] Video codec detected",d)},g=function(){var t=u.play();void 0!==t&&t.then((function(){"undefined"!=typeof _local&&_local.log("[dnx.WebRTCStream] Autoplay with sound started")})).catch((function(e){"undefined"!=typeof _local&&(_local.log("[dnx.WebRTCStream] Autoplay with sound prevented",{muted:u.muted,paused:u.paused}),_local.log("[dnx.WebRTCStream] Mute the video and play it again")),u.muted=!0,u.play()})).finally((function(){u.muted&&e(document).trigger("audioNeedsUnlocking.dnxChat")}))}
2,v=function(e,t){n.WebRTCStream.softErrorByCammerStore[e]=t,a.chat.restartVideoStreamFallback()},y=function(t,i){var r=new Date((new Date).getTime()+1e3*t);e.cookie(n.WebRTCStream.ERROR_COOKIE,i,{expires:r,path:"/"}),a.chat.restartVideoStreamFallback()},w=function(e,n){if(t.error(e,n),c.isConnected()){var i=!1;n&&(n.indexOf("CAMMER_OFFLINE")>-1&&(c.destroy(),v(s,"webrtc_cammer_offline"),i=!0),n.indexOf("NO_ACCESS")>-1&&(c.destroy(),i=!0),n.indexOf("RTC_TEMP_PROBLEM")>-1&&(c.destroy(),v(s,"webrtc_temp_problem"),i=!0),n.indexOf("RTC_STICKY_PROBLEM")>-1&&(c.destroy(),y(3600,"webrtc_sticky_problem"),i=!0),n.indexOf("RTC_ERROR_IGNORE")>-1&&(i=!0)),i||(3===e?(a.stopVideo(),v(s,"webrtc_message_error")):1===e?"CAMMER_OFFLINE"===n?v(s,"webrtc_cammer_offline"):"NO_ACCESS"===n?v(s,"webrtc_no_access"):y(3600,"webrtc_janus_error"):y(3600,2===e?"webrtc_plugin_error":"webrtc_error"))}else t.log("Janus: skip errorHandler because not connected")};this.destroy=function(){null!==c&&(this.stopVideo(),c.destroy(),this.stopCam2Cam(),this.stopUserAudio(),e(document).off("unlockAudio.dnxChat"),e("#"+a.chat.options.livePlayerSwfWrapperId).find("video").remove())},this.startVideo=function(){null!==l&&l.send({message:{request:"watch",id:s,codec:d},error:function(e){w(3,e)}})},this.stopVideo=function(){null!==l&&l.hangup()},this.pauseVideo=function(){a.stopVideo()},this.resumeVideo=function(){a.startVideo()},this.toggleVolume=function(){var e=0;return a.chat.vars.isMute&&(e=1),this.setVolume(e),e},this.startUserAudio=function(){this.webRTCVisitorCam&&this.ready&&!f&&"O2O"===this.chat.vars.chatType&&(this.chat.getEventsElement().trigger("userAudioChanged.dnxChat",f=!0),p?this.webRTCVisitorCam.unmuteAudio():this.webRTCVisitorCam.start())},this.stopUserAudio=function(){this.webRTCVisitorCam&&f&&(this.chat.getEventsElement().trigger("userAudioChanged.dnxChat",f=!1),p?this.webRTCVisitorCam.muteAudio():this.webRTCVisitorCam.stop())},this.toggleUserAudio=function(){return f?this.stopUserAudio():this.startUserAudio(),f},this.startCam2Cam=function(){this.webRTCVisitorCam&&this.ready&&!p&&"FREE"!==this.chat.vars.chatType&&(this.chat.getEventsElement().trigger("cam2camChanged.dnxChat",p=!0),f||this.webRTCVisitorCam.start((function(){a.webRTCVisitorCam.muteAudio()})))},this.stopCam2Cam=function(){this.webRTCVisitorCam&&p&&(this.chat.getEventsElement().trigger("cam2camChanged.dnxChat",p=!1),f||this.webRTCVisitorCam.stop())},this.toggleCam2Cam=function(){return p?this.stopCam2Cam():this.startCam2Cam(),p},this.setVolume=function(e){u.volume=e,["iPad","iPhone","iPod"].indexOf(navigator.platform)>=0&&(u.muted=!e)},this.getVolume=function(){},function(t,n,i){a.chat=t,a.webRTCVisitorCam=n,h=e.extend(h,i),s=a.chat.options.account,a.chat.vars.visitorHash}.call(this,i,r,o)},n.WebRTCStream.isSupported=function(e){var n="chrome"===adapter.browserDetails.browser,i=/Android/i.test(navigator.userAgent);return("ROLE_AUDIOTEL"!==e.options.role||!i||!n)&&t.isWebrtcSupported()},n.WebRTCStream.softError=null,n.WebRTCStream.softErrorByCammerStore={},n.WebRTCStream.ERROR_COOKIE="had_stream_error_webrtc",n.WebRTCStream.softErrorByCammer=function(e){var t=n.WebRTCStream.softErrorByCammerStore[e];return void 0===t?null:t},n.WebRTCStream.hardError=function(){var t=e.cookie(n.WebRTCStream.ERROR_COOKIE);return t||null},n.WebRTCStream.getError=function(e){if(null!==n.WebRTCStream.softError)return n.WebRTCStream.softError;var t=n.WebRTCStream.softErrorByCammer(e);if(null!==t)return t;var i=n.WebRTCStream.hardError();return null!==i?i:null},n.WebRTCStream.hadError=function(e){return null!==n.WebRTCStream.getError(e)},n.WebRTCStream.removeErrors=function(){n.WebRTCStream.softError=null,n.WebRTCStream.softErrorByCammerStore={},e.removeCookie(n.WebRTCStream.ERROR_COOKIE,{path:"/"})}}("function"==typeof dnxChatGetJQueryFunc?dnxChatGetJQueryFunc():jQuery,Janus);n(36027);!function(e,t){var n;void 0===window.dnx&&(window.dnx={}),(n=window.dnx).JSMpegStream=function(n){var i=this;this.name="JSMpegStream",this.objectId="liveplayer",this.chat={},this.ready=!1;var r=null;this.init=function(){var n=e("#"+i.chat.options.livePlayerSwfWrapperId),o=e("canvas",n);o.length?r&&r.destroy():((o=e("<canvas/>")).attr({id:this.objectId}),o.appendTo(n)),r=new t.Player(i.chat.vars.jsmpeg,{canvas:o[0]}),e(document).trigger("chatStreamReady.dnxChat").trigger("chatVideoRender.dnxChat"),t.AudioOutput.WebAudio.IsSupported()&&
2!r.audioOut.unlocked&&e(document).trigger("audioNeedsUnlocking.dnxChat"),e(document).off("unlockAudio.dnxChat").on("unlockAudio.dnxChat",(function(e,t){r.audioOut.unlock(t)}))},this.destroy=function(){null!==r&&(this.stopVideo(),r.destroy(),e(document).off("unlockAudio.dnxChat"),e("#"+i.chat.options.livePlayerSwfWrapperId).empty())},this.startVideo=function(){null!==r&&r.play()},this.stopVideo=function(){null!==r&&r.stop()},this.pauseVideo=function(){null!==r&&r.pause()},this.resumeVideo=function(){i.startVideo()},this.toggleVolume=function(){if(null!==r)return r.volume=0===r.volume?1:0,r.volume},this.startUserAudio=function(){},this.stopUserAudio=function(){},this.toggleUserAudio=function(){},this.startCam2Cam=function(){},this.stopCam2Cam=function(){},this.toggleCam2Cam=function(){},this.setVolume=function(e){r.volume=e},this.getVolume=function(){},function(e){i.chat=e}.call(this,n)},n.JSMpegStream.isSupported=function(){return!0},n.JSMpegStream.getError=function(){return null},n.JSMpegStream.hadError=function(){return!1},n.JSMpegStream.removeErrors=function(){}}("function"==typeof dnxChatGetJQueryFunc?dnxChatGetJQueryFunc():jQuery,JSMpeg),function(e,t){var n;void 0===window.dnx&&(window.dnx={}),(n=window.dnx).WebRTCVisitorCam=function(n){var i=this;this.camId="visitor-cam-swf",this.chat={};var r=null,o=null,a=null,s=null,c=null;this.start=function(n){t.init({debug:!("undefined"===_local||"undefined"===_local.debug||!_local.debug)&&"all",callback:function(){if(null===r){var l,u;l=e("#"+i.chat.options.visitorCamSwfWrapperId),u=e("#"+i.camId),e("video",l).length||(s=u.clone(),a=e('<video id="'+i.camId+'" width="100%" height="100%" autoplay playsinline muted />'),u.replaceWith(a));var d={account:i.chat.options.account,action:"cam2cam",visitorHash:i.chat.vars.visitorHash},h=i.chat.options.webRTCEndpoint+btoa(JSON.stringify(d));r=new t({server:h,success:function(){r.attach({plugin:"janus.plugin.videoroom",opaqueId:"videoroomtest-"+t.randomString(12),success:function(e){o=e,t.log("Plugin attached! ("+o.getPlugin()+", id="+o.getId()+")"),t.log("  -- This is a publisher/manager"),o.send({message:{request:"startcam"}})},error:function(e){t.error("  -- Error attaching plugin...",e)},consentDialog:function(e){t.debug("Consent dialog should be "+(e?"on":"off")+" now")},mediaState:function(e,n){t.log("Janus "+(n?"started":"stopped")+" receiving our "+e)},webrtcState:function(e){t.log("Janus says our WebRTC PeerConnection is "+(e?"up":"down")+" now")},onmessage:function(e,n){t.debug(" ::: Got a message (publisher) :::"),t.debug(JSON.stringify(e));var i=e.videoroom;if(t.debug("Event: "+i),i)if("joined"===i){t.log("Successfully joined room "+e.room+" with ID "+e.id+" and private ID "+e.private_id);var a=function(e){var n={audioRecv:!1,videoRecv:!1,audioSend:e,videoSend:!0};o.createOffer({media:n,success:function(n){t.debug("Got publisher SDP!"),t.debug(n),o.send({message:{request:"configure",audio:e,video:!0},jsep:n})},error:function(n){t.error("WebRTC error:",n),e?a(!1):t.error("WebRTC error... "+JSON.stringify(n))}})};a(!0)}else"destroyed"===i?(t.warn("The room has been destroyed!"),r.destroy()):"event"===i&&void 0!==e.error&&null!==e.error&&t.warn(e.error);null!=n&&(t.debug("Handling SDP as well..."),t.debug(n),o.handleRemoteJsep({jsep:n}))},onlocalstream:function(r){t.debug(" ::: Got a local stream :::"),t.debug(JSON.stringify(r)),c=r,t.attachMediaStream(a.get(0),r);var s=r.getVideoTracks();s&&0!==s.length?("function"==typeof n&&n(),a.get(0).onloadeddata=function(){o.send({message:i.getSizeVideo(a.get(0))}),i.chat.getEventsElement().trigger("visitorCamLoadedData.dnxChat",a.get(0))},e(window).on("orientationchange resize",_.throttle((function(){o.send({message:i.getSizeVideo(a.get(0))}),i.chat.getEventsElement().trigger("visitorCamSizeChanged.dnxChat",a.get(0))}),500)),i.chat.getEventsElement().trigger("visitorCamCameraAccepted.dnxChat")):t.debug("No webcam available")},onremotestream:function(e){},oncleanup:function(){t.log(" ::: Got a cleanup notification: we are unpublished now :::"),i.stopAllMediaTracks()}})},error:function(e){t.error(e),r.destroy()},destroyed:function(){var t;i.stopAllMediaTracks(),t=e("<span />").insertAfter("#"+i.camId),a&&a.remove(),t.after(s).remove(),s=null,r=null,o=null,c=null}})}}})}
2,this.getSizeVideo=function(e){return{dnx:"resolution_update",videoWidth:e.videoWidth,videoHeight:e.videoHeight,orientation:window.matchMedia("(orientation : portrait)").matches?"portrait":"landscape"}},this.stop=function(){null!==r&&(this.stopAllMediaTracks(),r.destroy())},this.toggle=function(){null===r?i.start():i.stop()},this.muteAudio=function(){null!==r&&null!==o&&(o.isAudioMuted()||(t.log("Muting local stream..."),o.muteAudio()))},this.unmuteAudio=function(){null!==r&&null!==o&&o.isAudioMuted()&&(t.log("Unmuting local stream..."),o.unmuteAudio())},this.stopAllMediaTracks=function(){c&&(t.log("Stopping all media tracks to release device access..."),c.getTracks().forEach((function(e){"live"===e.readyState&&(t.log("Stopping "+e.kind+" track:",e.label),e.stop())})),c=null);if(o&&o.webrtcStuff&&o.webrtcStuff.pc)try{o.webrtcStuff.pc.getSenders().forEach((function(e){e.track&&"live"===e.track.readyState&&(t.log("Stopping sender track:",e.track.kind,e.track.label),e.track.stop())}))}catch(error){t.log("Error stopping sender tracks:",error)}},this.changeCameraDevice=function(e,n,s){if(!e)return window._local.log("changeCameraDevice: deviceId is required"),void("function"==typeof s&&s(new Error("deviceId is required")));if(!o||!r)return window._local.log("changeCameraDevice: WebRTC connection not active"),void("function"==typeof s&&s(new Error("WebRTC connection not active")));window._local.log("Changing camera device to:",e);try{var l=o.webrtcStuff.pc.getSenders().find((function(e){return e.track&&"video"===e.track.kind}));if(!l)throw new Error("No video sender found in peer connection");var u=l.track;return l.replaceTrack(null).then((function(){if(u&&"live"===u.readyState)try{u.stop()}catch(t){}return navigator.mediaDevices.getUserMedia({video:{deviceId:{exact:e}},audio:!1})})).then((function(r){var o=r.getVideoTracks()[0];if(!o)throw new Error("No video track found in new stream");return l.replaceTrack(o).then((function(){c=r,a&&a.get(0)&&t.attachMediaStream(a.get(0),r),window._local.log("Camera device changed successfully to:",e),setTimeout((function(){i.chat.getEventsElement().trigger("visitorCamLoadedData.dnxChat",a.get(0))}),0),"function"==typeof n&&n()}))})).catch((function(r){window._local.log("Error changing camera device (release-then-open):",r),!r||"NotReadableError"!==r.name&&"AbortError"!==r.name?"function"==typeof s&&s(r):setTimeout((function(){navigator.mediaDevices.getUserMedia({video:{deviceId:{exact:e}},audio:!1}).then((function(r){var o=r.getVideoTracks()[0];if(!o)throw new Error("No video track found in new stream");return l.replaceTrack(o).then((function(){c=r,a&&a.get(0)&&t.attachMediaStream(a.get(0),r),window._local.log("Camera device changed successfully on retry to:",e),setTimeout((function(){i.chat.getEventsElement().trigger("visitorCamLoadedData.dnxChat",a.get(0))}),0),"function"==typeof n&&n()}))})).catch((function(e){window._local.log("Retry failed changing camera device:",e),"function"==typeof s&&s(e)}))}),200)}))}catch(d){window._local.log("Unexpected error changing camera device:",d),"function"==typeof s&&s(d)}},this.changeMicrophoneDevice=function(e,t,n){return e?o&&r?(window._local.log("Changing microphone device to:",e),void navigator.mediaDevices.getUserMedia({audio:{deviceId:{exact:e}},video:!1}).then((function(n){var i=n.getAudioTracks()[0];if(!i)throw new Error("No audio track found in new stream");var r=o.webrtcStuff.pc.getSenders().find((function(e){return e.track&&"audio"===e.track.kind}));if(r){var a=r.track;return r.replaceTrack(i).then((function(){a&&"live"===a.readyState&&a.stop(),window._local.log("Microphone device changed successfully to:",e),"function"==typeof t&&t()}))}throw new Error("No audio sender found in peer connection")})).catch((function(e){window._local.log("Error changing microphone device:",e),"function"==typeof n&&n(e)}))):(window._local.log("changeMicrophoneDevice: WebRTC connection not active"),void("function"==typeof n&&n(new Error("WebRTC connection not active")))):(window._local.log("changeMicrophoneDevice: deviceId is required"),void("function"==typeof n&&n(new Error("deviceId is required"))))},this.getCurrentVideoTrackSettings=function(){if(!o||!o.webrtcStuff||!o.webrtcStuff.pc)return null;try{var e=o.webrtcStuff.pc.getSenders().find((function(e){return e.track&&"video"===e.track.kind}));if(e&&e.track&&e.track.getSettings)return e.track.getSettings()}catch(error){window._local.log("Error getting current video track settings:",error)}return null},function(e){i.chat=e}.call(this,n)},n.WebRTCVisitorCam.isGetUserMediaAvailable=function(){return t.isGetUserMediaAvailable()}}("function"==typeof dnxChatGetJQueryFunc?dnxChatGetJQueryFunc():jQuery,Janus);n(70700),n(41128);!function(e,t){Date.now||(Date.now=function(){return(new Date).valueOf()}),_local.notifyEventFromSwf=function(t,n){e(document).trigger(t,n)};var n=window.navigator.userAgent;_local.userAgentMatchesPattern=function(e){return null!==n.match(e)};var i=e.event.trigger;e.event.trigger=function(t,n){var r;if("string"==typeof t?r=t:t instanceof e.Event&&(r=t.type),r.match(/\.dnxChat$/)){for(var o=new Date,a=o.getMilliseconds()+"";a.length<3;)a+="0";var s=["["+o.toLocaleTimeString()+"."+a+"] %c[Chat]%c Event %c%o","color: #61ffca;","color: gray;","",t instanceof e.Event?[r,t]:t];n&&(s[0]+="%c with data: %c%o",s.push("color: gray;"),s.push(""),s.push(n)),_local.log.apply(_local.log,s)}return i.apply(this,arguments)};var r=function(t,n){var i=this,d={account:null,clientId:null,chatMode:"FREE",comfrom:null,cf0:null,cf1:null,cf2:null,token:null,language:null,partner_parameters:null,os:null,browser:null,http_referer:null,helmutConversionRate:5,groupTariff:5,o2oTariff:20,php_session_id:null,commonUuid:null,
2sessUuid:null,longUuid:null,fpVisitorId:null,chatNavigationSource:"pageload",livePlayerSwfPath:null,livePlayerSwfWrapperId:t,buildVersion:null,teasingPlaytime:15,visitorCamSwfPath:null,visitorCamSwfWrapperId:null,connectionHost:null,connectionPorts:[80,443,1935],webRTCEndpoint:"https://rtcweb.xmodels-live.ch/janus/",isTablet:!1,isMobile:!1,isMobileApp:!1,isHlsSourceTagNeeded:!1,isHlsSupported:!1,isHlsAutoplaySupported:!1,isIsivioo:!1,videoElement:null,audioElement:null,muteVideo:!1,nicknamePromotionFor:null,nickname:null};this.options={},this.connection=null,this.protocol=null,this.chatPageLogic=null,this.vars={numberOfVisitors:2,toyStatus:"TOY_NOT_AVAILABLE",toyVisible:"PAY",toyIntensity:!1,toyDuration:10,hasAudio:!0,voyeurAllowed:!0,credits:0},this.videoStream={},this.currentVideoStreamType=null,this.currentVisitorCamType=null;var h={desktop:[{name:"WebRTCStream",object:l},{name:"JSMpegStream",object:u}],mobile:[{name:"WebRTCStream",object:l},{name:"JSMpegStream",object:u}]};this.previewStream={};var p=function(){var t=null;i.options.token?t=i.options.token:null!==r.lastVisitorHash?t=r.lastVisitorHash:e.cookie("visitorHash")&&(t=e.cookie("visitorHash")),null!==t&&(i.options.token=i.vars.visitorHash=t),i.options.hasOwnProperty("tariffs")&&(i.vars.one2oneTariff=i.options.tariffs.o2o,i.vars.groupTariff=i.options.tariffs.o2m);let n=!1;-1!==["O2M_TEASING_5S","O2M_BLUR","O2M_CRM_LINK","VOYEUR_CRM_LINK","O2O_CRM_LINK"].indexOf(i.options.chatMode)?(i.vars.chatType=i.options.chatMode,i.previewStream=new c(i)):(i.connection=new o(i,i.options),i.chatPageLogic=new s(i,i.options),i.protocol=new a(i,i.options),n=!0,i.currentVideoStreamType=null,f.call(i)),document.dispatchEvent(new CustomEvent("dnx.chat.init",{detail:{hasConnection:n}})),i.hasBeenStopped=!1};this.hasBeenStopped=!1,this.getEventsElement=function(){return e(document)},this.createLiveChatVideoPlayer=function(){this.videoStream.init(),this.videoStream.startVideo()},this.destroy=function(t){i.hasBeenStopped||this.stop(t),e.isEmptyObject(this.videoStream)||this.videoStream.destroy(t),e.isEmptyObject(this.previewStream)||this.previewStream.destroy()},this.stop=function(e){this.protocol&&(this.protocol.stop(),this.connection.destroy(e),this.chatPageLogic.destroy()),i.hasBeenStopped=!0},this.restart=function(t,n){this.destroy(n),void 0!==t&&e.extend(!0,i.options,t),p()},this.log=function(){_local.log.apply(this,arguments)};var f=function(t){var n=t||!1,r=!i.options.isTablet&&!i.options.isMobile?h.desktop:h.mobile;_local.log("videoStream: fallback strategy"),e.each(r,(function(e,t){var r=t.name,o=t.object;if(n&&null!==i.currentVideoStreamType&&i.currentVideoStreamType===r)_local.log("videoStream: fall back to next stream type because there was an error with "+i.currentVideoStreamType);else{if(_local.log("videoStream: "+r+" getInstance()"),i.videoStream=o.getInstance(i,i.options.account),!1!==i.videoStream)return _local.log("videoStream: "+r+" is READY"),i.currentVideoStreamType=r,n&&i.createLiveChatVideoPlayer(),!1;_local.log("videoStream: "+r+" not supported/blocked or had errors")}}))};this.restartVideoStreamFallback=function(){this.videoStream.destroy(),f.call(this,!0)},i.options=e.extend(!0,{},d,n),p()};r.lastVisitorHash=null;var o=function(n,i){var r=this,a=null,s=null,c=!1;this.chat=null,this.isReady=!1,this.onConnectionReady=null,this.onDataReceived=null;this.dataReceived=function(e){"function"==typeof this.onDataReceived&&this.onDataReceived.call(this,e)},this.connectionFailed=function(e){},this.sendData=function(e){if(null!==s){r.chat.log("SEND "+e.ACTION+" : ",e);try{s.emit("visitorApp",e)}catch(t){if("undefined"!=typeof _local&&_local.debug)throw t}}};var l=function(e){if(c){if(""!=(e=h(e))){try{var t=JSON.parse(e);r.chat.log("RECEIVE "+t.ACTION+" :",t)}catch(n){r.chat.log("RECEIVE :",e.substr(0,2e3)+(e.length>2e3?"...":""))}r.dataReceived(e)}}else try{r.dataReceived(e),c=!0,r.isReady=!0,"function"==typeof r.onConnectionReady&&r.onConnectionReady.call(this)}catch(n){}},u=function(){null!==s&&(s.destroy(),s=null)},d=function(){u();var e=function(){c=!1,r.sendData({ACTION:"TEST_CONNECTION"})};(s=new t(i.connectionHost)).on("connect",e),s.on("visitorApp",l),s.on("connect_error",(function(){r.chat.log("onConnect : assertConnected failed")})),o.instance=r,s.isConnected()&&e()},h=function(t){if(0==t.indexOf("{")){var n=e.trim(t);n.indexOf("}",n.length-1)!=n.length-1&&(a=t)}else t=a+t,a="";return t};if(this.destroy=function(e){e||(o.instance=null),null===o.instance&&u()},null!==o.instance)return o.instance;r.chat=n,d()};o.instance=null;var a=function(t,n){var i=this;this.chat=null,this.TOY_DURATION_SHORT=10,this.TOY_DURATION_MEDIUM=30,this.TOY_DURATION_LONG=120;var r=null,o=null,a=function(){r.sendData({ACTION:"INIT_PAGE",COMFROM:n.comfrom,CF0:n.cf0,CF1:n.cf1,CF2:n.cf2,VISITOR_HASH:n.token,LANGUAGE:n.language,PP_PARAMETERS:n.partner_parameters,USER_AGENT:""!==n.user_agent?n.user_agent:window.navigator.userAgent,HTTP_REFERER:n.http_referer,PHP_SESSION_ID:n.php_session_id,COMMON_UUID:n.commonUuid,SESS_UUID:e.cookie("sessUuid"),LONG_UUID:e.cookie("longUuid"),FP_VISITOR_ID:e.cookie("dnx_v_id"),CHAT_NAVIGATION_SOURCE:n.chatNavigationSource})},s=function(){n.account?r.sendData({ACTION:"ENTER_VISITOR",CHAT_MODE:i.chat.options.chatMode,MOBILE_STREAM:"Y",CAMMER:n.account,STREAM_TYPE:i.chat.videoStream.name,MOBILE_APP:i.chat.options.isMobileApp?"Y":"N",IS_NICKNAME_PROMOTION:i.chat.options.account===i.chat.options.nicknamePromotionFor?"Y":"N",TRANSLATION_STATE:i.chat.options.translationState,TRANSLATION_LANG:i.chat.options.translationLanguage,VISITOR_COUNTRY:i.chat.options.visitorCountry}):i.chat.getEventsElement().trigger("joinFailed.dnxChat","CAMMERACCOUNT_IS_NULL")},c=function(){clearTimeout(o),i.chat.hasBeenStopped||(o=setTimeout((function(){r.sendData({ACTION:"PING"})}),1e4))};i.reset=function(){a()};var l=function(t){if(t)for(var n=t.split("\n");n.length>0;){var i=n.shift();if(""!=e.trim(i)){var r=JSON.parse(i);d(r),"function"==typeof u[r.ACTION]&&u[r.ACTION](r)}}},u={INIT_PAGE:function(t){if(t.SUCCESS){if("ROLE_GUEST"===i.chat.options.role&&null!==e.cookie("nickname"))i.chat.getEventsElement().trigger("changeNickname.dnxC
2hat",e.cookie("nickname"));else if("ROLE_USER"===i.chat.options.role&&0===i.chat.vars.credits&&"FREE"!==i.chat.options.chatMode)return void i.chat.getEventsElement().trigger("noMoreCredits.dnxChat");s(),c.call(i)}},ENTER_VISITOR:function(t){if(t.SUCCESS){var n;if(i.chat.vars.visitorIsPaying="FREE"!==t.CHAT_TYPE,i.chat.vars.toyStatus=t.TOY_STATUS,i.chat.vars.toyVisible=t.TOY_VISIBLE,i.chat.vars.voyeurAllowed=!0,i.chat.getEventsElement().trigger("voyeurAllowedChanged.dnxChat",!0),t.HAS_AUDIO){var r="Y"===t.HAS_AUDIO;r!==i.chat.vars.hasAudio&&i.chat.getEventsElement().trigger("cammerAudioChanged.dnxChat",r),i.chat.vars.hasAudio=r}i.chat.createLiveChatVideoPlayer(),i.chat.getEventsElement().trigger("joinSuccess.dnxChat",{toy:{status:i.chat.vars.toyStatus,visible:i.chat.vars.toyVisible}}),!0===(null===(n=t.TOP_TIPPER_PROCESS_RESULT)||void 0===n?void 0:n.status)&&i.chat.getEventsElement().trigger(e.Event("bestTipperInfo.dnxChat",{nickname:t.TOP_TIPPER_PROCESS_RESULT.nickname,credits:t.TOP_TIPPER_PROCESS_RESULT.credits,visitorCredits:t.VISITOR_TIPS_PER_DAY_PROCESS_RESULT.credits,visitorId:t.TOP_TIPPER_PROCESS_RESULT.visitorId})),c.call(i)}else["NO_FREE_SECONDS_LEFT","CAMMER_IS_PAID"].includes(t.INFO)&&(i.chat.vars.visitorIsPaying=!1),i.chat.getEventsElement().trigger("joinFailed.dnxChat",t.INFO)},PING:function(e){if(clearTimeout(o),e.ACCESS)return i.chat.vars.noAccess=!1,void c.call(i);i.chat.vars.noAccess||(i.chat.vars.noAccess=!0,"ROLE_AUDIOTEL"==i.chat.options.role&&(e.INFO="AUDIO_CALL_STOPPED"),i.chat.vars.visitorIsPaying&&"ROLE_USER"==i.chat.options.role&&0===i.chat.vars.credits?i.chat.getEventsElement().trigger("noMoreCredits.dnxChat"):i.chat.getEventsElement().trigger("noMoreAccess.dnxChat",e.INFO),"ROLE_AUDIOTEL"==i.chat.options.role&&i.chat.getEventsElement().trigger("audiotelHangUp.dnxChat"))},CHANGE_NICKNAME:function(e){void 0!==e.NICKNAME&&(i.chat.vars.newNicknameNeeded=!1,i.chat.getEventsElement().trigger("nicknameChanged.dnxChat",e.NICKNAME))},TEXT:function(t){if("TEXT"===t.MESSAGE_TYPE){const e=t.SENDER_NICKNAME;i.chat.getEventsElement().trigger("append.dnxChat",[t.TEXT,e,t.SENDER_ROLE,t.ROOM_TYPE,t.TEXT_UUID,t.senderMemberReference])}else"TEXT_TRANSLATED"===t.MESSAGE_TYPE?i.chat.getEventsElement().trigger("addMessageTranslated.dnxChat",[t.TEXT_UUID,t.TEXT]):"KICKED"==t.MESSAGE_TYPE?i.chat.getEventsElement().trigger("youHaveBeenBanned.dnxChat"):"MUTED"==t.MESSAGE_TYPE?i.chat.getEventsElement().trigger(e.Event("youHaveBeenMutedOrUnmuted.dnxChat",{muted:1})):"UNMUTED"==t.MESSAGE_TYPE?i.chat.getEventsElement().trigger(e.Event("youHaveBeenMutedOrUnmuted.dnxChat",{muted:0})):"ONE2ONE_DENIED"==t.MESSAGE_TYPE?i.chat.getEventsElement().trigger("one2oneRequestDenied.dnxChat"):"REACTION"==t.MESSAGE_TYPE&&i.chat.getEventsElement().trigger("addMessageReaction.dnxChat",[t.TEXT_UUID,t.REACTION,t.ROOM_TYPE,t.senderMemberReference])},CAMMER_UPDATE:function(e){switch(e.EVENT){case"UPDATE_CHAT_TYPE":i.chat.vars.chatType!==e.NEW_VALUE?(i.chat.vars.chatType=e.NEW_VALUE,i.chat.getEventsElement().trigger("chatTypeChanged.dnxChat",[e.OLD_VALUE,e.NEW_VALUE])):i.chat.log("The chat type has already been updated. The chatTypeChanged should not be triggered");break;case"UPDATE_STATUS":i.chat.vars.status=e.NEW_VALUE,i.chat.getEventsElement().trigger("chatStatusChanged.dnxChat",e.NEW_VALUE);break;case"UPDATE_APP_TYPE":i.chat.vars.appType=e.NEW_VALUE;break;case"UPDATE_DEFAULT_TARIFF":i.chat.vars.groupTariff=parseInt(e.NEW_VALUE),i.chat.getEventsElement().trigger("privateTariffChanged.dnxChat",e.NEW_VALUE);break;case"UPDATE_ONE2ONE_TARIFF":i.chat.vars.one2oneTariff=parseInt(e.NEW_VALUE),i.chat.getEventsElement().trigger("one2oneTariffChanged.dnxChat",e.NEW_VALUE)}},CLOSE_REASON:function(e){if("CAMMER_BLUR_DISAPPEARED"!==e.REASON){var t,n=i.chat.vars.chatType;switch(e.REASON){case"CAMMER_TO_GROUP":t="O2M";break;case"CAMMER_TO_BLUR":t="FREE",i.chat.vars.blurredStream=!0,i.chat.getEventsElement().trigger("blurStatusChanged.dnxChat",!0);break;case"CAMMER_TO_PRIVATE":t="O2O",i.chat.vars.voyeurAllowed=void 0!==e.VOYEUR_ALLOWED&&"Y"===e.VOYEUR_ALLOWED}i.chat.vars.chatType=t,t!==n&&i.chat.getEventsElement().trigger("chatTypeChanged.dnxChat",[n,t])}else i.chat.protocol.reset()},ROOM_INFO:function(e){i.chat.getEventsElement().trigger("visitorCountChanged.dnxChat",e.NUMBER_OF_VISITORS)},CAMMER_AUDIO:function(e){if(e.HAS_AUDIO){var t="Y"===e.HAS_AUDIO;t!==i.chat.vars.hasAudio&&i.chat.getEventsElement().trigger("cammerAudioChanged.dnxChat",t),i.chat.vars.hasAudio=t}},VIRTUAL_GIFT:function(t){var n;
2i.chat.getEventsElement().trigger(e.Event("virtualGiftSent.dnxChat",{message:t.TEXT,isBuyer:"Y"===t.IS_BUYER,cammerNickname:t.CAMMER_NICKNAME,visitorNickname:t.VISITOR_NICKNAME,virtualGiftId:parseInt(t.VIRTUAL_GIFT_ID),virtualGiftNbCredits:parseInt(t.VIRTUAL_GIFT_NB_CREDITS),virtualGiftName:t.VIRTUAL_GIFT_NAME,virtualGiftFake:"Y"===t.IS_FAKE_GIFT,virtualGiftCategory:t.CATEGORY})),!0===(null===(n=t.TOP_TIPPER_PROCESS_RESULT)||void 0===n?void 0:n.status)&&i.chat.getEventsElement().trigger(e.Event("bestTipperInfo.dnxChat",{nickname:t.TOP_TIPPER_PROCESS_RESULT.nickname,credits:t.TOP_TIPPER_PROCESS_RESULT.credits,visitorCredits:t.VISITOR_TIPS_PER_DAY_PROCESS_RESULT.credits,visitorId:t.TOP_TIPPER_PROCESS_RESULT.visitorId}))},TOY_CONTROL:function(t){var n="Y"==t.IS_OWNER;"STARTED"===t.TOY_TYPE?(n||(i.chat.vars.toyStatus="TOY_IN_USE_BY_OTHER_VISITOR"),i.chat.getEventsElement().trigger(e.Event("visitorStartedToySessionBroadcast.dnxChat",{visitorNickname:t.VISITOR_NICKNAME,isOwner:n,toyDuration:void 0===t.DURATION?i.chat.vars.toyDuration:t.DURATION,toyStatus:i.chat.vars.toyStatus}))):"STOPPED"===t.TOY_TYPE?(i.chat.vars.toyStatus="TOY_AVAILABLE",i.chat.getEventsElement().trigger(e.Event("visitorStoppedToySessionBroadcast.dnxChat",{visitorNickname:t.VISITOR_NICKNAME,isOwner:n,toyStatus:i.chat.vars.toyStatus}))):"VISIBILITY"===t.TOY_TYPE&&(i.chat.vars.toyVisible=t.TOY_VISIBLE,i.chat.getEventsElement().trigger(e.Event("toyVisibilityChange.dnxChat",{toyVisible:i.chat.vars.toyVisible})))},CREDITS_BALANCE:function(e){if(e.CREDITS_BALANCE&&"FREE"===i.chat.vars.chatType){var t=parseInt(e.CREDITS_BALANCE);t>=0&&(i.chat.getEventsElement().trigger("creditCountChanged.dnxChat",t),i.chat.vars.credits=t)}if(void 0!==e.TICKETS_BALANCE){var n=parseInt(e.TICKETS_BALANCE);n>=0&&i.chat.getEventsElement().trigger("toyTicketsBalanceChanged.dnxChat",n)}},VISITOR_CAMMER_LANGUAGE_RATING:function(e){i.chat.getEventsElement().trigger("visitorCammerLanguageRating.dnxChat",[e.CAMMER,e.LANGUAGE])},SET_RATING:function(e){i.chat.getEventsElement().trigger("setRatingResponse.dnxChat",[e.SUCCESS,JSON.parse(e.WEBCAMSEX_FACTOR)])},DO_TOY_REQUEST:function(e){e.SUCCESS?"OFF"===i.chat.vars.toyIntensity?(i.chat.vars.toyStatus="TOY_AVAILABLE",i.chat.getEventsElement().trigger("toySessionStopped.dnxChat",i.chat.vars.toyStatus)):"TOY_IN_USE_BY_USER"!==i.chat.vars.toyStatus&&(i.chat.vars.toyStatus="TOY_IN_USE_BY_USER",void 0!==e.DURATION&&(i.chat.vars.toyDuration=e.DURATION),i.chat.getEventsElement().trigger("toySessionStarted.dnxChat",{toyDuration:i.chat.vars.toyDuration,toyStatus:i.chat.vars.toyStatus})):(-1!==["TOY_NOT_AVAILABLE","TOY_IN_USE_BY_USER","TOY_IN_USE_BY_OTHER_VISITOR"].indexOf(e.ERROR)&&(i.chat.vars.toyStatus=e.ERROR),i.chat.getEventsElement().trigger("toySessionFailed.dnxChat",{error:e.ERROR,status:i.chat.vars.toyStatus}))}};this.enableTranslation=function(e){r.sendData({ACTION:"SET_TRANSLATION_STATE",ACTIVE:e?"Y":"N"})},this.changeTranslationLang=function(e){r.sendData({ACTION:"SET_TRANSLATION_LANG",LANGUAGE:e})},this.sendMessage=function(t,n){if(""!=e.trim(t)){var i=e.trim(t);i=i.replace("\n"," "),r.sendData({ACTION:"SEND_TEXT",TEXT:i,ROOM_TYPE:n})}},this.requestOne2One=function(){"ONE2ONE_ENABLED"==i.chat.vars.one2oneStatus&&("FREE"==i.chat.vars.chatType?(i.chat.options.chatMode="ONE2ONE",s()):("FREE"==i.
2chat.options.chatMode&&(i.chat.options.chatMode="ONE2MANY",s()),r.sendData({ACTION:"DO_ONE2ONE_REQUEST"})))},this.stopPrivateShow=function(){"FREE"!=i.chat.options.chatMode&&(i.chat.options.chatMode="ONE2MANY",s())},this.sendToyRequest=function(e,t){if("TOY_NOT_AVAILABLE"!==i.chat.vars.toyStatus){if(i.chat.vars.toyDuration=h(t),"O2M_BLUR"===i.chat.vars.chatType)return!1;i.chat.vars.toyIntensity=void 0===e?"LOW":e,r.sendData({ACTION:"DO_TOY_REQUEST",INTENSITY:i.chat.vars.toyIntensity,DURATION:i.chat.vars.toyDuration})}},this.stopToySession=function(){i.chat.vars.toyIntensity="OFF",r.sendData({ACTION:"DO_TOY_REQUEST",INTENSITY:i.chat.vars.toyIntensity,DURATION:i.chat.vars.toyDuration})},this.setRating=function(e){r.sendData({ACTION:"SET_RATING",RATING:e,ROOM_TYPE:"PUBLIC"})},this.joinPaidShow=function(){i.chat.vars.visitorIsPaying?i.chat.log("joinPaidShow: do not enterVisitor because visitorIsPaying=true"):(i.chat.options.chatMode="ONE2MANY",s())},this.setNickname=function(e){i.chat.vars.nickname=e,r.sendData({ACTION:"CHANGE_NICKNAME",PREFERRED_NICKNAME:e})},this.sendExitReason=function(e){r.sendData({ACTION:"SEND_EXIT_REASON",REASON:e})},this.sendTextReaction=function(e,t,n){r.sendData({ACTION:"SEND_TEXT_REACTION",ROOM_TYPE:n,TEXT_UUID:e,REACTION:t})};var d=function(t){if(null!=t.APP_TYPE&&(i.chat.vars.appType=t.APP_TYPE),null!=t.BLURRED_STREAM){i.chat.vars.blurredStream;var n="Y"==t.BLURRED_STREAM;i.chat.vars.blurredStream=n}if(null!=t.CHAT_TYPE&&(i.chat.vars.chatType=t.CHAT_TYPE),null!=t.CREDITS&&parseInt(t.CREDITS)!=i.chat.vars.credits&&parseInt(t.CREDITS)>=0&&(i.chat.getEventsElement().trigger("creditCountChanged.dnxChat",t.CREDITS),i.chat.vars.credits=parseInt(t.CREDITS)),null!=t.EVENT&&(i.chat.vars.event=t.EVENT),null!=t.FREE_SECONDS&&(i.chat.vars.freeSeconds=t.FREE_SECONDS),null!=t.INFO&&(i.chat.vars.info=t.INFO),null!=t.LOGGED_IN&&(i.chat.vars.loggedIn="Y"==t.LOGGED_IN),null!=t.MESSAGE_TYPE&&(i.chat.vars.messageType=t.MESSAGE_TYPE),null!=t.MJPEG_URL&&(i.chat.vars.mjpegUrl=t.MJPEG_URL),void 0!==t.NEW_NICKNAME_NEEDED){const e="Y"===t.NEW_NICKNAME_NEEDED;i.chat.vars.newNicknameNeeded!==e&&(e&&i.chat.getEventsElement().trigger("newNicknameNeeded.dnxChat"),i.chat.vars.newNicknameNeeded=e)}if(null!=t.NEW_VALUE&&(i.chat.vars.newValue=t.NEW_VALUE),void 0!==t.NICKNAME&&(e.cookie("nickname",t.NICKNAME,{expires:31,path:"/"}),i.chat.vars.nickname=t.NICKNAME),null!=t.NUMBER_OF_VISITORS&&(i.chat.vars.numberOfVisitors=t.NUMBER_OF_VISITORS),null!=t.OBJECT&&null!=t.OBJECT.one2oneStatus&&""!=t.OBJECT.one2oneStatus&&(i.chat.vars.one2oneStatus=t.OBJECT.one2oneStatus,i.chat.getEventsElement().trigger("showGoPrivateButtons.dnxChat","ONE2ONE_ENABLED"==i.chat.vars.one2oneStatus),"ONE2ONE_ENABLED"==i.chat.vars.one2oneStatus&&i.chat.getEventsElement().trigger("showStopPrivateButtons.dnxChat",!1)),null!=t.ONE2ONE_STATUS&&(i.chat.vars.one2oneStatus=t.ONE2ONE_STATUS,"ONE2ONE_REQUESTED"!=i.chat.vars.one2oneStatus&&i.chat.getEventsElement().trigger("showGoPrivateButtons.dnxChat","ONE2ONE_ENABLED"==i.chat.vars.one2oneStatus),"ONE2ONE_ENABLED"==i.chat.vars.one2oneStatus&&i.chat.getEventsElement().trigger("showStopPrivateButtons.dnxChat",!1)),null!=t.PREFERRED_NICKNAME&&(i.chat.vars.preferredNickname=t.PREFERRED_NICKNAME),null!=t.PRIVATE_ROOM){var r="Y"==t.PRIVATE_ROOM;r!=i.chat.vars.privateRoom&&(i.chat.vars.privateRoom=r,i.chat.getEventsElement().trigger("privateRoomStatusChanged.dnxChat",r))}null!=t.REASON&&(i.chat.vars.reason=t.REASON),null!=t.ROOM_TYPE&&(i.chat.vars.roomType=t.ROOM_TYPE),null!=t.SENDER_NICKNAME&&(i.chat.vars.senderNickname=t.SENDER_NICKNAME),null!=t.SENDER_ROLE&&(i.chat.vars.senderRole=t.SENDER_ROLE),null!=t.JSMPEG&&(i.chat.vars.jsmpeg=t.JSMPEG),null!=t.STREAMING_SERVER&&(i.chat.vars.streamingServer=t.STREAMING_SERVER),null!=t.TEXT&&(i.chat.vars.text=t.TEXT),null!=t.VISITOR_HASH&&i.chat.vars.visitorHash!=t.VISITOR_HASH&&(i.chat.vars.visitorHash=t.VISITOR_HASH,"ROLE_GUEST"==i.chat.options.role&&e.cookie("visitorHash",i.chat.vars.visitorHash,{expires:31,path:"/"})),null!=t.VISITOR_ID&&(i.chat.vars.visitorId=t.VISITOR_ID),void 0!==t.C2C_ENABLED&&(i.chat.vars.c2cEnabled=t.C2C_ENABLED,i.chat.getEventsElement().trigger("visitorCamTypeChanged.dnxChat",[i.chat.currentVisitorCamType,i.chat.vars.c2cEnabled]))},h=function(e){var t=parseInt(e);switch(t){case i.TOY_DURATION_SHORT:case i.TOY_DURATION_MEDIUM:case i.TOY_DURATION_LONG:return t;default:return i.TOY_DURATION_SHORT}};this.stop=function(){clearTimeout(o)},i.chat=t,(r=i.chat.connection).onConnectionReady=a,r.onDataReceived=l,r.isReady&&(s(),c())},s=function(t,n){var i=this;this.chat=null;var r,o={},a=!1,s=function(){"FREE"===i.chat.vars.chatType?(i.chat.getEventsElement().trigger("freeChatMode.dnxChat"),i.chat.getEventsElement().trigger("showGoPrivateButtons.dnxChat","ONE2ONE_
2ENABLED"==i.chat.vars.one2oneStatus),i.chat.getEventsElement().trigger("showStopPrivateButtons.dnxChat",!1)):"O2M"===i.chat.vars.chatType?(i.chat.getEventsElement().trigger("groupShowMode.dnxChat"),i.chat.getEventsElement().trigger("showGoPrivateButtons.dnxChat","ONE2ONE_ENABLED"==i.chat.vars.one2oneStatus),i.chat.getEventsElement().trigger("showStopPrivateButtons.dnxChat",!1)):"ONE2ONE_VOYEUR"===i.chat.vars.one2oneStatus?(i.chat.getEventsElement().trigger("voyeurMode.dnxChat"),i.chat.getEventsElement().trigger("showGoPrivateButtons.dnxChat",!1),i.chat.getEventsElement().trigger("showStopPrivateButtons.dnxChat",!1)):(i.chat.getEventsElement().trigger("privateShowMode.dnxChat"),i.chat.getEventsElement().trigger("showGoPrivateButtons.dnxChat",!1),i.chat.getEventsElement().trigger("showStopPrivateButtons.dnxChat",!0))},c=function(){a||(i.chat.getEventsElement().trigger("videoStarted.dnxChat"),a=!0)},l=function(){o={"append.dnxChat":function(e,t,n,r,o,a,s){let c="OTHER";"CAMMER"===r?c="CAMMER":+s==+i.chat.vars.visitorId&&(c="ME"),i.chat.getEventsElement().trigger("messageReceived.dnxChat",[n,c,o,t,a,s])},"joinSuccess.dnxChat":function(e){s()},"chatTypeChanged.dnxChat":function(e,t,n){const r=i.chat.vars.visitorIsPaying||"ROLE_AUDIOTEL"===i.chat.options.role;!r&&["O2M","O2O"].includes(n)?(i.chat.getEventsElement().trigger("showGoPrivateButtons.dnxChat","O2O"!=n&&"ONE2ONE_ENABLED"==i.chat.vars.one2oneStatus),i.chat.getEventsElement().trigger("showStopPrivateButtons.dnxChat",!1),i.chat.getEventsElement().trigger("askVisitorToJoinPaid.dnxChat",n)):r&&"O2O"===n&&!i.chat.vars.voyeurAllowed?i.chat.getEventsElement().trigger("voyeurAllowedChanged.dnxChat",!1):(i.chat.log("chatTypeChanged.dnxChat",{visitorIsPaying:r,oldChatMode:t,newChatMode:n,currentChatType:i.chat.vars.chatType}),s()),"FREE"==n&&i.chat.videoStream.stopCam2Cam(),"020"!=n&&i.chat.videoStream.stopUserAudio()},"blurStatusChanged.dnxChat":function(e,t){t&&(i.chat.getEventsElement().trigger("showGoPrivateButtons.dnxChat","ONE2ONE_ENABLED"==i.chat.vars.one2oneStatus),i.chat.getEventsElement().trigger("showStopPrivateButtons.dnxChat",!1),i.chat.getEventsElement().trigger("askVisitorToJoinPaid.dnxChat","O2M"))},"joinFailed.dnxChat":function(e,t){if("PRIVATE"==t||"SESSIONINFORMATION_NULL"==t||"CAMMER_IS_PAID"==t||"NO_AUTH_RESULT"==t||"ONE2ONE"==t){var n=i.chat.vars.chatType;"ONE2ONE"==t&&(n="O2O"),i.chat.getEventsElement().trigger("chatTypeChanged.dnxChat",["FREE",n])}else"CAMMER_IS_NULL"==t||"CAMMERACCOUNT_IS_NULL"==t||"INVALID_CAMMER_MEMBER"==t||"SESSION_INFORMATION_CAMMER_NOT_FOUND"==t?(i.chat.vars.status="OFFLINE",i.chat.getEventsElement().trigger("chatStatusChanged.dnxChat","OFFLINE")):"CREDITS_NEEDED"==t&&"FREE"!=i.chat.options.chatMode?i.chat.getEventsElement().trigger("noMoreCredits.dnxChat"):"NO_FREE_SECONDS_LEFT"==t||"LOGIN_NEEDED"==t?i.chat.getEventsElement().trigger("noMoreFreeSeconds.dnxChat","ROLE_USER"!=i.chat.options.role):"BANNED"===t?i.chat.getEventsElement().trigger("youHaveBeenBanned.dnxChat"):"NO_VOYEUR_ALLOWED"===t&&(i.chat.vars.voyeurAllowed=!1,i.chat.getEventsElement().trigger("voyeurAllowedChanged.dnxChat",!1))},"noMoreAccess.dnxChat":function(e,t){"NO_FREE_SECONDS_LEFT"===t&&i.chat.getEventsElement().trigger("noMoreFreeSeconds.dnxChat","ROLE_USER"!==i.chat.options.role)},"changeNickname.dnxChat":function(e,t){i.chat.protocol.setNickname(t)},"creditCountChanged.dnxChat":function(e,t){var n=1*i.chat.vars.groupTariff,r=2*i.chat.vars.groupTariff;"O2O"==i.chat.vars.chatType&&"ONE2ONE_VOYEUR"!=i.chat.vars.one2oneStatus&&(n=1*i.chat.vars.one2oneTariff,r=2*i.chat.vars.one2oneTariff),(0!=t||!i.chat.vars.visitorIsPaying&&"FREE"==i.chat.options.chatMode)&&i.chat.vars.chatType&&"FREE"!=i.chat.vars.chatType&&!i.chat.vars.autopackDisabled&&t>=n&&t<=r&&(i.chat.getEventsElement().trigger("askForAutoRefill.dnxChat",i.chat.options.autopack.active),i.chat.vars.autopackDisabled=!0)},"doAutoRefill.dnxChat":function(t,n,r){if(n){var o={url:i.chat.options.autopack.url,type:"POST",data:{sessionIdentifier:r},success:function(e,t,n){"application/json"==n.getResponseHeader("Content-Type")&&e.success?(i.chat.getEventsElement().trigger("autorefillDone.dnxChat"),setTimeout((function(){i.chat.vars.autopackDisabled=!1}
2),6e4)):i.chat.getEventsElement().trigger("autorefillFailed.dnxChat")},error:function(){i.chat.getEventsElement().trigger("autorefillFailed.dnxChat")}};"undefined"!=typeof _local&&_local.threatMetrix?(_local.threatMetrix.start("PAYMENT"),_local.threatMetrix.ajax(o)):e.ajax(o)}else i.chat.options.autopack.active=!1,i.chat.vars.autopackDisabled=!0},"enableTranslation.dnxChat":function(e,t){i.chat.protocol.enableTranslation(t)},"changeTranslationLanguage.dnxChat":function(e,t){i.chat.protocol.changeTranslationLang(t)},"sendMessage.dnxChat":function(e,t,n){null==n&&(n=i.chat.vars.roomType),i.chat.protocol.sendMessage(t,n)},"exit.dnxChat":function(e,t){i.chat.protocol.sendExitReason(t)},"toggleCam2cam.dnxChat":function(e){i.chat.videoStream.toggleCam2Cam()},"toggleUserAudio.dnxChat":function(e){i.chat.videoStream.toggleUserAudio()},"toggleSound.dnxChat":function(t){var n=i.chat.videoStream.toggleVolume();i.chat.vars.isMute=0==n,e.cookie("chat_sound_volume",n,{expires:365,path:"/"}),i.chat.getEventsElement().trigger("soundVolumeChanged.dnxChat",n)},"disableSound.dnxChat":function(t){if(!i.chat.vars.isMute){i.chat.videoStream.setVolume(0),i.chat.vars.isMute=!0,e.cookie("chat_sound_volume",0,{expires:365,path:"/"}),i.chat.getEventsElement().trigger("soundVolumeChanged.dnxChat",0)}},"audioNeedsUnlocking.dnxChat":function(e){if(!i.chat.vars.isMute){i.chat.videoStream.setVolume(0),i.chat.vars.isMute=1,i.chat.getEventsElement().trigger("soundVolumeChanged.dnxChat",0)}},"requestOne2One.dnxChat":function(){i.chat.protocol.requestOne2One()},"stopPrivateShow.dnxChat":function(e){i.chat.protocol.stopPrivateShow()},"joinPaidShow.dnxChat":function(){i.chat.protocol.joinPaidShow()},"requestToySession.dnxChat":function(e,t,n){i.chat.protocol.sendToyRequest(t,n)},"stopToySession.dnxChat":function(e){i.chat.protocol.stopToySession()},"setRating.dnxChat":function(e,t){i.chat.protocol.setRating(t),i.updateRatingFunctionalityStatus()},"chatStreamReady.dnxChat":function(){i.chat.videoStream.ready=!0;var t=e.cookie("chat_sound_volume");null===t&&(t=1),i.chat.vars.isMute=0==t,i.chat.videoStream.setVolume(parseFloat(t)),i.chat.getEventsElement().trigger("soundVolumeChanged.dnxChat",parseFloat(t)),r=setTimeout((function(){c.call(i)}),5e3)},"chatVideoRender.dnxChat":function(){clearTimeout(r),c.call(i)},"startVideoStream.dnxChat":function(){i.chat.videoStream.requestManualStart(),i.chat.videoStream.startVideo()},"stopVideoStream.dnxChat":function(){i.chat.videoStream.stopVideo()},"sendMessageReaction.dnxChat":function(e,t,n,r){i.chat.protocol.sendTextReaction(t,n,r)}},i.chat.getEventsElement().on(o)};this.updateRatingFunctionalityStatus=function(){var t=e.cookie("ratings");t=t?JSON.parse(t):{};var n=i.chat.options.account,r=function(e,t){return null==e[t]||e[t].time<(new Date).getTime()-864e5}(t,n);i.chat.getEventsElement().trigger("updateRatingFunctionalityStatus.dnxChat",[r,r?null:t[n].rating])},this.destroy=function(){clearTimeout(r),i.chat.getEventsElement().off(o)},i.chat=t,l(),"OFFLINE"===i.chat.options.status?(i.chat.vars.status="OFFLINE",i.chat.getEventsElement().trigger("chatStatusChanged.dnxChat","OFFLINE")):i.chat.vars.status="ONLINE",setTimeout((function(){i.updateRatingFunctionalityStatus()}),1)};e.fn.dnxChat=function(e,t){var n=this.data("chat");n&&(e=e||n.options,n.destroy(t));var i=new r(this.attr("id"),e);return this.data("chat",i),_local.currentChatObject=i,this};var c=function(t){var n,i=this,r={},o=null;this.destroy=function(){o.destroy(),i.chat.getEventsElement().off(r),n.off()};var a=function(e){e=e||!1,i.chat.getEventsElement().trigger("joinFailed.dnxChat"),i.chat.getEventsElement().trigger("noMoreTeasingTime.dnxChat",[e])},s=function(t){var n=e.cookie("chat_sound_volume");null===n&&(n=1),t&&(n=0),i.chat.vars.isMute=0==n,c(parseFloat(n)),i.chat.getEventsElement().trigger("soundVolumeChanged.dnxChat",parseFloat(n))};var c=function(e){o.setVolume(e)},l=function(){r={"toggleSound.dnxChat":function(){var t=o.toggleVolume();i.chat.vars.isMute=0==t,e.cookie("chat_sound_volume",t,{expires:365,path:"/"}),i.chat.getEventsElement().trigger("soundVolumeChanged.dnxChat",t)},"unlockAudio.dnxChat":function(e,t){o.unmuteVideo(),"function"==typeof t&&t()},"audioNeedsUnlocking.dnxChat":function(e){if(!i.chat.vars.isMute){c(0),i.chat.vars.isMute=1,i.chat.getEventsElement().trigger("soundVolumeChanged.dnxChat",0)}}},i.chat.getEventsElement().on(r)};i.chat=t,function(){n=e("#"+i.chat.options.livePlayerSwfWrapperId);var t=i.chat.options.account,r={isHlsAutoplaySupported:i.chat.options.isHlsAutoplaySupported,buildVersion:i.chat.options.buildVersion,teasingPlaytime:i.chat.options.teasingPlaytime,muteVideo:i.chat.options.muteVideo,http_referer:i.chat.options.http_referer,autoStart:i.chat.options.autoStart};i.chat.options.videoElement&&(r.videoElement=i.chat.options.videoElement),i.chat.options.audioElement&&(r.audioElement=i.chat.options.audioElement),o=new dnx.ui.chat.LivePreviewBlur(i.chat,n,t,r),n.on("video_start video_render video_error video_rejected destroy_player",(function(e){clearTimeout(void 0),i.chat.log("LivePreviewBlur:"+e.type+" event received")}));var c="O2M_TEASING_5S"===i.chat.vars.chatType?"teasingMode.dnxChat":"blurPreviewMode.dnxChat";n.on("video_start",(function(e){i.chat.getEventsElement().trigger("joinSuccess.dnxChat"),i.chat.getEventsElement().trigger("showGoPrivateButtons.dnxChat",!0),i.chat.getEventsElement().trigger("showStopPrivateButtons.dnxChat",!0),s(o.isVideoMuted())})).on("video_render",(function(e){i.chat.getEventsElement().trigger(c),i.chat.getEventsElement().trigger("videoStarted.dnxChat")})).on("video_error",(function(e){a(!0)})).on("video_rejected",(function(e){a(!1)}))}(),l()},l=function(e){};l.getInstance=function(e,t){var n=!(!dnx||!dnx.WebRTCStream),i=!(!dnx||!dnx.WebRTCVisitorCam);if(n&&dnx.WebRTCStream.isSupported(e)&&!dnx.WebRTCStream.hadError(t)){var r={};e.options.videoElement&&(r.videoElement=e.options.videoElement);var o=null;return i&&dnx.WebRTCVisitorCam.isGetUserMediaAvailable()&&(o=new dnx.WebRTCVisitorCam(e),e.currentVisitorCamType="WebRTCVisitorCam"),new dnx.WebRTCStream(e,o,r)}return!1};var u=function(e){};u.getInstance=function(e,t){return!(!dnx||!dnx.JSMpegStream||!dnx.JSMpegStream.isSupported()||dnx.JSMpegStream.hadError())&&new dnx.JSMpegStream(e)}}("function"==typeof dnxChatGetJQueryFunc?dnxChatGetJQueryFunc():jQuery,dnx.chat.SocketConnection)},61303(e,t,n){var i,r;i=[n(56030)],void 0===(r=function(e){window.adapter=e}.apply(t,i))||(e.exports=r)}
vendor: 5,674 bytes, line 2
2,56030(e,t,n){n(3362),n(84864),n(27495),n(25440),n(42762),n(62953),e.exports=function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return r(t[a][1][e]||e)}),l,l.exports,e,t,n,i)}return n[a].exports}for(var o=void 0,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){"use strict";function i(e,t,n,i,r){var o=s.writeRtpDescription(e.kind,t);if(o+=s.writeIceParameters(e.iceGatherer.getLocalParameters()),o+=s.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":r||"active"),o+="a=mid:"+e.mid+"\r\n",e.direction?o+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?o+="a=sendrecv\r\n":e.rtpSender?o+="a=sendonly\r\n":e.rtpReceiver?o+="a=recvonly\r\n":o+="a=inactive\r\n",e.rtpSender){var a="msid:"+i.id+" "+e.rtpSender.track.id+"\r\n";o+="a="+a,o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+a,e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+a,o+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+s.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+s.localCName+"\r\n"),o}function r(e,t){var n={codecs:[],headerExtensions:[],fecMechanisms:[]},i=function(e,t){e=parseInt(e,10);for(var n=0;n<t.length;n++)if(t[n].payloadType===e||t[n].preferredPayloadType===e)return t[n]},r=function(e,t,n,r){var o=i(e.parameters.apt,n),a=i(t.parameters.apt,r);return o&&a&&o.name.toLowerCase()===a.name.toLowerCase()};return e.codecs.forEach((function(i){for(var o=0;o<t.codecs.length;o++){var a=t.codecs[o];if(i.name.toLowerCase()===a.name.toLowerCase()&&i.clockRate===a.clockRate){if("rtx"===i.name.toLowerCase()&&i.parameters&&a.parameters.apt&&!r(i,a,e.codecs,t.codecs))continue;(a=JSON.parse(JSON.stringify(a))).numChannels=Math.min(i.numChannels,a.numChannels),n.codecs.push(a),a.rtcpFeedback=a.rtcpFeedback.filter((function(e){for(var t=0;t<i.rtcpFeedback.length;t++)if(i.rtcpFeedback[t].type===e.type&&i.rtcpFeedback[t].parameter===e.parameter)return!0;return!1}));break}}})),e.headerExtensions.forEach((function(e){for(var i=0;i<t.headerExtensions.length;i++){var r=t.headerExtensions[i];if(e.uri===r.uri){n.headerExtensions.push(r);break}}})),n}function o(e,t,n){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[t][e].indexOf(n)}function a(e,t){var n=e.getRemoteCandidates().find((function(e){return t.foundation===e.foundation&&t.ip===e.ip&&t.port===e.port&&t.priority===e.priority&&t.protocol===e.protocol&&t.type===e.type}));return n||e.addRemoteCandidate(t),!n}var s=e("sdp");t.exports=function(e,t){var n=function(n){var i=this,r=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach((function(e){i[e]=r[e].bind(r)})),this.onicecandidate=null,this.onaddstream=null,this.ontrack=null,this.onremovestream=null,this.onsignalingstatechange=null,this.oniceconnectionstatechange=null,this.onicegatheringstatechange=null,this.onnegotiationneeded=null,this.ondatachannel=null,this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this.localDescription=null,this.remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.iceGatheringState="new",n=JSON.parse(JSON.stringify(n||{})),this.usingBundle="max-bundle"===n.bundlePolicy,"negotiate"===n.rtcpMuxPolicy){var o=new Error("rtcpMuxPolicy 'negotiate' is not supported");throw o.name="NotSupportedError",o}switch(n.rtcpMuxPolicy||(n.rtcpMuxPolicy="require"),n.iceTransportPolicy){case"all":case"relay":break;default:n.iceTransportPolicy="all"}switch(n.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:n.bundlePolicy="balanced"}if(n.iceServers=function(e,t){var n=!1;return(e=JSON.parse(JSON.stringify(e))).filter((function(e){if(e&&(e.urls||e.url)){var i=e.urls||e.url;e.url&&!e.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var r="string"==typeof i;return r&&(i=[i]),i=i.filter((function(e){return 0!==e.indexOf("turn:")||-1===e.indexOf("transport=udp")||-1!==e.indexOf("turn:[")||n?0===e.indexOf("stun:")&&t>=14393&&-1===e.indexOf("?transport=udp"):(n=!0,!0)})),delete e.url,e.urls=r?i[0]:i,!!i.length}return!1}))}(n.iceServers||[],t),this._iceGatherers=[],n.iceCandidatePoolSize)for(var a=n.iceCandidatePoolSize;a>0;a--)this._iceGatherers=new e.RTCIceGatherer({iceServers:n.iceServers,gatherPolicy:n.iceTransportPolicy});else n.iceCandidatePoolSize=0;this._config=n,this.transceivers=[],this._sdpSessionId=s.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0};return n.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this.dispatchEvent(e),"function"==typeof this.onicegatheringstatechange&&this.onicegatheringstatechange(e)},n.prototype.getConfiguration=function(){return this._config},n.prototype.getLocalStreams=function(){return this.localStreams},n.prototype.getRemoteStreams=function(){return this.remoteStreams},n.prototype._createTransceiver=function(e){var t=this.transceivers.length>0,n={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,
2sendEncodingParameters:null,recvEncodingParameters:null,stream:null,wantReceive:!0};if(this.usingBundle&&t)n.iceTransport=this.transceivers[0].iceTransport,n.dtlsTransport=this.transceivers[0].dtlsTransport;else{var i=this._createIceAndDtlsTransports();n.iceTransport=i.iceTransport,n.dtlsTransport=i.dtlsTransport}return this.transceivers.push(n),n},n.prototype.addTrack=function(t,n){for(var i,r=0;r<this.transceivers.length;r++)this.transceivers[r].track||this.transceivers[r].kind!==t.kind||(i=this.transceivers[r]);return i||(i=this._createTransceiver(t.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(n)&&this.localStreams.push(n),i.track=t,i.stream=n,i.rtpSender=new e.RTCRtpSender(t,i.dtlsTransport),i.rtpSender},n.prototype.addStream=function(e){var n=this;if(t>=15025)e.getTracks().forEach((function(t){n.addTrack(t,e)}));else{var i=e.clone();e.getTracks().forEach((function(e,t){var n=i.getTracks()[t];e.addEventListener("enabled",(function(e){n.enabled=e.enabled}))})),i.getTracks().forEach((function(e){n.addTrack(e,i)}))}},n.prototype.removeStream=function(e){var t=this.localStreams.indexOf(e);t>-1&&(this.localStreams.splice(t,1),this._maybeFireNegotiationNeeded())},n.prototype.getSenders=function(){return this.transceivers.filter((function(e){return!!e.rtpSender})).map((function(e){return e.rtpSender}))},n.prototype.getReceivers=function(){return this.transceivers.filter((function(e){return!!e.rtpReceiver})).map((function(e){return e.rtpReceiver}))},n.prototype._createIceGatherer=function(t,n){var i=this;if(n&&t>
20)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var r=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(r,"state",{value:"new",writable:!0}),this.transceivers[t].candidates=[],this.transceivers[t].bufferCandidates=function(e){var n=!e.candidate||0===Object.keys(e.candidate).length;r.state=n?"completed":"gathering",null!==i.transceivers[t].candidates&&i.transceivers[t].candidates.push(e.candidate)},r.addEventListener("localcandidate",this.transceivers[t].bufferCandidates),r},n.prototype._gather=function(t,n){var i=this,r=this.transceivers[n].iceGatherer;if(!r.onlocalcandidate){var o=this.transceivers[n].candidates;this.transceivers[n].candidates=null,r.removeEventListener("localcandidate",this.transceivers[n].bufferCandidates),r.onlocalcandidate=function(e){if(!(i.usingBundle&&n>0)){var o=new Event("icecandidate");o.candidate={sdpMid:t,sdpMLineIndex:n};var a=e.candidate,c=!a||0===Object.keys(a).length;c?"new"!==r.state&&"gathering"!==r.state||(r.state="completed"):("new"===r.state&&(r.state="gathering"),a.component=1,o.candidate.candidate=s.writeCandidate(a));var l=s.splitSections(i.localDescription.sdp);l[o.candidate.sdpMLineIndex+1]+=c?"a=end-of-candidates\r\n":"a="+o.candidate.candidate+"\r\n",i.localDescription.sdp=l.join("");var u=i.transceivers.every((function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state}));"gathering"!==i.iceGatheringState&&(i.iceGatheringState="gathering",i._emitGatheringStateChange()),c||(i.dispatchEvent(o),"function"==typeof i.onicecandidate&&i.onicecandidate(o)),u&&(i.dispatchEvent(new Event("icecandidate")),"function"==typeof i.onicecandidate&&i.onicecandidate(new Event("icecandidate")),i.iceGatheringState="complete",i._emitGatheringStateChange())}},e.setTimeout((function(){o.forEach((function(e){var t=new Event("RTCIceGatherEvent");t.candidate=e,r.onlocalcandidate(t)}))}),0)}},n.prototype._createIceAndDtlsTransports=function(){var t=this,n=new e.RTCIceTransport(null);n.onicestatechange=function(){t._updateConnectionState()};var i=new e.RTCDtlsTransport(n);return i.ondtlsstatechange=function(){t._updateConnectionState()},i.onerror=function(){Object.defineProperty(i,"state",{value:"failed",writable:!0}),t._updateConnectionState()},{iceTransport:n,dtlsTransport:i}},n.prototype._disposeIceAndDtlsTransports=function(e){var t=this.transceivers[e].iceGatherer;t&&(delete t.onlocalcandidate,delete this.transceivers[e].iceGatherer);var n=this.transceivers[e].iceTransport;n&&(delete n.onicestatechange,delete this.transceivers[e].iceTransport);var i=this.transceivers[e].dtlsTransport;i&&(delete i.ondtlsstatechange,delete i.onerror,delete this.transceivers[e].dtlsTransport)},n.prototype._transceive=function(e,n,i){var o=r(e.localCapabilities,e.remoteCapabilities);n&&e.rtpSender&&(o.encodings=e.sendEncodingParameters,o.rtcp={cname:s.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(o.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(o)),i&&e.rtpReceiver&&o.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&t<15019&&e.recvEncodingParameters.forEach((function(e){delete e.rtx})),o.encodings=e.recvEncodingParameters,o.rtcp={cname:e.rtcpParameters.cname,compound:e.rtcpParameters.compound},e.sendEncodingParameters.length&&(o.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(o))},n.prototype.setLocalDescription=function(e){var t,n,i=this,a=arguments;if(!o("setLocalDescription",e.type,this.signalingState))return new Promise((function(t,n){var r=new Error("Can not set local "+e.type+" in state "+i.signalingState);r.name="InvalidStateError",a.length>2&&"function"==typeof a[2]&&a[2].apply(null,[r]),n(r)}));if("offer"===e.type)t=s.splitSections(e.sdp),n=t.shift(),t.forEach((function(e,t){var n=s.parseRtpParameters(e);i.transceivers[t].localCapabilities=n})),this.transceivers.forEach((function(e,t){i._gather(e.mid,t)}));else if("answer"===e.type){t=s.splitSections(i.remoteDescription.sdp),n=t.shift();var c=s.matchPrefix(n,"a=ice-lite").length>0;t.forEach((function(e,t){var o=i.transceivers[t],a=o.iceGatherer,l=o.iceTransport,u=o.dtlsTransport,d=o.localCapabilities,h=o.remoteCapabilities;if(!(s.isRejected(e)&&1===!s.matchPrefix(e,"a=bundle-only").length||o.isDatachannel)){var p=s.getIceParameters(e,n),f=s.getDtlsParameters(e,n);c&&(f.role="server"),i.usingBundle&&0!==t||(i._gather(o.mid,t),"new"===l.state&&l.start(a,p,c?"controlling":"controlled"),"new"===u.state&&u.start(f));var m=r(d,h);i._transceive(o,m.codecs.length>0,!1)}}))}switch(this.localDescription={type:e.type,sdp:e.sdp},e.type){case"offer":this._updateSignalingState("have-local-offer");break;case"answer":this._updateSignalingState("stable");break;default:throw new TypeError('unsupported type "'+e.type+'"')}var l=arguments.length>1&&"function"==typeof arguments[1]&&arguments[1];return new Promise((function(e){l&&l.apply(null),e()}))},n.prototype.setRemoteDescription=function(n){var i=this,r=arguments;if(!o("setRemoteDescription",n.type,this.signalingState))return new Promise((function(e,t){var o=new Error("Can not set remote "+n.type+" in state "+i.signalingState);o.name="InvalidStateError",r.length>2&&"function"==typeof r[2]&&r[2].apply(null,[o]),t(o)}));var c={};
2this.remoteStreams.forEach((function(e){c[e.id]=e}));var l=[],u=s.splitSections(n.sdp),d=u.shift(),h=s.matchPrefix(d,"a=ice-lite").length>0,p=s.matchPrefix(d,"a=group:BUNDLE ").length>0;this.usingBundle=p;var f=s.matchPrefix(d,"a=ice-options:")[0];switch(this.canTrickleIceCandidates=!!f&&f.substr(14).split(" ").indexOf("trickle")>=0,u.forEach((function(r,o){var u=s.splitLines(r),f=s.getKind(r),m=s.isRejected(r)&&1===!s.matchPrefix(r,"a=bundle-only").length,g=u[0].substr(2).split(" ")[2],v=s.getDirection(r,d),y=s.parseMsid(r),w=s.getMid(r)||s.generateIdentifier();if("application"!==f||"DTLS/SCTP"!==g){var b,C,T,S,E,x,k,_,A,M,P,R=s.parseRtpParameters(r);m||(M=s.getIceParameters(r,d),(P=s.getDtlsParameters(r,d)).role="client"),k=s.parseRtpEncodingParameters(r);var I=s.parseRtcpParameters(r),O=s.matchPrefix(r,"a=end-of-candidates",d).length>0,N=s.matchPrefix(r,"a=candidate:").map((function(e){return s.parseCandidate(e)})).filter((function(e){return 1===e.component}));if(("offer"===n.type||"answer"===n.type)&&!m&&p&&o>0&&i.transceivers[o]&&(i._disposeIceAndDtlsTransports(o),i.transceivers[o].iceGatherer=i.transceivers[
20].iceGatherer,i.transceivers[o].iceTransport=i.transceivers[0].iceTransport,i.transceivers[o].dtlsTransport=i.transceivers[0].dtlsTransport,i.transceivers[o].rtpSender&&i.transceivers[o].rtpSender.setTransport(i.transceivers[0].dtlsTransport),i.transceivers[o].rtpReceiver&&i.transceivers[o].rtpReceiver.setTransport(i.transceivers[0].dtlsTransport)),"offer"!==n.type||m)"answer"!==n.type||m||(C=(b=i.transceivers[o]).iceGatherer,T=b.iceTransport,S=b.dtlsTransport,E=b.rtpReceiver,x=b.sendEncodingParameters,_=b.localCapabilities,i.transceivers[o].recvEncodingParameters=k,i.transceivers[o].remoteCapabilities=R,i.transceivers[o].rtcpParameters=I,N.length&&"new"===T.state&&(!h&&!O||p&&0!==o?N.forEach((function(e){a(b.iceTransport,e)})):T.setRemoteCandidates(N)),p&&0!==o||("new"===T.state&&T.start(C,M,"controlling"),"new"===S.state&&S.start(P)),i._transceive(b,"sendrecv"===v||"recvonly"===v,"sendrecv"===v||"sendonly"===v),!E||"sendrecv"!==v&&"sendonly"!==v?delete b.rtpReceiver:(A=E.track,y?(c[y.stream]||(c[y.stream]=new e.MediaStream),c[y.stream].addTrack(A),l.push([A,E,c[y.stream]])):(c.default||(c.default=new e.MediaStream),c.default.addTrack(A),l.push([A,E,c.default]))));else{(b=i.transceivers[o]||i._createTransceiver(f)).mid=w,b.iceGatherer||(b.iceGatherer=i._createIceGatherer(o,p)),N.length&&"new"===b.iceTransport.state&&(!O||p&&0!==o?N.forEach((function(e){a(b.iceTransport,e)})):b.iceTransport.setRemoteCandidates(N)),_=e.RTCRtpReceiver.getCapabilities(f),t<15019&&(_.codecs=_.codecs.filter((function(e){return"rtx"!==e.name}))),x=b.sendEncodingParameters||[{ssrc:1001*(2*o+2)}];var D,L=!1;"sendrecv"!==v&&"sendonly"!==v||(L=!b.rtpReceiver,E=b.rtpReceiver||new e.RTCRtpReceiver(b.dtlsTransport,f),!L)||(A=E.track,y?(c[y.stream]||(c[y.stream]=new e.MediaStream,Object.defineProperty(c[y.stream],"id",{get:function(){return y.stream}})),Object.defineProperty(A,"id",{get:function(){return y.track}}),D=c[y.stream]):(c.default||(c.default=new e.MediaStream),D=c.default),D.addTrack(A),l.push([A,E,D])),b.localCapabilities=_,b.remoteCapabilities=R,b.rtpReceiver=E,b.rtcpParameters=I,b.sendEncodingParameters=x,b.recvEncodingParameters=k,i._transceive(i.transceivers[o],!1,L)}}else i.transceivers[o]={mid:w,isDatachannel:!0}})),void 0===this._dtlsRole&&(this._dtlsRole="offer"===n.type?"active":"passive"),this.remoteDescription={type:n.type,sdp:n.sdp},n.type){case"offer":this._updateSignalingState("have-remote-offer");break;case"answer":this._updateSignalingState("stable");break;default:throw new TypeError('unsupported type "'+n.type+'"')}return Object.keys(c).forEach((function(t){var n=c[t];if(n.getTracks().length){if(-1===i.remoteStreams.indexOf(n)){i.remoteStreams.push(n);var r=new Event("addstream");r.stream=n,e.setTimeout((function(){i.dispatchEvent(r),"function"==typeof i.onaddstream&&i.onaddstream(r)}))}l.forEach((function(t){var r=t[0],o=t[1];if(n.id===t[2].id){var a=new Event("track");a.track=r,a.receiver=o,a.transceiver={receiver:o},a.streams=[n],e.setTimeout((function(){i.dispatchEvent(a),"function"==typeof i.ontrack&&i.ontrack(a)}))}}))}})),e.setTimeout((function(){i&&i.transceivers&&i.transceivers.forEach((function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),e.iceTransport.addRemoteCandidate({}))}))}),4e3),new Promise((function(e){r.length>1&&"function"==typeof r[1]&&r[1].apply(null),e()}))},n.prototype.close=function(){this.transceivers.forEach((function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()})),this._updateSignalingState("closed")},n.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this.dispatchEvent(t),"function"==typeof this.onsignalingstatechange&&this.onsignalingstatechange(t)},n.prototype._maybeFireNegotiationNeeded=function(){var t=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout((function(){if(!1!==t.needNegotiation){t.needNegotiation=!1;var e=new Event("negotiationneeded");t.dispatchEvent(e),"function"==typeof t.onnegotiationneeded&&t.onnegotiationneeded(e)}}),0))},n.prototype._updateConnectionState=function(){var e,t={new:0,closed:0,connecting:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};
2if(this.transceivers.forEach((function(e){t[e.iceTransport.state]++,t[e.dtlsTransport.state]++})),t.connected+=t.completed,e="new",t.failed>0?e="failed":t.connecting>0||t.checking>0?e="connecting":t.disconnected>0?e="disconnected":t.new>0?e="new":(t.connected>0||t.completed>0)&&(e="connected"),e!==this.iceConnectionState){this.iceConnectionState=e;var n=new Event("iceconnectionstatechange");this.dispatchEvent(n),"function"==typeof this.oniceconnectionstatechange&&this.oniceconnectionstatechange(n)}},n.prototype.createOffer=function(){var n,r=this,o=arguments;1===arguments.length&&"function"!=typeof arguments[0]?n=arguments[0]:3===arguments.length&&(n=arguments[2]);var a=this.transceivers.filter((function(e){return"audio"===e.kind})).length,c=this.transceivers.filter((function(e){return"video"===e.kind})).length;if(n){if(n.mandatory||n.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==n.offerToReceiveAudio&&(a=!0===n.offerToReceiveAudio?1:!1===n.offerToReceiveAudio?0:n.offerToReceiveAudio),void 0!==n.offerToReceiveVideo&&(c=!0===n.offerToReceiveVideo?1:!1===n.offerToReceiveVideo?0:n.offerToReceiveVideo)}for(this.transceivers.forEach((function(e){"audio"===e.kind?--a<0&&(e.wantReceive=!1):"video"===e.kind&&--c<0&&(e.wantReceive=!1)}));a>0||c>0;)a>0&&(this._createTransceiver("audio"),a--),c>0&&(this._createTransceiver("video"),c--);var l=s.writeSessionBoilerplate(this._sdpSessionId,this._sdpSessionVersion++);this.transceivers.forEach((function(n,i){var o=n.track,a=n.kind,c=s.generateIdentifier();n.mid=c,n.iceGatherer||(n.iceGatherer=r._createIceGatherer(i,r.usingBundle));var l=e.RTCRtpSender.getCapabilities(a);t<15019&&(l.codecs=l.codecs.filter((function(e){return"rtx"!==e.name}))),l.codecs.forEach((function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1")}));var u=n.sendEncodingParameters||[{ssrc:1001*(2*i+1)}];o&&t>=15019&&"video"===a&&!u[0].rtx&&(u[0].rtx={ssrc:u[0].ssrc+1}),n.wantReceive&&(n.rtpReceiver=new e.RTCRtpReceiver(n.dtlsTransport,a)),n.localCapabilities=l,n.sendEncodingParameters=u})),"max-compat"!==this._config.bundlePolicy&&(l+="a=group:BUNDLE "+this.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),l+="a=ice-options:trickle\r\n",this.transceivers.forEach((function(e,t){l+=i(e,e.localCapabilities,"offer",e.stream,r._dtlsRole),l+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===r.iceGatheringState||0!==t&&r.usingBundle||(e.iceGatherer.getLocalCandidates().forEac
2h((function(e){e.component=1,l+="a="+s.writeCandidate(e)+"\r\n"})),"completed"===e.iceGatherer.state&&(l+="a=end-of-candidates\r\n"))}));var u=new e.RTCSessionDescription({type:"offer",sdp:l});return new Promise((function(e){if(o.length>0&&"function"==typeof o[0])return o[0].apply(null,[u]),void e();e(u)}))},n.prototype.createAnswer=function(){var n=this,o=arguments,a=s.writeSessionBoilerplate(this._sdpSessionId,this._sdpSessionVersion++);this.usingBundle&&(a+="a=group:BUNDLE "+this.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n");var c=s.splitSections(this.remoteDescription.sdp).length-1;this.transceivers.forEach((function(e,o){if(!(o+1>c))if(e.isDatachannel)a+="m=application 0 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\na=mid:"+e.mid+"\r\n";else{var s;e.stream&&("audio"===e.kind?s=e.stream.getAudioTracks()[0]:"video"===e.kind&&(s=e.stream.getVideoTracks()[0]),s&&t>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1}));var l=r(e.localCapabilities,e.remoteCapabilities);!l.codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,a+=i(e,l,"answer",e.stream,n._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(a+="a=rtcp-rsize\r\n")}}));var l=new e.RTCSessionDescription({type:"answer",sdp:a});return new Promise((function(e){if(o.length>0&&"function"==typeof o[0])return o[0].apply(null,[l]),void e();e(l)}))},n.prototype.addIceCandidate=function(e){var t,n;if(e&&""!==e.candidate){if(void 0===e.sdpMLineIndex&&!e.sdpMid)throw new TypeError("sdpMLineIndex or sdpMid required");if(this.remoteDescription){var i=e.sdpMLineIndex;if(e.sdpMid)for(var r=0;r<this.transceivers.length;r++)if(this.transceivers[r].mid===e.sdpMid){i=r;break}var o=this.transceivers[i];if(o){if(o.isDatachannel)return Promise.resolve();var c=Object.keys(e.candidate).length>0?s.parseCandidate(e.candidate):{};if("tcp"===c.protocol&&(0===c.port||9===c.port))return Promise.resolve();if(c.component&&1!==c.component)return Promise.resolve();if((0===i||i>
20&&o.iceTransport!==this.transceivers[0].iceTransport)&&(a(o.iceTransport,c)||((t=new Error("Can not add ICE candidate")).name="OperationError")),!t){var l=e.candidate.trim();0===l.indexOf("a=")&&(l=l.substr(2)),(n=s.splitSections(this.remoteDescription.sdp))[i+1]+="a="+(c.type?l:"end-of-candidates")+"\r\n",this.remoteDescription.sdp=n.join("")}}else(t=new Error("Can not add ICE candidate")).name="OperationError"}else(t=new Error("Can not add ICE candidate without a remote description")).name="InvalidStateError"}else for(var u=0;u<this.transceivers.length&&(this.transceivers[u].isDatachannel||(this.transceivers[u].iceTransport.addRemoteCandidate({}),(n=s.splitSections(this.remoteDescription.sdp))[u+1]+="a=end-of-candidates\r\n",this.remoteDescription.sdp=n.join(""),!this.usingBundle));u++);var d=arguments;return new Promise((function(e,n){t?(d.length>2&&"function"==typeof d[2]&&d[2].apply(null,[t]),n(t)):(d.length>1&&"function"==typeof d[1]&&d[1].apply(null),e())}))},n.prototype.getStats=function(){var e=[];this.transceivers.forEach((function(t){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach((function(n){t[n]&&e.push(t[n].getStats())}))}));var t=arguments.length>1&&"function"==typeof arguments[1]&&arguments[1];return new Promise((function(n){var i=new Map;Promise.all(e).then((function(e){e.forEach((function(e){Object.keys(e).forEach((function(t){e[t].type=function(e){return{inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type}(e[t]),i.set(t,e[t])}))})),t&&t.apply(null,i),n(i)}))}))},n}},{sdp:2}],2:[function(e,t,n){"use strict";var i={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};i.localCName=i.generateIdentifier(),i.splitLines=function(e){return e.trim().split("\n").map((function(e){return e.trim()}))},i.splitSections=function(e){return e.split("\nm=").map((function(e,t){return(t>0?"m="+e:e).trim()+"\r\n"}))},i.matchPrefix=function(e,t){return i.splitLines(e).filter((function(e){return 0===e.indexOf(t)}))},i.parseCandidate=function(e){for(var t,n={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:parseInt(t[1],10),protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],port:parseInt(t[5],10),type:t[7]},i=8;i<t.length;i+=2)switch(t[i]){case"raddr":n.relatedAddress=t[i+1];break;case"rport":n.relatedPort=parseInt(t[i+1],10);break;case"tcptype":n.tcpType=t[i+1];break;case"ufrag":n.ufrag=t[i+1],n.usernameFragment=t[i+1];break;default:n[t[i]]=t[i+1]}return n},i.writeCandidate=function(e){var t=[];t.push(e.foundation),t.push(e.component),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.ip),t.push(e.port);var n=e.type;return t.push("typ"),t.push(n),"host"!==n&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),e.ufrag&&(t.push("ufrag"),t.pu
vendor: 4,892 bytes, line 2
2sh(e.ufrag)),"candidate:"+t.join(" ")},i.parseIceOptions=function(e){return e.substr(14).split(" ")},i.parseRtpMap=function(e){var t=e.substr(9).split(" "),n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.numChannels=3===t.length?parseInt(t[2],10):1,n},i.writeRtpMap=function(e){var t=e.payloadType;return void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType),"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==e.numChannels?"/"+e.numChannels:"")+"\r\n"},i.parseExtmap=function(e){var t=e.substr(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},i.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},i.parseFmtp=function(e){for(var t,n={},i=e.substr(e.indexOf(" ")+1).split(";"),r=0;r<i.length;r++)n[(t=i[r].trim().split("="))[0].trim()]=t[1];return n},i.writeFmtp=function(e){var t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){var i=[];Object.keys(e.parameters).forEach((function(t){i.push(t+"="+e.parameters[t])})),t+="a=fmtp:"+n+" "+i.join(";")+"\r\n"}return t},i.parseRtcpFb=function(e){var t=e.substr(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},i.writeRtcpFb=function(e){var t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((function(e){t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},i.parseSsrcMedia=function(e){var t=e.indexOf(" "),n={ssrc:parseInt(e.substr(7,t-7),10)},i=e.indexOf(":",t);return i>-1?(n.attribute=e.substr(t+1,i-t-1),n.value=e.substr(i+1)):n.attribute=e.substr(t+1),n},i.getMid=function(e){var t=i.matchPrefix(e,"a=mid:")[0];if(t)return t.substr(6)},i.parseFingerprint=function(e){var t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1]}},i.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:i.matchPrefix(e+t,"a=fingerprint:").map(i.parseFingerprint)}},i.writeDtlsParameters=function(e,t){var n="a=setup:"+t+"\r\n";return e.fingerprints.forEach((function(e){n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),n},i.getIceParameters=function(e,t){var n=i.splitLines(e);return{usernameFragment:(n=n.concat(i.splitLines(t))).filter((function(e){return 0===e.indexOf("a=ice-ufrag:")}))[0].substr(12),password:n.filter((function(e){return 0===e.indexOf("a=ice-pwd:")}))[0].substr(10)}},i.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},i.parseRtpParameters=function(e){for(var t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=i.splitLines(e)[0].split(" "),r=3;r<n.length;r++){var o=n[r],a=i.matchPrefix(e,"a=rtpmap:"+o+" ")[0];if(a){var s=i.parseRtpMap(a),c=i.matchPrefix(e,"a=fmtp:"+o+" ");switch(s.parameters=c.length?i.parseFmtp(c[0]):{},s.rtcpFeedback=i.matchPrefix(e,"a=rtcp-fb:"+o+" ").map(i.parseRtcpFb),t.codecs.push(s),s.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(s.name.toUpperCase())}}}return i.matchPrefix(e,"a=extmap:").forEach((function(e){t.headerExtensions.push(i.parseExtmap(e))})),t},i.writeRtpDescription=function(e,t){var n="";n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" UDP/TLS/RTP/SAVPF ",n+=t.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach((function(e){n+=i.writeRtpMap(e),n+=i.writeFmtp(e),n+=i.writeRtcpFb(e)}));var r=0;return t.codecs.forEach((function(e){e.maxptime>r&&(r=e.maxptime)})),r>0&&(n+="a=maxptime:"+r+"\r\n"),n+="a=rtcp-mux\r\n",t.headerExtensions.forEach((function(e){n+=i.writeExtmap(e)})),n},i.parseRtpEncodingParameters=function(e){var t,n=[],r=i.parseRtpParameters(e),o=-1!==r.fecMechanisms.indexOf("RED"),a=-1!==r.fecMechanisms.indexOf("ULPFEC"),s=i.matchPrefix(e,"a=ssrc:").map((function(e){return i.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),c=s.length>0&&s[0].ssrc,l=i.matchPrefix(e,"a=ssrc-group:FID").map((function(e){var t=e.split(" ");return t.shift(),t.map((function(e){return parseInt(e,10)}))}));l.length>0&&l[0].length>1&&l[0][0]===c&&(t=l[0][1]),r.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var i={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10),rtx:{ssrc:t}};n.push(i),o&&((i=JSON.parse(JSON.stringify(i))).fec={ssrc:t,mechanism:a?"red+ulpfec":"red"},n.push(i))}})),0===n.length&&c&&n.push({ssrc:c});var u=i.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substr(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substr(5),10)*.95-16e3:void 0,n.forEac
2h((function(e){e.maxBitrate=u}))),n},i.parseRtcpParameters=function(e){var t={},n=i.matchPrefix(e,"a=ssrc:").map((function(e){return i.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];n&&(t.cname=n.value,t.ssrc=n.ssrc);var r=i.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=r.length>0,t.compound=0===r.length;var o=i.matchPrefix(e,"a=rtcp-mux");return t.mux=o.length>0,t},i.parseMsid=function(e){var t,n=i.matchPrefix(e,"a=msid:");if(1===n.length)return{stream:(t=n[0].substr(7).split(" "))[0],track:t[1]};var r=i.matchPrefix(e,"a=ssrc:").map((function(e){return i.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return r.length>0?{stream:(t=r[0].value.split(" "))[0],track:t[1]}:void 0},i.generateSessionId=function(){return Math.random().toString().substr(2,21)},i.writeSessionBoilerplate=function(e,t){var n=void 0!==t?t:2;return"v=0\r\no=thisisadapterortc "+(e||i.generateSessionId())+" "+n+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},i.writeMediaSection=function(e,t,n,r){var o=i.writeRtpDescription(e.kind,t);if(o+=i.writeIceParameters(e.iceGatherer.getLocalParameters()),o+=i.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":"active"),o+="a=mid:"+e.mid+"\r\n",e.direction?o+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?o+="a=sendrecv\r\n":e.rtpSender?o+="a=sendonly\r\n":e.rtpReceiver?o+="a=recvonly\r\n":o+="a=inactive\r\n",e.rtpSender){var a="msid:"+r.id+" "+e.rtpSender.track.id+"\r\n";o+="a="+a,o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+a,e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+a,o+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+i.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+i.localCName+"\r\n"),o},i.getDirection=function(e,t){for(var n=i.splitLines(e),r=0;r<n.length;r++)switch(n[r]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[r].substr(2)}return t?i.getDirection(t):"sendrecv"},i.getKind=function(e){return i.splitLines(e)[0].split(" ")[0].substr(2)},i.isRejected=function(e){return"0"===e.split(" ",2)[1]},i.parseMLine=function(e){var t=i.splitLines(e)[0].split(" ");return{kind:t[0].substr(2),port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(" ")}},"object"==typeof t&&(t.exports=i)},{}],3:[function(e,t,i){(function(n){"use strict";var i=e("./adapter_factory.js");t.exports=i({window:n.window})}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./adapter_factory.js":4}],4:[function(e,t,n){"use strict";var i=e("./utils");t.exports=function(t,n){var r=t&&t.window,o={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0};for(var a in n)hasOwnProperty.call(n,a)&&(o[a]=n[a]);var s=i.log,c=i.detectBrowser(r),l={browserDetails:c,extractVersion:i.extractVersion,disableLog:i.disableLog,disableWarnings:i.disableWarnings},u=e("./chrome/chrome_shim")||null,d=e("./edge/edge_shim")||null,h=e("./firefox/firefox_shim")||null,p=e("./safari/safari_shim")||null,f=e("./common_shim")||null;switch(c.browser){case"chrome":if(!u||!u.shimPeerConnection||!o.shimChrome)return s("Chrome shim is not included in this adapter release."),l;s("adapter.js shimming chrome."),l.browserShim=u,f.shimCreateObjectURL(r),u.shimGetUserMedia(r),u.shimMediaStream(r),u.shimSourceObject(r),u.shimPeerConnection(r),u.shimOnTrack(r),u.shimAddTrackRemoveTrack(r),u.shimGetSendersWithDtmf(r),f.shimRTCIceCandidate(r);break;case"firefox":if(!h||!h.shimPeerConnection||!o.shimFirefox)return s("Firefox shim is not included in this adapter release."),l;s("adapter.js shimming firefox."),l.browserShim=h,f.shimCreateObjectURL(r),h.shimGetUserMedia(r),h.shimSourceObject(r),h.shimPeerConnection(r),h.shimOnTrack(r),h.shimRemoveStream(r),f.shimRTCIceCandidate(r);break;case"edge":if(!d||!d.shimPeerConnection||!o.shimEdge)return s("MS edge shim is not included in this adapter release."),l;s("adapter.js shimming edge."),l.browserShim=d,f.shimCreateObjectURL(r),d.shimGetUserMedia(r),d.shimPeerConnection(r),d.shimReplaceTrack(r);break;case"safari":if(!p||!o.shimSafari)return s("Safari shim is not included in this adapter release."),l;s("adapter.js shimming safari."),l.browserShim=p,f.shimCreateObjectURL(r),p.shimRTCIceServerUrls(r),p.shimCallbacksAPI(r),p.shimLocalStreamsAPI(r),p.shimRemoteStreamsAPI(r),p.shimTrackEventTransceiver(r),p.shimGetUserMedia(r),p.shimCreateOfferLegacy(r),f.shimRTCIceCandidate(r);break;default:s("Unsupported browser!")}return l}},{"./chrome/chrome_shim":5,"./common_shim":7,"./edge/edge_shim":8,"./firefox/firefox_shim":10,"./safari/safari_shim":12,"./utils":13}],5:[function(e,t,n){"use strict";var i=e("../utils.js"),r=i.log,o={shimMediaStream:function(e){e.MediaStream=e.MediaStream||e.
vendor: 14,883 bytes, line 2
2webkitMediaStream},shimOnTrack:function(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)}});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var n=this;return n._ontrackpoly||(n._ontrackpoly=function(t){t.stream.addEventListener("addtrack",(function(i){var r;r=e.RTCPeerConnection.prototype.getReceivers?n.getReceivers().find((function(e){return e.track&&e.track.id===i.track.id})):{track:i.track};var o=new Event("track");o.track=i.track,o.receiver=r,o.transceiver={receiver:r},o.streams=[t.stream],n.dispatchEvent(o)})),t.stream.getTracks().forEach((function(i){var r;r=e.RTCPeerConnection.prototype.getReceivers?n.getReceivers().find((function(e){return e.track&&e.track.id===i.id})):{track:i};var o=new Event("track");o.track=i,o.receiver=r,o.transceiver={receiver:r},o.streams=[t.stream],n.dispatchEvent(o)}))},n.addEventListener("addstream",n._ontrackpoly)),t.apply(n,arguments)}}},shimGetSendersWithDtmf:function(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){var t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};var n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,i){var r=n.apply(this,arguments);return r||(r=t(this,e),this._senders.push(r)),r};var i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){i.apply(this,arguments);var t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}var r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){var n=this;n._senders=n._senders||[],r.apply(n,[e]),e.getTracks().forEach((function(e){n._senders.push(t(n,e))}))};var o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;t._senders=t._senders||[],o.apply(t,[e]),e.getTracks().forEach((function(e){var n=t._senders.find((function(t){return t.track===e}));n&&t._senders.splice(t._senders.indexOf(n),1)}))}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){var a=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){var e=this,t=a.apply(e,[]);return t.forEach((function(t){t._pc=e})),t},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}},shimSourceObject:function(e){var t=e&&e.URL;"object"==typeof e&&(!e.HTMLMediaElement||"srcObject"in e.HTMLMediaElement.prototype||Object.defineProperty(e.HTMLMediaElement.prototype,"srcObject",{get:function(){return this._srcObject},set:function(e){var n=this;this._srcObject=e,this.src&&t.revokeObjectURL(this.src),e?(this.src=t.createObjectURL(e),e.addEventListener("addtrack",(function(){n.src&&t.revokeObjectURL(n.src),n.src=t.createObjectURL(e)})),e.addEventListener("removetrack",(function(){n.src&&t.revokeObjectURL(n.src),n.src=t.createObjectURL(e)}))):this.src=""}}))},shimAddTrackRemoveTrack:function(e){function t(e,t){var n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(t){var i=e._reverseStreams[t],r=e._streams[i.id];n=n.replace(new RegExp(r.id,"g"),i.id)})),new RTCSessionDescription({type:t.type,sdp:n})}var n=i.detectBrowser(e);if(!(e.RTCPeerConnection.prototype.addTrack&&n.version>=64)){var r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this,t=r.apply(this);return e._reverseStreams=e._reverseStreams||{},t.map((function(t){return e._reverseStreams[t.id]}))};var o=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){var n=this;if(n._streams=n._streams||{},n._reverseStreams=n._reverseStreams||{},t.getTracks().forEach((function(e){if(n.getSenders().find((function(t){return t.track===e})))throw new DOMException("Track already exists.","InvalidAccessError")})),!n._reverseStreams[t.id]){var i=new e.MediaStream(t.getTracks());n._streams[t.id]=i,n._reverseStreams[i.id]=t,t=i}o.apply(n,[t])};var a=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;t._streams=t._streams||{},t._reverseStreams=t._reverseStreams||{},a.apply(t,[t._streams[e.id]||e]),delete t._reverseStreams[t._streams[e.id]?t._streams[e.id].id:e.id],delete t._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){var i=this;if("closed"===i.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find((function(e){return e===t})))throw new DOMException("The adapter.js addTrack polyfill only supports a single  stream which is associated with the specified track.","NotSupportedError");if(i.getSenders().find((function(e){return e.track===t})))throw new DOMException("Track already exists.","InvalidAccessError");i._streams=i._streams||{},i._reverseStreams=i._reverseStreams||{};var o=i._streams[n.id];if(o)o.addTrack(t),Promise.resolve().then((function(){i.dispatchEvent(new Event("negotiationneeded"))}));else{var a=new e.MediaStream([t]);i._streams[n.id]=a,i._reverseStreams[a.id]=n,i.addStream(a)}return i.getSenders().find((function(e){return e.track===t}))},["createOffer","createAnswer"].forEach((function(n){var i=e.RTCPeerConnection.prototype[n];e.RTCPeerConnection.prototype[n]=function(){var e=this,n=arguments;return arguments.length&&"function"==typeof arguments[0]?i.apply(e,[function(i){var r=t(e,i);n[0].apply(null,[r])},function(e){n[1]&&n[1].apply(null,e)},arguments[2]]):i.apply(e,arguments).then((function(n){return t(e,n)}))}}));var s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function(e,t){var n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((function(t){var i=e._reverseStreams[t],r=e._streams[i.id];n=n.replace(new RegExp(i.id,"g"),r.id)})),new RTCSessionDescription({type:t.type,sdp:n})}(this,arguments[0]),s.apply(this,arguments)):s.apply(this,arguments)};var c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get:function(){var e=c.get.apply(this);return""===e.type?e:t(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){var t,n=this;if("closed"===n.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==n)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");n._streams=n._streams||{},Object.keys(n._streams).forEach((function(i){n._streams[i].getTracks().find((function(t){return e.track===t}))&&(t=n._streams[i])})),t&&(1===t.getTracks().length?n.removeStream(n._reverseStreams[t.id]):t.removeTrack(e.track),n.dispatchEvent(new Event("negotiationneeded")))}}},shimPeerConnection:function(e){var t=i.detectBrowser(e);if(e.RTCPeerConnection){var n=e.RTCPeerConnection;e.RTCPeerConnection=function(e,t){if(e&&e.iceServers){for(var r=[],o=0;o<e.iceServers.length;o++){var a=e.iceServers[o];!a.hasOwnProperty("urls")&&a.hasOwnProperty("url")?(i.deprecated("RTCIceServer.url","RTCIceServer.urls"),(a=JSON.parse(JSON.stringify(a))).urls=a.url,r.push(a)):r.push(e.iceServers[o])}e.iceServers=r}return new n(e,t)},e.RTCPeerConnection.prototype=n.prototype,Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return n.generateCertificate}})}else e.RTCPeerConnection=function(t,n){return r("PeerConnection"),t&&t.iceTransportPolicy&&(t.iceTransports=t.iceTransportPolicy),new e.webkitRTCPeerConnection(t,n)},e.RTCPeerConnection.prototype=e.webkitRTCPeerConnection.prototype,e.webkitRTCPeerConnection.generateCertificate&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return e.webkitRTCPeerConnection.generateCertificate}});var o=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(e,t,n){var i=this,r=arguments;if(arguments.length>0&&"function"==typeof e)return o.apply(this,arguments);if(0===o.length&&(0===arguments.length||"function"!=typeof arguments[0]))return o.apply(this,[]);var a=function(e){var t={};return e.result().forEach((function(e){var n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((function(t){n[t]=e.stat(t)})),t[n.id]=n})),t},s=function(e){return new Map(Object.keys(e).map((function(t){return[t,e[t]]})))};return arguments.length>=2?o.apply(this,[function(e){r[1](s(a(e)))},arguments[0]]):new Promise((function(e,t){o.apply(i,[function(t){e(s(a(t)))},t])})).then(t,n)},t.version<51&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=function(){var e=arguments,t=this,i=new Promise((function(i,r){n.apply(t,[e[0],i,r])}));return e.length<2?i:i.then((function(){e[1].apply(null,[])}),(function(t){e.length>=3&&e[2].apply(null,[t])}))}})),t.version<52&&["createOffer","createAnswer"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=function(){var e=this;if(arguments.length<1||1===arguments.length&&"object"==typeof arguments[0]){var t=1===arguments.length?arguments[0]:void 0;return new Promise((function(i,r){n.apply(e,[i,r,t])}))}return n.apply(this,arguments)}})),["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}}));var a=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?a.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}};t.exports={shimMediaStream:o.shimMediaStream,shimOnTrack:o.shimOnTrack,shimAddTrackRemoveTrack:o.shimAddTrackRemoveTrack,shimGetSendersWithDtmf:o.shimGetSendersWithDtmf,shimSourceObject:o.shimSourceObject,shimPeerConnection:o.shimPeerConnection,shimGetUserMedia:e("./getusermedia")}},{"../utils.js":13,"./getusermedia":6}],6:[function(e,t,n){"use strict";var i=e("../utils.js"),r=i.log;t.exports=function(e){var t=i.detectBrowser(e),n=e&&e.navigator,o=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach((function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var i="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==i.exact&&"number"==typeof i.exact&&(i.min=i.max=i.exact);var r=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==i.ideal){t.optional=t.optional||[];var o={};"number"==typeof i.ideal?(o[r("min",n)]=i.ideal,t.optional.push(o),(o={})[r("max",n)]=i.ideal,t.optional.push(o)):(o[r("",n)]=i.ideal,t.optional.push(o))}void 0!==i.exact&&"number"!=typeof i.exact?(t.mandatory=t.mandatory||{},t.mandatory[r("",n)]=i.exact):["min","max"].forEach((function(e){void 0!==i[e]&&(t.mandatory=t.mandatory||{},t.mandatory[r(e,n)]=i[e])}))}})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},a=function(e,i){if(t.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){var a=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};a((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),a(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=o(e.audio)}if(e&&"object"==typeof e.video){var s=e.video.facingMode;s=s&&("object"==typeof s?s:{ideal:s});var c,l=t.version<66;if(s&&("user"===s.exact||"environment"===s.exact||"user"===s.ideal||"environment"===s.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||l)&&(delete e.video.facingMode,"environment"===s.exact||"environment"===s.ideal?c=["back","rear"]:"user"!==s.exact&&"user"!==s.ideal||(c=["front"]),c))return n.mediaDevices.enumerateDevices().then((function(t){var n=(t=t.filter((function(e){return"videoinput"===e.kind}))).find((function(e){return c.some((function(t){return-1!==e.label.toLowerCase().indexOf(t)}))}));return!n&&t.length&&-1!==c.indexOf("back")&&(n=t[t.length-1]),n&&(e.video.deviceId=s.exact?{exact:n.deviceId}:{ideal:n.deviceId}),e.video=o(e.video),r("chrome: "+JSON.stringify(e)),i(e)}));e.video=o(e.video)}return r("chrome: "+JSON.stringify(e)),i(e)},s=function(e){return{name:{PermissionDeniedError:"NotAllowedError",InvalidStateError:"NotReadableError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotReadableError",MediaDeviceKillSwitchOn:"NotReadableError"}[e.name]||e.name,message:e.message,constraint:e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};n.getUserMedia=function(e,t,i){a(e,(function(e){n.webkitGetUserMedia(e,t,(function(e){i&&i(s(e))}))}))};var c=function(e){return new Promise((function(t,i){n.getUserMedia(e,t,i)}))};if(n.mediaDevices||(n.mediaDevices={getUserMedia:c,enumerateDevices:function(){return new Promise((function(t){var n={audio:"audioinput",video:"videoinput"};return e.MediaStreamTrack.getSources((function(e){t(e.map((function(e){return{label:e.label,kind:n[e.kind],deviceId:e.id,groupId:""}})))}))}))},getSupportedConstraints:function(){return{deviceId:!0,echoCancellation:!0,facingMode:!0,frameRate:!0,height:!0,width:!0}}}),n.mediaDevices.getUserMedia){var l=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(e){return a(e,(function(e){return l(e).then((function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEac
2h((function(e){e.stop()})),new DOMException("","NotFoundError");return t}),(function(e){return Promise.reject(s(e))}))}))}}else n.mediaDevices.getUserMedia=function(e){return c(e)};void 0===n.mediaDevices.addEventListener&&(n.mediaDevices.addEventListener=function(){r("Dummy mediaDevices.addEventListener called.")}),void 0===n.mediaDevices.removeEventListener&&(n.mediaDevices.removeEventListener=function(){r("Dummy mediaDevices.removeEventListener called.")})}},{"../utils.js":13}],7:[function(e,t,n){"use strict";var i=e("sdp"),r=e("./utils");t.exports={shimRTCIceCandidate:function(e){if(!e.RTCIceCandidate||!("foundation"in e.RTCIceCandidate.prototype)){var t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){"object"==typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2));var n=new t(e),r=i.parseCandidate(e.candidate),o=Object.assign(n,r);return o.toJSON=function(){return{candidate:o.candidate,sdpMid:o.sdpMid,sdpMLineIndex:o.sdpMLineIndex,usernameFragment:o.usernameFragment}},o},function(e,t,n){if(e.RTCPeerConnection){var i=e.RTCPeerConnection.prototype,r=i.addEventListener;i.addEventListener=function(e,i){if(e!==t)return r.apply(this,arguments);var o=function(e){i(n(e))};return this._eventMap=this._eventMap||{},this._eventMap[i]=o,r.apply(this,[e,o])};var o=i.removeEventListener;i.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[n])return o.apply(this,arguments);var i=this._eventMap[n];return delete this._eventMap[n],o.apply(this,[e,i])}
2,Object.defineProperty(i,"on"+t,{get:function(){return this["_on"+t]},set:function(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)}})}}(e,"icecandidate",(function(t){return t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t}))}},shimCreateObjectURL:function(e){var t=e&&e.URL;if("object"==typeof e&&e.HTMLMediaElement&&"srcObject"in e.HTMLMediaElement.prototype&&t.createObjectURL&&t.revokeObjectURL){var n=t.createObjectURL.bind(t),i=t.revokeObjectURL.bind(t),o=new Map,a=0;t.createObjectURL=function(e){if("getTracks"in e){var t="polyblob:"+ ++a;return o.set(t,e),r.deprecated("URL.createObjectURL(stream)","elem.srcObject = stream"),t}return n(e)},t.revokeObjectURL=function(e){i(e),o.delete(e)};var s=Object.getOwnPropertyDescriptor(e.HTMLMediaElement.prototype,"src");Object.defineProperty(e.HTMLMediaElement.prototype,"src",{get:function(){return s.get.apply(this)},set:function(e){return this.srcObject=o.get(e)||null,s.set.apply(this,[e])}});var c=e.HTMLMediaElement.prototype.setAttribute;e.HTMLMediaElement.prototype.setAttribute=function(){return 2===arguments.length&&"src"===(""+arguments[0]).toLowerCase()&&(this.srcObject=o.get(arguments[1])||null),c.apply(this,arguments)}}}}},{"./utils":13,sdp:2}],8:[function(e,t,n){"use strict";var i=e("../utils"),r=e("rtcpeerconnection-shim");t.exports={shimGetUserMedia:e("./getusermedia"),shimPeerConnection:function(e){var t=i.detectBrowser(e);if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),t.version<15025)){var n=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set:function(e){n.set.call(this,e);var t=new Event("enabled");t.enabled=e,this.dispatchEvent(t)}})}!e.RTCRtpSender||"dtmf"in e.RTCRtpSender.prototype||Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),e.RTCPeerConnection=r(e,t.version)},shimReplaceTrack:function(e){!e.RTCRtpSender||"replaceTrack"in e.RTCRtpSender.prototype||(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)}}},{"../utils":13,"./getusermedia":9,"rtcpeerconnection-shim":1}],9:[function(e,t,n){"use strict";t.exports=function(e){var t=e&&e.navigator,n=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return n(e).catch((function(e){return Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString:function(){return this.name}}}(e))}))}}},{}],10:[function(e,t,n){"use strict";var i=e("../utils"),r={shimOnTrack:function(e){"object"!=typeof e||!e.RTCPeerConnection||"ontrack"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.getTracks().forEach(function(t){var n=new Event("track");n.track=t,n.receiver={track:t},n.transceiver={receiver:n.receiver},n.streams=[e.stream],this.dispatchEvent(n)}.bind(this))}.bind(this))}}),"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})},shimSourceObject:function(e){"object"==typeof e&&(!e.HTMLMediaElement||"srcObject"in e.HTMLMediaElement.prototype||Object.defineProperty(e.HTMLMediaElement.prototype,"srcObject",{get:function(){return this.mozSrcObject},set:function(e){this.mozSrcObject=e}}))},shimPeerConnection:function(e){var t=i.detectBrowser(e);if("object"==typeof e&&(e.RTCPeerConnection||e.mozRTCPeerConnection)){e.RTCPeerConnection||(e.RTCPeerConnection=function(n,i){if
vendor: 12,720 bytes, line 2
2(t.version<38&&n&&n.iceServers){for(var r=[],o=0;o<n.iceServers.length;o++){var a=n.iceServers[o];if(a.hasOwnProperty("urls"))for(var s=0;s<a.urls.length;s++){var c={url:a.urls[s]};0===a.urls[s].indexOf("turn")&&(c.username=a.username,c.credential=a.credential),r.push(c)}else r.push(n.iceServers[o])}n.iceServers=r}return new e.mozRTCPeerConnection(n,i)},e.RTCPeerConnection.prototype=e.mozRTCPeerConnection.prototype,e.mozRTCPeerConnection.generateCertificate&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return e.mozRTCPeerConnection.generateCertificate}}),e.RTCSessionDescription=e.mozRTCSessionDescription,e.RTCIceCandidate=e.mozRTCIceCandidate),["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){var n=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}}));var n=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())};var r={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},o=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(e,n,i){return o.apply(this,[e||null]).then((function(e){if(t.version<48&&(e=function(e){var t=new Map;return Object.keys(e).forEach((function(n){t.set(n,e[n]),t[n]=e[n]})),t}(e)),t.version<53&&!n)try{e.forEach((function(e){e.type=r[e.type]||e.type}))}catch(t){if("TypeError"!==t.name)throw t;e.forEach((function(t,n){e.set(n,Object.assign({},t,{type:r[t.type]||t.type}))}))}return e})).then(n,i)}}},shimRemoveStream:function(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;i.deprecated("removeStream","removeTrack"),this.getSenders().forEach((function(n){n.track&&-1!==e.getTracks().indexOf(n.track)&&t.removeTrack(n)}))})}};t.exports={shimOnTrack:r.shimOnTrack,shimSourceObject:r.shimSourceObject,shimPeerConnection:r.shimPeerConnection,shimRemoveStream:r.shimRemoveStream,shimGetUserMedia:e("./getusermedia")}},{"../utils":13,"./getusermedia":11}],11:[function(e,t,n){"use strict";var i=e("../utils"),r=i.log;t.exports=function(e){var t=i.detectBrowser(e),n=e&&e.navigator,o=e&&e.MediaStreamTrack,a=function(e){return{name:{InternalError:"NotReadableError",NotSupportedError:"TypeError",PermissionDeniedError:"NotAllowedError",SecurityError:"NotAllowedError"}[e.name]||e.name,message:{"The operation is insecure.":"The request is not allowed by the user agent or the platform in the current context."}[e.message]||e.message,constraint:e.constraint,toString:function(){return this.name+(this.message&&": ")+this.message}}},s=function(e,i,o){var s=function(e){if("object"!=typeof e||e.require)return e;var t=[];return Object.keys(e).forEach((function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var i=e[n]="object"==typeof e[n]?e[n]:{ideal:e[n]};if(void 0===i.min&&void 0===i.max&&void 0===i.exact||t.push(n),void 0!==i.exact&&("number"==typeof i.exact?i.min=i.max=i.exact:e[n]=i.exact,delete i.exact),void 0!==i.ideal){e.advanced=e.advanced||[];var r={};"number"==typeof i.ideal?r[n]={min:i.ideal,max:i.ideal}:r[n]=i.ideal,e.advanced.push(r),delete i.ideal,Object.keys(i).length||delete e[n]}}})),t.length&&(e.require=t),e};return e=JSON.parse(JSON.stringify(e)),t.version<38&&(r("spec: "+JSON.stringify(e)),e.audio&&(e.audio=s(e.audio)),e.video&&(e.video=s(e.video)),r("ff37: "+JSON.stringify(e))),n.mozGetUserMedia(e,i,(function(e){o(a(e))}))};if(n.mediaDevices||(n.mediaDevices={getUserMedia:function(e){return new Promise((function(t,n){s(e,t,n)}))},addEventListener:function(){},removeEventListener:function(){}}),n.mediaDevices.enumerateDevices=n.mediaDevices.enumerateDevices||function(){return new Promise((function(e){e([{kind:"audioinput",deviceId:"default",label:"",groupId:""},{kind:"videoinput",deviceId:"default",label:"",groupId:""}])}))},t.version<41){var c=n.mediaDevices.enumerateDevices.bind(n.mediaDevices);n.mediaDevices.enumerateDevices=function(){return c().then(void 0,(function(e){if("NotFoundError"===e.name)return[];throw e}))}}if(t.version<49){var l=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(e){return l(e).then((function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach((function(e){e.stop()})),new DOMException("The object can not be found here.","NotFoundError");return t}),(function(e){return Promise.reject(a(e))}))}}if(!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){var u=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},d=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(e){return"object"==typeof e&&"object"==typeof e.audio&&(e=JSON.parse(JSON.stringify(e)),u(e.audio,"autoGainControl","mozAutoGainControl"),u(e.audio,"noiseSuppression","mozNoiseSuppression")),d(e)},o&&o.prototype.getSettings){var h=o.prototype.getSettings;o.prototype.getSettings=function(){var e=h.apply(this,arguments);return u(e,"mozAutoGainControl","autoGainControl"),u(e,"mozNoiseSuppression","noiseSuppression"),e}}if(o&&o.prototype.applyConstraints){var p=o.prototype.applyConstraints;o.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"==typeof e&&(e=JSON.parse(JSON.stringify(e)),u(e,"autoGainControl","mozAutoGainControl"),u(e,"noiseSuppression","mozNoiseSuppression")),p.apply(this,[e])}}}n.getUserMedia=function(e,r,o){if(t.version<44)return s(e,r,o);i.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(r,o)}}},{"../utils":13}],12:[function(e,t,n){"use strict";var i=e("../utils"),r={shimLocalStreamsAPI:function(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),"getStreamById"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getStreamById=function(e){var t=null;return this._localStreams&&this._localStreams.forEach((function(n){n.id===e&&(t=n)})),this._remoteStreams&&this._remoteStreams.forEach((function(n){n.id===e&&(t=n)})),t}),!("addStream"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),-1===this._localStreams.indexOf(e)&&this._localStreams.push(e);var n=this;e.getTracks().forEach((function(i){t.call(n,i,e)}))},e.RTCPeerConnection.prototype.addTrack=function(e,n){return n&&(this._localStreams?-1===this._localStreams.indexOf(n)&&this._localStreams.push(n):this._localStreams=[n]),t.call(this,e,n)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);var t=this._localStreams.indexOf(e);if(-1!==t){this._localStreams.splice(t,1);var n=this,i=e.getTracks();this.getSenders().forEach((function(e){-1!==i.indexOf(e.track)&&n.removeTrack(e)}))}})}},shimRemoteStreamsAPI:function(e){"object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),"onaddstream"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=function(e){var t=e.streams[0];if(this._remoteStreams||(this._remoteStreams=[]),!(this._remoteStreams.indexOf(t)>=0)){this._remoteStreams.push(t);var n=new Event("addstream");n.stream=e.streams[0],this.dispatchEvent(n)}}.bind(this))}}))},shimCallbacksAPI:function(e){if("object"==typeof e&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype,n=t.createOffer,i=t.createAnswer,r=t.setLocalDescription,o=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(e,t){var i=arguments.length>=2?arguments[2]:arguments[0],r=n.apply(this,[i]);return t?(r.then(e,t),Promise.resolve()):r},t.createAnswer=function(e,t){var n=arguments.length>=2?arguments[2]:arguments[0],r=i.apply(this,[n]);return t?(r.then(e,t),Promise.resolve()):r};var s=function(e,t,n){var i=r.apply(this,[e]);return n?(i.then(t,n),Promise.resolve()):i};t.setLocalDescription=s,s=function(e,t,n){var i=o.apply(this,[e]);return n?(i.then(t,n),Promise.resolve()):i},t.setRemoteDescription=s,s=function(e,t,n){var i=a.apply(this,[e]);return n?(i.then(t,n),Promise.resolve()):i},t.addIceCandidate=s}},shimGetUserMedia:function(e){var t=e&&e.navigator;t.getUserMedia||(t.webkitGetUserMedia?t.getUserMedia=t.webkitGetUserMedia.bind(t):t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,i){t.mediaDevices.getUserMedia(e).then(n,i)}.bind(t)))},shimRTCIceServerUrls:function(e){var t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){for(var r=[],o=0;o<e.iceServers.length;o++){var a=e.iceServers[o];!a.hasOwnProperty("urls")&&a.hasOwnProperty("url")?(i.deprecated("RTCIceServer.url","RTCIceServer.urls"),(a=JSON.parse(JSON.stringify(a))).urls=a.url,delete a.url,r.push(a)):r.push(e.iceServers[o])}e.iceServers=r}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in e.RTCPeerConnection&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return t.generateCertificate}})},shimTrackEventTransceiver:function(e){"object"==typeof e&&e.RTCPeerConnection&&"receiver"in e.RTCTrackEvent.prototype&&!e.RTCTransceiver&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})},shimCreateOfferLegacy:function(e){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){var n=this;if(e){var i=n.getTransceivers().find((function(e){return e.sender.track&&"audio"===e.sender.track.kind}));!1===e.offerToReceiveAudio&&i?"sendrecv"===i.direction?i.setDirection("sendonly"):"recvonly"===i.direction&&i.setDirection("inactive"):!0!==e.offerToReceiveAudio||i||n.addTransceiver("audio");var r=n.getTransceivers().find((function(e){return e.sender.track&&"video"===e.sender.track.kind}));!1===e.offerToReceiveVideo&&r?"sendrecv"===r.direction?r.setDirection("sendonly"):"recvonly"===r.direction&&r.setDirection("inactive"):!0!==e.offerToReceiveVideo||r||n.addTransceiver("video")}return t.apply(n,arguments)}}};t.exports={shimCallbacksAPI:r.shimCallbacksAPI,shimLocalStreamsAPI:r.shimLocalStreamsAPI,shimRemoteStreamsAPI:r.shimRemoteStreamsAPI,shimGetUserMedia:r.shimGetUserMedia,shimRTCIceServerUrls:r.shimRTCIceServerUrls,shimTrackEventTransceiver:r.shimTrackEventTransceiver,shimCreateOfferLegacy:r.shimCreateOfferLegacy}},{"../utils":13}],13:[function(e,t,n){"use strict";var i=!0,r=!0,o={disableLog:function(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(i=e,e?"adapter.js logging disabled":"adapter.js logging enabled")},disableWarnings:function(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(r=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))},log:function(){if("object"==typeof window){if(i)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}},deprecated:function(e,t){r&&console.warn(e+" is deprecated, please use "+t+" instead.")},extractVersion:function(e,t,n){var i=e.match(t);return i&&i.length>=n&&parseInt(i[n],10)},detectBrowser:function(e){var t=e&&e.navigator,n={browser:null,version:null};if(void 0===e||!e.navigator)return n.browser="Not a browser.",n;if(t.mozGetUserMedia)n.browser="firefox",n.version=this.extractVersion(t.userAgent,/Firefox\/(\d+)\./,1);else if(t.webkitGetUserMedia)if(e.webkitRTCPeerConnection)n.browser="chrome",n.version=this.extractVersion(t.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else{if(!t.userAgent.match(/Version\/(\d+).(\d+)/))return n.browser="Unsupported webkit-based browser with GUM support but no WebRTC support.",n;n.browser="safari",n.version=this.extractVersion(t.userAgent,/AppleWeb
2Kit\/(\d+)\./,1)}else if(t.mediaDevices&&t.userAgent.match(/Edge\/(\d+).(\d+)$/))n.browser="edge",n.version=this.extractVersion(t.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!t.mediaDevices||!t.userAgent.match(/AppleWebKit\/(\d+)\./))return n.browser="Not a supported browser.",n;n.browser="safari",n.version=this.extractVersion(t.userAgent,/AppleWebKit\/(\d+)\./,1)}return n}};t.exports={log:o.log,deprecated:o.deprecated,disableLog:o.disableLog,disableWarnings:o.disableWarnings,extractVersion:o.extractVersion,shimCreateObjectURL:o.shimCreateObjectURL,detectBrowser:o.detectBrowser.bind(o)}},{}]},{},[3])(3)},97029(e,t,n){n(27495),n(25440),function(e,t){var n=/\+/g;function i(e){return e}function r(e){return decodeURIComponent(e.replace(n," "))}var o=e.cookie=function(n,a,s){if(undefined!==a){if(s=e.extend({},o.defaults,s),null===a&&(s.expires=-1),"number"==typeof s.expires){var c=s.expires,l=s.expires=new Date;l.setDate(l.getDate()+c)}return a=o.json?JSON.stringify(a):String(a),t.cookie=[encodeURIComponent(n),"=",o.raw?a:encodeURIComponent(a),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}for(var u=o.raw?i:r,d=t.cookie.split("; "),h=0,p=d.length;h<p;h++){var f=d[h].split("=");if(u(f.shift())===n){var m=u(f.join("="));return o.json?JSON.parse(m):m}}return null};o.defaults={},e.removeCookie=function(t,n){return null!==e.cookie(t)&&(e.cookie(t,null,n),!0)}}("function"==typeof dnxChatGetJQueryFunc?dnxChatGetJQueryFunc():jQuery,document)},36027(e,t,n){n(11745),n(27495),n(34594),n(46594),n(72107),n(95477),n(21489),n(22134),n(3690),n(61740),n(75044),n(28845),n(373);var i=window.JSMpeg={Player:null,VideoElement:null,BitBuffer:null,Source:{},Demuxer:{},Decoder:{},Renderer:{},AudioOutput:{},Now:function(){return window.performance?window.performance.now()/1e3:Date.now()/1e3},CreateVideoElements:function(){for(var e=document.querySelectorAll(".jsmpeg"),t=0;t<e.length;t++)new i.VideoElement(e[t])},Fill:function(e,t){if(e.fill)e.fill(t);else for(var n=0;n<e.length;n++)e[n]=t}};"complete"===document.readyState?i.CreateVideoElements():document.addEventListener("DOMContentLoaded",i.CreateVideoElements),i.VideoElement=function(){"use strict";var e=function(t){var n=t.dataset.url;if(!n)throw"VideoElement has no `data-url` attribute";var r=function(e,t){for(var n in t)e.style[n]=t[n]};this.container=t,r(this.container,{display:"inline-block",position:"relative",minWidth:"80px",minHeight:"80px"}),this.canvas=document.createElement("canvas"),this.canvas.width=960,this.canvas.height=540,r(this.canvas,{display:"block",width:"100%"}),this.container.appendChild(this.canvas),this.playButton=document.createElement("div"),this.playButton.innerHTML=e.PLAY_BUTTON,r(this.playButton,{zIndex:2,position:"absolute",top:"0",bottom:"0",left:"0",right:"0",maxWidth:"75px",maxHeight:"75px",margin:"auto",opacity:"0.7",cursor:"pointer"}),this.container.appendChild(this.playButton);var o={canvas:this.canvas};for(var a in t.dataset)try{o[a]=JSON.parse(t.dataset[a])}catch(c){o[a]=t.dataset[a]}if(this.player=new i.Player(n,o),!o.poster||o.autoplay||this.player.options.streaming||(o.decodeFirstFrame=!1,this.poster=new Image,this.poster.src=o.poster,this.poster.addEventListener("load",this.posterLoaded),r(this.poster,{display:"block",zIndex:1,position:"absolute",top:0,left:0,bottom:0,right:0}),this.container.appendChild(this.poster)),this.player.options.streaming||this.container.addEventListener("click",this.onClick.bind(this)),(o.autoplay||this.player.options.streaming)&&(this.playButton.style.display="none"),this.player.audioOut&&!this.player.audioOut.unlocked){var s=this.container;(o.autoplay||this.player.options.streaming)&&(this.unmuteButton=document.createElement("div"),this.unmuteButton.innerHTML=e.UNMUTE_BUTTON,r(this.unmuteButton,{zIndex:2,position:"absolute",bottom:"10px",right:"20px",width:"75px",height:"75px",margin:"auto",opacity:"0.7",cursor:"pointer"}),this.container.appendChild(this.unmuteButton),s=this.unmuteButton),this.unlockAudioBound=this.onUnlockAudio.bind(this,s),s.addEventListener("touchstart",this.unlockAudioBound,!1),s.addEventListener("click",this.unlockAudioBound,!0)}};return e.prototype.onUnlockAudio=function(e,t){this.unmuteButton&&(t.preventDefault(),t.stopPropagation()),this.player.audioOut.unlock(function(){this.unmuteButton&&(this.unmuteButton.style.display="none"),e.removeEventListener("touchstart",this.unlockAudioBound),e.removeEventListener("click",this.unlockAudioBound)}.bind(this))},e.prototype.onClick=function(e){this.player.isPlaying?(this.player.pause(),this.playButton.style.display="block"):(this.player.play(),this.playButton.style.display="none",this.poster&&(this.poster.style.display="none"))},e.PLAY_BUTTON='<svg style="max-width: 75px; max-height: 75px;" viewBox="0 0 200 200" alt="Play video"><circle cx="100" cy="100" r="90" fill="none" stroke-width="15" stroke="#fff"/><polygon points="70, 55 70, 145 145, 100" fill="#fff"/></svg>',e.UNMUTE_BUTTON='<svg style="max-width: 75px; max-height: 75px;" viewBox="0 0 75 75"><polygon class="audio-speaker" stroke="none" fill="#fff" points="39,13 22,28 6,28 6,47 21,47 39,62 39,13"/><g stroke="#fff" stroke-width="5"><path d="M 49,50 69,26"/><path d="M 69,50 49,26"/></g></svg>',e}(),i.Player=function(){"use strict";var e=function(e,t){this.options=t||{},t.source?(this.source=new t.source(e,t),t.streaming=!!this.source.streaming):e.match(/^wss?:\/\//)?(this.source=new i.Source.WebSocket(e,t),t.streaming=!0):!1!==t.progressive?(this.source=new i.Source.AjaxProgressive(e,t),t.streaming=!1):(this.source=new i.Source.Ajax(e,t),t.streaming=!1),this.maxAudioLag=t.maxAudioLag||.25,this.loop=!1!==t.loop,this.autoplay=!!t.autoplay||t.streaming,this.demuxer=new i.Demuxer.TS(t),this.source.connect(this.demuxer),!1!==t.video&&(this.video=new i.Decoder.MPEG1Video(t),this.renderer=!t.disableGl&&i.Renderer.WebGL.IsSupported()?new i.Renderer.WebGL(t):new i.Renderer.Canvas2D(t),this.demuxer.connect(i.Demuxer.TS.STREAM.VIDEO_1,this.video),this.video.connect(this.renderer)),!1!==t.audio&&i.AudioOutput.WebAudio.IsSupported()&&(this.audio=new i.Decoder.MP2Audio(t),this.audioOut=new i.AudioOutput.WebAudio(t),this.demuxer.connect(i.Demuxer.TS.STREAM.AUDIO_1,this.audio),this.audio.connect(this.audioOut)),Object.defineProperty(this,"currentTime",{get:this.getCurrentTime,set:this.setCurrentTime}),Object.defineProperty(this,"volume",{get:this.getVolume,set:this.setVolume}
2),this.unpauseOnShow=!1,!1!==t.pauseWhenHidden&&document.addEventListener("visibilitychange",this.showHide.bind(this)),this.source.start(),this.autoplay&&this.play()};return e.prototype.showHide=function(e){"hidden"===document.visibilityState?(this.unpauseOnShow=this.wantsToPlay,this.pause()):this.unpauseOnShow&&this.play()},e.prototype.play=function(e){this.animationId=requestAnimationFrame(this.update.bind(this)),this.wantsToPlay=!0},e.prototype.pause=function(e){cancelAnimationFrame(this.animationId),this.wantsToPlay=!1,this.isPlaying=!1,this.audio&&this.audio.canPlay&&(this.audioOut.stop(),this.seek(this.currentTime))},e.prototype.getVolume=function(){return this.audioOut?this.audioOut.volume:0},e.prototype.setVolume=function(e){this.audioOut&&(this.audioOut.volume=e)},e.prototype.stop=function(e){this.pause(),this.seek(0),this.video&&!1!==this.options.decodeFirstFrame&&this.video.decode()},e.prototype.destroy=function(){this.pause(),this.source.destroy(),this.renderer&&this.renderer.destroy(),this.audioOut&&this.audioOut.destroy()},e.prototype.seek=function(e){var t=this.audio&&this.audio.canPlay?this.audio.startTime:this.video.startTime;this.video&&this.video.seek(e+t),this.audio&&this.audio.seek(e+t),this.startTime=i.Now()-e},e.prototype.getCurrentTime=function(){return this.audio&&this.audio.canPlay?this.audio.currentTime-this.audio.startTime:this.video.currentTime-this.video.startTime},e.prototype.setCurrentTime=function(e){this.seek(e)},e.prototype.update=function(){this.animationId=requestAnimationFrame(this.update.bind(this)),this.source.established?(this.isPlaying||(this.isPlaying=!0,this.startTime=i.Now()-this.currentTime),this.options.streaming?this.updateForStreaming():this.updateForStaticFile()):this.renderer&&this.renderer.renderProgress(this.source.progress)},e.prototype.updateForStreaming=function(){if(this.video&&this.video.decode(),this.audio){var e=!1;do{this.audioOut.enqueuedTime>this.maxAudioLag&&(this.audioOut.resetEnqueuedTime(),this.audioOut.enabled=!1),e=this.audio.decode()}while(e);this.audioOut.enabled=!0}},e.prototype.updateForStaticFile=function(){var e=!1,t=0;if(this.audio&&this.audio.canPlay){for(;!e&&this.audio.decodedTime-this.audio.currentTime<.25;)e=!this.audio.decode();this.video&&this.video.currentTime<this.audio.currentTime&&(e=!this.video.decode()),t=this.demuxer.currentTime-this.audio.currentTime}else if(this.video){var n=i.Now()-this.startTime+this.video.startTime,r=n-this.video.currentTime,o=1/this.video.frameRate;this.video&&r>0&&(r>2*o&&(this.startTime+=r),e=!this.video.decode()),t=this.demuxer.currentTime-n}this.source.resume(t),e&&this.source.completed&&(this.loop?this.seek(0):this.pause())},e}(),i.BitBuffer=function(){"use strict";var e=function(t,n){"object"==typeof t?(this.bytes=t instanceof Uint8Array?t:new Uint8Array(t),this.byteLength=this.bytes.length):(this.bytes=new Uint8Array(t||1048576),this.byteLength=0),this.mode=n||e.MODE.EXPAND,this.index=0};return e.prototype.resize=function(e){var t=new Uint8Array(e);0!==this.byteLength&&(this.byteLength=Math.min(this.byteLength,e),t.set(this.bytes,0,this.byteLength)),this.bytes=t,this.index=Math.min(this.index,this.byteLength<<3)},e.prototype.evict=function(e){var t=this.index>>3,n=this.bytes.length-this.byteLength;if(this.index===this.byteLength<<3||e>n+t)return this.byteLength=0,void(this.index=0);0!==t&&(this.bytes.copyWithin?this.bytes.copyWithin(0,t,this.byteLength):this.bytes.set(this.bytes.subarray(t,this.byteLength)),this.byteLength=this.byteLength-t,this.index-=t<<3)},e.prototype.write=function(t){var n="object"==typeof t[0],i=0,r=this.bytes.length-this.byteLength;if(n){i=0;for(var o=0;o<t.length;o++)i+=t[o].byteLength}else i=t.byteLength;if(i>r)if(this.mode===e.MODE.EXPAND){var a=Math.max(2*this.bytes.length,i-r);this.resize(a)}else this.evict(i);if(n)for(o=0;o<t.length;o++)this.appendSingleBuffer(t[o]);else this.appendSingleBuffer(t)},e.prototype.appendSingleBuffer=function(e){e=e instanceof Uint8Array?e:new Uint8Array(e),this.bytes.set(e,this.byteLength),this.byteLength+=e.length},e.prototype.findNextStartCode=function(){for(var e=this.index+7>>3;e<this.byteLength;e++)if(0==this.bytes[e]&&0==this.bytes[e+1]&&1==this.bytes[e+2])return this.index=e+4<<3,this.bytes[e+3];return this.index=this.byteLength<<3,-1},e.prototype.findStartCode=function(e){for(var t=0;;)if((t=this.findNextStartCode())===e||-1===t)return t;return-1},e.prototype.nextBytesAreStartCode=function(){var e=this.index+7>>3;return e>=this.byteLength||0==this.bytes[e]&&0==this.bytes[e+1]&&1==this.bytes[e+2]},e.prototype.peek=function(e){for(var t=this.index,n=0;e;){var i=8-(7&t),r=i<e?i:e,o=i-r;n=n<<r|(this.bytes[t>>3]&255>>8-r<<o)>>o,t+=r,e-=r}return n},e.prototype.read=function(e){var t=this.peek(e);return this.index+=e,t},e.prototype.skip=function(e){return this.index+=e},e.prototype.rewind=function(e){this.index=Math.max(this.index-e,0)},e.prototype.has=function(e){return(this.byteLength<<3)-this.index>=e},e.MODE={EVICT:1,EXPAND:2},e}(),i.Source.Ajax=function(){"use strict";var e=function(e,t){this.url=e,this.destination=null,this.request=null,this.completed=!1,this.established=!1,this.progress=0};return e.prototype.connect=function(e){this.destination=e},e.prototype.start=function(){this.request=new XMLHttpRequest,this.request.onreadystatechange=function(){this.request.readyState===this.request.DONE&&200===this.request.status&&this.onLoad(this.request.response)}.bind(this),this.request.onprogress=this.onProgress.bind(this),this.request.open("GET",this.url),this.request.responseType="arraybuffer",this.request.send()},e.prototype.resume=function(e){},e.prototype.destroy=function(){this.request.abort()},e.prototype.onProgress=function(e){this.progress=e.loaded/e.total},e.prototype.onLoad=function(e){this.established=!0,this.completed=!0,this.progress=1,this.destination&&this.destination.write(e)},e}(),i.Source.AjaxProgressive=function(){"use strict";var e=function(e,t){this.url=e,this.destination=null,this.request=null,this.completed=!1,this.established=!1,this.progress=0,this.fileSize=0,this.loadedSize=0,this.chunkSize=t.chunkSize||1048576,this.isLoading=!1,this.loadStartTime=0,this.throttled=!1!==t.throttled,this.aborted=!1};return e.prototype.connect=function(e){this.destination=e},e.prototype.start=function(){this.request=new XMLHttpRequest,this.request.onreadystatechange=function(){this.request.readyState===this.request.DONE&&(this.fileSize=parseInt(this.request.getResponseHeader("Content-Length")),this.loadNextChunk())}.bind(this),this.request.onprogress=this.onProgress.bind(this),this.request.open("HEAD",this.url),this.request.send()},e.prototype.resume=function(e){!this.isLoading&&this.throttled&&(8*this.loadTime+2>e&&this.loadNextChunk())},e.prototype.destroy=function(){this.request.abort(),this.aborted=!0},e.prototype.loadNextChunk=function(){var e=this.loadedSize,t=Math.min(this.loadedSize+this.chunkSize-1,this.fileSize-1);e>=this.fileSize||this.aborted?this.completed=!0:(this.isLoading=!0,this.loadStartTime=i.Now(),this.request=new XMLHttpRequest,this.request.onreadystatechange=function(){this.request.readyState===this.request.DONE&&this.request.status>=200&&this.request.status<300?this.onChunkLoad(this.request.response):this.request.readyState===this.request.DONE&&this.loadFails++<3&&this.loadNextChunk()}.bind(this),0===e&&(this.request.onprogress=this.onProgress.bind(this)),this.request.open("GET",this.url+"?"+e+"-"+t),this.request.setRequestHeader("Range","bytes="+e+"-"+t),this.request.responseType="arraybuffer",this.request.send())},e.prototype.onProgress=function(e){this.progress=e.loaded/e.total},e.prototype.onChunkLoad=function(e){this.established=!0,this.progress=1,this.loadedSize+=e.byteLength,this.loadFails=0,this.isLoading=!1,this.destination&&this.destination.write(e),this.loadTime=i.Now()-this.loadStartTime,this.throttled||this.loadNextChunk()},e}(),i.Source.WebSocket=function(){"use strict";var e=function(e,t){this.url=e,this.socket=null,this.callbacks={connect:[],data:[]},this.destination=null,this.reconnectInterval=void 0!==t.reconnectInterval?t.reconnectInterval:5,this.shouldAttemptReconnect=!!this.reconnectInterval,this.completed=!1,this.established=!1,this.progress=0,this.reconnectTimeoutId=0};return e.prototype.connect=function(e){this.destination=e},e.prototype.destroy=function(){clearTimeout(this.reconnectTimeoutId),this.shouldAttemptReconnect=!1,this.socket.close()},e.prototype.start=function(){this.shouldAttemptReconnect=!!this.reconnectInterval,this.progress=0,this.established=!1,this.socket=new WebSocket(this.url),this.socket.b
2inaryType="arraybuffer",this.socket.onmessage=this.onMessage.bind(this),this.socket.onopen=this.onOpen.bind(this),this.socket.onerror=this.onClose.bind(this),this.socket.onclose=this.onClose.bind(this)},e.prototype.resume=function(e){},e.prototype.onOpen=function(){this.progress=1,this.established=!0},e.prototype.onClose=function(){this.shouldAttemptReconnect&&(clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=setTimeout(function(){this.start()}.bind(this),1e3*this.reconnectInterval))},e.prototype.onMessage=function(e){this.destination&&this.destination.write(e.data)},e}(),i.Demuxer.TS=function(){"use strict";var e=function(e){this.bits=null,this.leftoverBytes=null,this.guessVideoFrameEnd=!0,this.pidsToStreamIds={},this.pesPacketInfo={},this.startTime=0,this.currentTime=0};return e.prototype.connect=function(e,t){this.pesPacketInfo[e]={destination:t,currentLength:0,totalLength:0,pts:0,buffers:[]}},e.prototype.write=function(e){if(this.leftoverBytes){var t=e.byteLength+this.leftoverBytes.byteLength;this.bits=new i.BitBuffer(t),this.bits.write([this.leftoverBytes,e])}else this.bits=new i.BitBuffer(e);for(;this.bits.has(1504)&&this.parsePacket(););var n=this.bits.byteLength-(this.bits.index>>3);this.leftoverBytes=n>0?this.bits.bytes.subarray(this.bits.index>>3):null},e.prototype.parsePacket=function(){if(71!==this.bits.read(8)&&!this.resync())return!1;var e=187+(this.bits.index>>3),t=(this.bits.read(1),this.bits.read(1)),n=(this.bits.read(1),this.bits.read(13)),i=(this.bits.read(2),this.bits.read(2)),r=(this.bits.read(4),this.pidsToStreamIds[n]);t&&r&&((m=this.pesPacketInfo[r])&&m.currentLength&&this.packetComplete(m));if(1&i){if(2&i){var o=this.bits.read(8);this.bits.skip(o<<3)}if(t&&this.bits.nextBytesAreStartCode()){this.bits.skip(24),r=this.bits.read(8),this.pidsToStreamIds[n]=r;var a=this.bits.read(16);this.bits.skip(8);var s=this.bits.read(2);this.bits.skip(6);var c=this.bits.read(8),l=this.bits.index+(c<<3);if(m=this.pesPacketInfo[r]){var u=0;if(2&s){this.bits.skip(4);var d=this.bits.read(3);this.bits.skip(1);var h=this.bits.read(15);this.bits.skip(1);var p=this.bits.read(15);this.bits.skip(1),u=(1073741824*d+32768*h+p)/9e4,this.currentTime=u,-1===this.startTime&&(this.startTime=u)}var f=a?a-c-3:0;this.packetStart(m,u,f)}this.bits.index=l}var m;if(r)if(m=this.pesPacketInfo[r]){var g=this.bits.index>>3,v=!t&&2&i;(this.packetAddData(m,g,e)||this.guessVideoFrameEnd&&v)&&this.packetComplete(m)}}return this.bits.index=e<<3,!0},e.prototype.resync=function(){if(!this.bits.has(9024))return!1;for(var e=this.bits.index>>3,t=0;t<187;t++)if(71===this.bits.bytes[e+t]){for(var n=!0,i=1;i<5;i++)if(71!==this.bits.bytes[e+t+188*i]){n=!1;break}if(n)return this.bits.index=e+t+1<<3,!0}return console.warn("JSMpeg: Possible garbage data. Skipping."),this.bits.skip(1496),!1},e.prototype.packetStart=function(e,t,n){e.totalLength=n,e.currentLength=0,e.pts=t},e.prototype.packetAddData=function(e,t,n){return e.buffers.push(this.bits.bytes.subarray(t,n)),e.currentLength+=n-t,0!==e.totalLength&&e.currentLength>=e.totalLength},e.prototype.packetComplete=function(e){e.destination.write(e.pts,e.buffers),e.totalLength=0,e.currentLength=0,e.buffers=[]},e.STREAM={PACK_HEADER:186,SYSTEM_HEADER:187,PROGRAM_MAP:188,PRIVATE_1:189,PADDING:190,PRIVATE_2:191,AUDIO_1:192,VIDEO_1:224,DIRECTORY:255},e}(),i.Decoder.Base=function(){"use strict";var e=function(e){this.destination=null,this.canPlay=!1,this.collectTimestamps=!e.streaming,this.timestamps=[],this.timestampIndex=0,this.startTime=0,this.decodedTime=0,Object.defineProperty(this,"currentTime",{get:this.getCurrentTime})};return e.prototype.connect=function(e){this.destination=e},e.prototype.write=function(e,t){this.collectTimestamps&&(0===this.timestamps.length&&(this.startTime=e,this.decodedTime=e),this.timestamps.push({index:this.bits.byteLength<<3,time:e})),this.bits.write(t),this.canPlay=!0},e.prototype.seek=function(e){if(this.collectTimestamps){this.timestampIndex=0;for(var t=0;t<this.timestamps.length&&!(this.timestamps[t].time>e);t++)this.timestampIndex=t;var n=this.timestamps[this.timestampIndex];n?(this.bits.index=n.index,this.decodedTime=n.time):(this.bits.index=0,this.decodedTime=this.startTime)}},e.prototype.decode=function(){this.advanceDecodedTime(0)},e.prototype.advanceDecodedTime=function(e){if(this.collectTimestamps){for(var t=-1,n=this.timestampIndex;
2n<this.timestamps.length&&!(this.timestamps[n].index>this.bits.index);n++)t=n;if(-1!==t&&t!==this.timestampIndex)return this.timestampIndex=t,void(this.decodedTime=this.timestamps[this.timestampIndex].time)}this.decodedTime+=e},e.prototype.getCurrentTime=function(){return this.decodedTime},e}(),i.Decoder.MPEG1Video=function(){"use strict";var e=function(e){i.Decoder.Base.call(this,e);var t=e.videoBufferSize||524288,n=e.streaming?i.BitBuffer.MODE.EVICT:i.BitBuffer.MODE.EXPAND;this.bits=new i.BitBuffer(t,n),this.customIntraQuantMatrix=new Uint8Array(64),this.customNonIntraQuantMatrix=new Uint8Array(64),this.blockData=new Int32Array(64),this.currentFrame=0,this.decodeFirstFrame=!1!==e.decodeFirstFrame};return(e.prototype=Object.create(i.Decoder.Base.prototype)).constructor=e,e.prototype.write=function(t,n){if(i.Decoder.Base.prototype.write.call(this,t,n),!this.hasSequenceHeader){if(-1===this.bits.findStartCode(e.START.SEQUENCE))return!1;this.decodeSequenceHeader(),this.decodeFirstFrame&&this.decode()}},e.prototype.decode=function(){if(!this.hasSequenceHeader)return!1;if(-1===this.bits.findStartCode(e.START.PICTURE)){this.bits.byteLength,this.bits.index;return!1}return this.decodePicture(),this.advanceDecodedTime(1/this.frameRate),!0},e.prototype.readHuffman=function(e){var t=0;do{t=e[t+this.bits.read(1)]}while(t>=0&&0!==e[t]);return e[t+2]},e.prototype.frameRate=30,e.prototype.decodeSequenceHeader=function(){var t=this.bits.read(12),n=this.bits.read(12);if(this.bits.skip(4),this.frameRate=e.PICTURE_RATE[this.bits.read(4)],this.bits.skip(30),t===this.width&&n===this.height||(this.width=t,this.height=n,this.initBuffers(),this.destination&&this.destination.resize(t,n)),this.bits.read(1)){for(var i=0;i<64;i++)this.customIntraQuantMatrix[e.ZIG_ZAG[i]]=this.bits.read(8);this.intraQuantMatrix=this.customIntraQuantMatrix}if(this.bits.read(1)){for(i=0;i<64;i++){var r=e.ZIG_ZAG[i];this.customNonIntraQuantMatrix[r]=this.bits.read(8)}this.nonIntraQuantMatrix=this.customNonIntraQuantMatrix}this.hasSequenceHeader=!0},e.prototype.initBuffers=function(){this.intraQuantMatrix=e.DEFAULT_INTRA_QUANT_MATRIX,this.nonIntraQuantMatrix=e.DEFAULT_NON_INTRA_QUANT_MATRIX,this.mbWidth=this.width+15>>4,this.mbHeight=this.height+15>>4,this.mbSize=this.mbWidth*this.mbHeight,this.codedWidth=this.mbWidth<<4,this.codedHeight=this.mbHeight<<4,this.codedSize=this.codedWidth*this.codedHeight,this.halfWidth=this.mbWidth<<3,this.halfHeight=this.mbHeight<<3,this.currentY=new Uint8ClampedArray(this.codedSize),this.currentY32=new Uint32Array(this.currentY.buffer),this.currentCr=new Uint8ClampedArray(this.codedSize>>2),this.currentCr32=new Uint32Array(this.currentCr.buffer),this.currentCb=new Uint8ClampedArray(this.codedSize>>2),this.currentCb32=new Uint32Array(this.currentCb.buffer),this.forwardY=new Uint8ClampedArray(this.codedSize),this.forwardY32=new Uint32Array(this.forwardY.buffer),this.forwardCr=new Uint8ClampedArray(this.codedSize>>2),this.forwardCr32=new Uint32Array(this.forwardCr.buffer),this.forwardCb=new Uint8ClampedArray(this.codedSize>>2),this.forwardCb32=new Uint32Array(this.forwardCb.buffer)},e.prototype.currentY=null,e.prototype.currentCr=null,e.prototype.currentCb=null,e.prototype.pictureType=0,e.prototype.forwardY=null,e.prototype.forwardCr=null,e.prototype.forwardCb=null,e.prototype.fullPelForward=!1,e.prototype.forwardFCode=0,e.prototype.forwardRSize=0,e.prototype.forwardF=0,e.prototype.decodePicture=function(t){if(this.currentFrame++,this.bits.skip(10),this.pictureType=this.bits.read(3),this.bits.skip(16),!(this.pictureType<=0||this.pictureType>=e.PICTURE_TYPE.B)){if(this.pictureType===e.PICTURE_TYPE.PREDICTIVE){if(this.fullPelForward=this.bits.read(1),this.forwardFCode=this.bits.read(3),0===this.forwardFCode)return;this.forwardRSize=this.forwardFCode-1,this.forwardF=1<<this.forwardRSize}var n=0;do{n=this.bits.findNextStartCode()}while(n===e.START.EXTENSION||n===e.START.USER_DATA);for(;n>=e.START.SLICE_FIRST&&n<=e.START.SLICE_LAST;)this.decodeSlice(255&n),n=this.bits.findNextStartCode();if(-1!==n&&this.bits.rewind(32),this.destination&&this.destination.render(this.currentY,this.currentCr,this.currentCb),this.pictureType===e.PICTURE_TYPE.INTRA||this.pictureType===e.PICTURE_TYPE.PREDICTIVE){var i=this.forwardY,r=this.forwardY32,o=this.forwardCr,a=this.forwardCr32,s=this.forwardCb,c=this.forwardCb32;this.forwardY=this.currentY,this.forwardY32=this.currentY32,this.forwardCr=this.currentCr,this.forwardCr32=this.currentCr32,this.forwardCb=this.currentCb,this.forwardCb32=this.currentCb32,this.currentY=i,this.currentY32=r,this.currentCr=o,this.currentCr32=a,this.currentCb=s,this.currentCb32=c}}},e.prototype.quantizerScale=0,e.prototype.sliceBegin=!1,e.prototype.decodeSlice=function(e){for(this.sliceBegin=!0,this.macroblockAddress=(e-1)*this.mbWidth-1,this.motionFwH=this.motionFwHPrev=0,this.motionFwV=this.motionFwVPrev=0,this.dcPredictorY=128,this.dcPredictorCr=128,this.dcPredictorCb=128,this.quantizerScale=this.bits.read(5);this.bits.read(1);)this.bits.skip(8);do{this.decodeMacroblock()}while(!this.bits.nextBytesAreStartCode())},e.prototype.macroblockAddress=0,e.prototype.mbRow=0,e.prototype.mbCol=0,e.prototype.macroblockType=0,e.prototype.macroblockIntra=!1,e.prototype.macroblockMotFw=!1,e.prototype.motionFwH=0,e.prototype.motionFwV=0,e.prototype.motionFwHPrev=0,e.prototype.motionFwVPrev=0,e.prototype.decodeMacroblock=function(){for(var t=0,n=this.readHuffman(e.MACROBLOCK_ADDRESS_INCREMENT);34===n;)n=this.readHuffman(e.MACROBLOCK_ADDRESS_INCREMENT);for(;35===n;)t+=33,n=this.readHuffman(e.MACROBLOCK_ADDRESS_INCREMENT);if(t+=n,this.sliceBegin)this.sliceBegin=!1,this.macroblockAddress+=t;else{if(this.macroblockAddress+t>=this.mbSize)return;for(t>1&&(this.dcPredictorY=128,this.dcPredictorCr=128,this.dcPredictorCb=128,this.pictureType===e.PICTURE_TYPE.PREDICTIVE&&(this.motionFwH=this.motionFwHPrev=0,this.motionFwV=this.motionFwVPrev=0));t>1;)this.macroblockAddress++,this.mbRow=this.macroblockAddress/this.mbWidth|0,this.mbCol=this.macroblockAddress%this.mbWidth,this.copyMacroblock(this.motionFwH,this.motionFwV,this.forwardY,this.forwardCr,this.forwardCb),t--;this.macroblockAddress++}this.mbRow=this.macroblockAddress/this.mbWidth|0,this.mbCol=this.macroblockAddress%this.mbWidth;var i=e.MACROBLOCK_TYPE[this.pictureType];this.macroblockType=this.readHuffman(i),this.macroblockIntra=1&this.macroblockType,this.macroblockMotFw=8&this.macroblockType,16&this.macroblockType&&(this.quantizerScale=this.bits.read(5)),this.macroblockIntra?(this.motionFwH=this.motionFwHPrev=0,this.motionFwV=this.motionFwVPrev=0):(this.dcPredictorY=128,this.dcPredictorCr=128,this.dcPredictorCb=128,this.decodeMotionVectors(),this.copyMacroblock(this.motionFwH,this.motionFwV,this.forwardY,this.forwardCr,this.forwardCb));for(var r=2&this.macroblockType?this.readHuffman(e.CODE_BLOCK_PATTERN):this.macroblockIntra?63:0,o=0,a=32;o<6;o++)r&a&&this.decodeBlock(o),a>>=1},e.prototype.decodeMotionVectors=function(){var t,n,i=0;this.macroblockMotFw?(0!==(t=this.readHuffman(e.MOTION))&&1!==this.forwardF?(i=this.bits.read(this.forwardRSize),n=(Math.abs(t)-1<<this.forwardRSize)+i+1,t<0&&(n=-n)):n=t,this.motionFwHPrev+=n,this.motionFwHPrev>(this.forwardF<<4)-1?this.motionFwHPrev-=this.forwardF<<5:this.motionFwHPrev<-this.forwardF<<4&&(this.motionFwHPrev+=this.forwardF<<5),this.motionFwH=this.motionFwHPrev,this.fullPelForward&&(this.motionFwH<<=1),0!==(t=this.readHuffman(e.MOTION))&&1!==this.forwardF?(i=this.bits.read(this.forwardRSize),n=(Math.abs(t)-1<<this.forwardRSize)+i+1,t<0&&(n=-n)):n=t,this.motionFwVPrev+=n,this.motionFwVPrev>(this.forwardF<<4)-1?this.motionFwVPrev-=this.forwardF<<5:this.motionFwVPrev<-this.forwardF<<4&&(this.motionFwVPrev+=this.forwardF<<5),this.motionFwV=this.motionFwVPrev,this.fullPelForward&&(this.motionFwV<<=1)):this.pictureType===e.PICTURE_TYPE.PREDICTIVE&&(this.motionFwH=this.motionFwHPrev=0,this.motionFwV=this.motionFwVPrev=0)},e.prototype.copyMacroblock=function(e,t,n,i,r){var o,a,s,c,l,u,d,h,p,f,m,g,v,y,w,b,C,T,S,E=this.currentY32,x=this.currentCb32,k=this.currentCr32;if(a=(o=this.codedWidth)-16,s=e>>1,c=t>>1,l=!(1&~e),u=!(1&~t),d=((this.mbRow<<4)+c)*o+(this.mbCol<<4)+s,p=(h=this.mbRow*o+this.mbCol<<2)+(o<<2),l)if(u)for(;h<p;){for(m=n[d]+n[d+o],d++,f=0;f<4;f++)v=m+(g=n[d]+n[d+o])+2>>2&255,v|=(m=n[++d]+n[d+o])+g+2<<6&65280,v|=m+(g=n[++d]+n[d+o])+2<<14&16711680,m=n[++d]+n[d+o],d++,v|=m+g+2<<22&4278190080,E[h++]=v;h+=a>>2,d+=a-1}else for(;h<p;){for(m=n[d++],f=0;f<4;f++)v=m+(g=n[d++])+1>>1&255,v|=(m=n[d++])+g+1<<7&65280,v|=m+(g=n[d++])+1<<15&16711680,v|=(m=n[d++])+g+1<<23&4278190080,E[h++]=v;h+=a>>2,d+=a-1}else if(u)for(;h<p;){for(f=0;f<4;f++)v=n[d]+n[d+o]+1>>1&255,v|=n[++d]+n[d+o]+1<<7&65280,v|=n[++d]+n[d+o]+1<<15&16711680,v|=n[++d]+n[d+o]+1<<23&4278190080,d++,E[h++]=v;h+=a>>2,d+=a}else for(;h<p;){for(f=0;f<4;f++)v=n[d],v|=n[++d]<<8,v|=n[++d]<<16,v|=n[++d]<<24,d++,E[h++]=v;h+=a>>2,d+=a}if(a=(o=this.halfWidth)-8,s=e/2>>1,c=t/2>>1,l=1==(e/2&1),u=1==(t/2&1),d=((this.mbRow<<3)+c)*o+(this.mbCol<<3)+s,p=(h=this.mbRow*o+this.mbCol<<1)+(o<<1),l)if(u)for(;h<p;
2){for(y=i[d]+i[d+o],C=r[d]+r[d+o],d++,f=0;f<2;f++)b=y+(w=i[d]+i[d+o])+2>>2&255,S=C+(T=r[d]+r[d+o])+2>>2&255,b|=(y=i[++d]+i[d+o])+w+2<<6&65280,S|=(C=r[d]+r[d+o])+T+2<<6&65280,b|=y+(w=i[++d]+i[d+o])+2<<14&16711680,S|=C+(T=r[d]+r[d+o])+2<<14&16711680,y=i[++d]+i[d+o],C=r[d]+r[d+o],d++,b|=y+w+2<<22&4278190080,S|=C+T+2<<22&4278190080,k[h]=b,x[h]=S,h++;h+=a>>2,d+=a-1}else for(;h<p;){for(y=i[d],C=r[d],d++,f=0;f<2;f++)b=y+(w=i[d])+1>>1&255,S=C+(T=r[d++])+1>>1&255,b|=(y=i[d])+w+1<<7&65280,S|=(C=r[d++])+T+1<<7&65280,b|=y+(w=i[d])+1<<15&16711680,S|=C+(T=r[d++])+1<<15&16711680,b|=(y=i[d])+w+1<<23&4278190080,S|=(C=r[d++])+T+1<<23&4278190080,k[h]=b,x[h]=S,h++;h+=a>>2,d+=a-1}else if(u)for(;h<p;){for(f=0;f<2;f++)b=i[d]+i[d+o]+1>>1&255,S=r[d]+r[d+o]+1>>1&255,b|=i[++d]+i[d+o]+1<<7&65280,S|=r[d]+r[d+o]+1<<7&65280,b|=i[++d]+i[d+o]+1<<15&16711680,S|=r[d]+r[d+o]+1<<15&16711680,b|=i[++d]+i[d+o]+1<<23&4278190080,S|=r[d]+r[d+o]+1<<23&4278190080,d++,k[h]=b,x[h]=S,h++;h+=a>>2,d+=a}else for(;h<p;){for(f=0;f<2;f++)b=i[d],S=r[d],b|=i[++d]<<8,S|=r[d]<<8,b|=i[++d]<<16,S|=r[d]<<16,b|=i[++d]<<24,S|=r[d]<<24,d++,k[h]=b,x[h]=S,h++;h+=a>>2,d+=a}},e.prototype.dcPredictorY=0,e.prototype.dcPredictorCr=0,e.prototype.dcPredictorCb=0,e.prototype.blockData=null,e.prototype.decodeBlock=function(t){var n,r=0;if(this.macroblockIntra){var o,a;if(t<4?(o=this.dcPredictorY,a=this.readHuffman(e.DCT_DC_SIZE_LUMINANCE)):(o=4===t?this.dcPredictorCr:this.dcPredictorCb,a=this.readHuffman(e.DCT_DC_SIZE_CHROMINANCE)),a>0){var s=this.bits.read(a);this.blockData[0]=s&1<<a-1?o+s:o+(-1<<a|s+1)}else this.blockData[0]=o;t<4?this.dcPredictorY=this.blockData[0]:4===t?this.dcPredictorCr=this.blockData[0]:this.dcPredictorCb=this.blockData[0],this.blockData[0]<<=8,n=this.intraQuantMatrix,r=1}else n=this.nonIntraQuantMatrix;for(var c,l,u,d=0;;){var h=0,p=this.readHuffman(e.DCT_COEFF);if(1===p&&r>0&&0===this.bits.read(1))break;65535===p?(h=this.bits.read(6),0===(d=this.bits.read(8))?d=this.bits.read(8):128===d?d=this.bits.read(8)-256:d>128&&(d-=256)):(h=p>>8,d=255&p,this.bits.read(1)&&(d=-d));var f=e.ZIG_ZAG[r+=h];r++,d<<=1,this.macroblockIntra||(d+=d<0?-1:1),1&(d=d*this.quantizerScale*n[f]>>4)||(d-=d>0?1:-1),d>2047?d=2047:d<-2048&&(d=-2048),this.blockData[f]=d*e.PREMULTIPLIER_MATRIX[f]}t<4?(c=this.currentY,u=this.codedWidth-8,l=this.mbRow*this.codedWidth+this.mbCol<<4,1&t&&(l+=8),2&t&&(l+=this.codedWidth<<3)):(c=4===t?this.currentCb:this.currentCr,u=(this.codedWidth>>1)-8,l=(this.mbRow*this.codedWidth<<2)+(this.mbCol<<3)),this.macroblockIntra?1===r?(e.CopyValueToDestination(this.blockData[0]+128>>8,c,l,u),this.blockData[0]=0):(e.IDCT(this.blockData),e.CopyBlockToDestination(this.blockData,c,l,u),i.Fill(this.blockData,0)):1===r?(e.AddValueToDestination(this.blockData[0]+128>>8,c,l,u),this.blockData[0]=0):(e.IDCT(this.blockData),e.AddBlockToDestination(this.blockData,c,l,u),i.Fill(this.blockData,0)),r=0},e.CopyBlockToDestination=function(e,t,n,i){for(var r=0;r<64;r+=8,n+=i+8)t[n+0]=e[r+0],t[n+1]=e[r+1],t[n+2]=e[r+2],t[n+3]=e[r+3],t[n+4]=e[r+4],t[n+5]=e[r+5],t[n+6]=e[r+6],t[n+7]=e[r+7]},e.AddBlockToDestination=function(e,t,n,i){for(var r=0;r<64;r+=8,n+=i+8)t[n+0]+=e[r+0],t[n+1]+=e[r+1],t[n+2]+=e[r+2],t[n+3]+=e[r+3],t[n+4]+=e[r+4],t[n+5]+=e[r+5],t[n+6]+=e[r+6],t[n+7]+=e[r+7]},e.CopyValueToDestination=function(e,t,n,i){for(var r=0;r<64;r+=8,n+=i+8)t[n+0]=e,t[n+1]=e,t[n+2]=e,t[n+3]=e,t[n+4]=e,t[n+5]=e,t[n+6]=e,t[n+7]=e},e.AddValueToDestination=function(e,t,n,i){for(var r=0;r<64;r+=8,n+=i+8)t[n+0]+=e,t[n+1]+=e,t[n+2]+=e,t[n+3]+=e,t[n+4]+=e,t[n+5]+=e,t[n+6]+=e,t[n+7]+=e},e.IDCT=function(e){for(var t,n,i,r,o,a,s,c,l,u,d,h,p,f,m,g,v,y,w=0;w<8;++w)t=e[32+w],n=e[16+w]+e[48+w],i=e[40+w]-e[24+w],a=e[8+w]+e[56+w],s=e[24+w]+e[40+w],l=(p=(473*(r=e[8+w]-e[56+w])-196*i+128>>8)-(o=a+s))-(362*(a-s)+128>>
28),f=(u=(c=e[0+w])-t)+(d=(362*(e[16+w]-e[48+w])+128>>8)-n),m=(h=c+t)+n,g=u-d,v=h-n,y=-l-(473*i+196*r+128>>8),e[0+w]=o+m,e[8+w]=p+f,e[16+w]=g-l,e[24+w]=v-y,e[32+w]=v+y,e[40+w]=l+g,e[48+w]=f-p,e[56+w]=m-o;for(w=0;w<64;w+=8)t=e[4+w],n=e[2+w]+e[6+w],i=e[5+w]-e[3+w],a=e[1+w]+e[7+w],s=e[3+w]+e[5+w],l=(p=(473*(r=e[1+w]-e[7+w])-196*i+128>>8)-(o=a+s))-(362*(a-s)+128>>8),f=(u=(c=e[0+w])-t)+(d=(362*(e[2+w]-e[6+w])+128>>8)-n),m=(h=c+t)+n,g=u-d,v=h-n,y=-l-(473*i+196*r+128>>8),e[0+w]=o+m+128>>8,e[1+w]=p+f+128>>8,e[2+w]=g-l+128>>8,e[3+w]=v-y+128>>8,e[4+w]=v+y+128>>8,e[5+w]=l+g+128>>8,e[6+w]=f-p+128>>8,e[7+w]=m-o+128>>8},e.PICTURE_RATE=[0,23.976,24,25,29.97,30,50,59.94,60,0,0,0,0,0,0,0],e.ZIG_ZAG=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),e.DEFAULT_INTRA_QUANT_MATRIX=new Uint8Array([8,16,19,22,26,27,29,34,16,16,22,24,27,29,34,37,19,22,26,27,29,34,34,38,22,22,26,27,29,34,37,40,22,26,27,29,32,35,40,48,26,27,29,32,35,40,48,58,26,27,29,34,38,46,56,69,27,29,35,38,46,56,69,83]),e.DEFAULT_NON_INTRA_QUANT_MATRIX=new Uint8Array([16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16]),e.PREMULTIPLIER_MATRIX=new Uint8Array([32,44,42,38,32,25,17,9,44,62,58,52,44,35,24,12,42,58,55,49,42,33,23,12,38,52,49,44,38,30,20,10,32,44,42,38,32,25,17,9,25,35,33,30,25,20,14,7,17,24,23,20,17,14,9,5,9,12,12,10,9,7,5,2]),e.MACROBLOCK_ADDRESS_INCREMENT=new Int16Array([3,6,0,9,12,0,0,0,1,15,18,0,21,24,0,27,30,0,33,36,0,0,0,3,0,0,2,39,42,0,45,48,0,0,0,5,0,0,4,51,54,0,57,60,0,0,0,7,0,0,6,63,66,0,69,72,0,75,78,0,81,84,0,-1,87,0,-1,90,0,93,96,0,99,102,0,105,108,0,111,114,0,0,0,9,0,0,8,117,120,0,123,126,0,129,132,0,135,138,0,0,0,15,0,0,14,0,0,13,0,0,12,0,0,11,0,0,10,141,-1,0,-1,144,0,147,150,0,153,156,0,159,162,0,165,168,0,171,174,0,177,180,0,183,-1,0,-1,186,0,189,192,0,195,198,0,201,204,0,207,210,0,213,216,0,219,222,0,0,0,21,0,0,20,0,0,19,0,0,18,0,0,17,0,0,16,0,0,35,0,0,34,0,0,33,0,0,32,0,0,31,0,0,30,0,0,29,0,0,28,0,0,27,0,0,26,0,0,25,0,0,24,0,0,23,0,0,22]),e.MACROBLOCK_TYPE_INTRA=new Int8Array([3,6,0,-1,9,0,0,0,1,0,0,17]),e.MACROBLOCK_TYPE_PREDICTIVE=new Int8Array([3,6,0,9,12,0,0,0,10,15,18,0,0,0,2,21,24,0,0,0,8,27,30,0,33,36,0,-1,39,0,0,0,18,0,0,26,0,0,1,0,0,17]),e.MACROBLOCK_TYPE_B=new Int8Array([3,6,0,9,15,0,12,18,0,24,21,0,0,0,12,27,30,0,0,0,14,39,42,0,36,33,0,0,0,4,0,0,6,54,48,0,45,51,0,0,0,8,0,0,10,-1,57,0,0,0,1,60,63,0,0,0,30,0,0,17,0,0,22,0,0,26]),e.MACROBLOCK_TYPE=[null,e.MACROBLOCK_TYPE_INTRA,e.MACROBLOCK_TYPE_PREDICTIVE,e.MACROBLOCK_TYPE_B],e.CODE_BLOCK_PATTERN=new Int16Array([6,3,0,9,18,0,12,15,0,24,33,0,36,39,0,27,21,0,30,42,0,60,57,0,54,48,0,69,51,0,81,75,0,63,84,0,45,66,0,72,78,0,0,0,60,105,120,0,132,144,0,114,108,0,126,141,0,87,93,0,117,96,0,0,0,32,135,138,0,99,123,0,129,102,0,0,0,4,90,111,0,0,0,8,0,0,16,0,0,44,150,168,0,0,0,28,0,0,52,0,0,62,183,177,0,156,180,0,0,0,1,165,162,0,0,0,61,0,0,56,171,174,0,0,0,2,0,0,40,153,186,0,0,0,48,192,189,0,147,159,0,0,0,20,0,0,12,240,249,0,0,0,63,231,225,0,195,219,0,252,198,0,0,0,24,0,0,36,0,0,3,207,261,0,243,237,0,204,213,0,210,234,0,201,228,0,216,222,0,258,255,0,264,246,0,-1,282,0,285,291,0,0,0,33,0,0,9,318,330,0,306,348,0,0,0,5,0,0,10,279,267,0,0,0,6,0,0,18,0,0,17,0,0,34,339,357,0,309,312,0,270,276,0,327,321,0,351,354,0,303,297,0,294,288,0,300,273,0,342,345,0,315,324,0,336,333,0,363,375,0,0,0,41,0,0,14,0,0,21,372,366,0,360,369,0,0,0,11,0,0,19,0,0,7,0,0,35,0,0,13,0,0,50,0,0,49,0,0,58,0,0,37,0,0,25,0,0,45,0,0,57,0,0,26,0,0,29,0,0,38,0,0,53,0,0,23,0,0,43,0,0,46,0,0,42,0,0,22,0,0,54,0,0,51,0,0,15,0,0,30,0,0,39,0,0,47,0,0,55,0,0,27,0,0,59,0,0,31]),e.MOTION=new Int16Array([3,6,0,12,9,0,0,0,0,18,15,0,24,21,0,0,0,-1,0,0,1,27,30,0,36,33,0,0,0,2,0,0,-2,42,45,0,48,39,0,60,54,0,0,0,3,0,0,-3,51,57,0,-1,69,0,81,75,0,78,63,0,72,66,0,96,84,0,87,93,0,-1,99,0,108,105,0,0,0,-4,90,102,0,0,0,4,0,0,-7,0,0,5,111,123,0,0,0,-5,0,0,7,114,120,0,126,117,0,0,0,-6,0,0,6,153,162,0,150,147,0,135,138,0,156,141,0,129,159,0,132,144,0,0,0,10,0,0,9,0,0,8,0,0,-8,171,198,0,0,0,-9,180,192,0,168,183,0,165,186,0,174,189,0,0,0,-10,177,195,0,0,0,12,0,0,16,0,0,13,0,0,14,0,0,11,0,0,15,0,0,-16,0,0,-12,0,0,-14,0,0,-15,0,0,-11,0,0,-13]),e.DCT_DC_SIZE_LUMINANCE=new Int8Array([6,3,0,18,15,0,9,12,0,0,0,1,0,0,2,27,24,0,21,30,0,0,0,0,36,33,0,0,0,4,0,0,3,39,42,0,0,0,5,0,0,6,48,45,0,51,-1,0,0,0,7,0,0,8]),e.DCT_DC_SIZE_CHROMINANCE=new Int8Array([6,3,0,12,9,0,18,15,0,24,21,0,0,0,2,0,0,1,0,0,0,30,27,0,0,0,3,36,33,0,0,0,4,42,39,0,0,0,5,48,45,0,0,0,6,51,-1,0,0,0,7,0,0,8]),e.DCT_COEFF=new Int32Array([3,6,0,12,9,0,0,0,1,21,24,0,18,15,0,39,27,0,33,30,0,42,36,0,0,0,257,60,66,0,54,63,0,48,57,0,0,0,513,51,45,0,0,0,2,0,0,3,81,75,0,87,93,0,72,78,0,96,90,0,0,0,1025,69,84,0,0,0,769,0,0,258,0,0,1793,0,0,65535,0,0,1537,111,108,0,0,0,1281,105,102,0,117,114,0,99,12
26,0,120,123,0,156,150,0,162,159,0,144,147,0,129,135,0,138,132,0,0,0,2049,0,0,4,0,0,514,0,0,2305,153,141,0,165,171,0,180,168,0,177,174,0,183,186,0,0,0,2561,0,0,3329,0,0,6,0,0,259,0,0,5,0,0,770,0,0,2817,0,0,3073,228,225,0,201,210,0,219,213,0,234,222,0,216,231,0,207,192,0,204,189,0,198,195,0,243,261,0,273,240,0,246,237,0,249,258,0,279,276,0,252,255,0,270,282,0,264,267,0,0,0,515,0,0,260,0,0,7,0,0,1026,0,0,1282,0,0,4097,0,0,3841,0,0,3585,315,321,0,333,342,0,312,291,0,375,357,0,288,294,0,-1,369,0,285,303,0,318,363,0,297,306,0,339,309,0,336,348,0,330,300,0,372,345,0,351,366,0,327,354,0,360,324,0,381,408,0,417,420,0,390,378,0,435,438,0,384,387,0,0,0,2050,396,402,0,465,462,0,0,0,8,411,399,0,429,432,0,453,414,0,426,423,0,0,0,10,0,0,9,0,0,11,0,0,5377,0,0,1538,0,0,771,0,0,5121,0,0,1794,0,0,4353,0,0,4609,0,0,4865,444,456,0,0,0,1027,459,450,0,0,0,261,393,405,0,0,0,516,447,441,0,516,519,0,486,474,0,510,483,0,504,498,0,471,537,0,507,501,0,522,513,0,534,531,0,468,477,0,492,495,0,549,546,0,525,528,0,0,0,263,0,0,2562,0,0,2306,0,0,5633,0,0,5889,0,0,6401,0,0,6145,0,0,1283,0,0,772,0,0,13,0,0,12,0,0,14,0,0,15,0,0,517,0,0,6657,0,0,262,540,543,0,480,489,0,588,597,0,0,0,27,609,555,0,606,603,0,0,0,19,0,0,22,591,621,0,0,0,18,573,576,0,564,570,0,0,0,20,552,582,0,0,0,21,558,579,0,0,0,23,612,594,0,0,0,25,0,0,24,600,615,0,0,0,31,0,0,30,0,0,28,0,0,29,0,0,26,0,0,17,0,0,16,567,618,0,561,585,0,654,633,0,0,0,37,645,648,0,0,0,36,630,636,0,0,0,34,639,627,0,663,666,0,657,624,0,651,642,0,669,660,0,0,0,35,0,0,267,0,0,40,0,0,268,0,0,266,0,0,32,0,0,264,0,0,265,0,0,38,0,0,269,0,0,270,0,0,33,0,0,39,0,0,7937,0,0,6913,0,0,7681,0,0,4098,0,0,7425,0,0,7169,0,0,271,0,0,274,0,0,273,0,0,272,0,0,1539,0,0,2818,0,0,3586,0,0,3330,0,0,3074,0,0,3842]),e.PICTURE_TYPE={INTRA:1,PREDICTIVE:2,B:3},e.START={SEQUENCE:179,SLICE_FIRST:1,SLICE_LAST:175,PICTURE:0,EXTENSION:181,USER_DATA:178},e}(),i.Decoder.MP2Audio=function(){"use strict";var e=function(t){i.Decoder.Base.call(this,t);var n=t.audioBufferSize||131072,r=t.streaming?i.BitBuffer.MODE.EVICT:i.BitBuffer.MODE.EXPAND;this.bits=new i.BitBuffer(n,r),this.left=new Float32Array(1152),this.right=new Float32Array(1152),this.sampleRate=44100,this.D=new Float32Array(1024),this.D.set(e.SYNTHESIS_WINDOW,0),this.D.set(e.SYNTHESIS_WINDOW,512),this.V=new Float32Array(1024),this.U=new Int32Array(32),this.VPos=0,this.allocation=[new Array(32),new Array(32)],this.scaleFactorInfo=[new Uint8Array(32),new Uint8Array(32)],this.scaleFactor=[new Array(32),new Array(32)],this.sample=[new Array(32),new Array(32)];for(var o=0;o<2;o++)for(var a=0;a<32;a++)this.scaleFactor[o][a]=[0,0,0],this.sample[o][a]=[0,0,0]};return e.prototype=Object.create(i.Decoder.Base.prototype),e.prototype.constructor=e,e.prototype.decode=function(){var e=this.bits.index>>3;if(e>=this.bits.byteLength)return!1;var t=this.decodeFrame(this.left,this.right);return this.bits.index=e+t<<3,!!t&&(this.destination&&this.destination.play(this.sampleRate,this.left,this.right),this.advanceDecodedTime(this.left.length/this.sampleRate),!0)},e.prototype.getCurrentTime=function(){var e=this.destination?this.destination.enqueuedTime:0;return this.decodedTime-e},e.prototype.decodeFrame=function(t,n){var r=this.bits.read(11),o=this.bits.read(2),a=this.bits.read(2),s=!this.bits.read(1);if(r!==e.FRAME_SYNC||o!==e.VERSION.MPEG_1||a!==e.LAYER.II)return 0;var c=this.bits.read(4)-1;if(c>13)return 0;var l=this.bits.read(2),u=e.SAMPLE_RATE[l];if(3===l)return 0;o===e.VERSION.MPEG_2&&(l+=4,c+=14);var d=this.bits.read(1),h=(this.bits.read(1),this.bits.read(2)),p=0;h===e.MODE.JOINT_STEREO?p=this.bits.read(2)+1<<2:(this.bits.skip(2),p=h===e.MODE.MONO?0:32),this.bits.skip(4),s&&this.bits.skip(16);var f=144e3*e.BIT_RATE[c]/(u=e.SAMPLE_RATE[l])+d|0,m=0,g=0;if(o===e.VERSION.MPEG_2)m=2,g=30;else{var v=h===e.MODE.MONO?0:1,y=e.QUANT_LUT_STEP_1[v][c];g=63&(m=e.QUANT_LUT_STEP_2[y][l]),m>>=6}p>g&&(p=g);for(var w=0;w<p;w++)this.allocation[0][w]=this.readAllocation(w,m),this.allocation[1][w]=this.readAllocation(w,m);for(w=p;w<g;w++)this.allocation[0][w]=this.allocation[1][w]=this.readAllocation(w,m);var b=h===e.MODE.MONO?1:2;for(w=0;w<g;w++){for(C=0;C<b;C++)this.allocation[C][w]&&(this.scaleFactorInfo[C][w]=this.bits.read(2));h===e.MODE.MONO&&(this.scaleFactorInfo[1][w]=this.scaleFactorInfo[0][w])}for(w=0;w<g;w++){for(var C=0;C<b;C++)if(this.allocation[C][w]){var T=this.scaleFactor[C][w];switch(this.scaleFactorInfo[C][w]){case 0:T[0]=this.bits.read(6),T[1]=this.bits.read(6),T[2]=this.bits.read(6);break;case 1:T[0]=T[1]=this.bits.read(6),T[2]=this.bits.read(6);break;case 2:T[0]=T[1]=T[2]=this.bits.read(6);break;case 3:T[0]=this.bits.read(6),T[1]=T[2]=this.bits.read(6)}}h===e.MODE.MONO&&(this.scaleFactor[1][w][0]=this.scaleFactor[0][w][0],this.scaleFactor[1][w][1]=this.scaleFactor[0][w][1],this.scaleFactor[1][w][2]=this.scaleFactor[0][w][2])}for(var S=0,E=0;E<3;E++)for(var x=0;x<4;x++){for(w=0;w<p;w++)this.readSamples(0,w,E),this.readSamples(1,w,E);for(w=p;w<g;w++)this.readSamples(0,w,E),this.sample[1][w][0]=this.sample[0][w][0],this.sample[1][w][1]=this.sample[0][w][1],this.sample[1][w][2]=this.sample[0][w][2];for(w=g;w<32;w++)this.sample[0][w][0]=0,this.sample[0][w][1]=0,this.sample[0][w][2]=0,this.sample[1][w][0]=0,this.sample[1][w][1]=0,this.sample[1][w][2]=0;for(var k=0;k<3;k++){this.VPos=this.VPos-64&1023;
2for(C=0;C<2;C++){e.MatrixTransform(this.sample[C],k,this.V,this.VPos),i.Fill(this.U,0);for(var _=512-(this.VPos>>1),A=this.VPos%128>>1;A<1024;){for(var M=0;M<32;++M)this.U[M]+=this.D[_++]*this.V[A++];A+=96,_+=32}for(A=1120-A,_-=480;A<1024;){for(M=0;M<32;++M)this.U[M]+=this.D[_++]*this.V[A++];A+=96,_+=32}for(var P=0===C?t:n,R=0;R<32;R++)P[S+R]=this.U[R]/2147418112}S+=32}}return this.sampleRate=u,f},e.prototype.readAllocation=function(t,n){var i=e.QUANT_LUT_STEP_3[n][t],r=e.QUANT_LUT_STEP4[15&i][this.bits.read(i>>4)];return r?e.QUANT_TAB[r-1]:0},e.prototype.readSamples=function(t,n,i){var r=this.allocation[t][n],o=this.scaleFactor[t][n][i],a=this.sample[t][n],s=0;if(r){if(63===o)o=0;else{var c=o/3|0;o=e.SCALEFACTOR_BASE[o%3]+(1<<c>>1)>>c}var l=r.levels;r.group?(s=this.bits.read(r.bits),a[0]=s%l,s=s/l|0,a[1]=s%l,a[2]=s/l|0):(a[0]=this.bits.read(r.bits),a[1]=this.bits.read(r.bits),a[2]=this.bits.read(r.bits));var u=65536/(l+1)|0;s=((l=(l+1>>1)-1)-a[0])*u,a[0]=s*(o>>12)+(s*(4095&o)+2048>>12)>>12,s=(l-a[1])*u,a[1]=s*(o>>12)+(s*(4095&o)+2048>>12)>>12,s=(l-a[2])*u,a[2]=s*(o>>12)+(s*(4095&o)+2048>>12)>>12}else a[0]=a[1]=a[2]=0},e.MatrixTransform=function(e,t,n,i){var r,o,a,s,c,l,u,d,h,p,f,m,g,v,y,w,b,C,T,S,E,x,k,_,A,M,P,R,I,O,N,D,L;r=e[0][t]+e[31][t],o=.500602998235*(e[0][t]-e[31][t]),a=e[1][t]+e[30][t],s=.505470959898*(e[1][t]-e[30][t]),c=e[2][t]+e[29][t],l=.515447309923*(e[2][t]-e[29][t]),u=e[3][t]+e[28][t],d=.53104259109*(e[3][t]-e[28][t]),h=e[4][t]+e[27][t],p=.553103896034*(e[4][t]-e[27][t]),f=e[5][t]+e[26][t],m=.582934968206*(e[5][t]-e[26][t]),g=e[6][t]+e[25][t],v=.622504123036*(e[6][t]-e[25][t]),y=e[7][t]+e[24][t],w=.674808341455*(e[7][t]-e[24][t]),b=e[8][t]+e[23][t],C=.744536271002*(e[8][t]-e[23][t]),T=e[9][t]+e[22][t],S=.839349645416*(e[9][t]-e[22][t]),E=e[10][t]+e[21][t],x=.972568237862*(e[10][t]-e[21][t]),k=e[11][t]+e[20][t],_=1.16943993343*(e[11][t]-e[20][t]),A=e[12][t]+e[19][t],M=1.48416461631*(e[12][t]-e[19][t]),P=e[13][t]+e[18][t],R=2.05778100995*(e[13][t]-e[18][t]),I=e[14][t]+e[17][t],O=3.40760841847*(e[14][t]-e[17][t]),L=r+(N=e[15][t]+e[16][t]),N=.502419286188*(r-N),r=a+I,I=.52249861494*(a-I),a=c+P,P=.566944034816*(c-P),c=u+A,A=.64682178336*(u-A),u=h+k,k=.788154623451*(h-k),h=f+E,E=1.06067768599*(f-E),f=g+T,T=1.72244709824*(g-T),g=y+b,b=5.10114861869*(y-b),y=L+g,g=.509795579104*(L-g),L=r+f,r=.601344886935*(r-f),f=a+h,h=.899976223136*(a-h),a=c+u,u=2.56291544774*(c-u),c=y+a,y=.541196100146*(y-a),a=L+f,f=1.30656296488*(L-f),L=c+a,c=.707106781187*(c-a),a=y+f,a+=y=.707106781187*(y-f),f=g+u,g=.541196100146*(g-u),u=r+h,h=1.30656296488*(r-h),r=f+u,u=.707106781187*(f-u),f=g+h,r+=f+=g=.707106781187*(g-h),f+=u,u+=g,h=N+b,N=.509795579104*(N-b),b=I+T,I=.601344886935*(I-T),T=P+E,E=.899976223136*(P-E),P=A+k,k=2.56291544774*(A-k),A=h+P,h=.541196100146*(h-P),P=b+T,T=1.30656296488*(b-T),b=A+P,P=.707106781187*(A-P),A=h+T,T=.707106781187*(h-T),h=N+k,N=.541196100146*(N-k),k=I+E,E=1.30656296488*(I-E),I=h+k,k=.707106781187*(h-k),h=N+E,b+=I+=h+=N=.707106781187*(N-E),I+=A+=T,A+=h+=k,h+=P,P+=k+=N,k+=T,T+=N,E=o+(D=10.1900081235*(e[15][t]-e[16][t])),o=.502419286188*(o-D),D=s+O,s=.52249861494*(s-O),O=l+R,R=.566944034816*(l-R),l=d+M,d=.64682178336*(d-M),M=p+_,p=.788154623451*(p-_),_=m+x,x=1.06067768599*(m-x),m=v+S,S=1.72244709824*(v-S),v=w+C,w=5.10114861869*(w-C),C=E+v,v=.509795579104*(E-v),E=D+m,D=.601344886935*(D-m),m=O+_,_=.899976223136*(O-_),O=l+M,M=2.56291544774*(l-M),l=C+O,C=.541196100146*(C-O),O=E+m,m=1.30656296488*(E-m),E=l+O,O=.707106781187*(l-O),l=C+m,m=.707106781187*(C-m),C=v+M,M=.541196100146*(v-M),v=D+_,_=1.30656296488*(D-_),D=C+v,v=.707106781187*(C-v),C=M+_,D+=C+=_=.707106781187*(M-_),C+=v,M=v+_,v=o+w,o=.509795579104*(o-w),w=s+S,s=.601344886935*(s-S),S=R+x,x=.899976223136*(R-x),R=d+p,p=2.56291544774*(d-p),d=v+R,v=.541196100146*(v-R),R=w+S,S=1.30656296488*(w-S),w=d+R,R=.707106781187*(d-R),d=v+S,S=.707106781187*(v-S),v=o+p,o=.541196100146*(o-p),p=s+x,x=1.30656296488*(s-x),s=v+p,p=.707106781187*(v-p),v=o+x,E+=w+=s+=v+=o=.707106781187*(o-x),w+=D,D+=s+=d+=S,s+=l+=m,l+=d+=v+=p,d+=C,C+=v+=R,v+=O,O+=R+=p+=o,R+=M,M+=p+=S,p+=m,m+=S+=o,S+=_,_+=o,n[i+48]=-L,n[i+49]=n[i+47]=-E,n[i+50]=n[i+46]=-b,n[i+51]=n[i+45]=-w,n[i+52]=n[i+44]=-r,n[i+53]=n[i+43]=-D,n[i+54]=n[i+42]=-I,n[i+55]=n[i+41]=-s,n[i+56]=n[i+40]=-a,n[i+57]=n[i+39]=-l,n[i+58]=n[i+38]=-A,n[i+59]=n[i+37]=-d,n[i+60]=n[i+36]=-f,n[i+61]=n[i+35]=-C,n[i+62]=n[i+34]=-h,n[i+63]=n[i+33]=-v,n[i+32]=-c,n[i+0]=c,n[i+31]=-O,n[i+1]=O,n[i+30]=-P,n[i+2]=P,n[i+29]=-R,n[i+3]=R,n[i+28]=-u,n[i+4]=u,n[i+27]=-M,n[i+5]=M,n[i+26]=-k,n[i+6]=k,n[i+25]=-p,n[i+7]=p,n[i+24]=-y,n[i+8]=y,n[i+23]=-m,n[i+9]=m,n[i+22]=-T,n[i+10]=T,n[i+21]=-S,n[i+11]=S,n[i+20]=-g,n[i+12]=g,n[i+19]=-_,n[i+13]=_,n[i+18]=-N,n[i+14]=N,n[i+17]=-o,n[i+15]=o,n[i+16]=0},e.FRAME_SYNC=2047,e.VERSION={MPEG_2_5:0,MPEG_2:2,MPEG_1:3},e.LAYER={III:1,II:2,I:3},e.MODE={STEREO:0,JOINT_STEREO:1,DUAL_CHANNEL:2,MONO:3},e.SAMPLE_RATE=new Uint16Array([44100,48e3,32e3,0,22050,24e3,16e3,0]),e.BIT_RATE=new Uint16Array([32,48,56,64,80,96,112,128,160,192,224,256,320,384,8,16,24,32,40,48,56,64,80,96,112,128,144,160]),e.SCALEFACTOR_BASE=new Uint32Array([33554432,26632170,21137968]),e.SYNTHESIS_WINDOW=new Float32Array([0,-.5,-.5,-.5,-.5,-.5,-.5,-1,-1,-1,-1,-1.5,-1.5,-2,-2,-2.5,-2.5,-3,-3.5,-3.5,-4,-4.5,-5,-5.5,-6.5,-7,-8,-8.5,-9.5,-10.5,-12,-13,-14.5,-15.5,-17.5,-19,-20.5,-22.5,-24.5,-26.5,-29,-31.5,-34,-36.5,-39.5,-42.5,-45.5,-48.5,-52,-55.5,-58.5,-62.5,-66,-69.5,-73.5,-77,-80.5,-84.5,-88,-91.5,-95,-98,-101,-104,106.5,109,111,112.5,113.5,114,114,113.5,112,110.5,107.5,104,100,94.5,88.5,81.5,73,63.5,53,41.5,28.5,
214.5,-1,-18,-36,-55.5,-76.5,-98.5,-122,-147,-173.5,-200.5,-229.5,-259.5,-290.5,-322.5,-355.5,-389.5,-424,-459.5,-495.5,-532,-568.5,-605,-641.5,-678,-714,-749,-783.5,-817,-849,-879.5,-908.5,-935,-959.5,-981,-1000.5,-1016,-1028.5,-1037.5,-1042.5,-1043.5,-1040,-1031.5,1018.5,1e3,976,946.5,911,869.5,822,767.5,707,640,565.5,485,397,302.5,201,92.5,-22.5,-144,-272.5,-407,-547.5,-694,-846,-1003,-1165,-1331.5,-1502,-1675.5,-1852.5,-2031.5,-2212.5,-2394,-2576.5,-2758.5,-2939.5,-3118.5,-3294.5,-3467.5,-3635.5,-3798.5,-3955,-4104.5,-4245.5,-4377.5,-4499,-4609.5,-4708,-4792.5,-4863.5,-4919,-4958,-4979.5,-4983,-4967.5,-4931.5,-4875,-4796,-4694.5,-4569.5,-4420,-4246,-4046,-3820,-3567,3287,2979.5,2644,2280.5,1888,1467.5,1018.5,541,35,-499,-1061,-1650,-2266.5,-2909,-3577,-4270,-4987.5,-5727.5,-6490,-7274,-8077.5,-8899.5,-9739,-10594.5,-11464.5,-12347,-13241,-14144.5,-15056,-15973.5,-16895.5,-17820,-18744.5,-19668,-20588,-21503,-22410.5,-23308.5,-24195,-25068.5,-25926.5,-26767,-27589,-28389,-29166.5,-29919,-30644.5,-31342,-32009.5,-32645,-33247,-33814.5,-34346,-34839.5,-35295,-35710,-36084.5,-36417.5,-36707.5,-36954,-37156.5,-37315,-37428,-37496,37519,37496,37428,37315,37156.5,36954,36707.5,36417.5,36084.5,35710,35295,34839.5,34346,33814.5,33247,32645,32009.5,31342,30644.5,29919,29166.5,28389,27589,26767,25926.5,25068.5,24195,23308.5,22410.5,21503,20588,19668,18744.5,17820,16895.5,15973.5,15056,14144.5,13241,12347,11464.5,10594.5,9739,8899.5,8077.5,7274,6490,5727.5,4987.5,4270,3577,2909,2266.5,1650,1061,499,-35,-541,-1018.5,-1467.5,-1888,-2280.5,-2644,-2979.5,3287,3567,3820,4046,4246,4420,4569.5,4694.5,4796,4875,4931.5,4967.5,4983,4979.5,4958,4919,4863.5,4792.5,4708,4609.5,4499,4377.5,4245.5,4104.5,3955,3798.5,3635.5,3467.5,3294.5,3118.5,2939.5,2758.5,2576.5,2394,2212.5,2031.5,1852.5,1675.5,1502,1331.5,1165,1003,846,694,547.5,407,272.5,144,22.5,-92.5,-201,-302.5,-397,-485,-565.5,-640,-707,-767.5,-822,-869.5,-911,-946.5,-976,-1e3,1018.5,1031.5,1040,1043.5,1042.5,1037.5,1028.5,1016,1000.5,981,959.5,935,908.5,879.5,849,817,783.5,749,714,678,641.5,605,568.5,532,495.5,459.5,424,389.5,355.5,322.5,290.5,259.5,229.5,200.5,173.5,147,122,98.5,76.5,55.5,36,18,1,-14.5,-28.5,-41.5,-53,-63.5,-73,-81.5,-88.5,-94.5,-100,-104,-107.5,-110.5,-112,-113.5,-114,-114,-113.5,-112.5,-111,-109,106.5,104,101,98,95,91.5,88,84.5,80.5,77,73.5,69.5,66,62.5,58.5,55.5,52,48.5,45.5,42.5,39.5,36.5,34,31.5,29,26.5,24.5,22.5,20.5,19,17.5,15.5,14.5,13,12,10.5,9.5,8.5,8,7,6.5,5.5,5,4.5,4,3.5,3.5,3,2.5,2.5,2,2,1.5,1.5,1,1,1,1,.5,.5,.5,.5,.5,.5]),e.QUANT_LUT_STEP_1=[[0,0,1,1,1,2,2,2,2,2,2,2,2,2],[0,0,0,0,0,0,1,1,1,2,2,2,2,2]],e.QUANT_TAB={A:91,B:94,C:8,D:12},e.QUANT_LUT_STEP_2=[[e.QUANT_TAB.C,e.QUANT_TAB.C,e.QUANT_TAB.D],[e.QUANT_TAB.A,e.QUANT_TAB.A,e.QUANT_TAB.A],[e.QUANT_TAB.B,e.QUANT_TAB.A,e.QUANT_TAB.B]],e.QUANT_LUT_STEP_3=[[68,68,52,52,52,52,52,52,52,52,52,52],[67,67,67,66,66,66,66,66,66,66,66,49,49,49,49,49,49,49,49,49,49,49,49,32,32,32,32,32,32,32],[69,69,69,69,52,52,52,52,52,52,52,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36]],e.QUANT_LUT_STEP4=[[0,1,2,17],[0,1,2,3,4,5,6,17],[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17],[0,1,3,5,6,7,8,9,10,11,12,13,14,15,16,17],[0,1,2,4,5,6,7,8,9,10,11,12,13,14,15,17],[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]],e.QUANT_TAB=[{levels:3,group:1,bits:5},{levels:5,group:1,bits:7},{levels:7,group:0,bits:3},{levels:9,group:1,bits:10},{levels:15,group:0,bits:4},{levels:31,group:0,bits:5},{levels:63,group:0,bits:6},{levels:127,group:0,bits:7},{levels:255,group:0,bits:8},{levels:511,group:0,bits:9},{levels:1023,group:0,bits:10},{levels:2047,group:0,bits:11},{levels:4095,group:0,bits:12},{levels:8191,group:0,bits:13},{levels:16383,group:0,bits:14},{levels:32767,group:0,bits:15},{levels:65535,group:0,bits:16}],e}(),i.Renderer.WebGL=function(){"use strict";var e=function(t){this.canvas=t.canvas||document.createElement("canvas"),this.width=this.canvas.width,this.height=this.canvas.height,this.enabled=!0;var n={preserveDrawingBuffer:!!t.preserveDrawingBuffer,alpha:!1,depth:!1,stencil:!1,antialias:!1};if(this.gl=this.canvas.getContext("webgl",n)||this.canvas.getContext("experimental-webgl",n),!this.gl)throw new Error("Failed to get WebGL Context");var i=this.gl,r=null;this.vertexBuffer=i.createBuffer();var o=new Float32Array([0,0,0,1,1,0,1,1]);i.bindBuffer(i.ARRAY_BUFFER,this.vertexBuffer),i.bufferData(i.ARRAY_BUFFER,o,i.STATIC_DRAW),this.program=this.createProgram(e.SHADER.VERTEX_IDENTITY,e.SHADER.FRAGMENT_YCRCB_TO_RGBA),r=i.getAttribLocation(this.program,"vertex"),i.enableVertexAttribArray(r),i.vertexAttribPointer(r,2,i.FLOAT,!1,0,0),this.textureY=this.createTexture(0,"textureY"),this.textureCb=this.createTexture(1,"textureCb"),this.textureCr=this.createTexture(2,"textureCr"),this.loadingProgram=this.createProgram(e.SHADER.VERTEX_IDENTITY,e.SHADER.FRAGMENT_LOADING),r=i.getAttribLocation(this.loadingProgram,"vertex"),i.enableVertexAttribArray(r),i.vertexAttribPointer(r,2,i.FLOAT,!1,0,0),this.shouldCreateUnclampedViews=!this.allowsClampedTextureData()};return e.prototype.destroy=function(){var e=this.gl;e.deleteTexture(this.textureY),e.deleteTexture(this.textureCb),e.deleteTexture(this.textureCr),e.deleteProgram(this.program),e.deleteProgram(this.loadingProgram),e.deleteBuffer(this.vertexBuffer)},e.prototype.resize=function(e,t){this.width=0|e,this.height=0|t,this.canvas.width=this.width,this.canvas.height=this.height,this.gl.useProgram(this.program),this.gl.viewport(0,0,this.width,this.height)},e.prototype.createTexture=function(e,t){var n=this.gl,i=n.createTexture();return n.bindTexture(n.TEXTURE_2D,i),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.L
2INEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.uniform1i(n.getUniformLocation(this.program,t),e),i},e.prototype.createProgram=function(e,t){var n=this.gl,i=n.createProgram();return n.attachShader(i,this.compileShader(n.VERTEX_SHADER,e)),n.attachShader(i,this.compileShader(n.FRAGMENT_SHADER,t)),n.linkProgram(i),n.useProgram(i),i},e.prototype.compileShader=function(e,t){var n=this.gl,i=n.createShader(e);if(n.shaderSource(i,t),n.compileShader(i),!n.getShaderParameter(i,n.COMPILE_STATUS))throw new Error(n.getShaderInfoLog(i));return i},e.prototype.allowsClampedTextureData=function(){var e=this.gl,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texImage2D(e.TEXTURE_2D,0,e.LUMINANCE,1,1,0,e.LUMINANCE,e.UNSIGNED_BYTE,new Uint8ClampedArray([0])),0===e.getError()},e.prototype.renderProgress=function(e){var t=this.gl;t.useProgram(this.loadingProgram);var n=t.getUniformLocation(this.loadingProgram,"progress");t.uniform1f(n,e),t.drawArrays(t.TRIANGLE_STRIP,0,4)},e.prototype.render=function(e,t,n){if(this.enabled){var i=this.gl,r=this.width+15>>4<<4,o=this.height,a=r>>1,s=o>>1;this.shouldCreateUnclampedViews&&(e=new Uint8Array(e.buffer),t=new Uint8Array(t.buffer),n=new Uint8Array(n.buffer)),i.useProgram(this.program),this.updateTexture(i.TEXTURE0,this.textureY,r,o,e),this.updateTexture(i.TEXTURE1,this.textureCb,a,s,t),this.updateTexture(i.TEXTURE2,this.textureCr,a,s,n),i.drawArrays(i.TRIANGLE_STRIP,0,4)}},e.prototype.updateTexture=function(e,t,n,i,r){var o=this.gl;o.activeTexture(e),o.bindTexture(o.TEXTURE_2D,t),o.texImage2D(o.TEXTURE_2D,0,o.LUMINANCE,n,i,0,o.LUMINANCE,o.UNSIGNED_BYTE,r)},e.IsSupported=function(){try{if(!window.WebGLRenderingContext)return!1;var e=document.createElement("canvas");return!(!e.getContext("webgl")&&!e.getContext("experimental-webgl"))}catch(t){return!1}},e.SHADER={FRAGMENT_YCRCB_TO_RGBA:["precision mediump float;","uniform sampler2D textureY;","uniform sampler2D textureCb;","uniform sampler2D textureCr;","varying vec2 texCoord;","mat4 rec601 = mat4(","1.16438,  0.00000,  1.59603, -0.87079,","1.16438, -0.39176, -0.81297,  0.52959,","1.16438,  2.01723,  0.00000, -1.08139,","0, 0, 0, 1",");","void main() {","float y = texture2D(textureY, texCoord).r;","float cb = texture2D(textureCb, texCoord).r;","float cr = texture2D(textureCr, texCoord).r;","gl_FragColor = vec4(y, cr, cb, 1.0) * rec601;","}"].join("\n"),FRAGMENT_LOADING:["precision mediump float;","uniform float progress;","varying vec2 texCoord;","void main() {","float c = ceil(progress-(1.0-texCoord.y));","gl_FragColor = vec4(c,c,c,1);","}"].join("\n"),VERTEX_IDENTITY:["attribute vec2 vertex;","varying vec2 texCoord;","void main() {","texCoord = vertex;","gl_Position = vec4((vertex * 2.0 - 1.0) * vec2(1, -1), 0.0, 1.0);","}"].join("\n")},e}(),i.Renderer.Canvas2D=function(){"use strict";var e=function(e){this.canvas=e.canvas||document.createElement("canvas"),this.width=this.canvas.width,this.height=this.canvas.height,this.enabled=!0,this.context=this.canvas.getContext("2d")};return e.prototype.destroy=function(){},e.prototype.resize=function(e,t){this.width=0|e,this.height=0|t,this.canvas.width=this.width,this.canvas.height=this.height,this.imageData=this.context.getImageData(0,0,this.width,this.height),i.Fill(this.imageData.data,255)},e.prototype.renderProgress=function(e){var t=this.canvas.width,n=this.canvas.height,i=this.context;i.fillStyle="#222",i.fillRect(0,0,t,n),i.fillStyle="#fff",i.fillRect(0,n-n*e,t,n*e)},e.prototype.render=function(e,t,n){this.YCbCrToRGBA(e,t,n,this.imageData.data),this.context.putImageData(this.imageData,0,0)},e.prototype.YCbCrToRGBA=function(e,t,n,i){if(this.enabled)for(var r,o,a,s,c,l=this.width+15>>4<<4,u=l>>1,d=0,h=l,p=l+(l-this.width),f=0,m=u-(this.width>>1),g=0,v=4*this.width,y=4*this.width,w=this.width>>1,b=this.height>>1,C=0;C<b;C++){for(var T=0;T<w;T++){r=t[f],o=n[f],f++,a=r+(103*r>>8)-179,s=(88*o>>8)-44+(183*r>>8)-91,c=o+(198*o>>8)-227;var S=e[d++],E=e[d++];i[g]=S+a,i[g+1]=S-s,i[g+2]=S+c,i[g+4]=E+a,i[g+5]=E-s,i[g+6]=E+c,g+=8;var x=e[h++],k=e[h++];i[v]=x+a,i[v+1]=x-s,i[v+2]=x+c,i[v+4]=k+a,i[v+5]=k-s,i[v+6]=k+c,v+=8}d+=p,h+=p,g+=y,v+=y,f+=m}},e}(),i.AudioOutput.WebAudio=function(){"use strict";var e=function(t){this.context=e.CachedContext=e.CachedContext||new(window.AudioContext||window.webkitAudioContext),this.gain=this.context.createGain(),this.destination=this.gain,this.gain.connect(this.context.destination),this.context._connections=(this.context._connections||0)+1,this.startTime=0,this.buffer=null,this.wallclockStartTime=0,this.volume=1,this.enabled=!0,this.unlocked=!e.NeedsUnlocking(),Object.defineProperty(this,"enqueuedTime",{get:this.getEnqueuedTime})};return e.prototype.destroy=function(){this.gain.disconnect(),this.context._connections--,0===this.context._connections&&(this.context.close(),e.CachedContext=null)},e.prototype.play=function(e,t,n){if(this.enabled){if(!this.unlocked){var r=i.Now();return this.wallclockStartTime<r&&(this.wallclockStartTime=r),void(this.wallclockStartTime+=t.length/e)}this.gain.gain.value=this.volume;var o=this.context.createBuffer(2,t.length,e);o.getChannelData(0).set(t),o.getChannelData(1).set(n);var a=this.context.createBufferSource();a.buffer=o,a.connect(this.destination);var s=this.context.currentTime,c=o.duration;this.startTime<s&&(this.startTime=s,this.wallclockStartTime=i.Now()),a.start(this.startTime),this.startTime+=c,this.wallclockStartTime+=c}},e.prototype.stop=function(){this.gain.gain.value=0},e.prototype.getEnqueuedTime=function(){return Math.max(this.wallclockStartTime-i.Now(),0)},e.prototype.resetEnqueuedTime=function(){this.startTime=this.context.currentTime,this.wallclockStartTime=i.Now()},e.prototype.unlock=function(e){if(this.unlocked)e&&e();else{this.unlockCallback=e;var t=this.context.createBuffer(1,1,22050),n=this.context.createBufferSource();n.buffer=t,n.connect(this.destination),n.start(0),setTimeout(this.checkIfUnlocked.bind(this,n,0),0)}},e.prototype.checkIfUnlocked=function(e,t){e.playbackState===e.PLAYING_STATE||e.playbackState===e.FINISHED_STATE?(this.unlocked=!0,this.unlockCallback&&(this.unlockCallback(),this.unlockCallback=null)):t<10&&setTimeout(this.checkIfUnlocked.bind(this,e,t+1),100)},e.NeedsUnlocking=function(){var e=navigator.userAgent.toLowerCase(),t=/iPhone|iPad|iPod/i.test(e),n=!/chrome/.test(e)&&!t&&/safari/.test(e);return!(!t&&!n)},e.IsSupported=function(){return window.AudioContext||window.webkitAudioContext},e.CachedContext=null,e}()},97378(e,t,n){var i;n(89463),n(72712),n(11745),n(84864),n(27495),n(69479),n(25440),n(21489),n(75044),n(28845),n(373),n(62953),i=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};
2return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(1),o=n(7),a=n(17),s=n(3)("socket.io-client");e.exports=t=l;var c=t.managers={};function l(e,t){"object"===(void 0===e?"undefined":i(e))&&(t=e,e=void 0),t=t||{};var n,o=r(e),l=o.source,u=o.id,d=o.path,h=c[u]&&d in c[u].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||h?(s("ignoring socket cache for %s",l),n=a(l,t)):(c[u]||(s("new io instance for %s",l),c[u]=a(l,t)),n=c[u]),o.query&&!t.query?t.query=o.query:t&&"object"===i(t.query)&&(t.query=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}(t.query)),n.socket(o.path,t)}t.protocol=o.protocol,t.connect=l,t.Manager=n(17),t.Socket=n(45)},function(e,t,n){(function(t){"use strict";var i=n(2),r=n(3)("socket.io-client:url");e.exports=function(e,n){var o=e;n=n||t.location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(r("protocol-less url %s",e),e=void 0!==n?n.protocol+"//"+e:"https://"+e),r("parse %s",e),o=i(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";var a=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+a+":"+o.port,o.href=o.protocol+"://"+a+(n&&n.port===o.port?"":":"+o.port),o}}).call(t,function(){return this}())},function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,r=e.indexOf("["),o=e.indexOf("]");-1!=r&&-1!=o&&(e=e.substring(0,r)+e.substring(r,o).replace(/:/g,";")+e.substring(o,e.length));for(var a=n.exec(e||""),s={},c=14;c--;)s[i[c]]=a[c]||"";return-1!=r&&-1!=o&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s}},function(e,t,n){(function(i){function r(){try{return t.storage.debug}catch(e){}if(void 0!==i&&"env"in i)return i.env.DEBUG}(t=e.exports=n(5)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(){var e=arguments,n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return e;var i="color: "+this.color;e=[e[0],i,"color: inherit"].concat(Array.prototype.slice.call(e,1));var r=0,o=0;return e[0].replace(/%[a-z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),e.splice(o,0,i),e},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(n){}},t.load=r,t.useColors=function(){return"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(r())}).call(t,n(4))},function(e,t){var n,i,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var c,l=[],u=!1,d=-1;function h(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=s(h);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){(t=e.exports=o.debug=o).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e);for(var n=(e||"").split(/[\s,]+/),i=n.length,r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/[\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,i;for(n=0,i=t.skips.length;n<i;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;n<i;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(6),t.names=[],t.skips=[],t.formatters={};var i,r=0;function o(e){function n(){}function o(){var e=o,n=+new Date,a=n-(i||n);e.diff=a,e.prev=i,e.curr=n,i=n,null==e.useColors&&(e.useColors=t.useColors()),null==e.color&&e.useColors&&(e.color=t.colors[r++%t.colors.length]);for(var s=new Array(arguments.length),c=0;c<s.length;c++)s[c]=arguments[c];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var l=0;
2s[0]=s[0].replace(/%([a-z%])/g,(function(n,i){if("%%"===n)return n;l++;var r=t.formatters[i];if("function"==typeof r){var o=s[l];n=r.call(e,o),s.splice(l,1),l--}return n})),s=t.formatArgs.apply(e,s),(o.log||t.log||console.log.bind(console)).apply(e,s)}n.enabled=!1,o.enabled=!0;var a=t.enabled(e)?o:n;return a.namespace=e,a}},function(e,t){var n=1e3,i=60*n,r=60*i,o=24*r,a=365.25*o;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var c,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*i;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===l&&!1===isNaN(e))return t.long?s(c=e,o,"day")||s(c,r,"hour")||s(c,i,"minute")||s(c,n,"second")||c+" ms":function(e){return e>=o?Math.round(e/o)+"d":e>=r?Math.round(e/r)+"h":e>=i?Math.round(e/i)+"m":e>=n?Math.round(e/n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){var i=n(8)("socket.io-parser"),r=n(11),o=n(13),a=n(14),s=n(16);function c(){}function l(e){var n="",o=!1;return n+=e.type,t.BINARY_EVENT!=e.type&&t.BINARY_ACK!=e.type||(n+=e.attachments,n+="-"),e.nsp&&"/"!=e.nsp&&(o=!0,n+=e.nsp),null!=e.id&&(o&&(n+=",",o=!1),n+=e.id),null!=e.data&&(o&&(n+=","),n+=r.stringify(e.data)),i("encoded %j as %s",e,n),n}function u(){this.reconstructor=null}function d(e){this.reconPack=e,this.buffers=[]}function h(e){return{type:t.ERROR,data:"parser error"}}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=c,t.Decoder=u,c.prototype.encode=function(e,n){i("encoding packet %j",e),t.BINARY_EVENT==e.type||t.BINARY_ACK==e.type?function(e,t){function n(e){var n=a.deconstructPacket(e),i=l(n.packet),r=n.buffers;r.unshift(i),t(r)}a.removeBlobs(e,n)}(e,n):n([l(e)])},o(u.prototype),u.prototype.add=function(e){var n;if("string"==typeof e)n=function(e){var n={},o=0;if(n.type=Number(e.charAt(0)),null==t.types[n.type])return h();if(t.BINARY_EVENT==n.type||t.BINARY_ACK==n.type){for(var a="";"-"!=e.charAt(++o)&&(a+=e.charAt(o),o!=e.length););if(a!=Number(a)||"-"!=e.charAt(o))throw new Error("Illegal attachments");n.attachments=Number(a)}if("/"==e.charAt(o+1))for(n.nsp="";++o&&","!=(c=e.charAt(o))&&(n.nsp+=c,o!=e.length););else n.nsp="/";var s=e.charAt(o+1);if(""!==s&&Number(s)==s){for(n.id="";++o;){var c;if(null==(c=e.charAt(o))||Number(c)!=c){--o;break}if(n.id+=e.charAt(o),o==e.length)break}n.id=Number(n.id)}return e.charAt(++o)&&(n=function(e,t){try{e.data=r.parse(t)}catch(n){return h()}return e}(n,e.substr(o))),i("decoded %s as %j",e,n),n}(e),t.BINARY_EVENT==n.type||t.BINARY_ACK==n.type?(this.reconstructor=new d(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!s(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},u.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},d.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length==this.reconPack.attachments){var t=a.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},d.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){function i(){var e;try{e=t.storage.debug}catch(n){}return e}
2(t=e.exports=n(9)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(){var e=arguments,n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return e;var i="color: "+this.color;e=[e[0],i,"color: inherit"].concat(Array.prototype.slice.call(e,1));var r=0,o=0;return e[0].replace(/%[a-z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),e.splice(o,0,i),e},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(n){}},t.load=i,t.useColors=function(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){return JSON.stringify(e)},t.enable(i())},function(e,t,n){t=e.exports=function(e){function n(){}function o(){var e=o,n=+new Date,a=n-(i||n);e.diff=a,e.prev=i,e.curr=n,i=n,null==e.useColors&&(e.useColors=t.useColors()),null==e.color&&e.useColors&&(e.color=t.colors[r++%t.colors.length]);var s=Array.prototype.slice.call(arguments);s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var c=0;s[0]=s[0].replace(/%([a-z%])/g,(function(n,i){if("%%"===n)return n;c++;var r=t.formatters[i];if("function"==typeof r){var o=s[c];n=r.call(e,o),s.splice(c,1),c--}return n})),"function"==typeof t.formatArgs&&(s=t.formatArgs.apply(e,s)),(o.log||t.log||console.log.bind(console)).apply(e,s)}n.enabled=!1,o.enabled=!0;var a=t.enabled(e)?o:n;return a.namespace=e,a},t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e);for(var n=(e||"").split(/[\s,]+/),i=n.length,r=0;r<i;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,i;for(n=0,i=t.skips.length;n<i;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;n<i;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(10),t.names=[],t.skips=[],t.formatters={};var i,r=0},function(e,t){var n=1e3,i=60*n,r=60*i,o=24*r,a=365.25*o;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){return t=t||{},"string"==typeof e?function(e){if(!((e=""+e).length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*i;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s}}}}(e):t.long?s(c=e,o,"day")||s(c,r,"hour")||s(c,i,"minute")||s(c,n,"second")||c+" ms":function(e){return e>=o?Math.round(e/o)+"d":e>=r?Math.round(e/r)+"h":e>=i?Math.round(e/i)+"m":e>=n?Math.round(e/n)+"s":e+"ms"}(e);var c}},function(e,t,n){(function(e,n){(function(){var i={function:!0,object:!0},r=i[typeof t]&&t&&!t.nodeType&&t,o=i[typeof window]&&window||this,a=r&&i[typeof e]&&e&&!e.nodeType&&"object"==typeof n&&n;function s(e,t){e||(e=o.Object()),t||(t=o.Object());var n=e.Number||o.Number,r=e.String||o.String,a=e.Object||o.Object,c=e.Date||o.Date,l=e.SyntaxError||o.SyntaxError,u=e.TypeError||o.TypeError,d=e.Math||o.Math,h=e.JSON||o.JSON;"object"==typeof h&&h&&(t.stringify=h.stringify,t.parse=h.parse);var p,f,m,g=a.prototype,v=g.toString,y=new c(-0xc782b5b800cec);try{y=-109252==y.getUTCFullYear()&&0===y.getUTCMonth()&&1===y.getUTCDate()&&10==y.getUTCHours()&&37==y.getUTCMinutes()&&6==y.getUTCSeconds()&&708==y.getUTCMilliseconds()}catch(H){}function w(e){if(w[e]!==m)return w[e];var i;if("bug-string-char-index"==e)i="a"!="a"[0];else if("json"==e)i=w("json-stringify")&&w("json-parse");else{var o,a='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var s=t.stringify,l="function"==typeof s&&y;if(l){(o=function(){return 1}).toJSON=o;try{l="0"===s(0)&&"0"===s(new n)&&'""'==s(new r)&&s(v)===m&&s(m)===m&&s()===m&&"1"===s(o)&&"[1]"==s([o]
vendor: 4,325 bytes, line 2
2)&&"[null]"==s([m])&&"null"==s(null)&&"[null,null,null]"==s([m,v,null])&&s({a:[o,!0,!1,null,"\0\b\n\f\r\t"]})==a&&"1"===s(null,o)&&"[\n 1,\n 2\n]"==s([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==s(new c(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==s(new c(864e13))&&'"-000001-01-01T00:00:00.000Z"'==s(new c(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==s(new c(-1))}catch(H){l=!1}}i=l}if("json-parse"==e){var u=t.parse;if("function"==typeof u)try{if(0===u("0")&&!u(!1)){var d=5==(o=u(a)).a.length&&1===o.a[0];if(d){try{d=!u('"\t"')}catch(H){}if(d)try{d=1!==u("01")}catch(H){}if(d)try{d=1!==u("1.")}catch(H){}}}}catch(H){d=!1}i=d}}return w[e]=!!i}if(!w("json")){var b="[object Function]",C="[object Number]",T="[object String]",S="[object Array]",E=w("bug-string-char-index");if(!y)var x=d.floor,k=[0,31,59,90,120,151,181,212,243,273,304,334],_=function(e,t){return k[t]+365*(e-1970)+x((e-1969+(t=+(t>1)))/4)-x((e-1901+t)/100)+x((e-1601+t)/400)};if((p=g.hasOwnProperty)||(p=function(e){var t,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=v?p=function(e){var t=this.__proto__,n=e in(this.__proto__=null,this);return this.__proto__=t,n}:(t=n.constructor,p=function(e){var n=(this.constructor||t).prototype;return e in this&&!(e in n&&this[e]===n[e])}),n=null,p.call(this,e)}),f=function(e,t){var n,r,o,a=0;for(o in(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n)p.call(r,o)&&a++;return n=r=null,a?f=2==a?function(e,t){var n,i={},r=v.call(e)==b;for(n in e)r&&"prototype"==n||p.call(i,n)||!(i[n]=1)||!p.call(e,n)||t(n)}:function(e,t){var n,i,r=v.call(e)==b;for(n in e)r&&"prototype"==n||!p.call(e,n)||(i="constructor"===n)||t(n);(i||p.call(e,n="constructor"))&&t(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],f=function(e,t){var n,o,a=v.call(e)==b,s=!a&&"function"!=typeof e.constructor&&i[typeof e.hasOwnProperty]&&e.hasOwnProperty||p;for(n in e)a&&"prototype"==n||!s.call(e,n)||t(n);for(o=r.length;n=r[--o];s.call(e,n)&&t(n));}),f(e,t)},!w("json-stringify")){var A={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},M=function(e,t){return("000000"+(t||0)).slice(-e)},P=function(e){for(var t='"',n=0,i=e.length,r=!E||i>10,o=r&&(E?e.split(""):e);n<i;n++){var a=e.charCodeAt(n);switch(a){case 8:case 9:case 10:case 12:case 13:case 34:case 92:t+=A[a];break;default:if(a<32){t+="\\u00"+M(2,a.toString(16));break}t+=r?o[n]:e.charAt(n)}}return t+'"'},R=function(e,t,n,i,r,o,a){var s,c,l,d,h,g,y,w,b,E,k,A,I,O,N,D;try{s=t[e]}catch(H){}if("object"==typeof s&&s)if("[object Date]"!=(c=v.call(s))||p.call(s,"toJSON"))"function"==typeof s.toJSON&&(c!=C&&c!=T&&c!=S||p.call(s,"toJSON"))&&(s=s.toJSON(e));else if(s>-1/0&&s<1/0){if(_){for(h=x(s/864e5),l=x(h/365.2425)+1970-1;_(l+1,0)<=h;l++);for(d=x((h-_(l,0))/30.42);_(l,d+1)<=h;d++);h=1+h-_(l,d),y=x((g=(s%864e5+864e5)%864e5)/36e5)%24,w=x(g/6e4)%60,b=x(g/1e3)%60,E=g%1e3}else l=s.getUTCFullYear(),d=s.getUTCMonth(),h=s.getUTCDate(),y=s.getUTCHours(),w=s.getUTCMinutes(),b=s.getUTCSeconds(),E=s.getUTCMilliseconds();s=(l<=0||l>=1e4?(l<0?"-":"+")+M(6,l<0?-l:l):M(4,l))+"-"+M(2,d+1)+"-"+M(2,h)+"T"+M(2,y)+":"+M(2,w)+":"+M(2,b)+"."+M(3,E)+"Z"}else s=null;if(n&&(s=n.call(t,e,s)),null===s)return"null";if("[object Boolean]"==(c=v.call(s)))return""+s;if(c==C)return s>-1/0&&s<1/0?""+s:"null";if(c==T)return P(""+s);if("object"==typeof s){for(O=a.length;O--;)if(a[O]===s)throw u();if(a.push(s),k=[],N=o,o+=r,c==S){for(I=0,O=s.length;I<O;I++)A=R(I,s,n,i,r,o,a),k.push(A===m?"null":A);D=k.length?r?"[\n"+o+k.join(",\n"+o)+"\n"+N+"]":"["+k.join(",")+"]":"[]"}else f(i||s,(function(e){var t=R(e,s,n,i,r,o,a);t!==m&&k.push(P(e)+":"+(r?" ":"")+t)})),D=k.length?r?"{\n"+o+k.join(",\n"+o)+"\n"+N+"}":"{"+k.join(",")+"}":"{}";return a.pop(),D}};t.stringify=function(e,t,n){var r,o,a,s;if(i[typeof t]&&t)if((s=v.call(t))==b)o=t;else if(s==S){a={};for(var c,l=0,u=t.length;l<u;c=t[l++],((s=v.call(c))==T||s==C)&&(a[c]=1));}if(n)if((s=v.call(n))==C){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else s==T&&(r=n.length<=10?n:n.slice(0,10));return R("",((c={})[""]=e,c),o,a,r,"",[])}}if(!w("json-parse")){var I,O,N=r.fromCharCode,D={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},L=function(){throw I=O=null,l()},B=function(){for(var e,t,n,i,r,o=O,a=o.length;I<a;
2)switch(r=o.charCodeAt(I)){case 9:case 10:case 13:case 32:I++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=E?o.charAt(I):o[I],I++,e;case 34:for(e="@",I++;I<a;)if((r=o.charCodeAt(I))<32)L();else if(92==r)switch(r=o.charCodeAt(++I)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=D[r],I++;break;case 117:for(t=++I,n=I+4;I<n;I++)(r=o.charCodeAt(I))>=48&&r<=57||r>=97&&r<=102||r>=65&&r<=70||L();e+=N("0x"+o.slice(t,I));break;default:L()}else{if(34==r)break;for(r=o.charCodeAt(I),t=I;r>=32&&92!=r&&34!=r;)r=o.charCodeAt(++I);e+=o.slice(t,I)}if(34==o.charCodeAt(I))return I++,e;L();default:if(t=I,45==r&&(i=!0,r=o.charCodeAt(++I)),r>=48&&r<=57){for(48==r&&(r=o.charCodeAt(I+1))>=48&&r<=57&&L(),i=!1;I<a&&(r=o.charCodeAt(I))>=48&&r<=57;I++);if(46==o.charCodeAt(I)){for(n=++I;n<a&&(r=o.charCodeAt(n))>=48&&r<=57;n++);n==I&&L(),I=n}if(101==(r=o.charCodeAt(I))||69==r){for(43!=(r=o.charCodeAt(++I))&&45!=r||I++,n=I;n<a&&(r=o.charCodeAt(n))>=48&&r<=57;n++);n==I&&L(),I=n}return+o.slice(t,I)}if(i&&L(),"true"==o.slice(I,I+4))return I+=4,!0;if("false"==o.slice(I,I+5))return I+=5,!1;if("null"==o.slice(I,I+4))return I+=4,null;L()}return"$"},j=function(e){var t,n;if("$"==e&&L(),"string"==typeof e){if("@"==(E?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=B());n||(n=!0))n&&(","==e?"]"==(e=B())&&L():L()),","==e&&L(),t.push(j(e));return t}if("{"==e){for(t={};"}"!=(e=B());n||(n=!0))n&&(","==e?"}"==(e=B())&&L():L()),","!=e&&"string"==typeof e&&"@"==(E?e.charAt(0):e[0])&&":"==B()||L(),t[e.slice(1)]=j(B());return t}L()}return e},V=function(e,t,n){var i=F(e,t,n);i===m?delete e[t]:e[t]=i},F=function(e,t,n){var i,r=e[t];if("object"==typeof r&&r)if(v.call(r)==S)for(i=r.length;i--;)V(r,i,n);else f(r,(function(e){V(r,e,n)}));return n.call(e,t,r)};t.parse=function(e,t){var n,i;return I=0,O=""+e,n=j(B()),"$"!=B()&&L(),I=O=null,t&&v.call(t)==b?F(((i={})[""]=n,i),"",t):n}}}return t.runInContext=s,t}if(!a||a.global!==a&&a.window!==a&&a.self!==a||(o=a),r)s(o,r);else{var c=o.JSON,l=o.JSON3,u=!1,d=s(o,o.JSON3={noConflict:function(){return u||(u=!0,o.JSON=c,o.JSON3=l,c=l=null),d}});o.JSON={parse:d.parse,stringify:d.stringify}}}).call(this)}).call(t,n(12)(e),function(){return this}())},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}e.exports=n,n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this},n.prototype.once=function(e,t){var n=this;function i(){n.off(e,i),t.apply(this,arguments)}return this._callbacks=this._callbacks||{},i.fn=t,this.on(e,i),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks[e];if(!i)return this;if(1==arguments.length)return delete this._callbacks[e],this;for(var r=0;r<i.length;r++)if((n=i[r])===t||n.fn===t){i.splice(r,1);break}return this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks[e];if(n)for(var i=0,r=(n=n.slice(0)).length;i<r;++i)n[i].apply(this,t);return this},n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){(function(e){var i=n(15),r=n(16);t.deconstructPacket=function(e){var t=[],n=e.data,o=e;return o.data=function e(n){if(!n)return n;if(r(n)){var o={_placeholder:!0,num:t.length};return t.push(n),o}if(i(n)){for(var a=new Array(n.length),s=0;s<n.length;s++)a[s]=e(n[s]);return a}if("object"==typeof n&&!(n instanceof Date)){for(var c in a={},n)a[c]=e(n[c]);return a}return n}(n),o.attachments=t.length,{packet:o,buffers:t}},t.reconstructPacket=function(e,t){return e.data=function e(n){if(n&&n._placeholder)return t[n.num];if(i(n)){for(var r=0;r<n.length;r++)n[r]=e(n[r]);return n}if(n&&"object"==typeof n){for(var o in n)n[o]=e(n[o]);return n}return n}(e.data),e.attachments=void 0,e},t.removeBlobs=function(t,n){var o=0,a=t;!function t(s,c,l){if(!s)return s;if(e.Blob&&s instanceof Blob||e.File&&s instanceof File){o++;var u=new FileReader;u.onload=function(){l?l[c]=this.result:a=this.result,--o||n(a)},u.readAsArrayBuffer(s)}else if(i(s))for(var d=0;d<s.length;d++)t(s[d],d,s);else if(s&&"object"==typeof s&&!r(s))for(var h in s)t(s[h],h,s)}(a),o||n(a)}}).call(t,function(){return this}())},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t){(function(t){e.exports=function(e){return t.Buffer&&t.Buffer.isBuffer(e)||t.ArrayBuffer&&e instanceof ArrayBuffer}}).call(t,function(){return this}())},function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(18),o=n(45),a=n(36),s=n(7),c=n(47),l=n(48),u=n(3)("socket.io-client:manager"),d=n(43),h=n(51),p=Object.prototype.hasOwnProperty;function f(e,t){if(!(this instanceof f))return new f(e,t);e&&"object"===(void 0===e?"undefined":i(e))&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new h({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[],this.encoder=new s.Encoder,this.decoder=new s.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}e.exports=f,f.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)p.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},f.prototype.updateSocketIds=function(){for(var e in this.nsps)p.call(this.nsps,e)&&(this.nsps[e].id=this.engine.id)},a(f.prototype),f.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},f.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},f.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},f.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},f.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},f.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},f.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},f.prototype.open=f.prototype.connect=function(e,t){if(u("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;u("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,i=this;this.readyState="opening",this.skipReconnect=!1;var o=c(n,"open",(function(){i.onopen(),e&&e()}
vendor: 5,378 bytes, line 2
2)),a=c(n,"error",(function(t){if(u("connect_error"),i.cleanup(),i.readyState="closed",i.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else i.maybeReconnectOnOpen()}));if(!1!==this._timeout){var s=this._timeout;u("connect attempt will timeout after %d",s);var l=setTimeout((function(){u("connect attempt timed out after %d",s),o.destroy(),n.close(),n.emit("error","timeout"),i.emitAll("connect_timeout",s)}),s);this.subs.push({destroy:function(){clearTimeout(l)}})}return this.subs.push(o),this.subs.push(a),this},f.prototype.onopen=function(){u("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(c(e,"data",l(this,"ondata"))),this.subs.push(c(e,"ping",l(this,"onping"))),this.subs.push(c(e,"pong",l(this,"onpong"))),this.subs.push(c(e,"error",l(this,"onerror"))),this.subs.push(c(e,"close",l(this,"onclose"))),this.subs.push(c(this.decoder,"decoded",l(this,"ondecoded")))},f.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},f.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},f.prototype.ondata=function(e){this.decoder.add(e)},f.prototype.ondecoded=function(e){this.emit("packet",e)},f.prototype.onerror=function(e){u("error",e),this.emitAll("error",e)},f.prototype.socket=function(e,t){var n=this.nsps[e];if(!n){n=new o(this,e,t),this.nsps[e]=n;var i=this;n.on("connecting",r),n.on("connect",(function(){n.id=i.engine.id})),this.autoConnect&&r()}function r(){~d(i.connecting,n)||i.connecting.push(n)}return n},f.prototype.destroy=function(e){var t=d(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},f.prototype.packet=function(e){u("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,(function(n){for(var i=0;i<n.length;i++)t.engine.write(n[i],e.options);t.encoding=!1,t.processPacketQueue()})))},f.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},f.prototype.cleanup=function(){u("cleanup");for(var e=this.subs.length,t=0;t<e;t++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},f.prototype.close=f.prototype.disconnect=function(){u("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},f.prototype.onclose=function(e){u("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},f.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)u("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();u("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout((function(){e.skipReconnect||(u("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open((function(t){t?(u("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(u("reconnect success"),e.onreconnect())})))}),t);this.subs.push({destroy:function(){clearTimeout(n)}})}},f.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){e.exports=n(19)},function(e,t,n){e.exports=n(20),e.exports.parser=n(27)},function(e,t,n){(function(t){var i=n(21),r=n(36),o=n(3)("engine.io-client:socket"),a=n(43),s=n(27),c=n(2),l=n(44),u=n(37);function d(e,n){if(!(this instanceof d))return new d(e,n);n=n||{},e&&"object"==typeof e&&(n=e,e=null),e?(e=c(e),n.hostname=e.host,n.secure="https"===e.protocol||"wss"===e.protocol,n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=c(n.host).host),this.secure=null!=n.secure?n.secure:t.location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(t.location?location.hostname:"localhost"),this.port=n.port||(t.location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=u.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.
2ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized?null:n.rejectUnauthorized,this.forceNode=!!n.forceNode;var i="object"==typeof t&&t;i.global===i&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=d,d.priorWebsocketSuccess=!1,r(d.prototype),d.protocol=s.protocol,d.Socket=d,d.Transport=n(26),d.transports=n(21),d.parser=n(27),d.prototype.createTransport=function(e){o('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);return t.EIO=s.protocol,t.transport=e,this.id&&(t.sid=this.id),new i[e]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:t,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized,perMessageDeflate:this.perMessageDeflate,extraHeaders:this.extraHeaders,forceNode:this.forceNode,localAddress:this.localAddress})},d.prototype.open=function(){var e;if(this.rememberUpgrade&&d.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout((function(){t.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(n){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},d.prototype.setTransport=function(e){o("setting transport %s",e.name);var t=this;this.transport&&(o("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))},d.prototype.probe=function(e){o('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,i=this;function r(){if(i.onlyBinaryUpgrades){var r=!this.supportsBinary&&i.transport.supportsBinary;n=n||r}n||(o('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(r){if(!n)if("pong"===r.type&&"probe"===r.data){if(o('probe transport "%s" pong',e),i.upgrading=!0,i.emit("upgrading",t),!t)return;d.priorWebsocketSuccess="websocket"===t.name,o('pausing current transport "%s"',i.transport.name),i.transport.pause((function(){n||"closed"!==i.readyState&&(o("changing transport and sending upgrade packet"),h(),i.setTransport(t),t.send([{type:"upgrade"}]),i.emit("upgrade",t),t=null,i.upgrading=!1,i.flush())}))}else{o('probe transport "%s" failed',e);var a=new Error("probe error");a.transport=t.name,i.emit("upgradeError",a)}})))}function a(){n||(n=!0,h(),t.close(),t=null)}function s(n){var r=new Error("probe error: "+n);r.transport=t.name,a(),o('probe transport "%s" failed because of error: %s',e,n),i.emit("upgradeError",r)}function c(){s("transport closed")}function l(){s("socket closed")}function u(e){t&&e.name!==t.name&&(o('"%s" works - aborting "%s"',e.name,t.name),a())}function h(){t.removeListener("open",r),t.removeListener("error",s),t.removeListener("close",c),i.removeListener("close",l),i.removeListener("upgrading",u)}d.priorWebsocketSuccess=!1,t.once("open",r),t.once("error",s),t.once("close",c),this.once("close",l),this.once("upgrading",u),t.open()},d.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",d.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){o("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},d.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(o('socket receive: type "%s", data "%s"',e.type,e.data),this.emit
2("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(l(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else o('packet received with socket readyState "%s"',this.readyState)},d.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},d.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout((function(){"closed"!==t.readyState&&t.onClose("ping timeout")}),e||t.pingInterval+t.pingTimeout)},d.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout((function(){o("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)}),e.pingInterval)},d.prototype.ping=function(){var e=this;this.sendPacket("ping",(function(){e.emit("ping")}))},d.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},d.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(o("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},d.prototype.write=d.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},d.prototype.sendPacket=function(e,t,n,i){if("function"==typeof t&&(i=t,t=void 0),"function"==typeof n&&(i=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var r={type:e,data:t,options:n};this.emit("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}},d.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?i():t()})):this.upgrading?i():t()}function t(){e.onClose("forced close"),o("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function i(){e.once("upgrade",n),e.once("upgradeError",n)}return this},d.prototype.onError=function(e){o("socket error %j",e),d.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},d.prototype.onClose=function(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(o('socket close with reason: "%s"',e),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)},d.prototype.filterUpgrades=function(e){for(var t=[],n=0,i=e.length;n<i;n++)~a(this.transports,e[n])&&t.push(e[n]);return t}}
2).call(t,function(){return this}())},function(e,t,n){(function(e){var i=n(22),r=n(24),o=n(40),a=n(41);t.polling=function(t){var n=!1,a=!1,s=!1!==t.jsonp;if(e.location){var c="https:"===location.protocol,l=location.port;l||(l=c?443:80),n=t.hostname!==location.hostname||l!==t.port,a=t.secure!==c}if(t.xdomain=n,t.xscheme=a,"open"in new i(t)&&!t.forceJSONP)return new r(t);if(!s)throw new Error("JSONP disabled");return new o(t)},t.websocket=a}).call(t,function(){return this}())},function(e,t,n){(function(t){var i=n(23);e.exports=function(e){var n=e.xdomain,r=e.xscheme,o=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!n||i))return new XMLHttpRequest}catch(a){}try{if("undefined"!=typeof XDomainRequest&&!r&&o)return new XDomainRequest}catch(a){}if(!n)try{return new(t[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(a){}}}).call(t,function(){return this}())},function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(n){e.exports=!1}},function(e,t,n){(function(t){var i=n(22),r=n(25),o=n(36),a=n(38),s=n(3)("engine.io-client:polling-xhr");function c(){}function l(e){if(r.call(this,e),this.requestTimeout=e.requestTimeout,t.location){var n="https:"===location.protocol,i=location.port;i||(i=n?443:80),this.xd=e.hostname!==t.location.hostname||i!==e.port,this.xs=e.secure!==n}else this.extraHeaders=e.extraHeaders}function u(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}function d(){for(var e in u.requests)u.requests.hasOwnProperty(e)&&u.requests[e].abort()}e.exports=l,e.exports.Request=u,a(l,r),l.prototype.supportsBinary=!0,l.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new u(e)},l.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,i=this.request({method:"POST",data:e,isBinary:n}),r=this;i.on("success",t),i.on("error",(function(e){r.onError("xhr post error",e)})),this.sendXhr=i},l.prototype.doPoll=function(){s("xhr poll");var e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e},o(u.prototype),u.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new i(e),r=this;try{s("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var o in n.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this.extraHeaders[o])}catch(a){}if(this.supportsBinary&&(n.responseType="arraybuffer"),"POST"===this.method)try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(a){}try{n.setRequestHeader("Accept","*/*")}catch(a){}"withCredentials"in n&&(n.withCredentials=!0),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){r.onLoad()},n.onerror=function(){r.onError(n.responseText)}):n.onreadystatechange=function(){4===n.readyState&&(200===n.status||1223===n.status?r.onLoad():setTimeout((function(){r.onError(n.status)}),0))},s("xhr data %s",this.data),n.send(this.data)}catch(a){return void setTimeout((function(){r.onError(a)}),0)}t.document&&(this.index=u.requestsCount++,u.requests[this.index]=this)}
2,u.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},u.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},u.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},u.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=c:this.xhr.onreadystatechange=c,e)try{this.xhr.abort()}catch(n){}t.document&&delete u.requests[this.index],this.xhr=null}},u.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch(a){}if("application/octet-stream"===t)e=this.xhr.response||this.xhr.responseText;else if(this.supportsBinary)try{e=String.fromCharCode.apply(null,new Uint8Array(this.xhr.response))}catch(a){for(var n=new Uint8Array(this.xhr.response),i=[],r=0,o=n.length;r<o;r++)i.push(n[r]);e=String.fromCharCode.apply(null,i)}else e=this.xhr.responseText}catch(a){this.onError(a)}null!=e&&this.onData(e)},u.prototype.hasXDR=function(){return void 0!==t.XDomainRequest&&!this.xs&&this.enablesXDR},u.prototype.abort=function(){this.cleanup()},u.requestsCount=0,u.requests={},t.document&&(t.attachEvent?t.attachEvent("onunload",d):t.addEventListener&&t.addEventListener("beforeunload",d,!1))}).call(t,function(){return this}())},function(e,t,n){var i=n(26),r=n(37),o=n(27),a=n(38),s=n(39),c=n(3)("engine.io-client:polling");e.exports=u;var l=null!=new(n(22))({xdomain:!1}).responseType;function u(e){var t=e&&e.forceBase64;l&&!t||(this.supportsBinary=!1),i.call(this,e)}a(u,i),u.prototype.name="polling",u.prototype.doOpen=function(){this.poll()},u.prototype.pause=function(e){var t=this;function n(){c("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var i=0;this.polling&&(c("we are currently polling - waiting to pause"),i++,this.once("pollComplete",(function(){c("pre-pause polling complete"),--i||n()}))),this.writable||(c("we are currently writing - waiting to pause"),i++,this.once("drain",(function(){c("pre-pause writing complete"),--i||n()})))}else n()},u.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},u.prototype.onData=function(e){var t=this;c("polling got data %s",e),o.decodePayload(e,this.socket.binaryType,(function(e,n,i){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},u.prototype.doClose=function(){var e=this;function t(){c("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),t()):(c("transport not open - deferring close"),this.once("open",t))},u.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};o.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,n)}))},u.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=s()),this.supportsBinary||e.sid||(e.b64=1),e=r.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){var i=n(27),r=n(36);function o(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=o,r(o.prototype),o.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},o.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit
2("open")},o.prototype.onData=function(e){var t=i.decodePacket(e,this.socket.binaryType);this.onPacket(t)},o.prototype.onPacket=function(e){this.emit("packet",e)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){(function(e){var i,r=n(28),o=n(29),a=n(31),s=n(32),c=n(33);e&&e.ArrayBuffer&&(i=n(34));var l="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),d=l||u;t.protocol=3;var h=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=r(h),f={type:"error",data:"parser error"},m=n(35);function g(e,t,n){for(var i=new Array(e.length),r=s(e.length,n),o=function(e,n,r){t(n,(function(t,n){i[e]=n,r(t,i)}))},a=0;a<e.length;a++)o(a,e[a],r)}t.encodePacket=function(n,i,r,o){"function"==typeof i&&(o=i,i=!1),"function"==typeof r&&(o=r,r=null);var a=void 0===n.data?void 0:n.data.buffer||n.data;if(e.ArrayBuffer&&a instanceof ArrayBuffer)return function(e,n,i){if(!n)return t.encodeBase64Packet(e,i);var r=e.data,o=new Uint8Array(r),a=new Uint8Array(1+r.byteLength);a[0]=h[e.type];for(var s=0;s<o.length;s++)a[s+1]=o[s];return i(a.buffer)}(n,i,o);if(m&&a instanceof e.Blob)return function(e,n,i){if(!n)return t.encodeBase64Packet(e,i);if(d)return function(e,n,i){if(!n)return t.encodeBase64Packet(e,i);var r=new FileReader;return r.onload=function(){e.data=r.result,t.encodePacket(e,n,!0,i)},r.readAsArrayBuffer(e.data)}(e,n,i);var r=new Uint8Array(1);r[0]=h[e.type];var o=new m([r.buffer,e.data]);return i(o)}(n,i,o);if(a&&a.base64)return function(e,n){var i="b"+t.packets[e.type]+e.data.data;return n(i)}(n,o);var s=h[n.type];return void 0!==n.data&&(s+=r?c.encode(String(n.data)):String(n.data)),o(""+s)},t.encodeBase64Packet=function(n,i){var r,o="b"+t.packets[n.type];if(m&&n.data instanceof e.Blob){var a=new FileReader;return a.onload=function(){var e=a.result.split(",")[1];i(o+e)},a.readAsDataURL(n.data)}try{r=String.fromCharCode.apply(null,new Uint8Array(n.data))}catch(u){for(var s=new Uint8Array(n.data),c=new Array(s.length),l=0;l<s.length;l++)c[l]=s[l];r=String.fromCharCode.apply(null,c)}return o+=e.btoa(r),i(o)},t.decodePacket=function(e,n,i){if(void 0===e)return f;if("string"==typeof e){if("b"==e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(i&&!1===(e=function(e){try{e=c.decode(e)}catch(t){return!1}return e}(e)))return f;var r=e.charAt(0);return Number(r)==r&&p[r]?e.length>1?{type:p[r],data:e.substring(1)}:{type:p[r]}:f}r=new Uint8Array(e)[0];var o=a(e,1);return m&&"blob"===n&&(o=new m([o])),{type:p[r],data:o}},t.decodeBase64Packet=function(e,t){var n=p[e.charAt(0)];if(!i)return{type:n,data:{base64:!0,data:e.substr(1)}};var r=i.decode(e.substr(1));return"blob"===t&&m&&(r=new m([r])),{type:n,data:r}},t.encodePayload=function(e,n,i){"function"==typeof n&&(i=n,n=null);var r=o(e);return n&&r?m&&!d?t.encodePayloadAsBlob(e,i):t.encodePayloadAsArrayBuffer(e,i):e.length?void g(e,(function(e,i){t.encodePacket(e,!!r&&n,!0,(function(e){i(null,function(e){return e.length+":"+e}(e))}))}),(function(e,t){return i(t.join(""))})):i("0:")},t.decodePayload=function(e,n,i){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,i);var r;if("function"==typeof n&&(i=n,n=null),""==e)return i(f,0,1);for(var o,a,s="",c=0,l=e.length;c<l;c++){var u=e.charAt(c);if(":"!=u)s+=u;else{if(""==s||s!=(o=Number(s)))return i(f,0,1);if(s!=(a=e.substr(c+1,o)).length)return i(f,0,1);if(a.length){if(r=t.decodePacket(a,n,!0),f.type==r.type&&f.data==r.data)return i(f,0,1);if(!1===i(r,c+o,l))return}c+=o,s=""}}return""!=s?i(f,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){if(!e.length)return n(new ArrayBuffer(0));g(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){return n(null,e)}))}),(function(e,t){var i=t.reduce((function(e,t){var n;return e+(n="string"==typeof t?t.length:t.byteLength).toString().length+n+2}),0),r=new Uint8Array(i),o=0;return t.forEach((function(e){var t="string"==typeof e,n=e;if(t){for(var i=new Uint8Array(e.length),a=0;a<e.length;a++)i[a]=e.charCodeAt(a);n=i.buffer}r[o++]=t?0:1;var s=n.byteLength.toString();for(a=0;a<s.length;
2a++)r[o++]=parseInt(s[a]);for(r[o++]=255,i=new Uint8Array(n),a=0;a<i.length;a++)r[o++]=i[a]})),n(r.buffer)}))},t.encodePayloadAsBlob=function(e,n){g(e,(function(e,n){t.encodePacket(e,!0,!0,(function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var i=new Uint8Array(e.length),r=0;r<e.length;r++)i[r]=e.charCodeAt(r);e=i.buffer,t[0]=0}var o=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),a=new Uint8Array(o.length+1);for(r=0;r<o.length;r++)a[r]=parseInt(o[r]);if(a[o.length]=255,m){var s=new m([t.buffer,a.buffer,e]);n(null,s)}}))}),(function(e,t){return n(new m(t))}))},t.decodePayloadAsBinary=function(e,n,i){"function"==typeof n&&(i=n,n=null);for(var r=e,o=[],s=!1;r.byteLength>0;){for(var c=new Uint8Array(r),l=0===c[0],u="",d=1;255!=c[d];d++){if(u.length>310){s=!0;break}u+=c[d]}if(s)return i(f,0,1);r=a(r,2+u.length),u=parseInt(u);var h=a(r,0,u);if(l)try{h=String.fromCharCode.apply(null,new Uint8Array(h))}catch(g){var p=new Uint8Array(h);for(h="",d=0;d<p.length;d++)h+=String.fromCharCode(p[d])}o.push(h),r=a(r,u)}var m=o.length;o.forEach((function(e,r){i(t.decodePacket(e,n,!0),r,m)}))}}).call(t,function(){return this}())},function(e,t){e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var i in e)n.call(e,i)&&t.push(i);return t}},function(e,t,n){(function(t){var i=n(30);e.exports=function(e){return function e(n){if(!n)return!1;if(t.Buffer&&t.Buffer.isBuffer(n)||t.ArrayBuffer&&n instanceof ArrayBuffer||t.Blob&&n instanceof Blob||t.File&&n instanceof File)return!0;if(i(n)){for(var r=0;r<n.length;r++)if(e(n[r]))return!0}else if(n&&"object"==typeof n)for(var o in n.toJSON&&(n=n.toJSON()),n)if(Object.prototype.hasOwnProperty.call(n,o)&&e(n[o]))return!0;return!1}(e)}}).call(t,function(){return this}())},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e,t,n){var i=e.byteLength;if(t=t||0,n=n||i,e.slice)return e.slice(t,n);if(t<0&&(t+=i),n<0&&(n+=i),n>i&&(n=i),t>=i||t>=n||0===i)return new ArrayBuffer(0);for(var r=new Uint8Array(e),o=new Uint8Array(n-t),a=t,s=0;a<n;a++,s++)o[s]=r[a];return o.buffer}},function(e,t){function n(){}e.exports=function(e,t,i){var r=!1;return i=i||n,o.count=e,0===e?t():o;function o(e,n){if(o.count<=0)throw new Error("after called too many times");--o.count,e?(r=!0,t(e),t=i):0!==o.count||r||t(null,n)}}},function(e,t,n){var i;(function(e,r){!function(){var o=("object"==typeof e&&e&&e.exports,"object"==typeof r&&r);o.global!==o&&o.window;var a,s,c,l=String.fromCharCode;function u(e){for(var t,n,i=[],r=0,o=e.length;r<o;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<o?56320==(64512&(n=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--):i.push(t);return i}function d(e,t){return l(e>>t&63|128)}function h(e){if(!(4294967168&e))return l(e);var t="";return 4294965248&e?4294901760&e?4292870144&e||(t=l(e>>18&7|240),t+=d(e,12),t+=d(e,6)):(t=l(e>>12&15|224),t+=d(e,6)):t=l(e>>6&31|192),t+=l(63&e|128)}function p(){if(c>=s)throw Error("Invalid byte index");var e=255&a[c];if(c++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function f(){var e,t;if(c>s)throw Error("Invalid byte index");if(c==s)return!1;if(e=255&a[c],c++,!(128&e))return e;if(192==(224&e)){if((t=(31&e)<<6|p())>=128)return t;throw Error("Invalid continuation byte")}if(224==(240&e)){if((t=(15&e)<<12|p()<<6|p())>=2048)return t;throw Error("Invalid continuation byte")}if(240==(248&e)&&(t=(15&e)<<18|p()<<12|p()<<6|p())>=65536&&t<=1114111)return t;throw Error("Invalid WTF-8 detected")}var m={version:"1.0.0",encode:function(e){for(var t=u(e),n=t.length,i=-1,r="";++i<n;)r+=h(t[i]);return r},decode:function(e){a=u(e),s=a.length,c=0;for(var t,n=[];!1!==(t=f());)n.push(t);return function(e){for(var t,n=e.length,i=-1,r="";++i<n;)(t=e[i])>65535&&(r+=l((t-=65536)>>>10&1023|55296),t=56320|1023&t),r+=l(t);return r}(n)}};void 0===(i=function(){return m}.call(t,n,t,e))||(e.exports=i)}()}).call(t,n(12)(e),function(){return this}())},function(e,t){!function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/",n=new Uint8Array(256),i=0;i<64;i++)n[e.charCodeAt(i)]=i;t.encode=function(t){var n,i=new Uint8Array(t),r=i.length,o="";for(n=0;n<r;n+=3)o+=e[i[n]>>2],o+=e[(3&i[n])<<4|i[n+1]>>4],o+=e[(15&i[n+1])<<2|i[n+2]>>6],o+=e[63&i[n+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o},t.decode=function(e){var t,i,r,o,a,s=.75*e.length,c=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var u=new ArrayBuffer(s),d=new Uint8Array(u);for(t=0;t<c;t+=4)i=n[e.charCodeAt(t)],r=n[e.charCodeAt(t+1)],o=n[e.charCodeAt(t+2)],a=n[e.charCodeAt(t+3)],d[l++]=i<<2|r>>4,d[l++]=(15&r)<<4|o>>2,d[l++]=(3&o)<<6|63&a;return u}}()},function(e,t){(function(t){var n=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder,i=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),r=i&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),o=n&&n.prototype.append&&n.prototype.getBlob;function a(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.buffer instanceof ArrayBuffer){var i=n.buffer;if(n.byteLength!==i.byteLength){var r=new Uint8Array(n.byteLength);r.set(new Uint8Array(i,n.byteOffset,n.byteLength)),i=r.buffer}e[t]=i}}}function s(e,t){t=t||{};var i=new n;a(e);for(var r=0;r<e.length;r++)i.append(e[r]);return t.type?i.getBlob(t.type):i.getBlob()}function c(e,t){return a(e),new Blob(e,t||{})}e.exports=i?r?t.Blob:c:o?s:void 0}).call(t,function(){return this}())},function(e,t,n){function i(e){if(e)return function(e){for(var t in i.prototype)e[t]=i.prototype[t];return e}(e)}e.exports=i,i.prototype.on=i.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},i.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r=0;r<i.length;r++)if((n=i[r])===t||n.fn===t){i.splice(r,1);break}return this},i.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n)for(var i=0,r=(n=n.slice(0)).length;i<r;++i)n[i].apply(this,t);return this},i.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},i.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),i=0,r=n.length;i<r;i++){var o=n[i].split("=");
2t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}},function(e,t){e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t){"use strict";var n,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r={},o=0,a=0;function s(e){var t="";do{t=i[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function c(){var e=s(+new Date);return e!==n?(o=0,n=e):e+"."+s(o++)}for(;a<64;a++)r[i[a]]=a;c.encode=s,c.decode=function(e){var t=0;for(a=0;a<e.length;a++)t=64*t+r[e.charAt(a)];return t},e.exports=c},function(e,t,n){(function(t){var i=n(25),r=n(38);e.exports=l;var o,a=/\n/g,s=/\\n/g;function c(){}function l(e){i.call(this,e),this.query=this.query||{},o||(t.___eio||(t.___eio=[]),o=t.___eio),this.index=o.length;var n=this;o.push((function(e){n.onData(e)})),this.query.j=this.index,t.document&&t.addEventListener&&t.addEventListener("beforeunload",(function(){n.script&&(n.script.onerror=c)}),!1)}r(l,i),l.prototype.supportsBinary=!1,l.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),i.prototype.doClose.call(this)},l.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)},l.prototype.doWrite=function(e,t){var n=this;if(!this.form){var i,r=document.createElement("form"),o=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index;r.className="socketio",r.style.position="absolute",r.style.top="-1000px",r.style.left="-1000px",r.target=c,r.method="POST",r.setAttribute("accept-charset","utf-8"),o.name="d",r.appendChild(o),document.body.appendChild(r),this.form=r,this.area=o}function l(){u(),t()}function u(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(t){n.onError("jsonp polling iframe removal error",t)}try{var e='<iframe src="javascript:0" name="'+n.iframeId+'">';i=document.createElement(e)}catch(t){(i=document.createElement("iframe")).name=n.iframeId,i.src="javascript:0"}i.id=n.iframeId,n.form.appendChild(i),n.iframe=i}this.form.action=this.uri(),u(),e=e.replace(s,"\\\n"),this.area.value=e.replace(a,"\\n");try{this.form.submit()}catch(d){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&l()}:this.iframe.onload=l}}).call(t,function(){return this}())},function(e,t,n){(function(t){var i,r=n(26),o=n(27),a=n(37),s=n(38),c=n(39),l=n(3)("engine.io-client:websocket"),u=t.WebSocket||t.MozWebSocket;if("undefined"==typeof window)try{i=n(42)}catch(p){}var d=u;function h(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=u&&!e.forceNode,this.usingBrowserWebSocket||(d=i),r.call(this,e)}d||"undefined"!=typeof window||(d=i),e.exports=h,s(h,r),h.prototype.name="websocket",h.prototype.supportsBinary=!0,h.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t={agent:this.agent,perMessageDeflate:this.perMessageDeflate};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(t.headers=this.extraHeaders),this.localAddress&&(t.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?new d(e):new d(e,void 0,t)}catch(n){return this.emit("error",n)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},h.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()}
2,this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},h.prototype.write=function(e){var n=this;this.writable=!1;for(var i=e.length,r=0,a=i;r<a;r++)!function(e){o.encodePacket(e,n.supportsBinary,(function(r){if(!n.usingBrowserWebSocket){var o={};e.options&&(o.compress=e.options.compress),n.perMessageDeflate&&("string"==typeof r?t.Buffer.byteLength(r):r.length)<n.perMessageDeflate.threshold&&(o.compress=!1)}try{n.usingBrowserWebSocket?n.ws.send(r):n.ws.send(r,o)}catch(p){l("websocket closed before onclose event")}--i||(n.emit("flush"),setTimeout((function(){n.writable=!0,n.emit("drain")}),0))}))}(e[r])},h.prototype.onClose=function(){r.prototype.onClose.call(this)},h.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},h.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=c()),this.supportsBinary||(e.b64=1),(e=a.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},h.prototype.check=function(){return!(!d||"__initialize"in d&&this.name===h.prototype.name)}
2}).call(t,function(){return this}())},function(e,t){},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var i=0;i<e.length;++i)if(e[i]===t)return i;return-1}},function(e,t){(function(t){var n=/^[\],:{}\s]*$/,i=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,r=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,o=/(?:^|:|,)(?:\s*\[)+/g,a=/^\s+/,s=/\s+$/;e.exports=function(e){return"string"==typeof e&&e?(e=e.replace(a,"").replace(s,""),t.JSON&&JSON.parse?JSON.parse(e):n.test(e.replace(i,"@").replace(r,"]").replace(o,""))?new Function("return "+e)():void 0):null}}).call(t,function(){return this}())},function(e,t,n){"use strict";var i=n(7),r=n(36),o=n(46),a=n(47),s=n(48),c=n(3)("socket.io-client:socket"),l=n(49);e.exports=h;var u={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},d=r.prototype.emit;function h(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}r(h.prototype),h.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[a(e,"open",s(this,"onopen")),a(e,"packet",s(this,"onpacket")),a(e,"close",s(this,"onclose"))]}},h.prototype.open=h.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},h.prototype.send=function(){var e=o(arguments);return e.unshift("message"),this.emit.apply(this,e),this},h.prototype.emit=function(e){if(u.hasOwnProperty(e))return d.apply(this,arguments),this;var t=o(arguments),n=i.EVENT;l(t)&&(n=i.BINARY_EVENT);var r={type:n,data:t,options:{}};return r.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),r.id=this.ids++),this.connected?this.packet(r):this.sendBuffer.push(r),delete this.flags,this},h.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},h.prototype.onopen=function(){c("transport is open - connecting"),"/"!==this.nsp&&(this.query?this.packet({type:i.CONNECT,query:this.query}):this.packet({type:i.CONNECT}))},h.prototype.onclose=function(e){c("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},h.prototype.onpacket=function(e){if(e.nsp===this.nsp)switch(e.type){case i.CONNECT:this.onconnect();break;case i.EVENT:case i.BINARY_EVENT:this.onevent(e);break;case i.ACK:case i.BINARY_ACK:this.onack(e);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",e.data)}},h.prototype.onevent=function(e){var t=e.data||[];c("emitting event %j",t),null!=e.id&&(c("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?d.apply(this,t):this.receiveBuffer.push(t)},h.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var r=o(arguments);c("sending ack %j",r);var a=l(r)?i.BINARY_ACK:i.ACK;t.packet({type:a,id:e,data:r})}}},h.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(c("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):c("bad ack %s",e.id)},h.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},h.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)d.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},h.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},h.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},h.prototype.close=h.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:i.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},h.prototype.compress=function(e){return this.flags=this.flags||{},this.flags.compress=e,this}},function(e,t){e.exports=function(e,t){for(var n=[],i=(t=t||0)||0;i<e.length;i++)n[i-t]=e[i];return n}},function(e,t){"use strict";e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},function(e,t){var n=[].slice;e.exports=function(e,t){if("string"==typeof t&&(t=e[t]),"function"!=typeof t)throw new Error("bind() requires a function");var i=n.call(arguments,2);return function(){return t.apply(e,i.concat(n.call(arguments)))}}},function(e,t,n){(function(t){var i=n(50);e.exports=function(e){return function e(n){if(!n)return!1;if(t.Buffer&&t.Buffer.isBuffer&&t.Buffer.isBuffer(n)||t.ArrayBuffer&&n instanceof ArrayBuffer||t.Blob&&n instanceof Blob||t.File&&n instanceof File)return!0;
2if(i(n)){for(var r=0;r<n.length;r++)if(e(n[r]))return!0}else if(n&&"object"==typeof n)for(var o in n.toJSON&&"function"==typeof n.toJSON&&(n=n.toJSON()),n)if(Object.prototype.hasOwnProperty.call(n,o)&&e(n[o]))return!0;return!1}(e)}}).call(t,function(){return this}())},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}}])},e.exports=i()},37352(e,t,n){n(27495),n(25440),function(){"use strict";void 0===window.dnx&&(window.dnx={}),void 0===window.dnx.logic&&(window.dnx.logic={}),window.dnx.logic.FraudNetProcessing=function(){var e;this.getGuid=function(){return e},this.injecConfig=function(){var t=document.getElementById("fconfig");t&&t.parentNode&&t.parentNode.removeChild(t),(t=document.createElement("script")).id="fconfig",t.type="application/json",t.setAttribute("fncls","fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99");var n={f:e,s:"DNX_V38NSZZ9688X8_PYMNT"};t.text=JSON.stringify(n),document.body.appendChild(t)},this.loadBeaconJS=function(e){var t=document.getElementById("fLoadBeacon");t&&t.parentNode||((t=document.createElement("script")).id="fLoadBeacon",t.src="https://c.paypal.com/da/r/fb.js",document.body.appendChild(t))},this.noScript=function(){var t=$("#noScriptFconfig")[0];t.innerHTML=t.innerHTML.replace("%guid%",e),t.innerHTML=t.innerHTML.replace("%flowId%","DNX_V38NSZZ9688X8_PYMNT")},function(){e=function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return(e()+e()+"-"+e()+"-4"+e().substr(0,3)+"-"+e()+"-"+e()+e()+e()).toLowerCase()}()}.call(this)}}()},22814(){!function(e){"use strict";var t;void 0===window.dnx&&(window.dnx={}),void 0===window.dnx.ui&&(window.dnx.ui={}),(t=window.dnx.ui).GuestMigrationLogic=function(n,i){var r=null,o=null;this.consumeFlashBag=function(){e.ajax({url:"/ajax/consume-flashbag-queue",type:"POST",data:{type:t.GuestMigrationLogic.FLASHBAG_KEY}})},this.storeLastChatDetailsInLocalStorage=function(e){"undefined"!=typeof localStorage&&!1!==e.duration&&localStorage.setItem("last-chat-details",JSON.stringify(e))},this.shouldDisplayMigrationModal=function(){if(t.GuestMigrationLogic.USER_LOGIN_TYPE_GUEST!==r)return!1;var e=JSON.parse(localStorage.getItem(t.GuestMigrationLogic.LOCALSTORAGE_KEY));return null!==e&&e.duration&&e.duration>0&&"FREE"!==e.chatMode},this.showMigrationModal=function(){this.shouldDisplayMigrationModal()&&(o.call(),this.clearLocalStorage(),this.consumeFlashBag())},this.clearLocalStorage=function(){localStorage.removeItem(t.GuestMigrationLogic.LOCALSTORAGE_KEY)},function(e,t){r=e,o=t}.call(this,n,i)},t.GuestMigrationLogic.USER_LOGIN_TYPE_GUEST="GUEST",t.GuestMigrationLogic.LOCALSTORAGE_KEY="last-chat-details",t.GuestMigrationLogic.FLASHBAG_KEY="guest_migration_process"}(jQuery)},52673(e,t,n){n(27495),n(25440),function(e){"use strict";void 0===window.dnx&&(window.dnx={}),void 0===window.dnx.logic&&(window.dnx.logic={}),window.dnx.logic.LetPayPaymentHandler=function(t,n){this.contractId="",this.env=n||"prod",this.letPayUrl="https://checkout.letpay.io/checkout-v0.1.js",this.notificationUrl="https://strumpf.dnxpay.io/callback/letpay/";var i=!1,r=null,o=null,a=function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return(e()+e()+"-"+e()+"-4"+e().substr(0,3)+"-"+e()+"-"+e()+e()+e()).toLowerCase()};this.getScriptLoadedPromise=function(){return r};var s=function(e){return e.replace("LETPAY_","")};this.startLetPayCheckout=function(t,n,r){if(!i||"undefined"==typeof LetpayCheckout)throw"LetPay is not ready";var c={amount:parseFloat(t),asset:n,referenceId:a(),contractId:this.contractId,method:s(r),notificationUrl:this.notificationUrl+s(r),lightboxDisableAddress:!0};if("PIX"===s(r)&&(c.pixDirect=!0),-1!==["dev","test"].indexOf(this.env)){var l={addressZipCode:"04514-041",addressNumber:"123",personFirstName:"PAID",personSurname:"Doe",personPhoneCountry:55,personPhoneArea:55,personPhone:"12345-1234",personEmail
2:"johndoe"+Date.now()+"@dev.dnxnetwork.lu",personTaxId:"39784045087",personBirth:"1970-01-01"};c=e.extend(c,l)}return(o=new LetpayCheckout(c)).start(),o};this.getWidgetModalElement=function(){var e=document.querySelectorAll("letpay-checkout");return e.length?e[e.length-1].shadowRoot.querySelector(".modal"):null},this.logLetPayEvent=function(e){var t;e.visitorId=(t=document.cookie.match("(^|;) ?registration_visitor_id=([^;]*)(;|$)"))?t[2]:null,e.message="LetPay ".concat(e.event," event"),navigator.sendBeacon("/ajax-log-event",JSON.stringify(e))},function(t,n){this.contractId=t,this.env=n,-1!==["dev","test"].indexOf(this.env)&&(this.letPayUrl=this.letPayUrl.replace("checkout.","checkout-sandbox."),this.notificationUrl=this.notificationUrl.replace(/strumpf\./,"staging.strumpf.")),r=e.getScript(this.letPayUrl).done((function(){_local.log("letpay checkout-v0.1.js fetched"),i=!0}))}.call(this,t,n)}}(jQuery)},27244(){!function(){"use strict";void 0===window.dnx&&(window.dnx={}),void 0===window.dnx.logic&&(window.dnx.logic={}),window.dnx.logic.MobilePhoneNumberProcessing=function(e,t){var n,i,r,o,a=function(e){i&&(i.mobilePhoneNumber(o),i.bind("country.mobilePhoneNumber",(function(e,t){r.text(t||"")})),i.keyup((function(){s(i.mobilePhoneNumber("validate"))})))},s=function(e){i.toggleClass("is-invalid",!e)};this.validatePhone=function(){return null!==i&&s(i.mobilePhoneNumber("validate")),this},this.updateCountry=function(){return null!==i&&r.text(i.mobilePhoneNumber("country")),this},function(){i=0===(n=e).find(".js-mobile-phone-input").length?null:n.find(".js-mobile-phone-input"),r=0===n.find(".js-mobile-phone-country").length?null:n.find(".js-mobile-phone-country"),o=null===t?{allowPhoneWithoutPrefix:"+1"}:t,a.call()}.call(this,e)}}()},77858(e,t,n){n(3362),function(){"use strict";let e;void 0===window.dnx&&(window.dnx={}),void 0===window.dnx.logic&&(window.dnx.logic={}),e=window.dnx.logic,e.PaypalProcessing=function(t){const n=this;let i;const r=new e.FraudNetProcessing;this.loadFraudNet=function(){r.injecConfig(),r.loadBeaconJS(),r.noScript()},this.getFraudnetGuid=function(){return r.getGuid()},this.paymentHandler=async function(e){const t=+("BILLING_AGREEMENT"===i);return await o(e.packKey,e.context,e.fp_requestId,e.fp_visitorId,e.session_identifier,t)},this.cancelBillingAgreement=async function(){const e=window.location.origin+"/cancel-agreement";return(await fetch(e,{method:"POST",credentials:"include"})).json()};const o=async function(e,t,n,i,r,o){const a={paymentMethod:"PAYPAL",packKey:e,context:t,fp_requestId:n,fp_visitorId:i,sessionIdentifier:r,billingAgreement:o};return(await fetch(window.location.origin+"/create-payment",{method:"POST",body:s(a),credentials:"include"})).json()},a=function(e){let t;switch(e){case"UNKNOWN":case"PENDING":t="BILLING_AGREEMENT";break;case"ACTIVE":t="BILLING_AGREEMENT_CHARGED";break;default:t="ONE_TIME_PAYMENT"}return _local.log("PAYPAL billingAgreementStatus",e),_local.log("PAYPAL mode",t),"ONE_TIME_PAYMENT"!==t&&n.loadFraudNet(),t},s=function(e){const t=new FormData;return Object.keys(e).forEach((n=>{t.append(n,e[n])})),t};(function(e){null===e&&(e="ONE_TIME_PAYMENT"),i=a(e)}).call(this,t)}}()},76285(e,t,n){n(84864),n(27495),n(25440),function(){"use strict";void 0===window.dnx&&(window.dnx={}),void 0===window.dnx.logic&&(window.dnx.logic={}),window.dnx.logic.URLSearch=function(e){var t;this.getParameterByName=function(e){if(null==e)return null;e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},function(e){t=void 0===e?window.location.href:e}.call(this,e)}}()},29514(e,t,n){var i;n(94490),n(3362),n(84864),n(27495),n(25440),n(42762),function(r,o){function a(e){return D.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}function s(e){if(!gt[e]){var t=I.body,n=D("<"+e+">").appendTo(t),i=n.css("display");n.remove(),"none"!==i&&""!==i||(ht||((ht=I.createElement("iframe")).frameBorder=ht.width=ht.height=0),t.appendChild(ht),pt&&ht.createElement||((pt=(ht.contentWindow||ht.contentDocument).document).write((D.support.boxModel?"<!doctype html>":"")+"<html><body>"),pt.close()),n=pt.createElement(e),pt.body.appendChild(n),i=D.css(n,"dis
vendor: 64,842 bytes, line 2
2play"),t.removeChild(ht)),gt[e]=i}return gt[e]}function c(e,t){var n={};return D.each(wt.concat.apply([],wt.slice(0,t)),(function(){n[this]=e})),n}function l(){mt=o}function u(){return setTimeout(l,0),mt=D.now()}function d(){try{return new r.XMLHttpRequest}catch(o){}}function h(e,t,n,i){if(D.isArray(t))D.each(t,(function(t,r){n||Ge.test(e)?i(e,r):h(e+"["+("object"==typeof r?t:"")+"]",r,n,i)}));else if(n||"object"!==D.type(t))i(e,t);else for(var r in t)h(e+"["+r+"]",t[r],n,i)}function p(e,t){var n,i,r=D.ajaxSettings.flatOptions||{};for(n in t)t[n]!==o&&((r[n]?e:i||(i={}))[n]=t[n]);i&&D.extend(!0,e,i)}function f(e,t,n,i,r,a){(a=a||{})[r=r||t.dataTypes[0]]=!0;for(var s,c=e[r],l=0,u=c?c.length:0,d=e===rt;l<u&&(d||!s);l++)"string"==typeof(s=c[l](t,n,i))&&(!d||a[s]?s=o:(t.dataTypes.unshift(s),s=f(e,t,n,i,s,a)));return(d||!s)&&!a["*"]&&(s=f(e,t,n,i,"*",a)),s}function m(e){return function(t,n){if("string"!=typeof t&&(n=t,t="*"),D.isFunction(n))for(var i,r,o=t.toLowerCase().split(et),a=0,s=o.length;a<s;a++)i=o[a],(r=/^\+/.test(i))&&(i=i.substr(1)||"*"),(e[i]=e[i]||[])[r?"unshift":"push"](n)}}function g(e,t,n){var i="width"===t?e.offsetWidth:e.offsetHeight,r="width"===t?1:0;if(i>0){if("border"!==n)for(;r<4;r+=2)n||(i-=parseFloat(D.css(e,"padding"+Fe[r]))||0),"margin"===n?i+=parseFloat(D.css(e,n+Fe[r]))||0:i-=parseFloat(D.css(e,"border"+Fe[r]+"Width"))||0;return i+"px"}if(((i=Me(e,t))<0||null==i)&&(i=e.style[t]),Le.test(i))return i;if(i=parseFloat(i)||0,n)for(;r<4;r+=2)i+=parseFloat(D.css(e,"padding"+Fe[r]))||0,"padding"!==n&&(i+=parseFloat(D.css(e,"border"+Fe[r]+"Width"))||0),"margin"===n&&(i+=parseFloat(D.css(e,n+Fe[r]))||0);return i+"px"}function v(e){var t=I.createElement("div");return Ae.appendChild(t),t.innerHTML=e.outerHTML,t.firstChild}function y(e){var t=(e.nodeName||"").toLowerCase();"input"===t?w(e):"script"!==t&&void 0!==e.getElementsByTagName&&D.grep(e.getElementsByTagName("input"),w)}function w(e){"checkbox"!==e.type&&"radio"!==e.type||(e.defaultChecked=e.checked)}function b(e){return void 0!==e.getElementsByTagName?e.getElementsByTagName("*"):void 0!==e.querySelectorAll?e.querySelectorAll("*"):[]}function C(e,t){var n;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),"object"===(n=t.nodeName.toLowerCase())?t.outerHTML=e.outerHTML:"input"!==n||"checkbox"!==e.type&&"radio"!==e.type?"option"===n?t.selected=e.defaultSelected:"input"===n||"textarea"===n?t.defaultValue=e.defaultValue:"script"===n&&t.text!==e.text&&(t.text=e.text):(e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value)),t.removeAttribute(D.expando),t.removeAttribute("_submit_attached"),t.removeAttribute("_change_attached"))}function T(e,t){if(1===t.nodeType&&D.hasData(e)){var n,i,r,o=D._data(e),a=D._data(t,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(i=0,r=s[n].length;i<r;i++)D.event.add(t,n,s[n][i]);a.data&&(a.data=D.extend({},a.data))}}function S(e,t){return D.nodeName(e,"table")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function E(e){var t=fe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function x(e,t,n){if(t=t||0,D.isFunction(t))return D.grep(e,(function(e,i){return!!t.call(e,i,e)===n}));if(t.nodeType)return D.grep(e,(function(e,i){return e===t===n}));if("string"==typeof t){var i=D.grep(e,(function(e){return 1===e.nodeType}));if(ue.test(t))return D.filter(t,i,!n);t=D.filter(t,i)}return D.grep(e,(function(e,i){return D.inArray(e,t)>=0===n}))}function k(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function _(){return!0}function A(){return!1}function M(e,t,n){var i=t+"defer",r=t+"queue",o=t+"mark",a=D._data(e,i);a&&("queue"===n||!D._data(e,r))&&("mark"===n||!D._data(e,o))&&setTimeout((function(){!D._data(e,r)&&!D._data(e,o)&&(D.removeData(e,i,!0),a.fire())}),0)}function P(e){for(var t in e)if(("data"!==t||!D.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function R(e,t,n){if(n===o&&1===e.nodeType){var i="data-"+t.replace(V,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:D.isNumeric(n)?+n:j.test(n)?D.parseJSON(n):n)}catch(L){}D.data(e,t,n)}else n=o}return n}var I=r.document,O=r.navigator,N=r.location,D=function(){function e(){if(!s.isReady){try{I.documentElement.doScroll("left")}catch(r){return void setTimeout(e,1)}s.ready()}}var t,n,i,a,s=function(e,n){return new s.fn.init(e,n,t)},c=r.jQuery,l=r.$,u=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,d=/\S/,h=/^\s+/,p=/\s+$/,f=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,g=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,v=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,y=/(?:^|:|,)(?:\s*\[)+/g,w=/(webkit)[ \/]([\w.]+)/,b=/(opera)(?:.*version)?[ \/]([\w.]+)/,C=/(msie) ([\w.]+)/,T=/(mozilla)(?:.*? rv:([\w.]+))?/,S=/-([a-z]|[0-9])/gi,E=/^-ms-/,x=function(e,t){return(t+"").toUpperCase()},k=O.userAgent,_=Object.prototype.toString,A=Object.prototype.hasOwnProperty,M=Array.prototype.push,P=Array.prototype.slice,R=String.prototype.trim,N=Array.prototype.indexOf,D={};return s.fn=s.prototype={constructor:s,init:function(e,t,n){var i,r,a,c;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("body"===e&&!t&&I.body)return this.context=I,this[0]=I.body,this.selector=e,this.length=1,this;if("string"==typeof e){if((i="<"!==e.charAt(0)||">"!==e.charAt(e.length-1)||e.length<3?u.exec(e):[null,e,null])&&(i[1]||!t)){if(i[1])return c=(t=t instanceof s?t[0]:t)?t.ownerDocument||t:I,(a=f.exec(e))?s.isPlainObject(t)?(e=[I.createElement(a[1])],s.fn.attr.call(e,t,!0)):e=[c.createElement(a[1])]:e=((a=s.buildFragment([i[1]],[c])).cacheable?s.clone(a.fragment):a.fragment).childNodes,s.merge(this,e);if((r=I.getElementById(i[2]))&&r.parentNode){if(r.id!==i[2])return n.find(e);this.length=1,this[0]=r}return this.context=I,this.selector=e,this}return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e)}return s.isFunction(e)?n.ready(e):(e.selector!==o&&(this.selector=e.selector,this.context=e.context),s.makeArray(e,this))},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return P.call(this,0)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var i=this.constructor();return s.isArray(e)?M.apply(i,e):s.merge(i,e),i.prevObject=this,i.context=this.context,"find"===t?i.selector=this.selector+(this.selector?" ":"")+n:t&&(i.selector=this.selector+"."+t+"("+n+")"),i},each:function(e,t){return s.each(this,e,t)},ready:function(e){return s.bindReady(),i.add(e),this},eq:function(e){return-1===(e=+e)?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(P.apply(this,arguments),"slice",P.call(arguments).join(","))},map:function(e){return this.pushStack(s.map(this,(function(t,n){return e.call(t,n,t)})))},end:function(){return this.prevObject||this.constructor(null)},push:M,sort:[].sort,splice:[].splice},s.fn.init.prototype=s.fn,s.extend=s.fn.extend=function(){var e,t,n,i,r,a,c=arguments[0]||{},l=1,u=arguments.length,d=!1;for("boolean"==typeof c&&(d=c,c=arguments[1]||{},l=2),"object"!=typeof c&&!s.isFunction(c)&&(c={}),u===l&&(c=this,--l);l<u;l++)if(null!=(e=arguments[l]))for(t in e)n=c[t],c!==(i=e[t])&&(d&&i&&(s.isPlainObject(i)||(r=s.isArray(i)))?(r?(r=!1,a=n&&s.isArray(n)?n:[]):a=n&&s.isPlainObject(n)?n:{},c[t]=s.extend(d,a,i)):i!==o&&(c[t]=i));return c},s.extend({noConflict:function(e){return r.$===s&&(r.$=l),e&&r.jQuery===s&&(r.jQuery=c),s},isReady:!1,readyWait:1,holdReady:function(e){e?s.readyWait++:s.ready(!0)},ready:function(e){if(!0===e&&! --s.readyWait||!0!==e&&!s.isReady){if(!I.body)return setTimeout(s.ready,1);if(s.isReady=!0,!0!==e&&--s.readyWait>0)return;i.fireWith(I,[s]),s.fn.trigger&&s(I).trigger("ready").off("ready")}},bindReady:function(){if(!i){if(i=s.Callbacks("once memory"),"complete"===I.readyState)return setTimeout(s.ready,1);if(I.addEventListener)I.addEventListener("DOMContentLoaded",a,!1),r.addEventListener("load",s.ready,!1);else if(I.attachEvent){I.attachEvent("onreadystatechange",a),r.attachEvent("onload",s.ready);var t=!1;try{t=null==r.frameElement}catch(O){}I.documentElement.doScroll&&t&&e()}}},isFunction:function(e){return"function"===s.type(e)},isArray:Array.isArray||function(e){return"array"===s.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):D[_.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==s.type(e)||e.nodeType||s.isWindow(e))return!1;try{if(e.constructor&&!A.call(e,"constructor")&&!A.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(I){return!1}var t;for(t in e);return t===o||A.call(e,t)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw new Error(e)},parseJSON:function(e){return"string"==typeof e&&e?(e=s.trim(e),r.JSON&&r.JSON.parse?r.JSON.parse(e):m.test(e.replace(g,"@").replace(v,"]").replace(y,""))?new Function("return "+e)():void s.error("Invalid JSON: "+e)):null},parseXML:function(e){if("string"!=typeof e||!e)return null;var t;try{r.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(l){t=o}return(!t||!t.documentElement||t.getElementsByTagName("parsererror").length)&&s.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){e&&d.test(e)&&(r.execScript||function(e){r.eval.call(r,e)})(e)},camelCase:function(e){return e.replace(E,"ms-").replace(S,x)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,t,n){var i,r=0,a=e.length,c=a===o||s.isFunction(e);if(n)if(c){for(i in e)if(!1===t.apply(e[i],n))break}else for(;r<a&&!1!==t.apply(e[r++],n););else if(c){for(i in e)if(!1===t.call(e[i],i,e[i]))break}else for(;r<a&&!1!==t.call(e[r],r,e[r++]););return e},trim:R?function(e){return null==e?"":R.call(e)}:function(e){return null==e?"":(e+"").replace(h,"").replace(p,"")},makeArray:function(e,t){var n=t||[];if(null!=e){var i=s.type(e);null==e.length||"string"===i||"function"===i||"regexp"===i||s.isWindow(e)?M.call(n,e):s.merge(n,e)}return n},inArray:function(e,t,n){var i;if(t){if(N)return N.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){var n=e.length,i=0;if("number"==typeof t.length)for(var r=t.length;i<r;i++)e[n++]=t[i];else for(;t[i]!==o;)e[n++]=t[i++];return e.length=n,e},grep:function(e,t,n){var i=[];n=!!n;for(var r=0,o=e.length;r<o;r++)n!==!!t(e[r],r)&&i.push(e[r]);return i},map:function(e,t,n){var i,r,a=[],c=0,l=e.length;if(e instanceof s||l!==o&&"number"==typeof l&&(l>0&&e[0]&&e[l-1]||0===l||s.isArray(e)))for(;c<l;c++)null!=(i=t(e[c],c,n))&&(a[a.length]=i);else for(r in e)null!=(i=t(e[r],r,n))&&(a[a.length]=i);return a.concat.apply([],a)},guid:1,proxy:function(e,t){if("string"==typeof t){var n=e[t];t=e,e=n}if(!s.isFunction(e))return o;var i=P.call(arguments,2),r=function(){return e.apply(t,i.concat(P.call(arguments)))};return r.guid=e.guid=e.guid||r.guid||s.guid++,r},access:function(e,t,n,i,r,a,c){var l,u=null==n,d=0,h=e.length;if(n&&"object"==typeof n){for(d in n)s.access(e,t,d,n[d],1,a,i);r=1}else if(i!==o){if(l=c===o&&s.isFunction(i),u&&(l?(l=t,t=function(e,t,n){return l.call(s(e),n)}):(t.call(e,i),t=null)),t)for(;d<h;d++)t(e[d],n,l?i.call(e[d],d,t(e[d],n)):i,c);r=1}return r?e:u?t.call(e):h?t(e[0],n):a},now:function(){return(new Date).getTime()},uaMatch:function(e){e=e.toLowerCase();var t=w.exec(e)||b.exec(e)||C.exec(e)||e.indexOf("compatible")<0&&T.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function e(t,n){return new e.fn.init(t,n)}s.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(n,i){return i&&i instanceof s&&!(i instanceof e)&&(i=e(i)),s.fn.init.call(this,n,i,t)},e.fn.init.prototype=e.fn;var t=e(I);return e},browser:{}}),s.each("Boolean Number String Function Array Date RegExp Object".split(" "),(function(e,t){D["[object "+t+"]"]=t.toLowerCase()})),(n=s.uaMatch(k)).browser&&(s.browser[n.browser]=!0,s.browser.version=n.version),s.browser.webkit&&(s.browser.safari=!0),d.test(" ")&&(h=/^[\s\xA0]+/,p=/[\s\xA0]+$/),t=s(I),I.addEventListener?a=function(){I.removeEventListener("DOMContentLoaded",a,!1),s.ready()}:I.attachEvent&&(a=function(){"complete"===I.readyState&&(I.detachEvent("onreadystatechange",a),s.ready())}),s}(),L={};D.Callbacks=function(e){e=e?L[e]||function(e){var t,n,i=L[e]={};for(t=0,n=(e=e.split(/\s+/)).length;t<n;t++)i[e[t]]=!0;return i}(e):{};var t,n,i,r,a,s,c=[],l=[],u=function(t){var n,i,r,o;for(n=0,i=t.length;n<i;n++)r=t[n],"array"===(o=D.type(r))?u(r):"function"===o&&(!e.unique||!h.has(r))&&c.push(r)},d=function(o,u){for(u=u||[],t=!e.memory||[o,u],n=!0,i=!0,s=r||0,r=0,a=c.length;c&&s<a;s++)if(!1===c[s].apply(o,u)&&e.stopOnFalse){t=!0;break}i=!1,c&&(e.once?!0===t?h.disable():c=[]:l&&l.length&&(t=l.shift(),h.fireWith(t[0],t[1])))},h={add:function(){if(c){var e=c.length;u(arguments),i?a=c.length:t&&!0!==t&&(r=e,d(t[0],t[1]))}return this},remove:function(){if(c)for(var t=arguments,n=0,r=t.length;n<r;n++)for(var o=0;o<c.length&&(t[n]!==c[o]||(i&&o<=a&&(a--,o<=s&&s--),c.splice(o--,1),!e.unique));o++);return this},has:function(e){if(c)for(var t=0,n=c.length;t<n;t++)if(e===c[t])return!0;return!1},empty:function(){return c=[],this},disable:function(){return c=l=t=o,this},disabled:function(){return!c},lock:function(){return l=o,(!t||!0===t)&&h.disable(),this},locked:function(){return!l},fireWith:function(n,r){return l&&(i?e.once||l.push([n,r]):(!e.once||!t)&&d(n,r)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h};var B=[].slice;D.extend({Deferred:function(e){var t,n=D.Callbacks("once memory"),i=D.Callbacks("once memory"),r=D.Callbacks("memory"),o="pending",a={resolve:n,reject:i,notify:r},s={done:n.add,fail:i.add,progress:r.add,state:function(){return o},isResolved:n.fired,isRejected:i.fired,then:function(e,t,n){return c.done(e).fail(t).progress(n),this},always:function(){return c.done.apply(c,arguments).fail.apply(c,arguments),this},pipe:function(e,t,n){return D.Deferred((function(i){D.each({done:[e,"resolve"],fail:[t,"reject"],progress:[n,"notify"]},(function(e,t){var n,r=t[0],o=t[1];D.isFunction(r)?c[e]((function(){(n=r.apply(this,arguments))&&D.isFunction(n.promise)?n.promise().then(i.resolve,i.reject,i.notify):i[o+"With"](this===c?i:this,[n])})):c[e](i[o])}))})).promise()},promise:function(e){if(null==e)e=s;else for(var t in s)e[t]=s[t];return e}},c=s.promise({});for(t in a)c[t]=a[t].fire,c[t+"With"]=a[t].fireWith;return c.done((function(){o="resolved"}),i.disable,r.lock).fail((function(){o="rejected"}),n.disable,r.lock),e&&e.call(c,c),c},when:function(e){function t(e){return function(t){a[e]=arguments.length>1?B.call(arguments,0):t,c.notifyWith(l,a)}}function n(e){return function(t){i[e]=arguments.length>1?B.call(arguments,0):t,--s||c.resolveWith(c,i)}}var i=B.call(arguments,0),r=0,o=i.length,a=Array(o),s=o,c=o<=1&&e&&D.isFunction(e.promise)?e:D.Deferred(),l=c.promise();if(o>1){for(;r<o;r++)i[r]&&i[r].promise&&D.isFunction(i[r].promise)?i[r].promise().then(n(r),c.reject,t(r)):--s;s||c.resolveWith(c,i)}else c!==e&&c.resolveWith(c,o?[e]:[]);return l}}),D.support=function(){var e,t,n,i,o,a,s,c,l,u,d,h=I.createElement("div");I.documentElement;if(h.setAttribute("className","t"),h.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",t=h.getElementsByTagName("*"),n=h.getElementsByTagName("a")[0],!t||!t.length||!n)return{};o=(i=I.createElement("select")).appendChild(I.createElement("option")),a=h.getElementsByTagName("input")[0],e={leadingWhitespace:3===h.firstChild.nodeType,tbody:!h.getElementsByTagName("tbody").length,htmlSerialize:!!h.getElementsByTagName("link").length,style:/top/.test(n.getAttribute("style")),hrefNormalized:"/a"===n.getAttribute("href"),opacity:/^0.55/.test(n.style.opacity),cssFloat:!!n.style.cssFloat,checkOn:"on"===a.value,optSelected:o.selected,getSetAttribute:"t"!==h.className,enctype:!!I.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==I.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},D.boxModel=e.boxModel="CSS1Compat"===I.compatMode,a.checked=!0,e.noCloneChecked=a.cloneNode(!0).checked,i.disabled=!0,e.optDisabled=!o.disabled;try{delete h.test}catch(W){e.deleteExpando=!1}if(!h.addEventListener&&h.attachEvent&&h.fireEvent&&(h.attachEvent("onclick",(function(){e.noCloneEvent=!1})),h.cloneNode(!0).fireEvent("onclick")),(a=I.createElement("input")).value="t",a.setAttribute("type","radio"),e.radioValue="t"===a.value,a.setAttribute("checked","checked"),a.setAttribute("name","t"),h.appendChild(a),(s=I.createDocumentFragment()).appendChild(h.lastChild),e.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,e.appendChecked=a.checked,s.removeChild(a),s.appendChild(h),h.attachEvent)for(u in{submit:1,change:1,focusin:1})(d=(l="on"+u)in h)||(h.setAttribute(l,"return;"),d="function"==typeof h[l]),e[u+"Bubbles"]=d;return s.removeChild(h),s=i=o=h=a=null,D((function(){var t,n,i,o,a,s,l,u,p,f,m,g=I.getElementsByTagName("body")[0];!g||(f=(m="padding:0;margin:0;border:")+"0;visibility:hidden;",u="<div "+(l="style='"+(p="position:absolute;top:0;left:0;width:1px;height:1px;")+m+"5px solid #000;")+"display:block;'><div style='"+m+"0;display:block;overflow:hidden;'></div></div><table "+l+"' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",(t=I.createElement("div")).style.cssText=f+"width:0;height:0;position:static;top:0;margin-top:1px",g.insertBefore(t,g.firstChild),h=I.createElement("div"),t.appendChild(h),h.innerHTML="<table><tr><td style='"+m+"0;display:none'></td><td>t</td></tr></table>",c=h.getElementsByTagName("td"),d=0===c[0].offsetHeight,c[0].style.display="",c[1].style.display="none",e.reliableHiddenOffsets=d&&0===c[0].offsetHeight,r.getComputedStyle&&(h.innerHTML="",(s=I.createElement("div")).style.width="0",s.style.marginRight="0",h.style.width="2px",h.appendChild(s),e.reliableMarginRight=0===(parseInt((r.getComputedStyle(s,null)||{marginRight:0}).marginRight,10)||0)),void 0!==h.style.zoom&&(h.innerHTML="",h.style.width=h.style.padding="1px",h.style.border=0,h.style.overflow="hidden",h.style.display="inline",h.style.zoom=1,e.inlineBlockNeedsLayout=3===h.offsetWidth,h.style.display="block",h.style.overflow="visible",h.innerHTML="<div style='width:5px;'></div>",e.shrinkWrapBlocks=3!==h.offsetWidth),h.style.cssText=p+f,h.innerHTML=u,i=(n=h.firstChild).firstChild,o=n.nextSibling.firstChild.firstChild,a={doesNotAddBorder:5!==i.offsetTop,doesAddBorderForTableAndCells:5===o.offsetTop},i.style.position="fixed",i.style.top="20px",a.fixedPosition=20===i.offsetTop||15===i.offsetTop,i.style.position=i.style.top="",n.style.overflow="hidden",n.style.position="relative",a.subtractsBorderForOverflowNotVisible=-5===i.offsetTop,a.doesNotIncludeMarginInBodyOffset=1!==g.offsetTop,r.getComputedStyle&&(h.style.marginTop="1%",e.pixelMargin="1%"!==(r.getComputedStyle(h,null)||{marginTop:0}).marginTop),void 0!==t.style.zoom&&(t.style.zoom=1),g.removeChild(t),s=h=t=null,D.extend(e,a))})),e}();var j=/^(?:\{.*\}|\[.*\])$/,V=/([A-Z])/g;D.extend({cache:{},uuid:0,expando:"jQuery"+(D.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return!!(e=e.nodeType?D.cache[e[D.expando]]:e[D.expando])&&!P(e)},data:function(e,t,n,i){if(D.acceptData(e)){var r,a,s,c=D.expando,l="string"==typeof t,u=e.nodeType,d=u?D.cache:e,h=u?e[c]:e[c]&&c,p="events"===t;if((!h||!d[h]||!p&&!i&&!d[h].data)&&l&&n===o)return;return h||(u?e[c]=h=++D.uuid:h=c),d[h]||(d[h]={},u||(d[h].toJSON=D.noop)),"object"!=typeof t&&"function"!=typeof t||(i?d[h]=D.extend(d[h],t):d[h].data=D.extend(d[h].data,t)),r=a=d[h],i||(a.data||(a.data={}),a=a.data),n!==o&&(a[D.camelCase(t)]=n),p&&!a[t]?r.events:(l?null==(s=a[t])&&(s=a[D.camelCase(t)]):s=a,s)}},removeData:function(e,t,n){if(D.acceptData(e)){var i,r,o,a=D.expando,s=e.nodeType,c=s?D.cache:e,l=s?e[a]:a;if(!c[l])return;if(t&&(i=n?c[l]:c[l].data)){D.isArray(t)||(t in i?t=[t]:t=(t=D.camelCase(t))in i?[t]:t.split(" "));for(r=0,o=t.length;r<o;r++)delete i[t[r]];if(!(n?P:D.isEmptyObject)(i))return}if(!n&&(delete c[l].data,!P(c[l])))return;D.support.deleteExpando||!c.setInterval?delete c[l]:c[l]=null,s&&(D.support.deleteExpando?delete e[a]:e.removeAttribute?e.removeAttribute(a):e[a]=null)}},_data:function(e,t,n){return D.data(e,t,n,!0)},acceptData:function(e){if(e.nodeName){var t=D.noData[e.nodeName.toLowerCase()];if(t)return!0!==t&&e.getAttribute("classid")===t}return!0}}),D.fn.extend({data:function(e,t){var n,i,r,a,s,c=this[0],l=0,u=null;if(e===o){if(this.length&&(u=D.data(c),1===c.nodeType&&!D._data(c,"parsedAttrs"))){for(s=(r=c.attributes).length;l<s;l++)0===(a=r[l].name).indexOf("data-")&&(a=D.camelCase(a.substring(5)),R(c,a,u[a]));D._data(c,"parsedAttrs",!0)}return u}return"object"==typeof e?this.each((function(){D.data(this,e)})):((n=e.split(".",2))[1]=n[1]?"."+n[1]:"",i=n[1]+"!",D.access(this,(function(t){if(t===o)return(u=this.triggerHandler("getData"+i,[n[0]]))===o&&c&&(u=D.data(c,e),u=R(c,e,u)),u===o&&n[1]?this.data(n[0]):u;n[1]=t,this.each((function(){var r=D(this);r.triggerHandler("setData"+i,n),D.data(this,e,t),r.triggerHandler("changeData"+i,n)}))}),null,t,arguments.length>1,null,!1))},removeData:function(e){return this.each((function(){D.removeData(this,e)}))}}),D.extend({_mark:function(e,t){e&&(t=(t||"fx")+"mark",D._data(e,t,(D._data(e,t)||0)+1))},_unmark:function(e,t,n){if(!0!==e&&(n=t,t=e,e=!1),t){var i=(n=n||"fx")+"mark",r=e?0:(D._data(t,i)||1)-1;r?D._data(t,i,r):(D.removeData(t,i,!0),M(t,n,"mark"))}},queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=D._data(e,t),n&&(!i||D.isArray(n)?i=D._data(e,t,D.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=D.queue(e,t),i=n.shift(),r={};"inprogress"===i&&(i=n.shift()),i&&("fx"===t&&n.unshift("inprogress"),D._data(e,t+".run",r),i.call(e,(function(){D.dequeue(e,t)}),r)),n.length||(D.removeData(e,t+"queue "+t+".run",!0),M(e,t,"queue"))}}),D.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?D.queue(this[0],e):t===o?this:this.each((function(){var n=D.queue(this,e,t);"fx"===e&&"inprogress"!==n[0]&&D.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){D.dequeue(this,e)}))},delay:function(e,t){return e=D.fx&&D.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=setTimeout(t,e);n.stop=function(){clearTimeout(i)}}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--c||r.resolveWith(a,[a])}"string"!=typeof e&&(t=e,e=o),e=e||"fx";for(var i,r=D.Deferred(),a=this,s=a.length,c=1,l=e+"defer",u=e+"queue",d=e+"mark";s--;)(i=D.data(a[s],l,o,!0)||(D.data(a[s],u,o,!0)||D.data(a[s],d,o,!0))&&D.data(a[s],l,D.Callbacks("once memory"),!0))&&(c++,i.add(n));return n(),r.promise(t)}});var F,H,U,z=/[\n\t\r]/g,G=/\s+/,q=/\r/g,W=/^(?:button|input)$/i,$=/^(?:button|input|object|select|textarea)$/i,Y=/^a(?:rea)?$/i,X=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,J=D.support.getSetAttribute;D.fn.extend({attr:function(e,t){return D.access(this,D.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){D.removeAttr(this,e)}))},prop:function(e,t){return D.access(this,D.prop,e,t,arguments.length>1)},removeProp:function(e){return e=D.propFix[e]||e,this.each((function(){try{this[e]=o,delete this[e]}catch(I){}}))},addClass:function(e){var t,n,i,r,o,a,s;if(D.isFunction(e))return this.each((function(t){D(this).addClass(e.call(this,t,this.className))}));if(e&&"string"==typeof e)for(t=e.split(G),n=0,i=this.length;n<i;n++)if(1===(r=this[n]).nodeType)if(r.className||1!==t.length){for(o=" "+r.className+" ",a=0,s=t.length;a<s;a++)~o.indexOf(" "+t[a]+" ")||(o+=t[a]+" ");r.className=D.trim(o)}else r.className=e;return this},removeClass:function(e){var t,n,i,r,a,s,c;if(D.isFunction(e))return this.each((function(t){D(this).removeClass(e.call(this,t,this.className))}));if(e&&"string"==typeof e||e===o)for(t=(e||"").split(G),n=0,i=this.length;n<i;n++)if(1===(r=this[n]).nodeType&&r.className)if(e){for(a=(" "+r.className+" ").replace(z," "),s=0,c=t.length;s<c;s++)a=a.replace(" "+t[s]+" "," ");r.className=D.trim(a)}else r.className="";return this},toggleClass:function(e,t){var n=typeof e,i="boolean"==typeof t;return D.isFunction(e)?this.each((function(n){D(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if("string"===n)for(var r,o=0,a=D(this),s=t,c=e.split(G);r=c[o++];)s=i?s:!a.hasClass(r),a[s?"addClass":"removeClass"](r);else"undefined"!==n&&"boolean"!==n||(this.className&&D._data(this,"__className__",this.className),this.className=this.className||!1===e?"":D._data(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(z," ").indexOf(t)>-1)return!0;return!1},val:function(e){var t,n,i,r=this[0];return arguments.length?(i=D.isFunction(e),this.each((function(n){var r,a=D(this);1===this.nodeType&&(null==(r=i?e.call(this,n,a.val()):e)?r="":"number"==typeof r?r+="":D.isArray(r)&&(r=D.map(r,(function(e){return null==e?"":e+""}))),(t=D.valHooks[this.type]||D.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&t.set(this,r,"value")!==o||(this.value=r))}))):r?(t=D.valHooks[r.type]||D.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&(n=t.get(r,"value"))!==o?n:"string"==typeof(n=r.value)?n.replace(q,""):n??"":void 0}}),D.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,i,r,o=e.selectedIndex,a=[],s=e.options,c="select-one"===e.type;if(o<0)return null;for(n=c?o:0,i=c?o+1:s.length;n<i;n++)if((r=s[n]).selected&&(D.support.optDisabled?!r.disabled:null===r.getAttribute("disabled"))&&(!r.parentNode.disabled||!D.nodeName(r.parentNode,"optgroup"))){if(t=D(r).val(),c)return t;a.push(t)}return c&&!a.length&&s.length?D(s[o]).val():a},set:function(e,t){var n=D.makeArray(t);return D(e).find("option").each((function(){this.selected=D.inArray(D(this).val(),n)>=0})),n.length||(e.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(e,t,n,i){var r,a,s,c=e.nodeType;if(e&&3!==c&&8!==c&&2!==c)return i&&t in D.attrFn?D(e)[t](n):void 0===e.getAttribute?D.prop(e,t,n):((s=1!==c||!D.isXMLDoc(e))&&(t=t.toLowerCase(),a=D.attrHooks[t]||(X.test(t)?H:F)),n!==o?null===n?void D.removeAttr(e,t):a&&"set"in a&&s&&(r=a.set(e,n,t))!==o?r:(e.setAttribute(t,""+n),n):a&&"get"in a&&s&&null!==(r=a.get(e,t))?r:null===(r=e.getAttribute(t))?o:r)},removeAttr:function(e,t){var n,i,r,o,a,s=0;if(t&&1===e.nodeType)for(o=(i=t.toLowerCase().split(G)).length;s<o;s++)(r=i[s])&&(n=D.propFix[r]||r,(a=X.test(r))||D.attr(e,r,""),e.removeAttribute(J?r:n),a&&n in e&&(e[n]=!1))},attrHooks:{type:{set:function(e,t){if(W.test(e.nodeName)&&e.parentNode)D.error("type property can't be changed");else if(!D.support.radioValue&&"radio"===t&&D.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return F&&D.nodeName(e,"button")?F.get(e,t):t in e?e.value:null},set:function(e,t,n){if(F&&D.nodeName(e,"button"))return F.set(e,t,n);e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,t,n){var i,r,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return(1!==a||!D.isXMLDoc(e))&&(t=D.propFix[t]||t,r=D.propHooks[t]),n!==o?r&&"set"in r&&(i=r.set(e,n,t))!==o?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=e.getAttributeNode("tabindex");return t&&t.specified?parseInt(t.value,10):$.test(e.nodeName)||Y.test(e.nodeName)&&e.href?0:o}}}}),D.attrHooks.tabindex=D.propHooks.tabIndex,H={get:function(e,t){var n,i=D.prop(e,t);return!0===i||"boolean"!=typeof i&&(n=e.getAttributeNode(t))&&!1!==n.nodeValue?t.toLowerCase():o},set:function(e,t,n){var i;return!1===t?D.removeAttr(e,n):((i=D.propFix[n]||n)in e&&(e[i]=!0),e.setAttribute(n,n.toLowerCase())),n}},J||(U={name:!0,id:!0,coords:!0},F=D.valHooks.button={get:function(e,t){var n;return(n=e.getAttributeNode(t))&&(U[t]?""!==n.nodeValue:n.specified)?n.nodeValue:o},set:function(e,t,n){var i=e.getAttributeNode(n);return i||(i=I.createAttribute(n),e.setAttributeNode(i)),i.nodeValue=t+""}},D.attrHooks.tabindex.set=F.set,D.each(["width","height"],(function(e,t){D.attrHooks[t]=D.extend(D.attrHooks[t],{set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}})})),D.attrHooks.contenteditable={get:F.get,set:function(e,t,n){""===t&&(t="false"),F.set(e,t,n)}}),D.support.hrefNormalized||D.each(["href","src","width","height"],(function(e,t){D.attrHooks[t]=D.extend(D.attrHooks[t],{get:function(e){var n=e.getAttribute(t,2);return null===n?o:n}})})),D.support.style||(D.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||o},set:function(e,t){return e.style.cssText=""+t}}),D.support.optSelected||(D.propHooks.selected=D.extend(D.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),D.support.enctype||(D.propFix.enctype="encoding"),D.support.checkOn||D.each(["radio","checkbox"],(function(){D.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}})),D.each(["radio","checkbox"],(function(){D.valHooks[this]=D.extend(D.valHooks[this],{set:function(e,t){if(D.isArray(t))return e.checked=D.inArray(D(e).val(),t)>=0}})}));var K=/^(?:textarea|input|select)$/i,Q=/^([^\.]*)?(?:\.(.+))?$/,Z=/(?:^|\s)hover(\.\S+)?\b/,ee=/^key/,te=/^(?:mouse|contextmenu)|click/,ne=/^(?:focusinfocus|focusoutblur)$/,ie=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,re=function(e){var t=ie.exec(e);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},oe=function(e,t){var n=e.attributes||{};return(!t[1]||e.nodeName.toLowerCase()===t[1])&&(!t[2]||(n.id||{}).value===t[2])&&(!t[3]||t[3].test((n.class||{}).value))},ae=function(e){return D.event.special.hover?e:e.replace(Z,"mouseenter$1 mouseleave$1")};D.event={add:function(e,t,n,i,r){var a,s,c,l,u,d,h,p,f,m,g;if(3!==e.nodeType&&8!==e.nodeType&&t&&n&&(a=D._data(e))){for(n.handler&&(n=(f=n).handler,r=f.selector),n.guid||(n.guid=D.guid++),(c=a.events)||(a.events=c={}),(s=a.handle)||(a.handle=s=function(e){return void 0===D||e&&D.event.triggered===e.type?o:D.event.dispatch.apply(s.elem,arguments)},s.elem=e),t=D.trim(ae(t)).split(" "),l=0;l<t.length;l++)d=(u=Q.exec(t[l])||[])[1],h=(u[2]||"").split(".").sort(),g=D.event.special[d]||{},d=(r?g.delegateType:g.bindType)||d,g=D.event.special[d]||{},p=D.extend({type:d,origType:u[1],data:i,handler:n,guid:n.guid,selector:r,quick:r&&re(r),namespace:h.join(".")},f),(m=c[d])||((m=c[d]=[]).delegateCount=0,g.setup&&!1!==g.setup.call(e,i,h,s)||(e.addEventListener?e.addEventListener(d,s,!1):e.attachEvent&&e.attachEvent("on"+d,s))),g.add&&(g.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),r?m.splice(m.delegateCount++,0,p):m.push(p),D.event.global[d]=!0;e=null}},global:{},remove:function(e,t,n,i,r){var o,a,s,c,l,u,d,h,p,f,m,g,v=D.hasData(e)&&D._data(e);if(v&&(h=v.events)){for(t=D.trim(ae(t||"")).split(" "),o=0;o<t.length;o++)if(s=c=(a=Q.exec(t[o])||[])[1],l=a[2],s){for(p=D.event.special[s]||{},u=(m=h[s=(i?p.delegateType:p.bindType)||s]||[]).length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,d=0;d<m.length;d++)g=m[d],(r||c===g.origType)&&(!n||n.guid===g.guid)&&(!l||l.test(g.namespace))&&(!i||i===g.selector||"**"===i&&g.selector)&&(m.splice(d--,1),g.selector&&m.delegateCount--,p.remove&&p.remove.call(e,g));0===m.length&&u!==m.length&&((!p.teardown||!1===p.teardown.call(e,l))&&D.removeEvent(e,s,v.handle),delete h[s])}else for(s in h)D.event.remove(e,s+t[o],n,i,!0);D.isEmptyObject(h)&&((f=v.handle)&&(f.elem=null),D.removeData(e,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(e,t,n,i){if(!n||3!==n.nodeType&&8!==n.nodeType){var a,s,c,l,u,d,h,p,f,m,g=e.type||e,v=[];if(ne.test(g+D.event.triggered))return;if(g.indexOf("!")>=0&&(g=g.slice(0,-1),s=!0),g.indexOf(".")>=0&&(v=g.split("."),g=v.shift(),v.sort()),(!n||D.event.customEvent[g])&&!D.event.global[g])return;if((e="object"==typeof e?e[D.expando]?e:new D.Event(g,e):new D.Event(g)).type=g,e.isTrigger=!0,e.exclusive=s,e.namespace=v.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,d=g.indexOf(":")<0?"on"+g:"",!n){for(c in a=D.cache)a[c].events&&a[c].events[g]&&D.event.trigger(e,t,a[c].handle.elem,!0);return}if(e.result=o,e.target||(e.target=n),(t=null!=t?D.makeArray(t):[]).unshift(e),(h=D.event.special[g]||{}).trigger&&!1===h.trigger.apply(n,t))return;if(f=[[n,h.bindType||g]],!i&&!h.noBubble&&!D.isWindow(n)){for(m=h.delegateType||g,l=ne.test(m+g)?n:n.parentNode,u=null;l;l=l.parentNode)f.push([l,m]),u=l;u&&u===n.ownerDocument&&f.push([u.defaultView||u.parentWindow||r,m])}for(c=0;c<f.length&&!e.isPropagationStopped();c++)l=f[c][0],e.type=f[c][1],(p=(D._data(l,"events")||{})[e.type]&&D._data(l,"handle"))&&p.apply(l,t),(p=d&&l[d])&&D.acceptData(l)&&!1===p.apply(l,t)&&e.preventDefault();return e.type=g,!i&&!e.isDefaultPrevented()&&(!h._default||!1===h._default.apply(n.ownerDocument,t))&&("click"!==g||!D.nodeName(n,"a"))&&D.acceptData(n)&&d&&n[g]&&("focus"!==g&&"blur"!==g||0!==e.target.offsetWidth)&&!D.isWindow(n)&&((u=n[d])&&(n[d]=null),D.event.triggered=g,n[g](),D.event.triggered=o,u&&(n[d]=u)),e.result}},dispatch:function(e){e=D.event.fix(e||r.event);var t,n,i,a,s,c,l,u,d,h,p=(D._data(this,"events")||{})[e.type]||[],f=p.delegateCount,m=[].slice.call(arguments,0),g=!e.exclusive&&!e.namespace,v=D.event.special[e.type]||{},y=[];if(m[0]=e,e.delegateTarget=this,!v.preDispatch||!1!==v.preDispatch.call(this,e)){if(f&&(!e.button||"click"!==e.type))for((a=D(this)).context=this.ownerDocument||this,i=e.target;i!=this;i=i.parentNode||this)if(!0!==i.disabled){for(c={},u=[],a[0]=i,t=0;t<f;t++)c[h=(d=p[t]).selector]===o&&(c[h]=d.quick?oe(i,d.quick):a.is(h)),c[h]&&u.push(d);u.length&&y.push({elem:i,matches:u})}for(p.length>f&&y.push({elem:this,matches:p.slice(f)}),t=0;t<y.length&&!e.isPropagationStopped();t++)for(l=y[t],e.currentTarget=l.elem,n=0;n<l.matches.length&&!e.isImmediatePropagationStopped();n++)d=l.matches[n],(g||!e.namespace&&!d.namespace||e.namespace_re&&e.namespace_re.test(d.namespace))&&(e.data=d.data,e.handleObj=d,(s=((D.event.special[d.origType]||{}).handle||d.handler).apply(l.elem,m))!==o&&(e.result=s,!1===s&&(e.preventDefault(),e.stopPropagation())));return v.postDispatch&&v.postDispatch.call(this,e),e.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,a=t.button,s=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(n=e.target.ownerDocument||I).documentElement,r=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?t.toElement:s),!e.which&&a!==o&&(e.which=1&a?1:2&a?3:4&a?2:0),e}},fix:function(e){if(e[D.expando])return e;var t,n,i=e,r=D.event.fixHooks[e.type]||{},a=r.props?this.props.concat(r.props):this.props;for(e=D.Event(i),t=a.length;t;)e[n=a[--t]]=i[n];return e.target||(e.target=i.srcElement||I),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey===o&&(e.metaKey=e.ctrlKey),r.filter?r.filter(e,i):e},special:{ready:{setup:D.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){D.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,i){var r=D.extend(new D.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?D.event.trigger(r,null,t):D.event.dispatch.call(t,r),r.isDefaultPrevented()&&n.preventDefault()}},D.event.handle=D.event.dispatch,D.removeEvent=I.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent&&e.detachEvent("on"+t,n)},D.Event=function(e,t){if(!(this instanceof D.Event))return new D.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||!1===e.returnValue||e.getPreventDefault&&e.getPreventDefault()?_:A):this.type=e,t&&D.extend(this,t),this.timeStamp=e&&e.timeStamp||D.now(),this[D.expando]=!0},D.Event.prototype={preventDefault:function(){this.isDefaultPrevented=_;var e=this.originalEvent;!e||(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=_;var e=this.originalEvent;!e||(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=_,this.stopPropagation()},isDefaultPrevented:A,isPropagationStopped:A,isImmediatePropagationStopped:A},D.each({mouseenter:"mouseover",mouseleave:"mouseout"},(function(e,t){D.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;r.selector;return i&&(i===this||D.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),D.support.submitBubbles||(D.event.special.submit={setup:function(){if(D.nodeName(this,"form"))return!1;D.event.add(this,"click._submit keypress._submit",(function(e){var t=e.target,n=D.nodeName(t,"input")||D.nodeName(t,"button")?t.form:o;n&&!n._submit_attached&&(D.event.add(n,"submit._submit",(function(e){e._submit_bubble=!0})),n._submit_attached=!0)}))},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&D.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(D.nodeName(this,"form"))return!1;D.event.remove(this,"._submit")}}),D.support.changeBubbles||(D.event.special.change={setup:function(){if(K.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(D.event.add(this,"propertychange._change",(function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)})),D.event.add(this,"click._change",(function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1,D.event.simulate("change",this,e,!0))}))),!1;D.event.add(this,"beforeactivate._change",(function(e){var t=e.target;K.test(t.nodeName)&&!t._change_attached&&(D.event.add(t,"change._change",(function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&D.event.simulate("change",this.parentNode,e,!0)})),t._change_attached=!0)}))},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return D.event.remove(this,"._change"),K.test(this.nodeName)}}),D.support.focusinBubbles||D.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=0,i=function(e){D.event.simulate(t,e.target,D.event.fix(e),!0)};D.event.special[t]={setup:function(){0==n++&&I.addEventListener(e,i,!0)},teardown:function(){0==--n&&I.removeEventListener(e,i,!0)}}})),D.fn.extend({on:function(e,t,n,i,r){var a,s;if("object"==typeof e){for(s in"string"!=typeof t&&(n=n||t,t=o),e)this.on(s,t,n,e[s],r);return this}if(null==n&&null==i?(i=t,n=t=o):null==i&&("string"==typeof t?(i=n,n=o):(i=n,n=t,t=o)),!1===i)i=A;else if(!i)return this;return 1===r&&(a=i,i=function(e){return D().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=D.guid++)),this.each((function(){D.event.add(this,e,i,n,t)}))},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){if(e&&e.preventDefault&&e.handleObj){var i=e.handleObj;return D(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this}if("object"==typeof e){for(var r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=o),!1===n&&(n=A),this.each((function(){D.event.remove(this,e,n,t)}))},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return D(this.context).on(e,this.selector,t,n),this},die:function(e,t){return D(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1==arguments.length?this.off(e,"**"):this.off(t,e,n)},trigger:function(e,t){return this.each((function(){D.event.trigger(e,t,this)}))},triggerHandler:function(e,t){if(this[0])return D.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||D.guid++,i=0,r=function(n){var r=(D._data(this,"lastToggle"+e.guid)||0)%i;return D._data(this,"lastToggle"+e.guid,r+1),n.preventDefault(),t[r].apply(this,arguments)||!1};for(r.guid=n;i<t.length;)t[i++].guid=n;return this.click(r)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),D.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){D.fn[t]=function(e,n){return null==n&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},D.attrFn&&(D.attrFn[t]=!0),ee.test(t)&&(D.event.fixHooks[t]=D.event.keyHooks),te.test(t)&&(D.event.fixHooks[t]=D.event.mouseHooks)})),function(){function e(e,t,n,r,o,a){for(var s=0,c=r.length;s<c;s++){var l=r[s];if(l){var u=!1;for(l=l[e];l;){if(l[i]===n){u=r[l.sizset];break}if(1===l.nodeType)if(a||(l[i]=n,l.sizset=s),"string"!=typeof t){if(l===t){u=!0;break}}else if(h.filter(t,[l]).length>0){u=l;break}l=l[e]}r[s]=u}}}function t(e,t,n,r,o,a){for(var s=0,c=r.length;s<c;s++){var l=r[s];if(l){var u=!1;for(l=l[e];l;){if(l[i]===n){u=r[l.sizset];break}if(1===l.nodeType&&!a&&(l[i]=n,l.sizset=s),l.nodeName.toLowerCase()===t){u=l;break}l=l[e]}r[s]=u}}}var n=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,i="sizcache"+(Math.random()+"").replace(".",""),r=0,a=Object.prototype.toString,s=!1,c=!0,l=/\\/g,u=/\r\n/g,d=/\W/;[0,0].sort((function(){return c=!1,0}));var h=function(e,t,i,r){i=i||[];var o=t=t||I;if(1!==t.nodeType&&9!==t.nodeType)return[];if(!e||"string"!=typeof e)return i;var s,c,l,u,d,p,g,v,y=!0,w=h.isXML(t),T=[],S=e;do{if(n.exec(""),(s=n.exec(S))&&(S=s[3],T.push(s[1]),s[2])){u=s[3];break}}while(s);if(T.length>1&&m.exec(e))if(2===T.length&&f.relative[T[0]])c=C(T[0]+T[1],t,r);else for(c=f.relative[T[0]]?[t]:h(T.shift(),t);T.length;)e=T.shift(),f.relative[e]&&(e+=T.shift()),c=C(e,c,r);else if(!r&&T.length>1&&9===t.nodeType&&!w&&f.match.ID.test(T[0])&&!f.match.ID.test(T[T.length-1])&&(t=(d=h.find(T.shift(),t,w)).expr?h.filter(d.expr,d.set)[0]:d.set[0]),t)for(c=(d=r?{expr:T.pop(),set:b(r)}:h.find(T.pop(),1!==T.length||"~"!==T[0]&&"+"!==T[0]||!t.parentNode?t:t.parentNode,w)).expr?h.filter(d.expr,d.set):d.set,T.length>0?l=b(c):y=!1;T.length;)g=p=T.pop(),f.relative[p]?g=T.pop():p="",null==g&&(g=t),f.relative[p](l,g,w);else l=T=[];if(l||(l=c),l||h.error(p||e),"[object Array]"===a.call(l))if(y)if(t&&1===t.nodeType)for(v=0;null!=l[v];v++)l[v]&&(!0===l[v]||1===l[v].nodeType&&h.contains(t,l[v]))&&i.push(c[v]);else for(v=0;null!=l[v];v++)l[v]&&1===l[v].nodeType&&i.push(c[v]);else i.push.apply(i,l);else b(l,i);return u&&(h(u,o,i,r),h.uniqueSort(i)),i};h.uniqueSort=function(e){if(y&&(s=c,e.sort(y),s))for(var t=1;t<e.length;t++)e[t]===e[t-1]&&e.splice(t--,1);return e},h.matches=function(e,t){return h(e,null,null,t)},h.matchesSelector=function(e,t){return h(t,null,null,[e]).length>0},h.find=function(e,t,n){var i,r,o,a,s,c;if(!e)return[];for(r=0,o=f.order.length;r<o;r++)if(s=f.order[r],(a=f.leftMatch[s].exec(e))&&(c=a[1],a.splice(1,1),"\\"!==c.substr(c.length-1)&&(a[1]=(a[1]||"").replace(l,""),null!=(i=f.find[s](a,t,n))))){e=e.replace(f.match[s],"");break}return i||(i=void 0!==t.getElementsByTagName?t.getElementsByTagName("*"):[]),{set:i,expr:e}},h.filter=function(e,t,n,i){for(var r,a,s,c,l,u,d,p,m,g=e,v=[],y=t,w=t&&t[0]&&h.isXML(t[0]);e&&t.length;){for(s in f.filter)if(null!=(r=f.leftMatch[s].exec(e))&&r[2]){if(u=f.filter[s],d=r[1],a=!1,r.splice(1,1),"\\"===d.substr(d.length-1))continue;if(y===v&&(v=[]),f.preFilter[s])if(r=f.preFilter[s](r,y,n,v,i,w)){if(!0===r)continue}else a=c=!0;if(r)for(p=0;null!=(l=y[p]);p++)l&&(m=i^(c=u(l,r,p,y)),n&&null!=c?m?a=!0:y[p]=!1:m&&(v.push(l),a=!0));if(c!==o){if(n||(y=v),e=e.replace(f.match[s],""),!a)return[];break}}if(e===g){if(null!=a)break;h.error(e)}g=e}return y},h.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var p=h.getText=function(e){var t,n,i=e.nodeType,r="";if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;if("string"==typeof e.innerText)return e.innerText.replace(u,"");for(e=e.firstChild;e;e=e.nextSibling)r+=p(e)}else if(3===i||4===i)return e.nodeValue}else for(t=0;n=e[t];t++)8!==n.nodeType&&(r+=p(n));return r},f=h.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{class:"className",for:"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(e,t){var n="string"==typeof t,i=n&&!d.test(t),r=n&&!i;i&&(t=t.toLowerCase());for(var o,a=0,s=e.length;a<s;a++)if(o=e[a]){for(;(o=o.previousSibling)&&1!==o.nodeType;);e[a]=r||o&&o.nodeName.toLowerCase()===t?o||!1:o===t}r&&h.filter(t,e,!0)},">":function(e,t){var n,i="string"==typeof t,r=0,o=e.length;if(i&&!d.test(t)){for(t=t.toLowerCase();r<o;r++)if(n=e[r]){var a=n.parentNode;e[r]=a.nodeName.toLowerCase()===t&&a}}else{for(;r<o;r++)(n=e[r])&&(e[r]=i?n.parentNode:n.parentNode===t);i&&h.filter(t,e,!0)}},"":function(n,i,o){var a,s=r++,c=e;"string"==typeof i&&!d.test(i)&&(a=i=i.toLowerCase(),c=t),c("parentNode",i,s,n,a,o)},"~":function(n,i,o){var a,s=r++,c=e;"string"==typeof i&&!d.test(i)&&(a=i=i.toLowerCase(),c=t),c("previousSibling",i,s,n,a,o)}},find:{ID:function(e,t,n){if(void 0!==t.getElementById&&!n){var i=t.getElementById(e[1]);return i&&i.parentNode?[i]:[]}},NAME:function(e,t){if(void 0!==t.getElementsByName){for(var n=[],i=t.getElementsByName(e[1]),r=0,o=i.length;r<o;r++)i[r].getAttribute("name")===e[1]&&n.push(i[r]);return 0===n.length?null:n}},TAG:function(e,t){if(void 0!==t.getElementsByTagName)return t.getElementsByTagName(e[1])}},preFilter:{CLASS:function(e,t,n,i,r,o){if(e=" "+e[1].replace(l,"")+" ",o)return e;for(var a,s=0;null!=(a=t[s]);s++)a&&(r^(a.className&&(" "+a.className+" ").replace(/[\t\n\r]/g," ").indexOf(e)>=0)?n||i.push(a):n&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(l,"")},TAG:function(e,t){return e[1].replace(l,"").toLowerCase()},CHILD:function(e){if("nth"===e[1]){e[2]||h.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(("even"===e[2]?"2n":"odd"===e[2]&&"2n+1")||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&h.error(e[0]);return e[0]=r++,e},ATTR:function(e,t,n,i,r,o){var a=e[1]=e[1].replace(l,"");return!o&&f.attrMap[a]&&(e[1]=f.attrMap[a]),e[4]=(e[4]||e[5]||"").replace(l,""),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,i,r,o){if("not"===e[1]){if(!((n.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var a=h.filter(e[3],t,i,!0^o);return i||r.push.apply(r,a),!1}e[3]=h(e[3],null,null,t)}else if(f.match.POS.test(e[0])||f.match.CHILD.test(e[0]))return!0;return e},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return!1===e.disabled&&"hidden"!==e.type},disabled:function(e){return!0===e.disabled},checked:function(e){return!0===e.checked},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!h(n[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute("type"),n=e.type;return"input"===e.nodeName.toLowerCase()&&"text"===n&&(t===n||null===t)},radio:function(e){return"input"===e.nodeName.toLowerCase()&&"radio"===e.type},checkbox:function(e){return"input"===e.nodeName.toLowerCase()&&"checkbox"===e.type},file:function(e){return"input"===e.nodeName.toLowerCase()&&"file"===e.type},password:function(e){return"input"===e.nodeName.toLowerCase()&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"submit"===e.type},image:function(e){return"input"===e.nodeName.toLowerCase()&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return 0===t},last:function(e,t,n,i){return t===i.length-1},even:function(e,t){return t%2==0},odd:function(e,t){return t%2==1},lt:function(e,t,n){return t<n[3]-0},gt:function(e,t,n){return t>n[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,i){var r=t[1],o=f.filters[r];if(o)return o(e,n,t,i);if("contains"===r)return(e.textContent||e.innerText||p([e])||"").indexOf(t[3])>=0;if("not"===r){for(var a=t[3],s=0,c=a.length;s<c;s++)if(a[s]===e)return!1;return!0}h.error(r)},CHILD:function(e,t){var n,r,o,a,s,c,l=t[1],u=e;switch(l){case"only":case"first":for(;u=u.previousSibling;)if(1===u.nodeType)return!1;if("first"===l)return!0;u=e;case"last":for(;u=u.nextSibling;)if(1===u.nodeType)return!1;return!0;case"nth":if(n=t[2],r=t[3],1===n&&0===r)return!0;if(o=t[0],(a=e.parentNode)&&(a[i]!==o||!e.nodeIndex)){for(s=0,u=a.firstChild;u;u=u.nextSibling)1===u.nodeType&&(u.nodeIndex=++s);a[i]=o}return c=e.nodeIndex-r,0===n?0===c:c%n==0&&c/n>=0}},ID:function(e,t){return 1===e.nodeType&&e.getAttribute("id")===t},TAG:function(e,t){return"*"===t&&1===e.nodeType||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],i=h.attr?h.attr(e,n):f.attrHandle[n]?f.attrHandle[n](e):null!=e[n]?e[n]:e.getAttribute(n),r=i+"",o=t[2],a=t[4];return null==i?"!="===o:!o&&h.attr?null!=i:"="===o?r===a:"*="===o?r.indexOf(a)>=0:"~="===o?(" "+r+" ").indexOf(a)>=0:a?"!="===o?r!==a:"^="===o?0===r.indexOf(a):"$="===o?r.substr(r.length-a.length)===a:"|="===o&&(r===a||r.substr(0,a.length+1)===a+"-"):r&&!1!==i},POS:function(e,t,n,i){var r=t[2],o=f.setFilters[r];if(o)return o(e,n,t,i)}}},m=f.match.POS,g=function(e,t){return"\\"+(t-0+1)};for(var v in f.match)f.match[v]=new RegExp(f.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source),f.leftMatch[v]=new RegExp(/(^(?:.|\r|\n)*?)/.source+f.match[v].source.replace(/\\(\d+)/g,g));f.match.globalPOS=m;var y,w,b=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(I.documentElement.childNodes,0)[0].nodeType}catch(Y){b=function(e,t){var n=0,i=t||[];if("[object Array]"===a.call(e))Array.prototype.push.apply(i,e);else if("number"==typeof e.length)for(var r=e.length;n<r;n++)i.push(e[n]);else for(;e[n];n++)i.push(e[n]);return i}}I.documentElement.compareDocumentPosition?y=function(e,t){return e===t?(s=!0,0):e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t)?-1:1:e.compareDocumentPosition?-1:1}:(y=function(e,t){if(e===t)return s=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,i,r=[],o=[],a=e.parentNode,c=t.parentNode,l=a;if(a===c)return w(e,t);if(!a)return-1;if(!c)return 1;for(;l;)r.unshift(l),l=l.parentNode;for(l=c;l;)o.unshift(l),l=l.parentNode;n=r.length,i=o.length;for(var u=0;u<n&&u<i;u++)if(r[u]!==o[u])return w(r[u],o[u]);return u===n?w(e,o[u],-1):w(r[u],t,1)},w=function(e,t,n){if(e===t)return n;for(var i=e.nextSibling;i;){if(i===t)return-1;i=i.nextSibling}return 1}),function(){var e=I.createElement("div"),t="script"+(new Date).getTime(),n=I.documentElement;e.innerHTML="<a name='"+t+"'/>",n.insertBefore(e,n.firstChild),I.getElementById(t)&&(f.find.ID=function(e,t,n){if(void 0!==t.getElementById&&!n){var i=t.getElementById(e[1]);return i?i.id===e[1]||void 0!==i.getAttributeNode&&i.getAttributeNode("id").nodeValue===e[1]?[i]:o:[]}},f.filter.ID=function(e,t){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&n&&n.nodeValue===t}),n.removeChild(e),n=e=null}(),function(){var e=I.createElement("div");e.appendChild(I.createComment("")),e.getElementsByTagName("*").length>0&&(f.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var i=[],r=0;n[r];r++)1===n[r].nodeType&&i.push(n[r]);n=i}return n}),e.innerHTML="<a href='#'></a>",e.firstChild&&void 0!==e.firstChild.getAttribute&&"#"!==e.firstChild.getAttribute("href")&&(f.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null}(),I.querySelectorAll&&function(){var e=h,t=I.createElement("div");if(t.innerHTML="<p class='TEST'></p>",!t.querySelectorAll||0!==t.querySelectorAll(".TEST").length){for(var n in h=function(t,n,i,r){if(n=n||I,!r&&!h.isXML(n)){var o=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(o&&(1===n.nodeType||9===n.nodeType)){if(o[1])return b(n.getElementsByTagName(t),i);if(o[2]&&f.find.CLASS&&n.getElementsByClassName)return b(n.getElementsByClassName(o[2]),i)}if(9===n.nodeType){if("body"===t&&n.body)return b([n.body],i);if(o&&o[3]){var a=n.getElementById(o[3]);if(!a||!a.parentNode)return b([],i);if(a.id===o[3])return b([a],i)}try{return b(n.querySelectorAll(t),i)}catch(l){}}else if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){var s=n,c=n.getAttribute("id"),u=c||"__sizzle__",d=n.parentNode,p=/^\s*[+~]/.test(t);c?u=u.replace(/'/g,"\\$&"):n.setAttribute("id",u),p&&d&&(n=n.parentNode);try{if(!p||d)return b(n.querySelectorAll("[id='"+u+"'] "+t),i)}catch(v){}finally{c||s.removeAttribute("id")}}}return e(t,n,i,r)},e)h[n]=e[n];t=null}}(),function(){var e=I.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(t){var n=!t.call(I.createElement("div"),"div"),i=!1;try{t.call(I.documentElement,"[test!='']:sizzle")}catch(D){i=!0}h.matchesSelector=function(e,r){if(r=r.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!h.isXML(e))try{if(i||!f.match.PSEUDO.test(r)&&!/!=/.test(r)){var o=t.call(e,r);if(o||!n||e.document&&11!==e.document.nodeType)return o}}catch(a){}return h(r,null,null,[e]).length>0}}}(),function(){var e=I.createElement("div");if(e.innerHTML="<div class='test e'></div><div class='test'></div>",e.getElementsByClassName&&0!==e.getElementsByClassName("e").length){if(e.lastChild.className="e",1===e.getElementsByClassName("e").length)return;f.order.splice(1,0,"CLASS"),f.find.CLASS=function(e,t,n){if(void 0!==t.getElementsByClassName&&!n)return t.getElementsByClassName(e[1])},e=null}}(),I.documentElement.contains?h.contains=function(e,t){return e!==t&&(!e.contains||e.contains(t))}:I.documentElement.compareDocumentPosition?h.contains=function(e,t){return!!(16&e.compareDocumentPosition(t))}:h.contains=function(){return!1},h.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return!!t&&"HTML"!==t.nodeName};var C=function(e,t,n){for(var i,r=[],o="",a=t.nodeType?[t]:t;i=f.match.PSEUDO.exec(e);)o+=i[0],e=e.replace(f.match.PSEUDO,"");e=f.relative[e]?e+"*":e;for(var s=0,c=a.length;s<c;s++)h(e,a[s],r,n);return h.filter(o,r)};h.attr=D.attr,h.selectors.attrMap={},D.find=h,D.expr=h.selectors,D.expr[":"]=D.expr.filters,D.unique=h.uniqueSort,D.text=h.getText,D.isXMLDoc=h.isXML,D.contains=h.contains}();var se=/Until$/,ce=/^(?:parents|prevUntil|prevAll)/,le=/,/,ue=/^.[^:#\[\.,]*$/,de=Array.prototype.slice,he=D.expr.match.globalPOS,pe={children:!0,contents:!0,next:!0,prev:!0};D.fn.extend({find:function(e){var t,n,i=this;if("string"!=typeof e)return D(e).filter((function(){for(t=0,n=i.length;t<n;t++)if(D.contains(i[t],this))return!0}));var r,o,a,s=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++)if(r=s.length,D.find(e,this[t],s),t>0)for(o=r;o<s.length;o++)for(a=0;a<r;a++)if(s[a]===s[o]){s.splice(o--,1);break}return s},has:function(e){var t=D(e);return this.filter((function(){for(var e=0,n=t.length;e<n;e++)if(D.contains(this,t[e]))return!0}))},not:function(e){return this.pushStack(x(this,e,!1),"not",e)},filter:function(e){return this.pushStack(x(this,e,!0),"filter",e)},is:function(e){return!!e&&("string"==typeof e?he.test(e)?D(e,this.context).index(this[0])>=0:D.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,i,r=[],o=this[0];if(D.isArray(e)){for(var a=1;o&&o.ownerDocument&&o!==t;){for(n=0;n<e.length;n++)D(o).is(e[n])&&r.push({selector:e[n],elem:o,level:a});o=o.parentNode,a++}return r}var s=he.test(e)||"string"!=typeof e?D(e,t||this.context):0;for(n=0,i=this.length;n<i;n++)for(o=this[n];o;){if(s?s.index(o)>-1:D.find.matchesSelector(o,e)){r.push(o);break}if(!(o=o.parentNode)||!o.ownerDocument||o===t||11===o.nodeType)break}return r=r.length>1?D.unique(r):r,this.pushStack(r,"closest",e)},index:function(e){return e?"string"==typeof e?D.inArray(this[0],D(e)):D.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n="string"==typeof e?D(e,t):D.makeArray(e&&e.nodeType?[e]:e),i=D.merge(this.get(),n);return this.pushStack(k(n[0])||k(i[0])?i:D.unique(i))},andSelf:function(){return this.add(this.prevObject)}}),D.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return D.dir(e,"parentNode")},parentsUntil:function(e,t,n){return D.dir(e,"parentNode",n)},next:function(e){return D.nth(e,2,"nextSibling")},prev:function(e){return D.nth(e,2,"previousSibling")},nextAll:function(e){return D.dir(e,"nextSibling")},prevAll:function(e){return D.dir(e,"previousSibling")},nextUntil:function(e,t,n){return D.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return D.dir(e,"previousSibling",n)},siblings:function(e){return D.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return D.sibling(e.firstChild)},contents:function(e){return D.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:D.makeArray(e.childNodes)}},(function(e,t){D.fn[e]=function(n,i){var r=D.map(this,t,n);return se.test(e)||(i=n),i&&"string"==typeof i&&(r=D.filter(i,r)),r=this.length>1&&!pe[e]?D.unique(r):r,(this.length>1||le.test(i))&&ce.test(e)&&(r=r.reverse()),this.pushStack(r,e,de.call(arguments).join(","))}})),D.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?D.find.matchesSelector(t[0],e)?[t[0]]:[]:D.find.matches(e,t)},dir:function(e,t,n){for(var i=[],r=e[t];r&&9!==r.nodeType&&(n===o||1!==r.nodeType||!D(r).is(n));)1===r.nodeType&&i.push(r),r=r[t];return i},nth:function(e,t,n,i){t=t||1;for(var r=0;e&&(1!==e.nodeType||++r!==t);e=e[n]);return e},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var fe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",me=/ jQuery\d+="(?:\d+|null)"/g,ge=/^\s+/,ve=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ye=/<([\w:]+)/,we=/<tbody/i,be=/<|&#?\w+;/,Ce=/<(?:script|style)/i,Te=/<(?:script|object|embed|option|style)/i,Se=new RegExp("<(?:"+fe+")[\\s/>]","i"),Ee=/checked\s*(?:[^=]|=\s*.checked.)/i,xe=/\/(java|ecma)script/i,ke=/^\s*<!(?:\[CDATA\[|\-\-)/,_e={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ae=E(I);_e.optgroup=_e.option,_e.tbody=_e.tfoot=_e.colgroup=_e.caption=_e.thead,_e.th=_e.td,D.support.htmlSerialize||(_e._default=[1,"div<div>","</div>"]),D.fn.extend({text:function(e){return D.access(this,(function(e){return e===o?D.text(this):this.empty().append((this[0]&&this[0].ownerDocument||I).createTextNode(e))}),null,e,arguments.length)},wrapAll:function(e){if(D.isFunction(e))return this.each((function(t){D(this).wrapAll(e.call(this,t))}));if(this[0]){var t=D(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return D.isFunction(e)?this.each((function(t){D(this).wrapInner(e.call(this,t))})):this.each((function(){var t=D(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=D.isFunction(e);return this.each((function(n){D(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){D.nodeName(this,"body")||D(this).replaceWith(this.childNodes)})).end()},append:function(){return this.domManip(arguments,!0,(function(e){1===this.nodeType&&this.appendChild(e)}))},prepend:function(){return this.domManip(arguments,!0,(function(e){1===this.nodeType&&this.insertBefore(e,this.firstChild)}))},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(e){this.parentNode.insertBefore(e,this)}));if(arguments.length){var e=D.clean(arguments);return e.push.apply(e,this.toArray()),this.pushStack(e,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}));if(arguments.length){var e=this.pushStack(this,"after",arguments);return e.push.apply(e,D.clean(arguments)),e}},remove:function(e,t){for(var n,i=0;null!=(n=this[i]);i++)e&&!D.filter(e,[n]).length||(!t&&1===n.nodeType&&(D.cleanData(n.getElementsByTagName("*")),D.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&D.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=e??!1,t=t??e,this.map((function(){return D.clone(this,e,t)}))},html:function(e){return D.access(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(e===o)return 1===t.nodeType?t.innerHTML.replace(me,""):null;if("string"==typeof e&&!Ce.test(e)&&(D.support.leadingWhitespace||!ge.test(e))&&!_e[(ye.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ve,"<$1></$2>");try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(D.cleanData(t.getElementsByTagName("*")),t.innerHTML=e);t=0}catch(L){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(e){return this[0]&&this[0].parentNode?D.isFunction(e)?this.each((function(t){var n=D(this),i=n.html();n.replaceWith(e.call(this,t,i))})):("string"!=typeof e&&(e=D(e).detach()),this.each((function(){var t=this.nextSibling,n=this.parentNode;D(this).remove(),t?D(t).before(e):D(n).append(e)}))):this.length?this.pushStack(D(D.isFunction(e)?e():e),"replaceWith",e):this},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){var i,r,a,s,c=e[0],l=[];
2if(!D.support.checkClone&&3===arguments.length&&"string"==typeof c&&Ee.test(c))return this.each((function(){D(this).domManip(e,t,n,!0)}));if(D.isFunction(c))return this.each((function(i){var r=D(this);e[0]=c.call(this,i,t?r.html():o),r.domManip(e,t,n)}));if(this[0]){if(s=c&&c.parentNode,r=1===(a=(i=D.support.parentNode&&s&&11===s.nodeType&&s.childNodes.length===this.length?{fragment:s}:D.buildFragment(e,this,l)).fragment).childNodes.length?a=a.firstChild:a.firstChild){t=t&&D.nodeName(r,"tr");for(var u=0,d=this.length,h=d-1;u<d;u++)n.call(t?S(this[u]):this[u],i.cacheable||d>1&&u<h?D.clone(a,!0,!0):a)}l.length&&D.each(l,(function(e,t){t.src?D.ajax({type:"GET",global:!1,url:t.src,async:!1,dataType:"script"}):D.globalEval((t.text||t.textContent||t.innerHTML||"").replace(ke,"/*$0*/")),t.parentNode&&t.parentNode.removeChild(t)}))}return this}}),D.buildFragment=function(e,t,n){var i,r,o,a,s=e[0];return t&&t[0]&&(a=t[0].ownerDocument||t[0]),a.createDocumentFragment||(a=I),1===e.length&&"string"==typeof s&&s.length<512&&a===I&&"<"===s.charAt(0)&&!Te.test(s)&&(D.support.checkClone||!Ee.test(s))&&(D.support.html5Clone||!Se.test(s))&&(r=!0,(o=D.fragments[s])&&1!==o&&(i=o)
vendor: 16,594 bytes, line 2
2),i||(i=a.createDocumentFragment(),D.clean(e,a,i,n)),r&&(D.fragments[s]=o?i:1),{fragment:i,cacheable:r}},D.fragments={},D.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){D.fn[e]=function(n){var i=[],r=D(n),o=1===this.length&&this[0].parentNode;if(o&&11===o.nodeType&&1===o.childNodes.length&&1===r.length)return r[t](this[0]),this;for(var a=0,s=r.length;a<s;a++){var c=(a>0?this.clone(!0):this).get();D(r[a])[t](c),i=i.concat(c)}return this.pushStack(i,e,r.selector)}})),D.extend({clone:function(e,t,n){var i,r,o,a=D.support.html5Clone||D.isXMLDoc(e)||!Se.test("<"+e.nodeName+">")?e.cloneNode(!0):v(e);if(!(D.support.noCloneEvent&&D.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||D.isXMLDoc(e)))for(C(e,a),i=b(e),r=b(a),o=0;i[o];++o)r[o]&&C(i[o],r[o]);if(t&&(T(e,a),n))for(i=b(e),r=b(a),o=0;i[o];++o)T(i[o],r[o]);return i=r=null,a},clean:function(e,t,n,i){var r,o,a,s=[];void 0===(t=t||I).createElement&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||I);for(var c,l=0;null!=(c=e[l]);l++)if("number"==typeof c&&(c+=""),c){if("string"==typeof c)if(be.test(c)){c=c.replace(ve,"<$1></$2>");var u,d=(ye.exec(c)||["",""])[1].toLowerCase(),h=_e[d]||_e._default,p=h[0],f=t.createElement("div"),m=Ae.childNodes;for(t===I?Ae.appendChild(f):E(t).appendChild(f),f.innerHTML=h[1]+c+h[2];p--;)f=f.lastChild;if(!D.support.tbody){var g=we.test(c),v="table"!==d||g?"<table>"!==h[1]||g?[]:f.childNodes:f.firstChild&&f.firstChild.childNodes;for(a=v.length-1;a>=0;--a)D.nodeName(v[a],"tbody")&&!v[a].childNodes.length&&v[a].parentNode.removeChild(v[a])}!D.support.leadingWhitespace&&ge.test(c)&&f.insertBefore(t.createTextNode(ge.exec(c)[0]),f.firstChild),c=f.childNodes,f&&(f.parentNode.removeChild(f),m.length>0&&((u=m[m.length-1])&&u.parentNode&&u.parentNode.removeChild(u)))}else c=t.createTextNode(c);var w;if(!D.support.appendChecked)if(c[0]&&"number"==typeof(w=c.length))for(a=0;a<w;a++)y(c[a]);else y(c);c.nodeType?s.push(c):s=D.merge(s,c)}if(n)for(r=function(e){return!e.type||xe.test(e.type)},l=0;s[l];l++)if(o=s[l],i&&D.nodeName(o,"script")&&(!o.type||xe.test(o.type)))i.push(o.parentNode?o.parentNode.removeChild(o):o);else{if(1===o.nodeType){var b=D.grep(o.getElementsByTagName("script"),r);s.splice.apply(s,[l+1,0].concat(b))}n.appendChild(o)}return s},cleanData:function(e){for(var t,n,i,r=D.cache,o=D.event.special,a=D.support.deleteExpando,s=0;null!=(i=e[s]);s++)if((!i.nodeName||!D.noData[i.nodeName.toLowerCase()])&&(n=i[D.expando])){if((t=r[n])&&t.events){for(var c in t.events)o[c]?D.event.remove(i,c):D.removeEvent(i,c,t.handle);t.handle&&(t.handle.elem=null)}a?delete i[D.expando]:i.removeAttribute&&i.removeAttribute(D.expando),delete r[n]}}});var Me,Pe,Re,Ie=/alpha\([^)]*\)/i,Oe=/opacity=([^)]*)/,Ne=/([A-Z]|^ms)/g,De=/^[\-+]?(?:\d*\.)?\d+$/i,Le=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,Be=/^([\-+])=([\-+.\de]+)/,je=/^margin/,Ve={position:"absolute",visibility:"hidden",display:"block"},Fe=["Top","Right","Bottom","Left"];D.fn.css=function(e,t){return D.access(this,(function(e,t,n){return n!==o?D.style(e,t,n):D.css(e,t)}),e,t,arguments.length>1)},D.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Me(e,"opacity");return""===n?"1":n}return e.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:D.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,a,s=D.camelCase(t),c=e.style,l=D.cssHooks[s];if(t=D.cssProps[s]||s,n===o)return l&&"get"in l&&(r=l.get(e,!1,i))!==o?r:c[t];if("string"===(a=typeof n)&&(r=Be.exec(n))&&(n=+(r[1]+1)*+r[2]+parseFloat(D.css(e,t)),a="number"),null==n||"number"===a&&isNaN(n))return;if("number"===a&&!D.cssNumber[s]&&(n+="px"),!l||!("set"in l)||(n=l.set(e,n))!==o)try{c[t]=n}catch(R){}}},css:function(e,t,n){var i,r;return t=D.camelCase(t),r=D.cssHooks[t],"cssFloat"===(t=D.cssProps[t]||t)&&(t="float"),r&&"get"in r&&(i=r.get(e,!0,n))!==o?i:Me?Me(e,t):void 0},swap:function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i}}),D.curCSS=D.css,I.defaultView&&I.defaultView.getComputedStyle&&(Pe=function(e,t){var n,i,r,o,a=e.style;return t=t.replace(Ne,"-$1").toLowerCase(),(i=e.ownerDocument.defaultView)&&(r=i.getComputedStyle(e,null))&&(""===(n=r.getPropertyValue(t))&&!D.contains(e.ownerDocument.documentElement,e)&&(n=D.style(e,t))),!D.support.pixelMargin&&r&&je.test(t)&&Le.test(n)&&(o=a.width,a.width=n,n=r.width,a.width=o),n}),I.documentElement.currentStyle&&(Re=function(e,t){var n,i,r,o=e.currentStyle&&e.currentStyle[t],a=e.style;return null==o&&a&&(r=a[t])&&(o=r),Le.test(o)&&(n=a.left,(i=e.runtimeStyle&&e.runtimeStyle.left)&&(e.runtimeStyle.left=e.currentStyle.left),a.left="fontSize"===t?"1em":o,o=a.pixelLeft+"px",a.left=n,i&&(e.runtimeStyle.left=i)),""===o?"auto":o}),Me=Pe||Re,D.each(["height","width"],(function(e,t){D.cssHooks[t]={get:function(e,n,i){if(n)return 0!==e.offsetWidth?g(e,t,i):D.swap(e,Ve,(function(){return g(e,t,i)}))},set:function(e,t){return De.test(t)?t+"px":t}}})),D.support.opacity||(D.cssHooks.opacity={get:function(e,t){return Oe.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=D.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,t>=1&&""===D.trim(o.replace(Ie,""))&&(n.removeAttribute("filter"),i&&!i.filter)||(n.filter=Ie.test(o)?o.replace(Ie,r):o+" "+r)}}),D((function(){D.support.reliableMarginRight||(D.cssHooks.marginRight={get:function(e,t){return D.swap(e,{display:"inline-block"},(function(){return t?Me(e,"margin-right"):e.style.marginRight}))}})})),D.expr&&D.expr.filters&&(D.expr.filters.hidden=function(e){var t=e.offsetWidth,n=e.offsetHeight;return 0===t&&0===n||!D.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||D.css(e,"display"))},D.expr.filters.visible=function(e){return!D.expr.filters.hidden(e)}),D.each({margin:"",padding:"",border:"Width"},(function(e,t){D.cssHooks[e+t]={expand:function(n){var i,r="string"==typeof n?n.split(" "):[n],o={};for(i=0;i<4;i++)o[e+Fe[i]+t]=r[i]||r[i-2]||r[0];return o}}}));var He,Ue,ze=/%20/g,Ge=/\[\]$/,qe=/\r?\n/g,We=/#.*$/,$e=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ye=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Xe=/^(?:GET|HEAD)$/,Je=/^\/\//,Ke=/\?/,Qe=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Ze=/^(?:select|textarea)/i,et=/\s+/,tt=/([?&])_=[^&]*/,nt=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,it=D.fn.load,rt={},ot={},at=["*/"]+["*"];try{He=N.href}catch(St){(He=I.createElement("a")).href="",He=He.href}Ue=nt.exec(He.toLowerCase())||[],D.fn.extend({load:function(e,t,n){if("string"!=typeof e&&it)return it.apply(this,arguments);if(!this.length)return this;var i=e.indexOf(" ");if(i>=0){var r=e.slice(i,e.length);e=e.slice(0,i)}var a="GET";t&&(D.isFunction(t)?(n=t,t=o):"object"==typeof t&&(t=D.param(t,D.ajaxSettings.traditional),a="POST"));var s=this;return D.ajax({url:e,type:a,dataType:"html",data:t,complete:function(e,t,i){i=e.responseText,e.isResolved()&&(e.done((function(e){i=e})),s.html(r?D("<div>").append(i.replace(Qe,"")).find(r):i)),n&&s.each(n,[i,t,e])}}),this},serialize:function(){return D.param(this.serializeArray())},serializeArray:function(){return this.map((function(){return this.elements?D.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||Ze.test(this.nodeName)||Ye.test(this.type))})).map((function(e,t){var n=D(this).val();return null==n?null:D.isArray(n)?D.map(n,(function(e,n){return{name:t.name,value:e.replace(qe,"\r\n")}})):{name:t.name,value:n.replace(qe,"\r\n")}})).get()}}),D.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),(function(e,t){D.fn[t]=function(e){return this.on(t,e)}})),D.each(["get","post"],(function(e,t){D[t]=function(e,n,i,r){return D.isFunction(n)&&(r=r||i,i=n,n=o),D.ajax({type:t,url:e,data:n,success:i,dataType:r})}})),D.extend({getScript:function(e,t){return D.get(e,o,t,"script")},getJSON:function(e,t,n){return D.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?p(e,D.ajaxSettings):(t=e,e=D.ajaxSettings),p(e,t),e},ajaxSettings:{url:He,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(Ue[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":at},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":r.String,"text html":!0,"text json":D.parseJSON,"text xml":D.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:m(rt),ajaxTransport:m(ot),ajax:function(e,t){function n(e,t,n,a){if(2!==C){C=2,c&&clearTimeout(c),s=o,r=a||"",T.readyState=e>0?4:0;var l,d,f,w,b,S=t,E=n?function(e,t,n){var i,r,a,s,c=e.contents,l=e.dataTypes,u=e.responseFields;for(r in u)r in n&&(t[u[r]]=n[r]);for(;"*"===l[0];)l.shift(),i===o&&(i=e.mimeType||t.getResponseHeader("content-type"));if(i)for(r in c)if(c[r]&&c[r].test(i)){l.unshift(r);break}if(l[0]in n)a=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){a=r;break}s||(s=r)}a=a||s}if(a)return a!==l[0]&&l.unshift(a),n[a]}(h,T,n):o;if(e>=200&&e<300||304===e)if(h.ifModified&&((w=T.getResponseHeader("Last-Modified"))&&(D.lastModified[i]=w),(b=T.getResponseHeader("Etag"))&&(D.etag[i]=b)),304===e)S="notmodified",l=!0;else try{d=function(e,t){e.dataFilter&&(t=e.dataFilter(t,e.dataType));var n,i,r,a,s,c,l,u,d=e.dataTypes,h={},p=d.length,f=d[0];for(n=1;n<p;n++){if(1===n)for(i in e.converters)"string"==typeof i&&(h[i.toLowerCase()]=e.converters[i]);if(a=f,"*"===(f=d[n]))f=a;else if("*"!==a&&a!==f){if(!(c=h[s=a+" "+f]||h["* "+f]))for(l in u=o,h)if(((r=l.split(" "))[0]===a||"*"===r[0])&&(u=h[r[1]+" "+f])){!0===(l=h[l])?c=u:!0===u&&(c=l);break}!c&&!u&&D.error("No conversion from "+s.replace(" "," to ")),!0!==c&&(t=c?c(t):u(l(t)))}}return t}(h,E),S="success",l=!0}catch(Q){S="parsererror",f=Q}else f=S,S&&!e||(S="error",e<0&&(e=0));T.status=e,T.statusText=""+(t||S),l?g.resolveWith(p,[d,S,T]):g.rejectWith(p,[T,S,f]),T.statusCode(y),y=o,u&&m.trigger("ajax"+(l?"Success":"Error"),[T,h,l?d:f]),v.fireWith(p,[T,S]),u&&(m.trigger("ajaxComplete",[T,h]),--D.active||D.event.trigger("ajaxStop"))}}"object"==typeof e&&(t=e,e=o),t=t||{};var i,r,a,s,c,l,u,d,h=D.ajaxSetup({},t),p=h.context||h,m=p!==h&&(p.nodeType||p instanceof D)?D(p):D.event,g=D.Deferred(),v=D.Callbacks("once memory"),y=h.statusCode||{},w={},b={},C=0,T={readyState:0,setRequestHeader:function(e,t){if(!C){var n=e.toLowerCase();e=b[n]=b[n]||e,w[e]=t}return this},getAllResponseHeaders:function(){return 2===C?r:null},getResponseHeader:function(e){var t;if(2===C){if(!a)for(a={};t=$e.exec(r);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return t===o?null:t},overrideMimeType:function(e){return C||(h.mimeType=e),this},abort:function(e){return e=e||"abort",s&&s.abort(e),n(0,e),this}};if(g.promise(T),T.success=T.done,T.error=T.fail,T.complete=v.add,T.statusCode=function(e){var t;if(e)if(C<2)for(t in e)y[t]=[y[t],e[t]];else t=e[T.status],T.then(t,t);return this},h.url=((e||h.url)+"").replace(We,"").replace(Je,Ue[1]+"//"),h.dataTypes=D.trim(h.dataType||"*").toLowerCase().split(et),null==h.crossDomain&&(l=nt.exec(h.url.toLowerCase()),h.crossDomain=!(!l||l[1]==Ue[1]&&l[2]==Ue[2]&&(l[3]||("http:"===l[1]?80:443))==(Ue[3]||("http:"===Ue[1]?80:443)))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=D.param(h.data,h.traditional)),f(rt,h,t,T),2===C)return!1;if(u=h.global,h.type=h.type.toUpperCase(),h.hasContent=!Xe.test(h.type),u&&0==D.active++&&D.event.trigger("ajaxStart"),!h.hasContent&&(h.data&&(h.url+=(Ke.test(h.url)?"&":"?")+h.data,delete h.data),i=h.url,!1===h.cache)){var S=D.now(),E=h.url.replace(tt,"$1_="+S);h.url=E+(E===h.url?(Ke.test(h.url)?"&":"?")+"_="+S:"")}for(d in(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&T.setRequestHeader("Content-Type",h.contentType),h.ifModified&&(i=i||h.url,D.lastModified[i]&&T.setRequestHeader("If-Modified-Since",D.lastModified[i]),D.etag[i]&&T.setRequestHeader("If-None-Match",D.etag[i])),T.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+at+"; q=0.01":""):h.accepts["*"]),h.headers)T.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(p,T,h)||2===C))return T.abort(),!1;for(d in{success:1,error:1,complete:1})T[d](h[d]);if(s=f(ot,h,t,T)){T.readyState=1,u&&m.trigger("ajaxSend",[T,h]),h.async&&h.timeout>0&&(c=setTimeout((function(){T.abort("timeout")}),h.timeout));try{C=1,s.send(w,n)}catch(K){if(!(C<2))throw K;n(-1,K)}}else n(-1,"No Transport");return T},param:function(e,t){var n=[],i=function(e,t){t=D.isFunction(t)?t():t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===o&&(t=D.ajaxSettings.traditional),D.isArray(e)||e.jquery&&!D.isPlainObject(e))D.each(e,(function(){i(this.name,this.value)}));else for(var r in e)h(r,e[r],t,i);return n.join("&").replace(ze,"+")}}),D.extend({active:0,lastModified:{},etag:{}});var st=D.now(),ct=/(\=)\?(&|$)|\?\?/i;D.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return D.expando+"_"+st++}}),D.ajaxPrefilter("json jsonp",(function(e,t,n){var i="string"==typeof e.data&&/^application\/x\-www\-form\-urlencoded/.test(e.contentType);if("jsonp"===e.dataTypes[0]||!1!==e.jsonp&&(ct.test(e.url)||i&&ct.test(e.data))){var o,a=e.jsonpCallback=D.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s=r[a],c=e.url,l=e.data,u="$1"+a+"$2";return!1!==e.jsonp&&(c=c.replace(ct,u),e.url===c&&(i&&(l=l.replace(ct,u)),e.data===l&&(c+=(/\?/.test(c)?"&":"?")+e.jsonp+"="+a))),e.url=c,e.data=l,r[a]=function(e){o=[e]},n.always((function(){r[a]=s,o&&D.isFunction(s)&&r[a](o[0])})),e.converters["script json"]=function(){return o||D.error(a+" was not called"),o[0]},e.dataTypes[0]="json","script"}})),D.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return D.globalEval(e),e}}}),D.ajaxPrefilter("script",(function(e){e.cache===o&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),D.ajaxTransport("script",(function(e){if(e.crossDomain){var t,n=I.head||I.getElementsByTagName("head")[0]||I.documentElement;return{send:function(i,r){(t=I.createElement("script")).async="async",e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,n&&t.parentNode&&n.removeChild(t),t=o,i||r(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(0,1)}}}}));var lt,ut=!!r.ActiveXObject&&function(){for(var e in lt)lt[e](0,1)},dt=0;D.ajaxSettings.xhr=r.ActiveXObject?function(){return!this.isLocal&&d()||function(){try{return new r.ActiveXObject("Microsoft.XMLHTTP")}catch(o){}}()}:d,function(e){D.extend(D.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(D.ajaxSettings.xhr()),D.support.ajax&&D.ajaxTransport((function(e){var t;if(!e.crossDomain||D.support.cors)return{send:function(n,i){var a,s,c=e.xhr();if(e.username?c.open(e.type,e.url,e.async,e.username,e.password):c.open(e.type,e.url,e.async),e.xhrFields)for(s in e.xhrFields)c[s]=e.xhrFields[s];e.mimeType&&c.overrideMimeType&&c.overrideMimeType(e.mimeType),!e.crossDomain&&!n["X-Requested-With"]&&(n["X-Requested-With"]="XMLHttpRequest");try{for(s in n)c.setRequestHeader(s,n[s])}catch(V){}c.send(e.hasContent&&e.data||null),t=function(n,r){var s,l,u,d,h;try{if(t&&(r||4===c.readyState))if(t=o,a&&(c.onreadystatechange=D.noop,ut&&delete lt[a]),r)4!==c.readyState&&c.abort();else{s=c.status,u=c.getAllResponseHeaders(),d={},(h=c.responseXML)&&h.documentElement&&(d.xml=h);try{d.text=c.responseText}catch(n){}try{l=c.statusText}catch(z){l=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=d.text?200:404}}catch(G){r||i(-1,G)}d&&i(s,l,d,u)},e.async&&4!==c.readyState?(a=++dt,ut&&(lt||(lt={},D(r).unload(ut)),lt[a]=t),c.onreadystatechange=t):t()},abort:function(){t&&t(0,1)}}}));var ht,pt,ft,mt,gt={},vt=/^(?:toggle|show|hide)$/,yt=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,wt=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["o
2pacity"]];D.fn.extend({show:function(e,t,n){var i,r;if(e||0===e)return this.animate(c("show",3),e,t,n);for(var o=0,a=this.length;o<a;o++)(i=this[o]).style&&(r=i.style.display,!D._data(i,"olddisplay")&&"none"===r&&(r=i.style.display=""),(""===r&&"none"===D.css(i,"display")||!D.contains(i.ownerDocument.documentElement,i))&&D._data(i,"olddisplay",s(i.nodeName)));for(o=0;o<a;o++)(i=this[o]).style&&(""!==(r=i.style.display)&&"none"!==r||(i.style.display=D._data(i,"olddisplay")||""));return this},hide:function(e,t,n){if(e||0===e)return this.animate(c("hide",3),e,t,n);for(var i,r,o=0,a=this.length;o<a;o++)(i=this[o]).style&&("none"!==(r=D.css(i,"display"))&&!D._data(i,"olddisplay")&&D._data(i,"olddisplay",r));for(o=0;o<a;o++)this[o].style&&(this[o].style.display="none");return this},_toggle:D.fn.toggle,toggle:function(e,t,n){var i="boolean"==typeof e;return D.isFunction(e)&&D.isFunction(t)?this._toggle.apply(this,arguments):null==e||i?this.each((function(){var t=i?e:D(this).is(":hidden");D(this)[t?"show":"hide"]()})):this.animate(c("toggle",3),e,t,n),this},fadeTo:function(e,t,n,i){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){function r(){!1===o.queue&&D._mark(this);var t,n,i,r,a,c,l,u,d,h,p,f=D.extend({},o),m=1===this.nodeType,g=m&&D(this).is(":hidden");for(i in f.animatedProperties={},e)if(i!==(t=D.camelCase(i))&&(e[t]=e[i],delete e[i]),(a=D.cssHooks[t])&&"expand"in a)for(i in c=a.expand(e[t]),delete e[t],c)i in e||(e[i]=c[i]);for(t in e){if(n=e[t],D.isArray(n)?(f.animatedProperties[t]=n[1],n=e[t]=n[0]):f.animatedProperties[t]=f.specialEasing&&f.specialEasing[t]||f.easing||"swing","hide"===n&&g||"show"===n&&!g)return f.complete.call(this);m&&("height"===t||"width"===t)&&(f.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===D.css(this,"display")&&"none"===D.css(this,"float")&&(D.support.inlineBlockNeedsLayout&&"inline"!==s(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}for(i in null!=f.overflow&&(this.style.overflow="hidden"),e)r=new D.fx(this,f,i),n=e[i],vt.test(n)?(p=D._data(this,"toggle"+i)||("toggle"===n?g?"show":"hide":0))?(D._data(this,"toggle"+i,"show"===p?"hide":"show"),r[p]()):r[n]():(l=yt.exec(n),u=r.cur(),l?(d=parseFloat(l[2]),"px"!==(h=l[3]||(D.cssNumber[i]?"":"px"))&&(D.style(this,i,(d||1)+h),u=(d||1)/r.cur()*u,D.style(this,i,u+h)),l[1]&&(d=("-="===l[1]?-1:1)*d+u),r.custom(u,d,h)):r.custom(u,n,""));return!0}var o=D.speed(t,n,i);return D.isEmptyObject(e)?this.each(o.complete,[!1]):(e=D.extend({},e),!1===o.queue?this.each(r):this.queue(o.queue,r))},stop:function(e,t,n){return"string"!=typeof e&&(n=t,t=e,e=o),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){function t(e,t,i){var r=t[i];D.removeData(e,i,!0),r.stop(n)}var i,r=!1,o=D.timers,a=D._data(this);if(n||D._unmark(!0,this),null==e)for(i in a)a[i]&&a[i].stop&&i.indexOf(".run")===i.length-4&&t(this,a,i);else a[i=e+".run"]&&a[i].stop&&t(this,a,i);for(i=o.length;i--;)o[i].elem===this&&(null==e||o[i].queue===e)&&(n?o[i](!0):o[i].saveState(),r=!0,o.splice(i,1));(!n||!r)&&D.dequeue(this,e)}))}}),D.each({slideDown:c("show",1),slideUp:c("hide",1),slideToggle:c("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){D.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),D.extend({speed:function(e,t,n){var i=e&&"object"==typeof e?D.extend({},e):{complete:n||!n&&t||D.isFunction(e)&&e,duration:e,easing:n&&t||t&&!D.isFunction(t)&&t};return i.duration=D.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in D.fx.speeds?D.fx.speeds[i.duration]:D.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(e){D.isFunction(i.old)&&i.old.call(this),i.queue?D.dequeue(this,i.queue):!1!==e&&D._unmark(this)},i},easing:{linear:function(e){return e},swing:function(e){return-Math.cos(e*Math.PI)/2+.5}},timers:[],fx:function(e,t,n){this.options=t,this.elem=e,this.prop=n,t.orig=t.orig||{}}}),D.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(D.fx.step[this.prop]||D.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var e,t=D.css(this.elem,this.prop);return isNaN(e=parseFloat(t))?t&&"auto"!==t?t:0:e},custom:function(e,t,n){function i(e){return r.step(e)}var r=this,a=D.fx;this.startTime=mt||u(),this.end=t,this.now=this.start=e,this.pos=this.state=0,this.unit=n||this.unit||(D.cssNumber[this.prop]?"":"px"),i.queue=this.options.queue,i.elem=this.elem,i.saveState=function(){D._data(r.elem,"fxshow"+r.prop)===o&&(r.options.hide?D._data(r.elem,"fxshow"+r.prop,r.start):r.options.show&&D._data(r.elem,"fxshow"+r.prop,r.end))},i()&&D.timers.push(i)&&!ft&&(ft=setInterval(a.tick,a.interval))},show:function(){var e=D._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||D.style(this.elem,this.prop),this.options.show=!0,e!==o?this.custom(this.cur(),e):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),D(this.elem).show()},hide:function(){this.options.orig[this.prop]=D._data(this.elem,"fxshow"+this.prop)||D.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(e){var t,n,i,r=mt||u(),o=!0,a=this.elem,s=this.options;if(e||r>=s.duration+this.startTime){for(t in this.now=this.end,this.pos=this.state=1,this.update(),s.animatedProperties[this.prop]=!0,s.animatedProperties)!0!==s.animatedProperties[t]&&(o=!1);if(o){if(null!=s.overflow&&!D.support.shrinkWrapBlocks&&D.each(["","X","Y"],(function(e,t){a.style["overflow"+t]=s.overflow[e]})),s.hide&&D(a).hide(),s.hide||s.show)for(t in s.animatedProperties)D.style(a,t,s.orig[t]),D.removeData(a,"fxshow"+t,!0),D.removeData(a,"toggle"+t,!0);(i=s.complete)&&(s.complete=!1,i.call(a))}return!1}return s.duration==1/0?this.now=r:(n=r-this.startTime,this.state=n/s.duration,this.pos=D.easing[s.animatedProperties[this.prop]](this.state,n,0,1,s.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},D.extend(D.fx,{tick:function(){for(var e,t=D.timers,n=0;n<t.length;n++)!(e=t[n])()&&t[n]===e&&t.splice(n--,1);t.length||D.fx.stop()},interval:13,stop:function(){clearInterval(ft),ft=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){D.style(e.elem,"opacity",e.now)},_default:function(e){e.elem.style&&null!=e.elem.style[e.prop]?e.elem.style[e.prop]=e.now+e.unit:e.elem[e.prop]=e.now}}}),D.each(wt.concat.apply([],wt),(function(e,t){t.indexOf("margin")&&(D.fx.step[t]=function(e){D.style(e.elem,t,Math.max(0,e.now)+e.unit)})})),D.expr&&D.expr.filters&&(D.expr.filters.animated=function(e){return D.grep(D.timers,(function(t){return e===t.elem})).length});var bt,Ct=/^t(?:able|d|h)$/i,Tt=/^(?:body|html)$/i;bt="getBoundingClientRect"in I.documentElement?function(e,t,n,i){try{i=e.getBoundingClientRect()}catch(N){}
vendor: 1,759 bytes, line 2
2if(!i||!D.contains(n,e))return i?{top:i.top,left:i.left}:{top:0,left:0};var r=t.body,o=a(t),s=n.clientTop||r.clientTop||0,c=n.clientLeft||r.clientLeft||0,l=o.pageYOffset||D.support.boxModel&&n.scrollTop||r.scrollTop,u=o.pageXOffset||D.support.boxModel&&n.scrollLeft||r.scrollLeft;return{top:i.top+l-s,left:i.left+u-c}}:function(e,t,n){for(var i,r=e.offsetParent,o=t.body,a=t.defaultView,s=a?a.getComputedStyle(e,null):e.currentStyle,c=e.offsetTop,l=e.offsetLeft;(e=e.parentNode)&&e!==o&&e!==n&&(!D.support.fixedPosition||"fixed"!==s.position);)i=a?a.getComputedStyle(e,null):e.currentStyle,c-=e.scrollTop,l-=e.scrollLeft,e===r&&(c+=e.offsetTop,l+=e.offsetLeft,D.support.doesNotAddBorder&&(!D.support.doesAddBorderForTableAndCells||!Ct.test(e.nodeName))&&(c+=parseFloat(i.borderTopWidth)||0,l+=parseFloat(i.borderLeftWidth)||0),r=e.offsetParent),D.support.subtractsBorderForOverflowNotVisible&&"visible"!==i.overflow&&(c+=parseFloat(i.borderTopWidth)||0,l+=parseFloat(i.borderLeftWidth)||0),s=i;return"relative"!==s.position&&"static"!==s.position||(c+=o.offsetTop,l+=o.offsetLeft),D.support.fixedPosition&&"fixed"===s.position&&(c+=Math.max(n.scrollTop,o.scrollTop),l+=Math.max(n.scrollLeft,o.scrollLeft)),{top:c,left:l}},D.fn.offset=function(e){if(arguments.length)return e===o?this:this.each((function(t){D.offset.setOffset(this,e,t)}));var t=this[0],n=t&&t.ownerDocument;return n?t===n.body?D.offset.bodyOffset(t):bt(t,n,n.documentElement):null},D.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return D.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(D.css(e,"marginTop"))||0,n+=parseFloat(D.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var i=D.css(e,"position");"static"===i&&(e.style.position="relative");
2var r,o,a=D(e),s=a.offset(),c=D.css(e,"top"),l=D.css(e,"left"),u={},d={};("absolute"===i||"fixed"===i)&&D.inArray("auto",[c,l])>-1?(r=(d=a.position()).top,o=d.left):(r=parseFloat(c)||0,o=parseFloat(l)||0),D.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(u.top=t.top-s.top+r),null!=t.left&&(u.left=t.left-s.left+o),"using"in t?t.using.call(e,u):a.css(u)}},D.fn.extend({position:function(){if(!this[0])return null;var e=this[0],t=this.offsetParent(),n=this.offset(),i=Tt.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(D.css(e,"marginTop"))||0,n.left-=parseFloat(D.css(e,"marginLeft"))||0,i.top+=parseFloat(D.css(t[0],"borderTopWidth"))||0,i.left+=parseFloat(D.css(t[0],"borderLeftWidth"))||0,{top:n.top-i.top,left:n.left-i.left}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||I.body;e&&!Tt.test(e.nodeName)&&"static"===D.css(e,"position");)e=e.offsetParent;return e}))}}),D.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n=/Y/.test(t);D.fn[e]=function(i){return D.access(this,(function(e,i,r){var s=a(e);if(r===o)return s?t in s?s[t]:D.support.boxModel&&s.document.documentElement[i]||s.document.body[i]:e[i];s?s.scrollTo(n?D(s).scrollLeft():r,n?r:D(s).scrollTop()):e[i]=r}),e,i,arguments.length,null)}})),D.each({Height:"height",Width:"width"},(function(e,t){var n="client"+e,i="scroll"+e,r="offset"+e;D.fn["inner"+e]=function(){var e=this[0];return e?e.style?parseFloat(D.css(e,t,"padding")):this[t]():null},D.fn["outer"+e]=function(e){var n=this[0];return n?n.style?parseFloat(D.css(n,t,e?"margin":"border")):this[t]():null},D.fn[t]=function(e){return D.access(this,(function(e,t,a){var s,c,l,u;return D.isWindow(e)?(c=(s=e.document).documentElement[n],D.support.boxModel&&c||s.body&&s.body[n]||c):9===e.nodeType?(s=e.documentElement)[n]>=s[i]?s[n]:Math.max(e.body[i],s[i],e.body[r],s[r]):a===o?(l=D.css(e,t),u=parseFloat(l),D.isNumeric(u)?u:l):void D(e).css(t,a)}),t,e,arguments.length,null)}})),r.jQuery=r.$=D,n.amdO.jQuery&&(void 0===(i=function(){return D}.apply(t,[]))||(e.exports=i))}(window)},48217(e,t,n){n(27495),n(25440),function(){var e,t,n,i,r,o,a,s,c,l,u,d,h,p,f,m,g=[].slice;e=jQuery,f="selectionEnd"in document.createElement("input"),m=function(e){return setTimeout(e,50)},i=function(e,t){var n,i,r,o,s,c;for(s in null==t&&(t=null),e=0!==e.indexOf("+")&&t?t+e.replace(/[^0-9]/g,""):"+"+e.replace(/[^0-9]/g,""),n=null,o=0,a)if(i=a[s],e.length>=s.length&&e.substring(0,s.length)===s&&s.length>o){for(r in n={},i)c=i[r],n[r]=c;n.prefix=s,o=s.length}return n},h=function(e,t){return e===t||(e.length<t.length?t.substring(0,e.length)===e:e.substring(0,t.length)===t)},s=function(e,t,n){var r,o,a,s,c,l,u,d,p,f,m;if(null==n&&(n=null),0!==e.length&&("+"===e.substring(0,1)||n)&&(r=i(e,n))&&r.format){if(c=r.format,l=r.prefix,n&&(n===l||h(l,n))&&(0!==e.indexOf("+")||0===e.length)&&(c=c.substring(Math.min(l.length,n.length)+1),null!=r.nationalPrefix)){for(u="",d=0,m=r.nationalPrefix.length;0<=m?d<m:d>m;0<=m?++d:--d)u+=".";c=u+c}for(s="+"===e.substring(0,1)?e.substring(1):e,c.match(/\./g).length,a="",p=0,f=c.length;p<f;p++)if("."===(o=c[p])){if(0===s.length)break;a+=s.substring(0,1),s=s.substring(1)}else(t||s.length>0)&&(a+=o);e=a+s}return e},u=function(e){return!!e.metaKey||32!==e.which&&(0===e.which||(e.which<33||l(e)))},l=function(e){var t;return t=String.fromCharCode(e.which),!!/[\d\s+]/.test(t)},p=function(e){var t,n,i;return u(e)?l(e)?(n=this.val(),t=f?this.get(0).selectionEnd:this.caret(),n=n.substring(0,this.caret())+String.fromCharCode(e.which)+n.substring(t,n.length),o.call(this,n,e),m((i=this,function(){return i.caret(i.val().length)}))):void 0:e.preventDefault()},r=function(e){var n;if(t.call(this),n=this.val(),8!==e.keyCode||this.caret()!==n.length)return o.call(this,n,e)},n=function(e){var t,n;if(e&&!e.meta&&0!==(n=this.val()).length&&this.caret()===n.length&&8===e.keyCode)return n=n.substring(0,n.length-1),e.preventDefault(),t=c.call(this,n,!1),this.val()!==t?this.val(t):void 0},o=function(e,t){var n,i,r,o;if((n=c.call(this,e,!0))!==this.val()&&(r=(i=this.caret())===this.val().length,t.preventDefault(),this.val(n),!r))return m((o=this,function(){return o.caret(i)}))},c=function(e,t){return e=0!==e.indexOf("+")&&this.data("defaultPrefix")?e.replace(/[^0-9]/g,""):"+"+e.replace(/[^0-9]/g,""),s(e,t,this.data("defaultPrefix"))},t=function(){var e,t,n;if(n=this.val(),e=null,(t=i(n,this.data("defaultPrefix")))&&(e=t.country),this.data("mobilePhoneCountry")!==e)return this.data("mobilePhoneCountry",e),this.trigger("country.mobilePhoneNumber",e)},(d={}).init=function(t){var i,o;return null==t&&(t={}),this.data("mobilePhoneNumberInited")||(this.data("mobilePhoneNumberInited",!0),this.bind("keypress",(o=this,function(){return p.apply(e(o),arguments)})),this.bind("keyup",function(t){return function(){return r.apply(e(t),arguments)}}(this)),this.bind("keydown",function(t){return function(){return n.apply(e(t),arguments)}}(this))),this.data("defaultPrefix",null!=(i=t.allowPhoneWithoutPrefix)?i:t.defaultPrefix),""!==this.val()&&this.val(c.
2call(this,this.val(),!1)),this},d.val=function(){var e;return e=this.val().replace(/[^0-9]/g,""),i(e,this.data("defaultPrefix")),0===this.val().indexOf("+")||null==this.data("defaultPrefix")?"+"+e:this.data("defaultPrefix")+e},d.validate=function(){var e,t;return t=this.mobilePhoneNumber("val"),!(e=i(t,this.data("defaultPrefix")))||t.length>e.prefix.length},d.country=function(){var e;if(e=i(this.mobilePhoneNumber("val")))return e.country},d.prefix=function(){var t;return null==(t=this.mobilePhoneNumber("country"))?"":e.mobilePhoneNumberPrefixFromCountryCode(t)},e.fn.mobilePhoneNumber=function(){var e,t;return t=arguments[0],e=2<=arguments.length?g.call(arguments,1):[],null!=t&&"string"==typeof t||(null!=t&&(e=[t]),t="init"),d[t].apply(this,e)},e.formatMobilePhoneNumber=function(e){return e="+"+e.replace(/[^0-9\*]/g,""),s(e,!0)},e.mobilePhoneNumberPrefixFromCountryCode=function(e){var t;for(t in a)if(a[t].country.toLowerCase()===e.toLowerCase())return 5===t.length&&"1"===t[1]?"+1":t;return null},function(e){var t,n,i,r,o,a;for(r=0,o=(t=[403,587,780,250,604,778,204,506,709,902,226,249,289,343,416,519,613,647,705,807,905,418,438,450,514,579,581,819,873,306,867]).length;r<o;r++)e["+1"+(i=t[r])]={country:"CA"};for(i in a=[],e)n=e[i],"+1"===i.substring(0,2)?a.push(n.format="+. (...) ...-...."):a.push(void 0)}(a={"+247":{country:"AC"},"+376":{country:"AD",format:"+... ... ..."},"+971":{country:"AE",format:"+... .. ... ...."},"+93":{country:"AF",format:"+.. .. ... ...."},"+1268":{country:"AG"},"+1264":{country:"AI"},"+355":{country:"AL",format:"+... .. ... ...."},"+374":{country:"AM",format:"+... .. ......"},"+244":{country:"AO",format:"+... ... ... ..."},"+54":{country:"AR",format:"+.. .. ..-....-...."},"+1684":{country:"AS"},"+43":{country:"AT",format:"+.. ... ......"},"+61":{country:"AU",format:"+.. ... ... ..."},"+297":{country:"AW",format:"+... ... ...."},"+994":{country:"AZ",format:"+... .. ... .. .."},"+387":{country:"BA",format:"+... .. ...-..."},"+1246":{country:"BB"},"+880":{country:"BD",format:"+... ....-......"},"+32":{country:"BE",format:"+.. ... .. .. .."},"+226":{country:"BF",format:"+... .. .. .. .."},"+359":{country:"BG",format:"+... ... ... .."},"+973":{country:"BH",format:"+... .... ...."},"+257":{country:"BI",format:"+... .. .. .. .."},"+229":{country:"BJ",format:"+... .. .. .. .."},"+1441":{country:"BM"},"+673":{country:"BN",format:"+... ... ...."},"+591":{country:"BO",format:"+... ........"},"+55":{country:"BR",format:"+.. .. .....-...."},"+1242":{country:"BS"},"+975":{country:"BT",format:"+... .. .. .. .."},"+267":{country:"BW",format:"+... .. ... ..."},"+375":{country:"BY",format:"+... .. ...-..-.."},"+501":{country:"BZ",format:"+... ...-...."},"+243":{country:"CD",format:"+... ... ... ..."},"+236":{country:"CF",format:"+... .. .. .. .."},"+242":{country:"CG",format:"+... .. ... ...."},"+41":{country:"CH",format:"+.. .. ... .. .."},"+225":{country:"CI",format:"+... .. .. .. .."},"+682":{country:"CK",format:"+... .. ..."},"+56":{country:"CL",format:"+.. . .... ...."},"+237":{country:"CM",format:"+... .. .. .. .."},"+86":{country:"CN",format:"+.. ... .... ...."},"+57":{country:"CO",format:"+.. ... ......."},"+506":{country:"CR",format:"+... .... ...."},"+53":{country:"CU",format:"+.. . ......."},"+238":{country:"CV",format:"+... ... .. .."},"+599":{country:"CW",format:"+... . ... ...."},"+537":{country:"CY"},"+357":{country:"CY",format:"+... .. ......"},"+420":{country:"CZ",format:"+... ... ... ..."},"+49":{country:"DE",format:"+.. .... ......."},"+253":{country:"DJ",format:"+... .. .. .. .."},"+45":{country:"DK",format:"+.. .. .. .. .."},"+1767":{country:"DM"},"+1849":{country:"DO"},"+213":{country:"DZ",format:"+... ... .. .. .."},"+593":{country:"EC",format:"+... .. ... ...."},"+372":{country:"EE",format:"+... .... ...."},"+20":{country:"EG",format:"+.. ... ... ...."},"+291":{country:"ER",format:"+... . ... ..."},"+34":{country:"ES",format:"+.. ... .. .. .."},"+251":{country:"ET",format:"+... .. ... ...."},"+358":{country:"FI",format:"+... .. ... .. .."},"+679":{country:"FJ",format:"+... ... ...."},"+500":{country:"FK"},"+691":{country:"FM",format:"+... ... ...."},"+298":{country:"FO",format:"+... ......"},"+33":{country:"FR",format:"+.. . .. .. .. .."},"+241":{country:"GA",format:"+... .. .. .. .."},"+44":{country:"GB",format:"+.. .... ......"},"+1473":{country:"GD"},"+995":{country:"GE",format:"+... ... .. .. .."},"+594":{country:"GF",format:"+... ... .. .. .."},"+233":{country:"GH",format:"+... .. ... ...."},"+350":{country:"GI",format:"+... ... ....."},"+299":{country:"GL",format:"+... .. .. .."},"+220":{country:"GM",format:"+... ... ...."},"+224":{country:"GN",format:"+... ... .. .. .."},"+240":{country:"GQ",format:"+... ... ... ..."},"+30":{country:"GR",format:"+.. ... ... ...."},"+502":{country:"GT",format:"+... .... ...."},"+1671":{country:"GU"},"+245":{country:"GW",format:"+... ... ...."},"+592":{country:"GY",format:"+... ... ...."},"+852":{country:"HK",format:"+... .... ...."},"+504":{country:"HN",format:"+... ....-...."},"+385":{country:"HR",format:"+... .. ... ...."},"+509":{country:"HT",format:"+... .. .. ...."},"+36":{country:"HU",format:"+.. .. ... ...."},"+62":{country:"ID",format:"+.. ...-...-..."},"+353":{country:"IE",format:"+... .. ... ...."},"+972":{country:"IL",format:"+... ..-...-...."},"+91":{country:"IN",format:"+.. .. .. ......"},"+246":{country:"IO",format:"+... ... ...."},"+964":{country:"IQ",format:"+... ... ... ...."},"+98":{country:"IR",format:"+.. ... ... ...."},"+354":{country:"IS",format:"+... ... ...."},"+39":{country:"IT",format:"+.. .. .... ...."},"+1876":{country:"JM"},"+962":{country:"JO",format:"+... . .... ...."},"+81":{country:"JP",format:"+.. ..-....-....",nationalPrefix:"0"},"+254":{country:"KE",format:"+... .. ......."},"+996":{country:"KG",format:"+... ... ... ..."},"+855":{country:"KH",format:"+... .. ... ..."},"+686":{country:"KI"},"+269":{country:"KM",format:"+... ... .. .."}
2,"+1869":{country:"KN"},"+850":{country:"KP",format:"+... ... ... ...."},"+82":{country:"KR",format:"+.. ..-....-...."},"+965":{country:"KW",format:"+... ... ....."},"+345":{country:"KY"},"+77":{country:"KZ"},"+856":{country:"LA",format:"+... .. .. ... ..."},"+961":{country:"LB",format:"+... .. ... ..."},"+1758":{country:"LC"},"+423":{country:"LI",format:"+... ... ... ..."},"+94":{country:"LK",format:"+.. .. . ......"},"+231":{country:"LR",format:"+... ... ... ..."},"+266":{country:"LS",format:"+... .... ...."},"+370":{country:"LT",format:"+... ... ....."},"+352":{country:"LU",format:"+... .. .. .. ..."},"+371":{country:"LV",format:"+... .. ... ..."},"+218":{country:"LY",format:"+... ..-......."},"+212":{country:"MA",format:"+... ...-......"},"+377":{country:"MC",format:"+... . .. .. .. .."},"+373":{country:"MD",format:"+... ... .. ..."},"+382":{country:"ME",format:"+... .. ... ..."},"+590":{country:"MF"},"+261":{country:"MG",format:"+... .. .. ... .."},"+692":{country:"MH",format:"+... ...-...."},"+389":{country:"MK",format:"+... .. ... ..."},"+223":{country:"ML",format:"+... .. .. .. .."},"+95":{country:"MM",format:"+.. . ... ...."},"+976":{country:"MN",format:"+... .... ...."},"+853":{country:"MO",format:"+... .... ...."},"+1670":{country:"MP"},"+596":{country:"MQ",format:"+... ... .. .. .."},"+222":{country:"MR",format:"+... .. .. .. .."},"+1664":{country:"MS"},"+356":{country:"MT",format:"+... .... ...."},"+230":{country:"MU",format:"+... .... ...."},"+960":{country:"MV",format:"+... ...-...."},"+265":{country:"MW",format:"+... ... .. .. .."},"+52":{country:"MX",format:"+.. ... ... ... ...."},"+60":{country:"MY",format:"+.. ..-... ...."},"+258":{country:"MZ",format:"+... .. ... ...."},"+264":{country:"NA",format:"+... .. ... ...."},"+687":{country:"NC",format:"+... ........"},"+227":{country:"NE",format:"+... .. .. .. .."},"+672":{country:"NF",format:"+... .. ...."},"+234":{country:"NG",format:"+... ... ... ...."},"+505":{country:"NI",format:"+... .... ...."},"+31":{country:"NL",format:"+.. . ........"},"+47":{country:"NO",format:"+.. ... .. ..."},"+977":{country:"NP",format:"+... ...-......."},"+674":{country:"NR",format:"+... ... ...."},"+683":{country:"NU"},"+64":{country:"NZ",format:"+.. .. ... ...."},"+968":{country:"OM",format:"+... .... ...."},"+507":{country:"PA",format:"+... ....-...."},"+51":{country:"PE",format:"+.. ... ... ..."},"+689":{country:"PF",format:"+... .. .. .."},"+675":{country:"PG",format:"+... ... ...."},"+63":{country:"PH",format:"+.. .... ......"},"+92":{country:"PK",format:"+.. ... ......."},"+48":{country:"PL",format:"+.. .. ... .. .."},"+508":{country:"PM",format:"+... .. .. .."},"+872":{country:"PN"},"+1939":{country:"PR"},"+970":{country:"PS",format:"+... ... ... ..."},"+351":{country:"PT",format:"+... ... ... ..."},"+680":{country:"PW",format:"+... ... ...."},"+595":{country:"PY",format:"+... .. ......."},"+974":{country:"QA",format:"+... .... ...."},"+262":{country:"RE"},"+40":{country:"RO",format:"+.. .. ... ...."},"+381":{country:"RS",format:"+... .. ......."},"+7":{country:"RU",format:"+. ... ...-..-.."},"+250":{country:"RW",format:"+... ... ... ..."},"+966":{country:"SA",format:"+... .. ... ...."},"+677":{country:"SB",format:"+... ... ...."},"+248":{country:"SC",format:"+... . ... ..."},"+249":{country:"SD",format:"+... .. ... ...."},"+46":{country:"SE",format:"+.. ..-... .. .."},"+65":{country:"SG",format:"+.. .... ...."},"+290":{country:"SH"},"+386":{country:"SI",format:"+... .. ... ..."},"+421":{country:"SK",format:"+... ... ... ..."},"+232":{country:"SL",format:"+... .. ......"},"+378":{country:"SM",format:"+... .. .. .. .."},"+221":{country:"SN",format:"+... .. ... .. .."},"+252":{country:"SO",format:"+... .. ......."},"+597":{country:"SR",format:"+... ...-...."},"+211":{country:"SS",format:"+... ... ... ..."},"+239":{country:"ST",format:"+... ... ...."},"+503":{country:"SV",format:"+... .... ...."},"+963":{country:"SY",format:"+... ... ... ..."},"+268":{country:"SZ",format:"+... .... ...."},"+1649":{country:"TC"},"+235":{country:"TD",format:"+... .. .. .. .."},"+228":{country:"TG",format:"+... .. .. .. .."},"+66":{country:"TH",format:"+.. .. ... ...."},"+992":{country:"TJ",format:"+... ... .. ...."},"+690":{country:"TK"},"+670":{country:"TL",format:"+... .... ...."},"+993":{country:"TM",format:"+... .. ..-..-.."},"+216":{country:"TN",format:"+... .. ... ..."},"+676":{country:"TO",format:"+... ... ...."},"+90":{country:"TR",format:"+.. ... ... ...."},"+1868":{country:"TT"},"+688":{country:"TV"},"+886":{country:"TW",format:"+... ... ... ..."},"+255":{country:"TZ",format:"+... ... ... ..."},"+380":{country:"UA",format:"+... .. ... ...."},"+256":{country:"UG",format:"+... ... ......"},"+1":{country:"US"},"+598":{country:"UY",format:"+... .... ...."},"+998":{country:"UZ",format:"+... .. ... .. .."},"+379":{country:"VA"},"+1784":{country:"VC"},"+58":{country:"VE",format:"+.. ...-......."},"+1284":{country:"VG"},"+1340":{country:"VI"},"+84":{country:"VN",format:"+.. .. ... .. .."},"+678":{country:"VU",format:"+... ... ...."},"+681":{country:"WF",format:"+... .. .. .."},"+685":{country:"WS"},"+967":{country:"YE",format:"+... ... ... ..."},"+27":{country:"ZA",format:"+.. .. ... ...."},"+260":{country:"ZM",format:"+... .. ......."},"+263":{country:"ZW",format:"+... .. ... ...."}})}.call(this)},94414(e,t,n){var i,r;n(84864),n(27495),n(25440),n(42762),i="undefined"!=typeof window?window:{},r=function(e,t,n){"use strict";var i,r;if(function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in r=e.lazySizesConfig||e.lazysizesConfig||{},n)t in r||(r[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var o=t.documentElement,a=e.HTMLPictureElement,s="addEventListener",c="getAttribute",l=e[s].bind(e),u=e.setTimeout,d=e.requestAnimationFrame||u,h=e.requestIdleCallback,p=/^picture$/i,f=["load","error","lazyincluded","_lazyloaded"],m={},g=Array.prototype.forEach,v=function(e,t){return m[t]||(m[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),m[t].test(e[c]("class")||"")&&m[t]},y=function(e,t){v(e,t)||e.setAttribute("class",(e[c]("class")||"").trim()+" "+t)},w=function(e,t){var n;(n=v(e,t))&&e.setAttribute("class",(e[c]("class")||"").replace(n," "))},b=function(e,t,n){var i=n?s:"removeEventListener";n&&b(e,t),f.forEach((function(n){e[i](n,t)}))},C=function(e,n,r,o,a){var s=t.createEvent("Event");return r||(r={}),r.instance=i,s.initEvent(n,!o,!a),s.detail=r,e.dispatchEvent(s),s},T=function(t,n){var i;!a&&(i=e.picturefill||r.pf)?(n&&n.src&&!t[c]("srcset")&&t.setAttribute("srcset",n.src),i({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},S=function(e,t){return(getComputedStyle(e,null)||{})[t]},E=function(e,t,n){for(n=n||e.offsetWidth;n<r.minSize&&t&&!e._lazysizesWidth;)n=t.offsetWidth,t=t.parentNode;return n},x=function(){var e,n,i=[],r=[],o=i,a=function(){var t=o;for(o=i.length?r:i,e=!0,n=!1;t.length;)t.shift()();e=!1},s=function(i,r){e&&!r?i.apply(this,arguments):(o.push(i),n||(n=!0,(t.hidden?u:d)(a)))};return s._lsFlush=a,s}(),k=function(e,t){return t?function(){x(e)}:function(){var t=this,n=arguments;x((function(){e.apply(t,n)}))}},_=function(e){var t,i=0,o=r.throttleDelay,a=r.ricTimeout,s=function(){t=!1,i=n.now(),e()},c=h&&a>49?function(){h(s,{timeout:a}),a!==r.ricTimeout&&(a=r.ricTimeout)}:k((function(){u(s)}),!0);return function(e){var r;(e=!0===e)&&(a=33),t||(t=!0,(r=o-(n.now()-i))<0&&(r=0),e||r<9?c():u(c,r))}},A=function(e){var t,i,r=function(){t=null,e()},o=function(){var e=n.now()-i;e<99?u(o,99-e):(h||r)(r)};return function(){i=n.now(),t||(t=u(o,99))}},M=function(){var a,h,f,m,E,M,R,I,O,N,D,L,B=/^img$/i,j=/^iframe$/i,V="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),F=0,H=0,U=-1,z=function(e){H--,(!e||H<0||!e.target)&&(H=0)},G=function(e){return null==L&&(L="hidden"==S(t.body,"visibility")),L||!("hidden"==S(e.parentNode,"visibility")&&"hidden"==S(e,"visibility"))},q=function(e,n){var i,r=e,a=G(e);for(I-=n,D+=n,O-=n,N+=n;a&&(r=r.offsetParent)&&r!=t.body&&r!=o;)(a=(S(r,"opacity")||1)>0)&&"visible"!=S(r,"overflow")&&(i=r.getBoundingClientRect(),a=N>i.left&&O<i.right&&D>i.top-1&&I<i.bottom+1);return a},W=function(){var e,n,s,l,u,d,p,f,g,v,y,w,b=i.elements;if((m=r.loadMode)&&H<8&&(e=b.length)){for(n=0,U++;n<e;n++)if(b[n]&&!b[n]._lazyRace)if(!V||i.prematureUnveil&&i.prematureUnveil(b[n]))Z(b[n]);else if((f=b[n][c]("data-expand"))&&(d=1*f)||(d=F),v||(v=!r.expand||r.expand<1?o.clientHeight>500&&o.clientWidth>500?500:370:r.expand,i._defEx=v,y=v*r.expFactor,w=r.hFac,L=null,F<y&&H<1&&U>2&&m>2&&!t.hidden?(F=y,U=0):F=m>1&&U>1&&H<6?v:0),g!==d&&(M=innerWidth+d*w,R=innerHeight+d,p=-1*d,g=d),s=b[n].getBoundingClientRect(),(D=s.bottom)>=p&&(I=s.top)<=R&&(N=s.right)>=p*w&&(O=s.left)<=M&&(D||N||O||I)&&(r.loadHidden||G(b[n]))&&(h&&H<3&&!f&&(m<3||U<4)||q(b[n],d))){if(Z(b[n]),u=!0,H>9)break}else!u&&h&&!l&&H<4&&U<4&&m>
22&&(a[0]||r.preloadAfterLoad)&&(a[0]||!f&&(D||N||O||I||"auto"!=b[n][c](r.sizesAttr)))&&(l=a[0]||b[n]);l&&!u&&Z(l)}},$=_(W),Y=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(z(e),y(t,r.loadedClass),w(t,r.loadingClass),b(t,J),C(t,"lazyloaded"))},X=k(Y),J=function(e){X({target:e.target})},K=function(e){var t,n=e[c](r.srcsetAttr);(t=r.customMedia[e[c]("data-media")||e[c]("media")])&&e.setAttribute("media",t),n&&e.setAttribute("srcset",n)},Q=k((function(e,t,n,i,o){var a,s,l,d,h,m;(h=C(e,"lazybeforeunveil",t)).defaultPrevented||(i&&(n?y(e,r.autosizesClass):e.setAttribute("sizes",i)),s=e[c](r.srcsetAttr),a=e[c](r.srcAttr),o&&(d=(l=e.parentNode)&&p.test(l.nodeName||"")),m=t.firesLoad||"src"in e&&(s||a||d),h={target:e},y(e,r.loadingClass),m&&(clearTimeout(f),f=u(z,2500),b(e,J,!0)),d&&g.call(l.getElementsByTagName("source"),K),s?e.setAttribute("srcset",s):a&&!d&&(j.test(e.nodeName)?function(e,t){var n=e.getAttribute("data-load-mode")||r.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)}(e,a):e.src=a),o&&(s||d)&&T(e,{src:a})),e._lazyRace&&delete e._lazyRace,w(e,r.lazyClass),x((function(){var t=e.complete&&e.naturalWidth>1;m&&!t||(t&&y(e,r.fastLoadedClass),Y(h),e._lazyCache=!0,u((function(){"_lazyCache"in e&&delete e._lazyCache}),9)),"lazy"==e.loading&&H--}),!0)})),Z=function(e){if(!e._lazyRace){var t,n=B.test(e.nodeName),i=n&&(e[c](r.sizesAttr)||e[c]("sizes")),o="auto"==i;(!o&&h||!n||!e[c]("src")&&!e.srcset||e.complete||v(e,r.errorClass)||!v(e,r.lazyClass))&&(t=C(e,"lazyunveilread").detail,o&&P.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,H++,Q(e,t,o,i,n))}},ee=A((function(){r.loadMode=3,$()})),te=function(){3==r.loadMode&&(r.loadMode=2),ee()},ne=function(){h||(n.now()-E<999?u(ne,999):(h=!0,r.loadMode=3,$(),l("scroll",te,!0)))};return{_:function(){E=n.now(),i.elements=t.getElementsByClassName(r.lazyClass),a=t.getElementsByClassName(r.lazyClass+" "+r.preloadClass),l("scroll",$,!0),l("resize",$,!0),l("pageshow",(function(e){if(e.persisted){var n=t.querySelectorAll("."+r.loadingClass);n.length&&n.forEach&&d((function(){n.forEach((function(e){e.complete&&Z(e)}))}))}})),e.MutationObserver?new MutationObserver($).observe(o,{childList:!0,subtree:!0,attributes:!0}):(o[s]("DOMNodeInserted",$,!0),o[s]("DOMAttrModified",$,!0),setInterval($,999)),l("hashchange",$,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(e){t[s](e,$,!0)})),/d$|^c/.test(t.readyState)?ne():(l("load",ne),t[s]("DOMContentLoaded",$),u(ne,2e4)),i.elements.length?(W(),x._lsFlush()):$()},checkElems:$,unveil:Z,_aLSL:te}}(),P=function(){var e,n=k((function(e,t,n,i){var r,o,a;if(e._lazysizesWidth=i,i+="px",e.setAttribute("sizes",i),p.test(t.nodeName||""))for(o=0,a=(r=t.getElementsByTagName("source")).length;o<a;o++)r[o].setAttribute("sizes",i);n.detail.dataAttr||T(e,n.detail)})),i=function(e,t,i){var r,o=e.parentNode;o&&(i=E(e,o,i),(r=C(e,"lazybeforesizes",{width:i,dataAttr:!!t})).defaultPrevented||(i=r.detail.width)&&i!==e._lazysizesWidth&&n(e,o,r,i))},o=A((function(){var t,n=e.length;if(n)for(t=0;t<n;t++)i(e[t])}));return{_:function(){e=t.getElementsByClassName(r.autosizesClass),l("resize",o)},checkElems:o,updateElem:i}}(),R=function(){!R.i&&t.getElementsByClassName&&(R.i=!0,P._(),M._())};return u((function(){r.init&&R()})),i={cfg:r,autoSizer:P,loader:M,init:R,uP:T,aC:y,rC:w,hC:v,fire:C,gW:E,rAF:x}}(i,i.document,Date),i.lazySizes=r,e.exports&&(e.exports=r)},16e3(e,t,n){"use strict";n.r(t),n.d(t,{AvsService:()=>c});var i,r,o,a=n(20174);function s(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}class c{static isRequired(){return Boolean(s(c,this,l).call(this).required)}static blocksContent(){return Boolean(s(c,this,l).call(this).blocksContent)}static blocksPaidActions(){return Boolean(s(c,this,l).call(this).blocksPaidActions)}static isFreeChatAccessible(){return Boolean(s(c,this,l).call(this).freeChatAccessibility)}static isFreeChatBlurred(){return Boolean(s(c,this,l).call(this).freeChatBlurred)}static isContentBlurred(){return Boolean(s(c,this,l).call(this).freeChatBlurred)}static isGuestIntentEligible(){return this.blocksPaidActions()&&Boolean(s(c,this,l).call(this).guestIntentEligible)}static isGuestSkipEligible(){return this.isGuestIntentEligible()&&s(c,this,u).call(this)}static showModal(){window.modal.showAvs()}static registerAccountRequiredHandler(e){g._=s(c,this,e)}static guardPaidAction(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isGuestAccessFlow,n=void 0!==t&&t;var i,r,o;return!!this.blocksPaidActions()&&(s(c,this,l).call(this).redirectToPayment?(a.o.getInstance().navigate(null!==(i=null===(r=window.webPackConfig)||void 0===r||null===(r=r.paths)||void 0===r?void 0:r.payment2018)&&void 0!==i?i:"/payment2018/"),!0):!n&&s(c,this,u).call(this)?(null!==(o=s(c,this,g)._)&&void 0!==o&&o.call(this)||(s(c,this,d).call(this)?window.modal.showLogin():window.modal.showRegistration()),!0):(p._=s(c,this,e),f._=s(c,this,!1),this.showModal(),!0))}static guardContentAccess(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;
2return!!this.blocksContent()&&(p._=s(c,this,e),f._=s(c,this,!1),this.showModal(),!0)}static hasPendingAction(){return s(c,this,f)._&&null!==s(c,this,p)._}static executePendingAction(){if(s(c,this,p)._){const e=s(c,this,p)._;p._=s(c,this,null),f._=s(c,this,!1),e()}}}function l(){return s(i,this,m)._}function u(){var e;const t=null===(e=window.__USER_STORE__)||void 0===e||null===(e=e.state)||void 0===e?void 0:e.value;return!(null!=t&&t.loggedIn)}function d(){var e;return Boolean(null===(e=window.__USER_STORE__)||void 0===e||null===(e=e.state)||void 0===e||null===(e=e.value)||void 0===e?void 0:e.returning)}function h(){var e;f._=s(i,this,!0),s(i,this,m)._.required=!1,s(i,this,m)._.blocksContent=!1,s(i,this,m)._.blocksPaidActions=!1;const t=null===(e=window.webPackConfig)||void 0===e?void 0:e.avs;t&&(t.required=!1,t.blocksContent=!1,t.blocksPaidActions=!1)}i=c;var p={_:null},f={_:!1},m={_:{...null!==(r=null===(o=window.webPackConfig)||void 0===o?void 0:o.avs)&&void 0!==r?r:{}}},g={_:null};document.addEventListener("vue:avs:verified",(()=>s(i,i,h).call(i)))},20174(e,t,n){"use strict";n.d(t,{o:()=>c});n(3362),n(62953);function i(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}var r,o,a,s=new WeakSet;class c{constructor(){i(this,s)}static getInstance(){return this.instance||(this.instance=new c),this.instance}navigate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(s,this,l).call(this,e,t)}reload(){window.location.reload()}back(){window.history.back()}}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return new Promise((e=>setTimeout(e,t))).then((()=>{window.location.href=e}))}r=c,a=void 0,(o=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(o="instance"))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a},48605(e,t,n){var i,r;i=[n(64794),n(13386),n(41959),n(18412),n(22620),n(17896),n(22778),n(98152),n(50892),n(45800),n(59412),n(64456)],void 0===(r=function(e,t,i,r,o,a,s,c,l,u,d,h){return e.Application.extend({videoElement:null,audioElement:null,mediaElementsStarted:!1,regions:function(){return{headerRegion:"#header",contentRegion:".content__wrapper-target",chatRegion:"#chat",conversationRegion:"#conversation"}},start:function(i){e.Application.prototype.start.apply(this,[i]),this.module("AppModule",{moduleClass:r}),this.module("HeaderModule",{moduleClass:o}),this.module("ZappageModule",{moduleClass:a}),this.module("ProfileModule",{moduleClass:h}),this.module("ChatModule",{moduleClass:s}),this.module("ConversationsModule",{moduleClass:c}),this.module("ConversationModule",{moduleClass:l}),this.module("LoginModule",{moduleClass:u}),d.standaloneHandler&&n.e(941).then((function(){n(90941)("./"+d.standaloneHandler)})).catch(n.oe),t.history.start({pushState:!0,root:d.baseUrl})}})}.apply(t,i))||(e.exports=r)},60550(e,t,n){var i,r;i=[n(18638),n(48605),n(59412),n(81864),n(9340),n(23161)],void 0===(r=function(e,t,n,i,r,o){e.ajaxSetup({cache:!1});var a=new t;return a.videoElement=document.createElement("video"),a.audioElement=document.createElement("audio"),e(document).on("click",(function(e){if(!a.mediaElementsStarted){a.mediaElementsStarted=!0;const e=a.videoElement.play(),t=a.audioElement.play();void 0!==e&&e.catch((()=>{})),void 0!==t&&t.catch((()=>{}))}})),a.getUrlWithExtraParameters=function(e,t){t=t||{};for(let n in t)e+=(-1===e.indexOf("?")?"?":"&")+n+"="+t[n];return e},e(window).on("popstate",(function(t){e("body").addClass("no-animation")})),e(document).on("click","a[href]",(function(t){if(e(this).hasClass("header__link--back"))return t.preventDefault(),void i.back();const a={prop:e(this).prop("href"),attr:e(this).attr("href")},s=location.protocol+"//"+location.host+n.baseUrl;if(a.prop.slice(0,s.length)!==s)return;const c=r.isiOS()&&r.isStandalone(),l=e(this).is("[data-bypass]")||n.standalone;if(!o.isValidURL(a.prop))return;if("_blank"===e(this).attr("target"))return;const u=e=>e.split("#")[0];u(window.location.href)!==u(a.prop)&&e(".wrapper__body").append('<div class="progress"><div class="progress__inner"></div></div>'),!c&&l||(t.preventDefault(),i.navigate(a.attr,{trigger:!0},l))})),a}.apply(t,i))||(e.exports=r)},13386(e,t,n){var i,r,o;n(84864),n(27495),n(25440),n(62953),o=this,i=[n(33129),n(18638),t],r=function(e,t,n){o.Backbone=function(e,t,n,i){var r=e.Backbone,o=[],a=(o.push,o.slice);o.splice,t.VERSION="1.1.2",t.$=i,t.noConflict=function(){return e.Backbone=r,this},t.emulateHTTP=!1,t.emulateJSON=!1;var s=t.Events={on:function(e,t,n){return l(this,"on",e,[t,n])&&t?(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this}),this):this},once:function(e,t,i){if(!l(this,"once",e,[t,i])||!t)return this;var r=this,o=n.once((function(){r.off(e,o),t.apply(this,arguments)}));return o._callback=t,this.on(e,o,i)},off:function(e,t,i){var r,o,a,s,c,u,d,h;if(!this._events||!l(this,"off",e,[t,i]))return this;if(!e&&!t&&!i)return this._events=void 0,this;for(c=0,u=(s=e?[e]:n.keys(this._events)).length;c<u;c++)if(e=s[c],a=this._events[e]){if(this._events[e]=r=[],t||i)for(d=0,h=a.length;d<h;d++)o=a[d],(t&&t!==o.callback&&t!==o.callback._callback||i&&i!==o.context)&&r.push(o);r.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;
2var t=a.call(arguments,1);if(!l(this,"trigger",e,t))return this;var n=this._events[e],i=this._events.all;return n&&u(n,t),i&&u(i,arguments),this},stopListening:function(e,t,i){var r=this._listeningTo;if(!r)return this;var o=!t&&!i;for(var a in i||"object"!=typeof t||(i=this),e&&((r={})[e._listenId]=e),r)(e=r[a]).off(t,i,this),(o||n.isEmpty(e._events))&&delete this._listeningTo[a];return this}},c=/\s+/,l=function(e,t,n,i){if(!n)return!0;if("object"==typeof n){for(var r in n)e[t].apply(e,[r,n[r]].concat(i));return!1}if(c.test(n)){for(var o=n.split(c),a=0,s=o.length;a<s;a++)e[t].apply(e,[o[a]].concat(i));return!1}return!0},u=function(e,t){var n,i=-1,r=e.length,o=t[0],a=t[1],s=t[2];switch(t.length){case 0:for(;++i<r;)(n=e[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=e[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=e[i]).callback.call(n.ctx,o,a);return;case 3:for(;++i<r;)(n=e[i]).callback.call(n.ctx,o,a,s);return;default:for(;++i<r;)(n=e[i]).callback.apply(n.ctx,t);return}},d={listenTo:"on",listenToOnce:"once"};n.each(d,(function(e,t){s[t]=function(t,i,r){return(this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=n.uniqueId("l"))]=t,r||"object"!=typeof i||(r=this),t[e](i,r,this),this}})),s.bind=s.on,s.unbind=s.off,n.extend(t,s);var h=t.Model=function(e,t){var i=e||{};t||(t={}),this.cid=n.uniqueId("c"),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(i=this.parse(i,t)||{}),i=n.defaults({},i,n.result(this,"defaults")),this.set(i,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(h.prototype,s,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,t,i){var r,o,a,s,c,l,u,d;if(null==e)return this;if("object"==typeof e?(o=e,i=t):(o={})[e]=t,i||(i={}),!this._validate(o,i))return!1;for(r in a=i.unset,c=i.silent,s=[],l=this._changing,this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={}),d=this.attributes,u=this._previousAttributes,this.idAttribute in o&&(this.id=o[this.idAttribute]),o)t=o[r],n.isEqual(d[r],t)||s.push(r),n.isEqual(u[r],t)?delete this.changed[r]:this.changed[r]=t,a?delete d[r]:d[r]=t;if(!c){s.length&&(this._pending=i);for(var h=0,p=s.length;h<p;h++)this.trigger("change:"+s[h],this,d[s[h]],i)}if(l)return this;if(!c)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var i in this.attributes)t[i]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&n.clone(this.changed);var t,i=!1,r=this._changing?this._previousAttributes:this.attributes;for(var o in e)n.isEqual(r[o],t=e[o])||((i||(i={}))[o]=t);return i},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){void 0===(e=e?n.clone(e):{}).parse&&(e.parse=!0);var t=this,i=e.success;return e.success=function(n){if(!t.set(t.parse(n,e),e))return!1;i&&i(t,n,e),t.trigger("sync",t,n,e)},B(this,e),this.sync("read",this,e)},save:function(e,t,i){var r,o,a,s=this.attributes;if(null==e||"object"==typeof e?(r=e,i=t):(r={})[e]=t,i=n.extend({validate:!0},i),r&&!i.wait){if(!this.set(r,i))return!1}else if(!this._validate(r,i))return!1;r&&i.wait&&(this.attributes=n.extend({},s,r)),void 0===i.parse&&(i.parse=!0);var c=this,l=i.success;return i.success=function(e){c.attributes=s;var t=c.parse(e,i);if(i.wait&&(t=n.extend(r||{},t)),n.isObject(t)&&!c.set(t,i))return!1;l&&l(c,e,i),c.trigger("sync",c,e,i)},B(this,i),"patch"==(o=this.isNew()?"create":i.patch?"patch":"update")&&(i.attrs=r),a=this.sync(o,this,i),r&&i.wait&&(this.attributes=s),a},destroy:function(e){e=e?n.clone(e):{};var t=this,i=e.success,r=function(){t.trigger("destroy",t,t.collection,e)};if(e.success=function(n){(e.wait||t.isNew())&&r(),i&&i(t,n,e),t.isNew()||t.trigger("sync",t,n,e)},this.isNew())return e.success(),!1;B(this,e);var o=this.sync("delete",this,e);return e.wait||r(),o},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||L();return this.isNew()?e:e.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id
2)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var i=this.validationError=this.validate(e,t)||null;return!i||(this.trigger("invalid",this,i,n.extend(t,{validationError:i})),!1)}});var p=["keys","values","pairs","invert","pick","omit"];n.each(p,(function(e){h.prototype[e]=function(){var t=a.call(arguments);return t.unshift(this.attributes),n[e].apply(n,t)}}));var f=t.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},m={add:!0,remove:!0,merge:!0},g={add:!0,remove:!1};n.extend(f.prototype,s,{model:h,initialize:function(){},toJSON:function(e){return this.map((function(t){return t.toJSON(e)}))},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,g))},remove:function(e,t){var i,r,o,a,s=!n.isArray(e);for(t||(t={}),i=0,r=(e=s?[e]:n.clone(e)).length;i<r;i++)(a=e[i]=this.get(e[i]))&&(delete this._byId[a.id],delete this._byId[a.cid],o=this.indexOf(a),this.models.splice(o,1),this.length--,t.silent||(t.index=o,a.trigger("remove",a,this,t)),this._removeReference(a,t));return s?e[0]:e},set:function(e,t){(t=n.defaults({},t,m)).parse&&(e=this.parse(e,t));var i,r,o,a,s,c,l,u=!n.isArray(e);e=u?e?[e]:[]:n.clone(e);var d=t.at,p=this.model,f=this.comparator&&null==d&&!1!==t.sort,g=n.isString(this.comparator)?this.comparator:null,v=[],y=[],w={},b=t.add,C=t.merge,T=t.remove,S=!(f||!b||!T)&&[];for(i=0,r=e.length;i<r;i++){if(o=(s=e[i]||{})instanceof h?a=s:s[p.prototype.idAttribute||"id"],c=this.get(o))T&&(w[c.cid]=!0),C&&(s=s===a?a.attributes:s,t.parse&&(s=c.parse(s,t)),c.set(s,t),f&&!l&&c.hasChanged(g)&&(l=!0)),e[i]=c;else if(b){if(!(a=e[i]=this._prepareModel(s,t)))continue;v.push(a),this._addReference(a,t)}a=c||a,!S||!a.isNew()&&w[a.id]||S.push(a),w[a.id]=!0}if(T){for(i=0,r=this.length;i<r;++i)w[(a=this.models[i]).cid]||y.push(a);y.length&&this.remove(y,t)}if(v.length||S&&S.length)if(f&&(l=!0),this.length+=v.length,null!=d)for(i=0,r=v.length;i<r;i++)this.models.splice(d+i,0,v[i]);else{S&&(this.models.length=0);var E=S||v;for(i=0,r=E.length;i<r;i++)this.models.push(E[i])}if(l&&this.sort({silent:!0}),!t.silent){for(i=0,r=v.length;i<r;i++)(a=v[i]).trigger("add",a,this,t);(l||S&&S.length)&&this.trigger("sort",this,t)}return u?e[0]:e},reset:function(e,t){t||(t={});for(var i=0,r=this.models.length;i<r;i++)this._removeReference(this.models[i],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return a.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[e.id]||this._byId[e.cid]},at:function(e){return this.models[e]},where:function(e,t){return n.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"]((function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0}))},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return n.invoke(this.models,"get",e)},fetch:function(e){void 0===(e=e?n.clone(e):{}).parse&&(e.parse=!0);var t=e.success,i=this;return e.success=function(n){var r=e.reset?"reset":"set";i[r](n,e),t&&t(i,n,e),i.trigger("sync",i,n,e)},B(this,e),this.sync("read",this,e)},create:function(e,t){if(t=t?n.clone(t):{},!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var i=this,r=t.success;
2return t.success=function(e,n){t.wait&&i.add(e,t),r&&r(e,n,t)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof h)return e;(t=t?n.clone(t):{}).collection=this;var i=new this.model(e,t);return i.validationError?(this.trigger("invalid",this,i.validationError,t),!1):i},_addReference:function(e,t){this._byId[e.cid]=e,null!=e.id&&(this._byId[e.id]=e),e.collection||(e.collection=this),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,i){("add"!==e&&"remove"!==e||n===this)&&("destroy"===e&&this.remove(t,i),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],null!=t.id&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments))}});var v=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];n.each(v,(function(e){f.prototype[e]=function(){var t=a.call(arguments);return t.unshift(this.models),n[e].apply(n,t)}}));var y=["groupBy","countBy","sortBy","indexBy"];n.each(y,(function(e){f.prototype[e]=function(t,i){var r=n.isFunction(t)?t:function(e){return e.get(t)};return n[e](this.models,r,i)}}));var w=t.View=function(e){this.cid=n.uniqueId("view"),e||(e={}),n.extend(this,n.pick(e,C)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},b=/^(\S+)\s*(.*)$/,C=["model","collection","el","id","attributes","className","tagName","events"];n.extend(w.prototype,s,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(e,n){return this.$el&&this.undelegateEvents(),this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0],!1!==n&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=n.result(this,"events")))return this;for(var t in this.undelegateEvents(),e){var i=e[t];if(n.isFunction(i)||(i=this[e[t]]),i){var r=t.match(b),o=r[1],a=r[2];i=n.bind(i,this),o+=".delegateEvents"+this.cid,""===a?this.$el.on(o,i):this.$el.on(o,a,i)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e.class=n.result(this,"className"));var i=t.$("<"+n.result(this,"tagName")+">").attr(e);this.setElement(i,!1)}}}),t.sync=function(e,i,r){var o=S[e];n.defaults(r||(r={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var a={type:o,dataType:"json"};if(r.url||(a.url=n.result(i,"url")||L()),null!=r.data||!i||"create"!==e&&"update"!==e&&"patch"!==e||(a.contentType="application/json",a.data=JSON.stringify(r.attrs||i.toJSON(r))),r.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),r.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){a.type="POST",r.emulateJSON&&(a.data._method=o);var s=r.beforeSend;r.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",o),s)return s.apply(this,arguments)}}"GET"===a.type||r.emulateJSON||(a.processData=!1),"PATCH"===a.type&&T&&(a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var c=r.xhr=t.ajax(n.extend(a,r));return i.trigger("request",i,c,r),c};var T=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),S={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var E=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},x=/\((.*?)\)/g,k=/(\(\?)?:\w+/g,_=/\*\w+/g,A=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(E.prototype,s,{initialize:function(){},route:function(e,i,r){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(i)&&(r=i,i=""),r||(r=this[i]);var o=this;return t.history.route(e,(function(n){var a=o._extractParameters(e,n);o.execute(r,a),o.trigger.apply(o,["route:"+i].concat(a)),o.trigger("route",i,a),t.history.trigger("route",o,i,a)})),this},execute:function(e,t){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var e,t=n.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(A,"\\$&").replace(x,"(?:$1)?").replace(k,(function(e,t){return t?e:"([^/?]+)"})).replace(_,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var i=e.exec(t).slice(1);return n.map(i,(function(e,t){return t===i.length-1?e||null:e?decodeURIComponent(e):null}))}});var M=t.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},P=/^[#\/]|\s+$/g,R=/^\/+|\/+$/g,I=/msie [\w.]+/,O=/\/$/,N=/#.*$/;M.started=!1,n.extend(M.prototype,s,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getFragment:function(e,t){if(null==e)if(this._hasPushState||!this._wantsHashChange||t){e=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(O,"");e.indexOf(n)||(e=e.slice(n.length))}else e=this.getHash();return e.replace(P,"")},start:function(e){if(M.started)throw new Error("Backbone.history has already been started");M.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var i=this.getFragment(),r=document.documentMode,o=I.exec(navigator.userAgent.toLowerCase())&&(!r||r<=7);if(this.root=("/"+this.root+"/").replace(R,"/"),o&&this._wantsHashChange){var a=t.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=a.hide().appendTo("body")[0].contentWindow,this.navigate(i)}this._hasPushState?t.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!o?t.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=i;var s=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&s.hash&&(this.fragment=this.getHash().replace(P,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){t.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),M.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),n.any(this.handlers,(function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(e,t){if(!M.started)return!1;t&&!0!==t||(t={trigger:!!t});var n=this.root+(e=this.getFragment(e||""));if(e=e.replace(N,""),this.fragment!==e){if(this.fragment=e,""===e&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var i=e.href.replace(/(javascript:|#).*$/,"");e.replace(i+"#"+t)}else e.hash="#"+t}}),t.history=new M;var D=function(e,t){var i,r=this;i=e&&n.has(e,"constructor")?e.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,t);var o=function(){this.constructor=i};return o.prototype=r.prototype,i.prototype=new o,e&&n.extend(i.prototype,e),i.__super__=r.prototype,i};h.extend=f.extend=E.extend=w.extend=M.extend=D;var L=function(){throw new Error('A "url" property or function must be specified')},B=function(e,t){var n=t.error;t.error=function(i){n&&n(e,i,t),e.trigger("error",e,i,t)}};return t}(o,n,e,t)}.apply(t,i),void 0===r||(e.exports=r)},64794(e,t,n){var i,r,o;n(72712),n(94490),n(3362),n(27495),n(25440),n(62953),o=this,i=[n(13386),n(33129)],r
2=function(e,t){return o.Marionette=o.Mn=function(e,t,n){"use strict";(function(e,t){var n=e.ChildViewContainer;e.ChildViewContainer=function(e,t){var n=function(e){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),t.each(e,this.add,this)};t.extend(n.prototype,{add:function(e,t){var n=e.cid;return this._views[n]=e,e.model&&(this._indexByModel[e.model.cid]=n),t&&(this._indexByCustom[t]=n),this._updateLength(),this},findByModel:function(e){return this.findByModelCid(e.cid)},findByModelCid:function(e){var t=this._indexByModel[e];return this.findByCid(t)},findByCustom:function(e){var t=this._indexByCustom[e];return this.findByCid(t)},findByIndex:function(e){return t.values(this._views)[e]},findByCid:function(e){return this._views[e]},remove:function(e){var n=e.cid;return e.model&&delete this._indexByModel[e.model.cid],t.any(this._indexByCustom,(function(e,t){if(e===n)return delete this._indexByCustom[t],!0}),this),delete this._views[n],this._updateLength(),this},call:function(e){this.apply(e,t.tail(arguments))},apply:function(e,n){t.each(this._views,(function(i){t.isFunction(i[e])&&i[e].apply(i,n||[])}))},_updateLength:function(){this.length=t.size(this._views)}});var i=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck","reduce"];return t.each(i,(function(e){n.prototype[e]=function(){var n=[t.values(this._views)].concat(t.toArray(arguments));return t[e].apply(t,n)}})),n}(0,t),e.ChildViewContainer.VERSION="0.1.6",e.ChildViewContainer.noConflict=function(){return e.ChildViewContainer=n,this},e.ChildViewContainer})(t,n),function(e,t){var n,i,r=e.Wreqr,o=e.Wreqr={};e.Wreqr.VERSION="1.3.1",e.Wreqr.noConflict=function(){return e.Wreqr=r,this},o.Handlers=function(e,t){var n=function(e){this.options=e,this._wreqrHandlers={},t.isFunction(this.initialize)&&this.initialize(e)};return n.extend=e.Model.extend,t.extend(n.prototype,e.Events,{setHandlers:function(e){t.each(e,(function(e,n){var i=null;t.isObject(e)&&!t.isFunction(e)&&(i=e.context,e=e.callback),this.setHandler(n,e,i)}),this)},setHandler:function(e,t,n){var i={callback:t,context:n};this._wreqrHandlers[e]=i,this.trigger("handler:add",e,t,n)},hasHandler:function(e){return!!this._wreqrHandlers[e]},getHandler:function(e){var t=this._wreqrHandlers[e];if(t)return function(){var e=Array.prototype.slice.apply(arguments);return t.callback.apply(t.context,e)}},removeHandler:function(e){delete this._wreqrHandlers[e]},removeAllHandlers:function(){this._wreqrHandlers={}}}),n}(e,t),o.CommandStorage=(n=function(e){this.options=e,this._commands={},t.isFunction(this.initialize)&&this.initialize(e)},t.extend(n.prototype,e.Events,{getCommands:function(e){var t=this._commands[e];return t||(t={command:e,instances:[]},this._commands[e]=t),t},addCommand:function(e,t){this.getCommands(e).instances.push(t)},clearCommands:function(e){this.getCommands(e).instances=[]}}),n),o.Commands=function(e){return e.Handlers.extend({storageType:e.CommandStorage,constructor:function(t){this.options=t||{},this._initializeStorage(this.options),this.on("handler:add",this._executeCommands,this);var n=Array.prototype.slice.call(arguments);e.Handlers.prototype.constructor.apply(this,n)},execute:function(e,t){e=arguments[0],t=Array.prototype.slice.call(arguments,1),this.hasHandler(e)?this.getHandler(e).apply(this,t):this.storage.addCommand(e,t)},_executeCommands:function(e,n,i){var r=this.storage.getCommands(e);t.each(r.instances,(function(e){n.apply(i,e)})),this.storage.clearCommands(e)},_initializeStorage:function(e){var n,i=e.storageType||this.storageType;n=t.isFunction(i)?new i:i,this.storage=n}})}(o),o.RequestResponse=function(e){return e.Handlers.extend({request:function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);if(this.hasHandler(e))return this.getHandler(e).apply(this,t)}})}(o),o.EventAggregator=function(e,t){var n=function(){};return n.extend=e.Model.extend,t.extend(n.prototype,e.Events),n}(e,t),o.Channel=(i=function(t){this.vent=new e.Wreqr.EventAggregator,this.reqres=new e.Wreqr.RequestResponse,this.commands=new e.Wreqr.Commands,this.channelName=t},t.extend(i.prototype,{reset:function(){return this.vent.off(),this.vent.stopListening(),this.reqres.removeAllHandlers(),this.commands.removeAllHandlers(),this},connectEvents:function(e,t){return this._connect("vent",e,t),this},connectCommands:function(e,t){return this._connect("commands",e,t),this},connectRequests:function(e,t){return this._connect("reqres",e,t),this},_connect:function(e,n,i){if(n){i=i||this;var r="vent"===e?"on":"setHandler";t.each(n,(function(n,o){this[e][r](o,t.bind(n,i))}),this)}}}),i),o.radio=function(e){var n=function(){this._channels={},this.vent={},this.commands={},this.reqres={},this._proxyMethods()};t.extend(n.prototype,{channel:function(e){if(!e)throw new Error("Channel must receive a name");return this._getChannel(e)},_getChannel:function(t){var n=this._channels[t];return n||(n=new e.Channel(t),this._channels[t]=n),n},_proxyMethods:function(){t.each(["vent","commands","reqres"],(function(e){t.each(i[e],(function(t){this[e][t]=r(this,e,t)}),this)}),this)}});var i={vent:["on","off","trigger","once","stopListening","listenTo","listenToOnce"],commands:["execute","setHandler","setHandlers","removeHandler","removeAllHandlers"],reqres:["request","setHandler","setHandlers","removeHandler","removeAllHandlers"]},r=function(e,t,n){return function(i){var r=e._getChannel(i)[t],o=Array.prototype.slice.call(arguments,1
2);return r[n].apply(r,o)}};return new n}(o),e.Wreqr}(t,n);var i=e.Marionette,r=e.Mn,o=t.Marionette={};o.VERSION="2.4.1",o.noConflict=function(){return e.Marionette=i,e.Mn=r,this},t.Marionette=o,o.Deferred=t.$.Deferred,o.extend=t.Model.extend,o.isNodeAttached=function(e){return t.$.contains(document.documentElement,e)},o.mergeOptions=function(e,t){e&&n.extend(this,n.pick(e,t))},o.getOption=function(e,t){if(e&&t)return e.options&&void 0!==e.options[t]?e.options[t]:e[t]},o.proxyGetOption=function(e){return o.getOption(this,e)},o._getValue=function(e,t,i){return n.isFunction(e)&&(e=i?e.apply(t,i):e.call(t)),e},o.normalizeMethods=function(e){return n.reduce(e,(function(e,t,i){return n.isFunction(t)||(t=this[t]),t&&(e[i]=t),e}),{},this)},o.normalizeUIString=function(e,t){return e.replace(/@ui\.[a-zA-Z_$0-9]*/g,(function(e){return t[e.slice(4)]}))},o.normalizeUIKeys=function(e,t){return n.reduce(e,(function(e,n,i){return e[o.normalizeUIString(i,t)]=n,e}),{})},o.normalizeUIValues=function(e,t,i){return n.each(e,(function(r,a){n.isString(r)?e[a]=o.normalizeUIString(r,t):n.isObject(r)&&n.isArray(i)&&(n.extend(r,o.normalizeUIValues(n.pick(r,i),t)),n.each(i,(function(e){var i=r[e];n.isString(i)&&(r[e]=o.normalizeUIString(i,t))})))})),e},o.actAsCollection=function(e,t){var i=["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"];n.each(i,(function(i){e[i]=function(){var e=[n.values(n.result(this,t))].concat(n.toArray(arguments));return n[i].apply(n,e)}}))};var a=o.deprecate=function(e,t){n.isObject(e)&&(e=e.prev+" is going to be removed in the future. Please use "+e.next+" instead."+(e.url?" See: "+e.url:"")),void 0!==t&&t||a._cache[e]||(a._warn("Deprecation warning: "+e),a._cache[e]=!0)};a._warn="undefined"!=typeof console&&(console.warn||console.log)||function(){},a._cache={},o._triggerMethod=function(){var e=/(^|:)(\w)/gi;function t(e,t,n){return n.toUpperCase()}return function(i,r,o){var a=arguments.length<3;a&&(r=(o=r)[0]);var s,c=i["on"+r.replace(e,t)];return n.isFunction(c)&&(s=c.apply(i,a?n.rest(o):o)),n.isFunction(i.trigger)&&(a+o.length>1?i.trigger.apply(i,a?o:[r].concat(n.drop(o,0))):i.trigger(r)),s}}(),o.triggerMethod=function(e){return o._triggerMethod(this,arguments)},o.triggerMethodOn=function(e){return(n.isFunction(e.triggerMethod)?e.triggerMethod:o.triggerMethod).apply(e,n.rest(arguments))},o.MonitorDOMRefresh=function(e){function t(){e._isShown=!0,r()}function i(){e._isRendered=!0,r()}function r(){e._isShown&&e._isRendered&&o.isNodeAttached(e.el)&&n.isFunction(e.triggerMethod)&&e.triggerMethod("dom:refresh")}e.on({show:t,render:i})},function(e){function t(t,i,r,o){var a=o.split(/\s+/);n.each(a,(function(n){var o=t[n];if(!o)throw new e.Error('Method "'+n+'" was configured as an event handler, but does not exist.');t.listenTo(i,r,o)}))}function i(e,t,n,i){e.listenTo(t,n,i)}function r(e,t,i,r){var o=r.split(/\s+/);n.each(o,(function(n){var r=e[n];e.stopListening(t,i,r)}))}function o(e,t,n,i){e.stopListening(t,n,i)}function a(t,i,r,o,a){if(i&&r){if(!n.isObject(r))throw new e.Error({message:"Bindings must be an object or function.",url:"marionette.functions.html#marionettebindentityevents"});r=e._getValue(r,t),n.each(r,(function(e,r){n.isFunction(e)?o(t,i,r,e):a(t,i,r,e)}))}}e.bindEntityEvents=function(e,n,r){a(e,n,r,i,t)},e.unbindEntityEvents=function(e,t,n){a(e,t,n,o,r)},e.proxyBindEntityEvents=function(t,n){return e.bindEntityEvents(this,t,n)},e.proxyUnbindEntityEvents=function(t,n){return e.unbindEntityEvents(this,t,n)}}(o);var s=["description","fileName","lineNumber","name","message","number"];return o.Error=o.extend.call(Error,{urlRoot:"http://marionettejs.com/docs/v"+o.VERSION+"/",constructor:function(e,t){n.isObject(e)?e=(t=e).message:t||(t={});var i=Error.call(this,e);n.extend(this,n.pick(i,s),n.pick(t,s)),this.captureStackTrace(),t.url&&(this.url=this.urlRoot+t.url)},captureStackTrace:function(){Error.captureStackTrace&&Error.captureStackTrace(this,o.Error)},toString:function(){return this.name+": "+this.message+(this.url?" See: "+this.url:"")}}),o.Error.extend=o.extend,o.Callbacks=function(){this._deferred=o.Deferred(),this._callbacks=[]},n.extend(o.Callbacks.prototype,{add:function(e,t){var i=n.result(this._deferred,"promise");this._callbacks.push({cb:e,ctx:t}),i.then((function(n){t&&(n.context=t),e.call(n.context,n.options)}))},run:function(e,t){this._deferred.resolve({options:e,context:t})},reset:function(){var e=this._callbacks;this._deferred=o.Deferred(),this._callbacks=[],n.each(e,(function(e){this.add(e.cb,e.ctx)}),this)}}),o.Controller=function(e){this.options=e||{},n.isFunction(this.initialize)&&this.initialize(this.options)}
2,o.Controller.extend=o.extend,n.extend(o.Controller.prototype,t.Events,{destroy:function(){return o._triggerMethod(this,"before:destroy",arguments),o._triggerMethod(this,"destroy",arguments),this.stopListening(),this.off(),this},triggerMethod:o.triggerMethod,mergeOptions:o.mergeOptions,getOption:o.proxyGetOption}),o.Object=function(e){this.options=n.extend({},n.result(this,"options"),e),this.initialize.apply(this,arguments)},o.Object.extend=o.extend,n.extend(o.Object.prototype,t.Events,{initialize:function(){},destroy:function(){return this.triggerMethod("before:destroy"),this.triggerMethod("destroy"),this.stopListening(),this},triggerMethod:o.triggerMethod,mergeOptions:o.mergeOptions,getOption:o.proxyGetOption,bindEntityEvents:o.proxyBindEntityEvents,unbindEntityEvents:o.proxyUnbindEntityEvents}),o.Region=o.Object.extend({constructor:function(e){if(this.options=e||{},this.el=this.getOption("el"),this.el=this.el instanceof t.$?this.el[0]:this.el,!this.el)throw new o.Error({name:"NoElError",message:'An "el" must be specified for a region.'});this.$el=this.getEl(this.el),o.Object.call(this,e)},show:function(e,t){if(this._ensureElement()){this._ensureViewIsIntact(e);var n=t||{},i=e!==this.currentView,r=!!n.preventDestroy,a=!!n.forceShow,s=!!this.currentView,c=i&&!r,l=i||a;if(s&&this.triggerMethod("before:swapOut",this.currentView,this,t),this.currentView&&delete this.currentView._parent,c?this.empty():s&&l&&this.currentView.off("destroy",this.empty,this),l){e.once("destroy",this.empty,this),e.render(),e._parent=this,s&&this.triggerMethod("before:swap",e,this,t),this.triggerMethod("before:show",e,this,t),o.triggerMethodOn(e,"before:show",e,this,t),s&&this.triggerMethod("swapOut",this.currentView,this,t);var u=o.isNodeAttached(this.el),d=[],h=n.triggerBeforeAttach||this.triggerBeforeAttach,p=n.triggerAttach||this.triggerAttach;return u&&h&&(d=this._displayedViews(e),this._triggerAttach(d,"before:")),this.attachHtml(e),this.currentView=e,u&&p&&(d=this._displayedViews(e),this._triggerAttach(d)),s&&this.triggerMethod("swap",e,this,t),this.triggerMethod("show",e,this,t),o.triggerMethodOn(e,"show",e,this,t),this}return this}},triggerBeforeAttach:!0,triggerAttach:!0,_triggerAttach:function(e,t){var i=(t||"")+"attach";n.each(e,(function(e){o.triggerMethodOn(e,i,e,this)}),this)},_displayedViews:function(e){return n.union([e],n.result(e,"_getNestedViews")||[])},_ensureElement:function(){if(n.isObject(this.el)||(this.$el=this.getEl(this.el),this.el=this.$el[0]),!this.$el||0===this.$el.length){if(this.getOption("allowMissingEl"))return!1;throw new o.Error('An "el" '+this.$el.selector+" must exist in DOM")}return!0},_ensureViewIsIntact:function(e){if(!e)throw new o.Error({name:"ViewNotValid",message:"The view passed is undefined and therefore invalid. You must pass a view instance to show."});if(e.isDestroyed)throw new o.Error({name:"ViewDestroyedError",message:'View (cid: "'+e.cid+'") has already been destroyed and cannot be used.'})},getEl:function(e){return t.$(e,o._getValue(this.options.parentEl,this))},attachHtml:function(e){this.$el.contents().detach(),this.el.appendChild(e.el)},empty:function(e){var t=this.currentView,n=o._getValue(e,"preventDestroy",this);if(t)return t.off("destroy",this.empty,this),this.triggerMethod("before:empty",t),n||this._destroyView(),this.triggerMethod("empty",t),delete this.currentView,n&&this.$el.contents().detach(),this},_destroyView:function(){var e=this.currentView;e.destroy&&!e.isDestroyed?e.destroy():e.remove&&(e.remove(),e.isDestroyed=!0)},attachView:function(e){return this.currentView=e,this},hasView:function(){return!!this.currentView},reset:function(){return this.empty(),this.$el&&(this.el=this.$el.selector),delete this.$el,this}},{buildRegion:function(e,t){if(n.isString(e))return this._buildRegionFromSelector(e,t);if(e.selector||e.el||e.regionClass)return this._buildRegionFromObject(e,t);if(n.isFunction(e))return this._buildRegionFromRegionClass(e);throw new o.Error({message:"Improper region configuration type.",url:"marionette.region.html#region-configuration-types"})},_buildRegionFromSelector:function(e,t){return new t({el:e})},_buildRegionFromObject:function(e,t){var i=e.regionClass||t,r=n.omit(e,"selector","regi
2onClass");return e.selector&&!r.el&&(r.el=e.selector),new i(r)},_buildRegionFromRegionClass:function(e){return new e}}),o.RegionManager=o.Controller.extend({constructor:function(e){this._regions={},this.length=0,o.Controller.call(this,e),this.addRegions(this.getOption("regions"))},addRegions:function(e,t){return e=o._getValue(e,this,arguments),n.reduce(e,(function(e,i,r){return n.isString(i)&&(i={selector:i}),i.selector&&(i=n.defaults({},i,t)),e[r]=this.addRegion(r,i),e}),{},this)},addRegion:function(e,t){var n;return n=t instanceof o.Region?t:o.Region.buildRegion(t,o.Region),this.triggerMethod("before:add:region",e,n),n._parent=this,this._store(e,n),this.triggerMethod("add:region",e,n),n},get:function(e){return this._regions[e]},getRegions:function(){return n.clone(this._regions)},removeRegion:function(e){var t=this._regions[e];return this._remove(e,t),t},removeRegions:function(){var e=this.getRegions();return n.each(this._regions,(function(e,t){this._remove(t,e)}),this),e},emptyRegions:function(){var e=this.getRegions();return n.invoke(e,"empty"),e},destroy:function(){return this.removeRegions(),o.Controller.prototype.destroy.apply(this,arguments)},_store:function(e,t){this._regions[e]||this.length++,this._regions[e]=t},_remove:function(e,t){this.triggerMethod("before:remove:region",e,t),t.empty(),t.stopListening(),delete t._parent,delete this._regions[e],this.length--,this.triggerMethod("remove:region",e,t)}}),o.actAsCollection(o.RegionManager.prototype,"_regions"),o.TemplateCache=function(e){this.templateId=e},n.extend(o.TemplateCache,{templateCaches:{},get:function(e,t){var n=this.templateCaches[e];return n||(n=new o.TemplateCache(e),this.templateCaches[e]=n),n.load(t)},clear:function(){var e,t=n.toArray(arguments),i=t.length;if(i>0)for(e=0;e<i;e++)delete this.templateCaches[t[e]];else this.templateCaches={}}}),n.extend(o.TemplateCache.prototype,{load:function(e){if(this.compiledTemplate)return this.compiledTemplate;var t=this.loadTemplate(this.templateId,e);return this.compiledTemplate=this.compileTemplate(t,e),this.compiledTemplate},loadTemplate:function(e,n){var i=t.$(e).html();if(!i||0===i.length)throw new o.Error({name:"NoTemplateError",message:'Could not find template: "'+e+'"'});return i},compileTemplate:function(e,t){return n.template(e,t)}}),o.Renderer={render:function(e,t){if(!e)throw new o.Error({name:"TemplateNotFoundError",message:"Cannot render the template since its false, null or undefined."});return(n.isFunction(e)?e:o.TemplateCache.get(e))(t)}},o.View=t.View.extend({isDestroyed:!1,constructor:function(e){n.bindAll(this,"render"),e=o._getValue(e,this),this.options=n.extend({},n.result(this,"options"),e),this._behaviors=o.Behaviors(this),t.View.call(this,this.options),o.MonitorDOMRefresh(this)},getTemplate:function(){return this.getOption("template")},serializeModel:function(e){return e.toJSON.apply(e,n.rest(arguments))},mixinTemplateHelpers:function(e){e=e||{};var t=this.getOption("templateHelpers");return t=o._getValue(t,this),n.extend(e,t)},normalizeUIKeys:function(e){var t=n.result(this,"_uiBindings");return o.normalizeUIKeys(e,t||n.result(this,"ui"))},normalizeUIValues:function(e,t){var i=n.result(this,"ui"),r=n.result(this,"_uiBindings");return o.normalizeUIValues(e,r||i,t)},configureTriggers:function(){if(this.triggers){var e=this.normalizeUIKeys(n.result(this,"triggers"));return n.reduce(e,(function(e,t,n){return e[n]=this._buildViewTrigger(t),e}),{},this)}},delegateEvents:function(e){return this._delegateDOMEvents(e),this.bindEntityEvents(this.model,this.getOption("modelEvents")),this.bindEntityEvents(this.collection,this.getOption("collectionEvents")),n.each(this._behaviors,(function(e){e.bindEntityEvents(this.model,e.getOption("modelEvents")),e.bindEntityEvents(this.collection,e.getOption("collectionEvents"))}),this),this},_delegateDOMEvents:function(e){var i=o._getValue(e||this.events,this);i=this.normalizeUIKeys(i),n.isUndefined(e)&&(this.events=i);var r={},a=n.result(this,"behaviorEvents")||{},s=this.configureTriggers(),c=n.result(this,"behaviorTriggers")||{};n.extend(r,a,i,s,c),t.View.prototype.delegateEvents.call(this,r)},undelegateEvents:function(){return t.View.prototype.undelegateEvents.apply(this,arguments),this.unbindEntityEvents(this.model,this.getOption("modelEvents")),this.unbindEntityEvents(this.collection,this.getOption("c
2ollectionEvents")),n.each(this._behaviors,(function(e){e.unbindEntityEvents(this.model,e.getOption("modelEvents")),e.unbindEntityEvents(this.collection,e.getOption("collectionEvents"))}),this),this},_ensureViewIsIntact:function(){if(this.isDestroyed)throw new o.Error({name:"ViewDestroyedError",message:'View (cid: "'+this.cid+'") has already been destroyed and cannot be used.'})},destroy:function(){if(this.isDestroyed)return this;var e=n.toArray(arguments);return this.triggerMethod.apply(this,["before:destroy"].concat(e)),this.isDestroyed=!0,this.triggerMethod.apply(this,["destroy"].concat(e)),this.unbindUIElements(),this.isRendered=!1,this.remove(),n.invoke(this._behaviors,"destroy",e),this},bindUIElements:function(){this._bindUIElements(),n.invoke(this._behaviors,this._bindUIElements)},_bindUIElements:function(){if(this.ui){this._uiBindings||(this._uiBindings=this.ui);var e=n.result(this,"_uiBindings");this.ui={},n.each(e,(function(e,t){this.ui[t]=this.$(e)}),this)}},unbindUIElements:function(){this._unbindUIElements(),n.invoke(this._behaviors,this._unbindUIElements)},_unbindUIElements:function(){this.ui&&this._uiBindings&&(n.each(this.ui,(function(e,t){delete this.ui[t]}),this),this.ui=this._uiBindings,delete this._uiBindings)},_buildViewTrigger:function(e){var t=n.isObject(e),i=n.defaults({},t?e:{},{preventDefault:!0,stopPropagation:!0}),r=t?i.event:e;return function(e){e&&(e.preventDefault&&i.preventDefault&&e.preventDefault(),e.stopPropagation&&i.stopPropagation&&e.stopPropagation());var t={view:this,model:this.model,collection:this.collection};this.triggerMethod(r,t)}},setElement:function(){var e=t.View.prototype.setElement.apply(this,arguments);return n.invoke(this._behaviors,"proxyViewProperties",this),e},triggerMethod:function(){var e=o._triggerMethod(this,arguments);return this._triggerEventOnBehaviors(arguments),this._triggerEventOnParentLayout(arguments[0],n.rest(arguments)),e},_triggerEventOnBehaviors:function(e){for(var t=o._triggerMethod,n=this._behaviors,i=0,r=n&&n.length;i<r;i++)t(n[i],e)},_triggerEventOnParentLayout:function(e,t){var i=this._parentLayoutView();if(i){var r=o.getOption(i,"childViewEventPrefix")+":"+e;o._triggerMethod(i,[r,this].concat(t));var a=o.getOption(i,"childEvents"),s=i.normalizeMethods(a);s&&n.isFunction(s[e])&&s[e].apply(i,[this].concat(t))}},_getImmediateChildren:function(){return[]},_getNestedViews:function(){var e=this._getImmediateChildren();return e.length?n.reduce(e,(function(e,t){return t._getNestedViews?e.concat(t._getNestedViews()):e}),e):e},_getAncestors:function(){for(var e=[],t=this._parent;t;)e.push(t),t=t._parent;return e},_parentLayoutView:function(){var e=this._getAncestors();return n.find(e,(function(e){return e instanceof o.LayoutView}))},normalizeMethods:o.normalizeMethods,mergeOptions:o.mergeOptions,getOption:o.proxyGetOption,bindEntityEvents:o.proxyBindEntityEvents,unbindEntityEvents:o.proxyUnbindEntityEvents}),o.ItemView=o.View.extend({constructor:function(){o.View.apply(this,arguments)},serializeData:function(){if(!this.model&&!this.collection)return{};var e=[this.model||this.collection];return arguments.length&&e.push.apply(e,arguments),this.model?this.serializeModel.apply(this,e):{items:this.serializeCollection.apply(this,e)}},serializeCollection:function(e){return e.toJSON.apply(e,n.rest(arguments))},render:function(){return this._ensureViewIsIntact(),this.triggerMethod("before:render",this),this._renderTemplate(),this.isRendered=!0,this.bindUIElements(),this.triggerMethod("render",this),this},_renderTemplate:function(){var e=this.getTemplate();if(!1!==e){if(!e)throw new o.Error({name:"UndefinedTemplateError",message:"Cannot render the template since it is null or undefined."});var t=this.mixinTemplateHelpers(this.serializeData()),n=o.Renderer.render(e,t,this);return this.attachElContent(n),this}},attachElContent:function(e){return this.$el.html(e),this}}),o.CollectionView=o.View.extend({childViewEventPrefix:"childview",sort:!0,constructor:function(e){this.once("render",this._initialEvents),this._initChildViewStorage(),o.View.apply(this,arguments),this.on("show",this._onShowCalled),this.initRenderBuffer()},initRenderBuffer:function(){this._bufferedChildren=[]}
2,startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){this.isBuffering=!1,this._triggerBeforeShowBufferedChildren(),this.attachBuffer(this),this._triggerShowBufferedChildren(),this.initRenderBuffer()},_triggerBeforeShowBufferedChildren:function(){this._isShown&&n.each(this._bufferedChildren,n.partial(this._triggerMethodOnChild,"before:show"))},_triggerShowBufferedChildren:function(){this._isShown&&(n.each(this._bufferedChildren,n.partial(this._triggerMethodOnChild,"show")),this._bufferedChildren=[])},_triggerMethodOnChild:function(e,t){o.triggerMethodOn(t,e)},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this._onCollectionAdd),this.listenTo(this.collection,"remove",this._onCollectionRemove),this.listenTo(this.collection,"reset",this.render),this.getOption("sort")&&this.listenTo(this.collection,"sort",this._sortViews))},_onCollectionAdd:function(e,t,i){var r;if(r=void 0!==i.at?i.at:n.indexOf(this._filteredSortedModels(),e),this._shouldAddChild(e,r)){this.destroyEmptyView();var o=this.getChildView(e);this.addChild(e,o,r)}},_onCollectionRemove:function(e){var t=this.children.findByModel(e);this.removeChildView(t),this.checkEmpty()},_onShowCalled:function(){this.children.each(n.partial(this._triggerMethodOnChild,"show"))},render:function(){return this._ensureViewIsIntact(),this.triggerMethod("before:render",this),this._renderChildren(),this.isRendered=!0,this.triggerMethod("render",this),this},reorder:function(){var e=this.children,t=this._filteredSortedModels();if(n.find(t,(function(t){return!e.findByModel(t)})))this.render();else{var i=n.map(t,(function(t){return e.findByModel(t).el}));this.triggerMethod("before:reorder"),this._appendReorderedChildren(i),this.triggerMethod("reorder")}},resortView:function(){o.getOption(this,"reorderOnSort")?this.reorder():this.render()},_sortViews:function(){var e=this._filteredSortedModels();n.find(e,(function(e,t){var n=this.children.findByModel(e);return!n||n._index!==t}),this)&&this.resortView()},_emptyViewIndex:-1,_appendReorderedChildren:function(e){this.$el.append(e)},_renderChildren:function(){this.destroyEmptyView(),this.destroyChildren(),this.isEmpty(this.collection)?this.showEmptyView():(this.triggerMethod("before:render:collection",this),this.startBuffering(),this.showCollection(),this.endBuffering(),this.triggerMethod("render:collection",this),this.children.isEmpty()&&this.showEmptyView())},showCollection:function(){var e,t=this._filteredSortedModels();n.each(t,(function(t,n){e=this.getChildView(t),this.addChild(t,e,n)}),this)},_filteredSortedModels:function(){var e,t=this.getViewComparator();return e=t?n.isString(t)||1===t.length?this.collection.sortBy(t,this):n.clone(this.collection.models).sort(n.bind(t,this)):this.collection.models,this.getOption("filter")&&(e=n.filter(e,(function(e,t){return this._shouldAddChild(e,t)}),this)),e},showEmptyView:function(){var e=this.getEmptyView();if(e&&!this._showingEmptyView){this.triggerMethod("before:render:empty"),this._showingEmptyView=!0;var n=new t.Model;this.addEmptyView(n,e),this.triggerMethod("render:empty")}},destroyEmptyView:function(){this._showingEmptyView&&(this.triggerMethod("before:remove:empty"),this.destroyChildren(),delete this._showingEmptyView,this.triggerMethod("remove:empty"))},getEmptyView:function(){return this.getOption("emptyView")},addEmptyView:function(e,t){var i=this.getOption("emptyViewOptions")||this.getOption("childViewOptions");n.isFunction(i)&&(i=i.call(this,e,this._emptyViewIndex));var r=this.buildChildView(e,t,i);r._parent=this,this.proxyChildEvents(r),this._isShown&&o.triggerMethodOn(r,"before:show"),this.children.add(r),this.renderChildView(r,this._emptyViewIndex),this._isShown&&o.triggerMethodOn(r,"show")},getChildView:function(e){var t=this.getOption("childView");if(!t)throw new o.Error({name:"NoChildViewError",message:'A "childView" must be specified'});return t},addChild:function(e,t,n){var i=this.getOption("childViewOptions");i=o._getValue(i,this,[e,n]);var r=this.buildChildView(e,t,i);return this._updateIndices(r,!0,n),this._addChildView(r,n),r._parent=this,r},_updateIndices:function(e,t,n){this.getOption("sort")&&(t&&(e._index=n),this.children.each((function(n){n._index>=e._index&&(n._index+=t?1:-1)})))},_addChildView:function(e,t){this.proxyChildEvents(e),this.triggerMethod("before:add:child",e),this._isShown&&!this.isBuffering&&o.triggerMethodOn(e,"before:show"),this.children.add(e),this.renderChildView(e,t),this._isShown&&!this.isBuffering&&o.triggerMethodOn(e,"show"),this.triggerMethod("add:child",e)},renderChildView:function(e,t){return e.render(),this.attachHtml(this,e,t),e},buildChildView:function(e,t,i){return new t(n.extend({model:e},i))},removeChildView:function(e){return e&&(this.triggerMethod("before:remove:child",e),e.destroy?e.destroy():e.remove&&e.remove(),delete e._parent,this.stopListening(e),this.children.remove(e),this.triggerMethod("remove:child",e),this._updateIndices(e,!1)),e},isEmpty:function(){return!this.collection||0===this.collection.length},checkEmpty:function(){this.isEmpty(this.collection)&&this.showEmptyView()},attachBuffer:function(e){e.$el.append(this._createBuffer(e))},_createBuffer:function(e){var t=document.createDocumentFragment();return n.each(e._bufferedChildren,(function(e){t.appendChild(e.el)})),t},attachHtml:function(e,t,n){e.isBuffering?e._bufferedChildren.splice(n,0,t):e._insertBefore(t,n)||e._insertAfter(t)},_insertBefore:function(e,t){var n;return this.getOption("sort")&&t<this.children.length-1&&(n=this.children.find((function(e){return e._index===t+1}))),!!n&&(n.$el.before(e.el),!0)},_insertAfter:function(e){this.$el.append(e.el)}
2,_initChildViewStorage:function(){this.children=new t.ChildViewContainer},destroy:function(){return this.isDestroyed?this:(this.triggerMethod("before:destroy:collection"),this.destroyChildren(),this.triggerMethod("destroy:collection"),o.View.prototype.destroy.apply(this,arguments))},destroyChildren:function(){var e=this.children.map(n.identity);return this.children.each(this.removeChildView,this),this.checkEmpty(),e},_shouldAddChild:function(e,t){var i=this.getOption("filter");return!n.isFunction(i)||i.call(this,e,t,this.collection)},proxyChildEvents:function(e){var t=this.getOption("childViewEventPrefix");this.listenTo(e,"all",(function(){var i=n.toArray(arguments),r=i[0],o=this.normalizeMethods(n.result(this,"childEvents"));i[0]=t+":"+r,i.splice(1,0,e),void 0!==o&&n.isFunction(o[r])&&o[r].apply(this,i.slice(1)),this.triggerMethod.apply(this,i)}))},_getImmediateChildren:function(){return n.values(this.children._views)},getViewComparator:function(){return this.getOption("viewComparator")}}),o.CompositeView=o.CollectionView.extend({constructor:function(){o.CollectionView.apply(this,arguments)},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this._onCollectionAdd),this.listenTo(this.collection,"remove",this._onCollectionRemove),this.listenTo(this.collection,"reset",this._renderChildren),this.getOption("sort")&&this.listenTo(this.collection,"sort",this._sortViews))},getChildView:function(e){return this.getOption("childView")||this.constructor},serializeData:function(){var e={};return this.model&&(e=n.partial(this.serializeModel,this.model).apply(this,arguments)),e},render:function(){return this._ensureViewIsIntact(),this._isRendering=!0,this.resetChildViewContainer(),this.triggerMethod("before:render",this),this._renderTemplate(),this._renderChildren(),this._isRendering=!1,this.isRendered=!0,this.triggerMethod("render",this),this},_renderChildren:function(){(this.isRendered||this._isRendering)&&o.CollectionView.prototype._renderChildren.call(this)},_renderTemplate:function(){var e={};e=this.serializeData(),e=this.mixinTemplateHelpers(e),this.triggerMethod("before:render:template");var t=this.getTemplate(),n=o.Renderer.render(t,e,this);this.attachElContent(n),this.bindUIElements(),this.triggerMethod("render:template")},attachElContent:function(e){return this.$el.html(e),this},attachBuffer:function(e){this.getChildViewContainer(e).append(this._createBuffer(e))},_insertAfter:function(e){this.getChildViewContainer(this,e).append(e.el)},_appendReorderedChildren:function(e){this.getChildViewContainer(this).append(e)},getChildViewContainer:function(e,t){if("$childViewContainer"in e)return e.$childViewContainer;var n,i=o.getOption(e,"childViewContainer");if(i){var r=o._getValue(i,e);if((n="@"===r.charAt(0)&&e.ui?e.ui[r.substr(4)]:e.$(r)).length<=0)throw new o.Error({name:"ChildViewContainerMissingError",message:'The specified "childViewContainer" was not found: '+e.childViewContainer})}else n=e.$el;return e.$childViewContainer=n,n},resetChildViewContainer:function(){this.$childViewContainer&&delete this.$childViewContainer}}),o.LayoutView=o.ItemView.extend({regionClass:o.Region,options:{destroyImmediate:!1},childViewEventPrefix:"childview",constructor:function(e){e=e||{},this._firstRender=!0,this._initializeRegions(e),o.ItemView.call(this,e)},render:function(){return this._ensureViewIsIntact(),this._firstRender?this._firstRender=!1:this._reInitializeRegions(),o.ItemView.prototype.render.apply(this,arguments)},destroy:function(){return this.isDestroyed?this:(!0===this.getOption("destroyImmediate")&&this.$el.remove(),this.regionManager.destroy(),o.ItemView.prototype.destroy.apply(this,arguments))},showChildView:function(e,t){return this.getRegion(e).show(t)},getChildView:function(e){return this.getRegion(e).currentView},addRegion:function(e,t){var n={};return n[e]=t,this._buildRegions(n)[e]},addRegions:function(e){return this.regions=n.extend({},this.regions,e),this._buildRegions(e)},removeRegion:function(e){return delete this.regions[e],this.regionManager.removeRegion(e)},getRegion:function(e){return this.regionManager.get(e)},getRegions:function(){return this.regionManager.getRegions()},_buildRegions:function(e){var t={regionClass:this.getOption("regionClass"),parentEl:n.partial(n.result,this,"el")};return this.regionManager.addRegions(e,t)},_initializeRegions:function(e){var t;this._initRegionManager(),t=o._getValue(this.regions,this,[e])||{};
2var i=this.getOption.call(e,"regions");i=o._getValue(i,this,[e]),n.extend(t,i),t=this.normalizeUIValues(t,["selector","el"]),this.addRegions(t)},_reInitializeRegions:function(){this.regionManager.invoke("reset")},getRegionManager:function(){return new o.RegionManager},_initRegionManager:function(){this.regionManager=this.getRegionManager(),this.regionManager._parent=this,this.listenTo(this.regionManager,"before:add:region",(function(e){this.triggerMethod("before:add:region",e)})),this.listenTo(this.regionManager,"add:region",(function(e,t){this[e]=t,this.triggerMethod("add:region",e,t)})),this.listenTo(this.regionManager,"before:remove:region",(function(e){this.triggerMethod("before:remove:region",e)})),this.listenTo(this.regionManager,"remove:region",(function(e,t){delete this[e],this.triggerMethod("remove:region",e,t)}))},_getImmediateChildren:function(){return n.chain(this.regionManager.getRegions()).pluck("currentView").compact().value()}}),o.Behavior=o.Object.extend({constructor:function(e,t){this.view=t,this.defaults=n.result(this,"defaults")||{},this.options=n.extend({},this.defaults,e),this.ui=n.extend({},n.result(t,"ui"),n.result(this,"ui")),o.Object.apply(this,arguments)},$:function(){return this.view.$.apply(this.view,arguments)},destroy:function(){return this.stopListening(),this},proxyViewProperties:function(e){this.$el=e.$el,this.el=e.el}}),o.Behaviors=function(e,t){var n=/^(\S+)\s*(.*)$/;function i(e,n){return t.isObject(e.behaviors)?(n=i.parseBehaviors(e,n||t.result(e,"behaviors")),i.wrap(e,n,t.keys(r)),n):{}}var r={behaviorTriggers:function(e,t){return new o(this,t).buildBehaviorTriggers()},behaviorEvents:function(i,r){var o={};return t.each(r,(function(i,r){var s={},c=t.clone(t.result(i,"events"))||{};c=e.normalizeUIKeys(c,a(i));var l=0;t.each(c,(function(e,o){var a=o.match(n),c=a[1]+"."+[this.cid,r,l++," "].join("")+a[2],u=t.isFunction(e)?e:i[e];s[c]=t.bind(u,i)}),this),o=t.extend(o,s)}),this),o}};function o(e,t){this._view=e,this._behaviors=t,this._triggers={}}function a(e){return e._uiBindings||e.ui}return t.extend(i,{behaviorsLookup:function(){throw new e.Error({message:"You must define where your behaviors are stored.",url:"marionette.behaviors.html#behaviorslookup"})},getBehaviorClass:function(t,n){return t.behaviorClass?t.behaviorClass:e._getValue(i.behaviorsLookup,this,[t,n])[n]},parseBehaviors:function(e,n){return t.chain(n).map((function(n,r){var o=new(i.getBehaviorClass(n,r))(n,e),a=i.parseBehaviors(e,t.result(o,"behaviors"));return[o].concat(a)})).flatten().value()},wrap:function(e,n,i){t.each(i,(function(i){e[i]=t.partial(r[i],e[i],n)}))}}),t.extend(o.prototype,{buildBehaviorTriggers:function(){return t.each(this._behaviors,this._buildTriggerHandlersForBehavior,this),this._triggers},_buildTriggerHandlersForBehavior:function(n,i){var r=t.clone(t.result(n,"triggers"))||{};r=e.normalizeUIKeys(r,a(n)),t.each(r,t.bind(this._setHandlerForBehavior,this,n,i))},_setHandlerForBehavior:function(e,t,n,i){var r=i.replace(/^\S+/,(function(e){return e+".behaviortriggers"+t}));this._triggers[r]=this._view._buildViewTrigger(n)}}),i}(o,n),o.AppRouter=t.Router.extend({constructor:function(e){this.options=e||{},t.Router.apply(this,arguments);var n=this.getOption("appRoutes"),i=this._getController();this.processAppRoutes(i,n),this.on("route",this._processOnRoute,this)},appRoute:function(e,t){var n=this._getController();this._addAppRoute(n,e,t)},_processOnRoute:function(e,t){if(n.isFunction(this.onRoute)){var i=n.invert(this.getOption("appRoutes"))[e];this.onRoute(e,i,t)}},processAppRoutes:function(e,t){if(t){var i=n.keys(t).reverse();n.each(i,(function(n){this._addAppRoute(e,n,t[n])}),this)}},_getController:function(){return this.getOption("controller")},_addAppRoute:function(e,t,i){var r=e[i];if(!r)throw new o.Error('Method "'+i+'" was not found on the controller');this.route(t,i,n.bind(r,e))},mergeOptions:o.mergeOptions,getOption:o.proxyGetOption,triggerMethod:o.triggerMethod,bindEntityEvents:o.proxyBindEntityEvents,unbindEntityEvents:o.proxyUnbindEntityEvents}),o.Application=o.Object.extend({constructor:function(e){this._initializeRegions(e),this._initCallbacks=new o.Callbacks,this.submodules={},n.extend(this,e),this._initChannel(),o.Object.call(this,e)},execute:function(){this.commands.execute.apply(this.commands,arguments)},request:function(){return this.reqres.request.apply(this.reqres,arguments)},addInitializer:function(e){this._initCallbacks.add(e)},start:function(e){this.triggerMethod("before:start",e),this._initCallbacks.run(e,this),this.triggerMethod("start",e)},addRegions:function(e){return this._regionManager.addRegions(e)},emptyRegions:function(){return this._regionManager.emptyRegions()},removeRegion:function(e){return this._regionManager.removeRegion(e)},getRegion:function(e){return this._regionManager.get(e)},getRegions:function(){return this._regionManager.getRegions()},module:function(e,t){var i=o.Module.getClass(t),r=n.toArray(arguments);return r.unshift(this),i.create.apply(i,r)},getRegionManager:function(){return new o.RegionManager},_initializeRegions:function(e){var t=n.isFunction(this.regions)?this.regions(e):this.regions||{};this._initRegionManager();var i=o.getOption(e,"regions");return n.isFunction(i)&&(i=i.call(this,e)),n.extend(t,i),this.addRegions(t),this},_initRegionManager:function(){this._regionManager=this.getRegionManager(),this._regionManager._parent=this,this.listenTo(this._regionManager,"before:add:region",(function(){o._triggerMethod(this,"before:add:region",arguments)})),this.listenTo(this._regionManager,"add:region",(function(e,t){this[e]=t,o._triggerMethod(this,"add:region",arguments)})),this.listenTo(this._regionManager,"before:remove:region",(function(){o._triggerMethod(this,"before:remove:region",arguments)})),this.listenTo(this._regionManager,"remove:region",(function(e){delete this[e],o._triggerMethod(this,"remove:region",arguments)}))},_initChannel:function(){this.channelName=n.result(this,"channelName")||"global",this.channel=n.result(this,"channel")||t.Wreqr.radio.channel(this.channelName),this.vent=n.result(this,"vent")||this.channel.vent,this.commands=n.result(this,"commands")||this.channel.commands,this.reqres=n.result(this,"reqres")||this.channel.reqres}}),o.Module=function(e,t,i){this.moduleName=e,this.options=n.extend({},this.options,i),this.initialize=i.initialize||this.initialize,this.submodules={}
2,this._setupInitializersAndFinalizers(),this.app=t,n.isFunction(this.initialize)&&this.initialize(e,t,this.options)},o.Module.extend=o.extend,n.extend(o.Module.prototype,t.Events,{startWithParent:!0,initialize:function(){},addInitializer:function(e){this._initializerCallbacks.add(e)},addFinalizer:function(e){this._finalizerCallbacks.add(e)},start:function(e){this._isInitialized||(n.each(this.submodules,(function(t){t.startWithParent&&t.start(e)})),this.triggerMethod("before:start",e),this._initializerCallbacks.run(e,this),this._isInitialized=!0,this.triggerMethod("start",e))},stop:function(){this._isInitialized&&(this._isInitialized=!1,this.triggerMethod("before:stop"),n.invoke(this.submodules,"stop"),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),this.triggerMethod("stop"))},addDefinition:function(e,t){this._runModuleDefinition(e,t)},_runModuleDefinition:function(e,i){if(e){var r=n.flatten([this,this.app,t,o,t.$,n,i]);e.apply(this,r)}},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new o.Callbacks,this._finalizerCallbacks=new o.Callbacks},triggerMethod:o.triggerMethod}),n.extend(o.Module,{create:function(e,t,i){var r=e,o=n.drop(arguments,3),a=(t=t.split(".")).length,s=[];return s[a-1]=i,n.each(t,(function(t,n){var a=r;r=this._getModule(a,t,e,i),this._addModuleDefinition(a,r,s[n],o)}),this),r},_getModule:function(e,t,i,r,o){var a=n.extend({},r),s=this.getClass(r),c=e[t];return c||(c=new s(t,i,a),e[t]=c,e.submodules[t]=c),c},getClass:function(e){var t=o.Module;return e?e.prototype instanceof t?e:e.moduleClass||t:t},_addModuleDefinition:function(e,t,n,i){var r=this._getDefine(n),o=this._getStartWithParent(n,t);r&&t.addDefinition(r,i),this._addStartWithParent(e,t,o)},_getStartWithParent:function(e,t){var i;return n.isFunction(e)&&e.prototype instanceof o.Module?(i=t.constructor.prototype.startWithParent,!!n.isUndefined(i)||i):!n.isObject(e)||(i=e.startWithParent,!!n.isUndefined(i)||i)},_getDefine:function(e){return!n.isFunction(e)||e.prototype instanceof o.Module?n.isObject(e)?e.define:null:e},_addStartWithParent:function(e,t,n){t.startWithParent=t.startWithParent&&n,t.startWithParent&&!t.startWithParentIsConfigured&&(t.startWithParentIsConfigured=!0,e.addInitializer((function(e){t.startWithParent&&t.start(e)})))}}),o}(o,e,t)}.apply(t,i),void 0===r||(e.exports=r)},41959(e,t,n){var i,r,o;n(3362),r=[n(13386),n(33129)],i=function(e,t){var n=e.Router.prototype.route,i=function(){};t.extend(e.Router.prototype,{before:i,after:i,route:function(e,r,o){o||(o=this[r]);var a=t.bind((function(){var n=[e,t.toArray(arguments)];!1!==(t.isFunction(this.before)?this.before:void 0!==this.before[e]?this.before[e]:i).apply(this,n)&&(o&&o.apply(this,arguments),(t.isFunction(this.after)?this.after:void 0!==this.after[e]?this.after[e]:i).apply(this,n))}),this);return n.call(this,e,r,a)}})},void 0===(o="function"==typeof i?i.apply(t,r):i)||(e.exports=o)},56883(e,t,n){var i;n(27495),n(25440),n(42762),function(r,o,a,s){"use strict";function c(e,t,n){return setTimeout(p(e,n),t)}function l(e,t,n){return!!Array.isArray(e)&&(u(e,n[t],n),!0)}function u(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function d(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),e.apply(this,arguments)}}function h(e,t,n){var i,r=t.prototype;(i=e.prototype=Object.create(r)).constructor=e,i._super=r,n&&se(i,n)}function p(e,t){return function(){return e.apply(t,arguments)}}function f(e,t){return typeof e==ue?e.apply(t&&t[0]||s,t):e}function m(e,t){return e===s?t:e}function g(e,t,n){u(b(t),(function(t){e.addEventListener(t,n,!1)}))}function v(e,t,n){u(b(t),(function(t){e.removeEventListener(t,n,!1)}))}function y(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function w(e,t){return e.indexOf(t)>-1}function b(e){return e.trim().split(/\s+/g)}
vendor: 19,708 bytes, line 2
2function C(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function T(e){return Array.prototype.slice.call(e,0)}function S(e,t,n){for(var i=[],r=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];C(r,a)<0&&i.push(e[o]),r[o]=a,o++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function E(e,t){for(var n,i,r=t[0].toUpperCase()+t.slice(1),o=0;o<ce.length;){if((i=(n=ce[o])?n+r:t)in e)return i;o++}return s}function x(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||r}function k(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){f(e.options.enable,[e])&&n.handler(t)},this.init()}function _(e,t,n){var i=n.pointers.length,r=n.changedPointers.length,o=t&Se&&i-r==0,a=t&(xe|ke)&&i-r==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,r=i.length;n.firstInput||(n.firstInput=M(t)),r>1&&!n.firstMultiple?n.firstMultiple=M(t):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,c=t.center=P(i);t.timeStamp=pe(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=N(s,c),t.distance=O(s,c),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};t.eventType!==Se&&o.eventType!==xe||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=I(t.deltaX,t.deltaY);var l=R(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=l.x,t.overallVelocityY=l.y,t.overallVelocity=he(l.x)>he(l.y)?l.x:l.y,t.scale=a?function(e,t){return O(t[0],t[1],Le)/O(e[0],e[1],Le)}(a.pointers,i):1,t.rotation=a?function(e,t){return N(t[1],t[0],Le)+N(e[1],e[0],Le)}(a.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,A(n,t);var u=e.element;y(t.srcEvent.target,u)&&(u=t.srcEvent.target),t.target=u}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function A(e,t){var n,i,r,o,a=e.lastInterval||t,c=t.timeStamp-a.timeStamp;if(t.eventType!=ke&&(c>Te||a.velocity===s)){var l=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,d=R(c,l,u);i=d.x,r=d.y,n=he(d.x)>he(d.y)?d.x:d.y,o=I(l,u),e.lastInterval=t}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=i,t.velocityY=r,t.direction=o}function M(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:de(e.pointers[n].clientX),clientY:de(e.pointers[n].clientY)},n++;return{timeStamp:pe(),pointers:t,center:P(t),deltaX:e.deltaX,deltaY:e.deltaY}}function P(e){var t=e.length;if(1===t)return{x:de(e[0].clientX),y:de(e[0].clientY)};for(var n=0,i=0,r=0;t>r;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:de(n/t),y:de(i/t)}}function R(e,t,n){return{x:t/e||0,y:n/e||0}}function I(e,t){return e===t?_e:he(e)>=he(t)?0>e?Ae:Me:0>t?Pe:Re}function O(e,t,n){n||(n=De);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function N(e,t,n){n||(n=De);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}function D(){this.evEl=je,this.evWin=Ve,this.pressed=!1,k.apply(this,arguments)}function L(){this.evEl=Ue,this.evWin=ze,k.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function B(){this.evTarget=qe,this.evWin=We,this.started=!1,k.apply(this,arguments)}function j(e,t){var n=T(e.touches),i=T(e.changedTouches);return t&(xe|ke)&&(n=S(n.concat(i),"identifier",!0)),[n,i]}function V(){this.evTarget=Ye,this.targetIds={},k.apply(this,arguments)}function F(e,t){var n=T(e.touches),i=this.targetIds;if(t&(Se|Ee)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=T(e.changedTouches),s=[],c=this.target;if(o=n.filter((function(e){return y(e.target,c)})),t===Se)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),t&(xe|ke)&&delete i[a[r].identifier],r++;return s.length?[S(o.concat(s),"identifier",!0),s]:void 0}function H(){k.apply(this,arguments);var e=p(this.handler,this);this.touch=new V(this.manager,e),this.mouse=new D(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function U(e,t){e&Se?(this.primaryTouch=t.changedPointers[0].identifier,z.call(this,t)):e&(xe|ke)&&z.call(this,t)}function z(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),Xe)}}function G(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(t-r.x),a=Math.abs(n-r.y);if(Je>=o&&Je>=a)return!0}return!1}function q(e,t){this.manager=e,this.set(t)}function W(e){this.options=se({},this.defaults,e||{}),this.id=ge++,this.manager=null,this.options.enable=m(this.options.enable,!0),this.state=at,this.simultaneous={},this.requireFail=[]}function $(e){return e&dt?"cancel":e&lt?"end":e&ct?"move":e&st?"start":""}function Y(e){return e==Re?"down":e==Pe?"up":e==Ae?"left":e==Me?"right":""}function X(e,t){var n=t.manager;return n?n.get(e):e}function J(){W.apply(this,arguments)}function K(){J.apply(this,arguments),this.pX=null,this.pY=null}function Q(){J.apply(this,arguments)}function Z(){W.apply(this,arguments),this._timer=null,this._input=null}function ee(){J.apply(this,arguments)}function te(){J.apply(this,arguments)}function ne(){W.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ie(e,t){return(t=t||{}).recognizers=m(t.recognizers,ie.defaults.preset),new re(e,t)}function re(e,t){this.options=se({},ie.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=function(e){var t=e.options.inputClass;return new(t||(ye?L:we?V:ve?H:D))(e,_)}(this),this.touchAction=new q(this,this.options.touchAction),oe(this,!0),u(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function oe(e,t){var n,i=e.element;i.style&&(u(e.options.cssProps,(function(r,o){n=E(i.style,o),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}function ae(e,t){var n=o.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}var se,ce=["","webkit","Moz","MS","ms","o"],le=o.createElement("div"),ue="function",de=Math.round,he=Math.abs,pe=Date.now;se="function"!=typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==s&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])}return t}:Object.assign;var fe=d((function(e,t,n){for(var i=Object.keys(t),r=0;r<i.length;)(!n||n&&e[i[r]]===s)&&(e[i[r]]=t[i[r]]),r++;return e}),"extend","Use `assign`."),me=d((function(e,t){return fe(e,t,!0)}),"merge","Use `assign`."),ge=1,ve="ontouchstart"in r,ye=E(r,"PointerEvent")!==s,we=ve&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),be="touch",Ce="mouse",Te=25,Se=1,Ee=2,xe=4,ke=8,_e=1,Ae=2,Me=4,Pe=8,Re=16,Ie=Ae|Me,Oe=Pe|Re,Ne=Ie|Oe,De=["x","y"],Le=["clientX","clientY"];k.prototype={handler:function(){},init:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(x(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(x(this.element),this.evWin,this.domHandler)}};var Be={mousedown:Se,mousemove:Ee,mouseup:xe},je="mousedown",Ve="mousemove mouseup";h(D,k,{handler:function(e){var t=Be[e.type];t&Se&&0===e.button&&(this.pressed=!0),t&Ee&&1!==e.which&&(t=xe),this.pressed&&(t&xe&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:Ce,srcEvent:e}))}});var Fe={pointerdown:Se,pointermove:Ee,pointerup:xe,pointercancel:ke,pointerout:ke},He={2:be,3:"pen",4:Ce,5:"kinect"},Ue="pointerdown",ze="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Ue="MSPointerDown",ze="MSPointerMove MSPointerUp MSPointerCancel"),h(L,k,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=Fe[i],o=He[e.pointerType]||e.pointerType,a=o==be,s=C(t,e.pointerId,"pointerId");r&Se&&(0===e.button||a)?0>s&&(t.push(e),s=t.length-1):r&(xe|ke)&&(n=!0),0>s||(t[s]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var Ge={touchstart:Se,touchmove:Ee,touchend:xe,touchcancel:ke},qe="touchstart",We="touchstart touchmove touchend touchcancel";h(B,k,{handler:function(e){var t=Ge[e.type];if(t===Se&&(this.started=!0),this.started){var n=j.call(this,e,t);t&(xe|ke)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:be,srcEvent:e})}}});var $e={touchstart:Se,touchmove:Ee,touchend:xe,touchcancel:ke},Ye="touchstart touchmove touchend touchcancel";h(V,k,{handler:function(e){var t=$e[e.type],n=F.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:be,srcEvent:e})}});var Xe=2500,Je=25;h(H,k,{handler:function(e,t,n){var i=n.pointerType==be,r=n.pointerType==Ce;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)U.call(this,t,n);else if(r&&G.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ke=E(le.style,"touchAction"),Qe=Ke!==s,Ze="compute",et="auto",tt="manipulation",nt="none",it="pan-x",rt="pan-y",ot=function(){if(!Qe)return!1;var e={},t=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||r.CSS.supports("touch-action",n)})),e}();q.prototype={set:function(e){e==Ze&&(e=this.compute()),Qe&&this.manager.element.style&&ot[e]&&(this.manager.element.style[Ke]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return u(this.manager.recognizers,(function(t){f(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(w(e,nt))return nt;var t=w(e,it),n=w(e,rt);return t&&n?nt:t||n?t?it:rt:w(e,tt)?tt:et}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(!this.manager.session.prevented){var i=this.actions,r=w(i,nt)&&!ot[nt],o=w(i,rt)&&!ot[rt],a=w(i,it)&&!ot[it];if(r){var s=1===e.pointers.length,c=e.distance<2,l=e.deltaTime<250;if(s&&c&&l)return}return a&&o?void 0:r||o&&n&Ie||a&&n&Oe?this.preventSrc(t):void 0}t.preventDefault()},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var at=1,st=2,ct=4,lt=8,ut=lt,dt=16,ht=32;W.prototype={defaults:{},set:function(e){return se(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(l(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=X(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return l(e,"dropRecognizeWith",this)||(e=X(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(l(e,"requireFailure",this))return this;var t=this.requireFail;return-1===C(t,e=X(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(l(e,"dropRequireFailure",this))return this;e=X(e,this);var t=C(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,i=this.state;lt>i&&t(n.options.event+$(i)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),i>=lt&&t(n.options.event+$(i))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=ht)},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(ht|at)))return!1;e++}return!0},recognize:function(e){var t=se({},e);return f(this.options.enable,[this,t])?(this.state&(ut|dt|ht)&&(this.state=at),this.state=this.process(t),void(this.state&(st|ct|lt|dt)&&this.tryEmit(t))):(this.reset(),void(this.state=ht))},process:function(e){},getTouchAction:function(){},reset:function(){}},h(J,W,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=t&(st|ct),r=this.attrTest(e);return i&&(n&ke||!r)?t|dt:i||r?n&xe?t|lt:t&st?t|ct:st:ht}}),h(K,J,{defaults:{event:"pan",threshold:10,pointers:1,direction:Ne},getTouchAction:function(){var e=this.options.direction,t=[];return e&Ie&&t.push(rt),e&Oe&&t.push(it),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,o=e.deltaX,a=e.deltaY;return r&t.direction||(t.direction&Ie?(r=0===o?_e:0>o?Ae:Me,n=o!=this.pX,i=Math.abs(e.deltaX)):(r=0===a?_e:0>a?Pe:Re,n=a!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return J.prototype.attrTest.call(this,e)&&(this.state&st||!(this.state&st)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Y(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),h(Q,J,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[nt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&st)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),h(Z,W,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[et]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!i||!n||e.eventType&(xe|ke)&&!r)this.reset();else if(e.eventType&Se)this.reset(),this._timer=c((function(){this.state=ut,this.tryEmit()}),t.time,this);else if(e.eventType&xe)return ut;return ht},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===ut&&(e&&e.eventType&xe?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=pe(),this.manager.emit(this.options.event,this._input)))}}),h(ee,J,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[nt]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&st)}}),h(te,J,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ie|Oe,pointers:1},getTouchAction:function(){return K.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Ie|Oe)?t=e.overallVelocity:n&Ie?t=e.overallVelocityX:n&Oe&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&he(t)>this.options.velocity&&e.eventType&xe},emit:function(e){var t=Y(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),h(ne,W,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[tt]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),e.eventType&Se&&0===this.count)return this.failTimeout();if(i&&r&&n){if(e.eventType!=xe)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||O(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=c((function(){this.state=ut,this.tryEmit()}),t.interval,this),st):ut}return ht},failTimeout:function(){return this._timer=c((function(){this.state=ht}),this.options.interval,this),ht},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ut&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ie.VERSION="2.0.8",ie.defaults={domEvents:!1,touchAction:Ze,enable:!0,inputTarget:null,inputClass:null,preset:[[ee,{enable:!1}],[Q,{enable:!1},["rotate"]],[te,{direction:Ie}],[K,{direction:Ie},["swipe"]],[ne],[ne,{event:"doubletap",taps:2},["tap"]],[Z]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};re.prototype={set:function(e){return se(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var n,i=this.recognizers,r=t.curRecognizer;(!r||r&&r.state&ut)&&(r=t.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===t.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&n.state&(st|ct|lt)&&(r=t.curRecognizer=n),o++}},get:function(e){if(e instanceof W)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(l(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(l(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=C(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return u(b(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return u(b(e),(function(e){t?n[e]&&n[e].splice(C(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&ae(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},destroy:function(){this.element&&oe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},se(ie,{INPUT_START:Se,INPUT_MOVE:Ee,INPUT_END:xe,INPUT_CANCEL:ke,STATE_POSSIBLE:at,STATE_BEGAN:st,STATE_CHANGED:ct,STATE_ENDED:lt,STATE_RECOGNIZED:ut,STATE_CANCELLED:dt,STATE_FAILED:ht,DIRECTION_NONE:_e,DIRECTION_LEFT:Ae,DIRECTION_RIGHT:Me,DIRECTION_UP:Pe,DIRECTION_DOWN:Re,DIRECTION_HORIZONTAL:Ie,DIRECTION_VERTICAL:Oe,DIRECTION_ALL:Ne,Manager:re,Input:k,TouchAction:q,TouchInput:V,MouseInput:D,PointerEventInput:L,TouchMouseInput:H,SingleTouchInput:B,Recognizer:W,AttrRecognizer:J,Tap:ne,Pan:K,Swipe:te,Pinch:Q,Rotate:ee,Press:Z,on:g,off:v,each:u,merge:me,extend:fe,assign:se,inherit:h,bindFn:p,prefixed:E}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=ie,void 0===(i=function(){return ie}.call(t,n,t,e))||(e.exports=i)}(window,document)},60494(e,t,n){var i,r;n(27495),n(25440),i=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}function t(n){function i(t,r,o){var a;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(o=e({path:"/"},i.defaults,o)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}try{a=JSON.stringify(r),/^[\{\[]/.test(a)&&(r=a)}catch(f){}return r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decode
2URIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",r,o.expires&&"; expires="+o.expires.toUTCString(),o.path&&"; path="+o.path,o.domain&&"; domain="+o.domain,o.secure?"; secure":""].join("")}t||(a={});for(var c=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,u=0;u<c.length;u++){var d=c[u].split("="),h=d.slice(1).join("=");'"'===h.charAt(0)&&(h=h.slice(1,-1));try{var p=d[0].replace(l,decodeURIComponent);if(h=n.read?n.read(h,p):n(h,p)||h.replace(l,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(f){}if(t===p){a=h;break}t||(a[p]=h)}catch(f){}}return a}}return i.set=i,i.get=function(e){return i(e)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(t,n){i(t,"",e(n,{expires:-1}))},i.withConverter=t,i}return t((function(){}))},void 0===(r="function"==typeof i?i.call(t,n,t,e):i)||(e.exports=r)},76334(e,t,n){function i(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 i,r,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}n(89463),n(74423),n(27495),n(25440),n(42762),n(62480),n(62953),e.exports=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(n,i){void 0===n&&(n={}),void 0===i&&(i={}
vendor: 4,186 bytes, line 2
2),Object.keys(i).forEach((r=>{void 0===n[r]?n[r]=i[r]:e(i[r])&&e(n[r])&&Object.keys(i[r]).length>0&&t(n[r],i[r])}))}const n={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function r(){const e="undefined"!=typeof document?document:{};return t(e,n),e}const o={document:n,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function a(){const e="undefined"!=typeof window?window:{};return t(e,o),e}function s(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function c(){return Date.now()}function l(e,t){void 0===t&&(t="x");const n=a();let i,r,o;const s=function(e){const t=a();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(r=s.transform||s.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map((e=>e.replace(",","."))).join(", ")),o=new n.WebKitCSSMatrix("none"===r?"":r)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=o.toString().split(",")),"x"===t&&(r=n.WebKitCSSMatrix?o.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(r=n.WebKitCSSMatrix?o.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}function u(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function d(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function h(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const i=n<0||arguments.length<=n?void 0:arguments[n];if(null!=i&&!d(i)){const n=Object.keys(Object(i)).filter((e=>t.indexOf(e)<0));for(let t=0,r=n.length;t<r;t+=1){const r=n[t],o=Object.getOwnPropertyDescriptor(i,r);void 0!==o&&o.enumerable&&(u(e[r])&&u(i[r])?i[r].__swiper__?e[r]=i[r]:h(e[r],i[r]):!u(e[r])&&u(i[r])?(e[r]={},i[r].__swiper__?e[r]=i[r]:h(e[r],i[r])):e[r]=i[r])}}}return e}function p(e,t,n){e.style.setProperty(t,n)}function f(e){let t=e.swiper,n=e.targetPosition,i=e.side;const r=a(),o=-t.translate;let s,c=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(t.cssModeFrameID);const u=n>o?"next":"prev",d=(e,t)=>"next"===u&&e>=t||"prev"===u&&e<=t,h=()=>{s=(new Date).getTime(),null===c&&(c=s);const e=Math.max(Math.min((s-c)/l,1),0),a=.5-Math.cos(e*Math.PI)/2;let u=o+a*(n-o);if(d(u,n)&&(u=n),t.wrapperEl.scrollTo({[i]:u}),d(u,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:u})})),void r.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=r.requestAnimationFrame(h)};h()}function m(e,t){return void 0===t&&(t=""),[...e.children].filter((e=>e.matches(t)))}function g(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function v(e,t){return a().getComputedStyle(e,null).getPropertyValue(t)}function y(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function w(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function b(e,t,n){const i=a();
vendor: 5,857 bytes, line 2
2return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}let C,T,S;function E(){return C||(C=function(){const e=a(),t=r();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),C}function x(e){return void 0===e&&(e={}),T||(T=function(e){let t=(void 0===e?{}:e).userAgent;const n=E(),i=a(),r=i.navigator.platform,o=t||i.navigator.userAgent,s={ios:!1,android:!1},c=i.screen.width,l=i.screen.height,u=o.match(/(Android);?[\s\/]+([\d.]+)?/);let d=o.match(/(iPad).*OS\s([\d_]+)/);const h=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===r;let m="MacIntel"===r;return!d&&m&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf("".concat(c,"x").concat(l))>=0&&(d=o.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),u&&!f&&(s.os="android",s.android=!0),(d||p||h)&&(s.os="ios",s.ios=!0),s}(e)),T}function k(){return S||(S=function(){const e=a();let t=!1;function n(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(n()){const n=String(e.navigator.userAgent);if(n.includes("Version/")){const e=n.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e))),r=i(e,2),o=r[0],a=r[1];t=o<16||16===o&&a<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),S}var _={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const r=n?"unshift":"push";return e.split(" ").forEach((e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][r](t)})),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;function r(){i.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];t.apply(i,o)}return r.__emitterProxy=t,i.on(e,r,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((i,r)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(r,1)}))})),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,i;for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return"string"==typeof o[0]||Array.isArray(o[0])?(t=o[0],n=o.slice(1,o.length),i=e):(t=o[0].events,n=o[0].data,i=o[0].context||e),n.unshift(i),(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(i,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(i,n)}))})),e}},A={updateSize:function(){const e=this;let t,n;const i=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(v(i,"padding-left")||0,10)-parseInt(v(i,"padding-right")||0,10),n=n-parseInt(v(i,"padding-top")||0,10)-parseInt(v(i,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function n(e,n){return parseFloat(e.getPropertyValue(t(n))||0)}const i=e.params,r=e.wrapperEl,o=e.slidesEl,a=e.size,s=e.rtlTranslate,c=e.wrongRTL,l=e.virtual&&i.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,d=m(o,".".concat(e.params.slideClass,", swiper-slide")),h=l?e.virtual.slides.length:d.length;let f=[];const g=[],y=[];let w=i.slidesOffsetBefore;"function"==typeof w&&(w=i.slidesOffsetBefore.call(e));let C=i.slidesOffsetAfter;"function"==typeof C&&(C=i.slidesOffsetAfter.call(e));const T=e.snapGrid.length,S=e.slidesGrid.length;let E=i.spaceBetween,x=-w,k=0,_=0;if(void 0===a)return;"string"==typeof E&&E.indexOf("%")>=0&&(E=parseFloat(E.replace("%",""))/100*a),e.virtualSize=-E,d.forEach((e=>{s?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),i.centeredSlides&&i.cssMode&&(p(r,"--swiper-centered-offset-before",""),p(r,"--swiper-centered-offset-after",""));const A=i.grid&&i.grid.rows>1&&e.grid;let M;A&&e.grid.initSlides(h);const P="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter((e=>void 0!==i.breakpoints[e].slidesPerView)).length>0;for(let p=0;p<h;p+=1){let r;if(M=0,d[p]&&(r=d[p]),A&&e.grid.updateSlide(p,r,h,t),!d[p]||"none"!==v(r,"display")){if("auto"===i.slidesPerView){P&&(d[p].style[t("width")]="");const o=getComputedStyle(r),a=r.style.transform,s=r.style.webkitTransform;if(a&&(r.style.transform="none"),s&&(r.style.webkitTransform="none"),i.roun
2dLengths)M=e.isHorizontal()?b(r,"width",!0):b(r,"height",!0);else{const e=n(o,"width"),t=n(o,"padding-left"),i=n(o,"padding-right"),a=n(o,"margin-left"),s=n(o,"margin-right"),c=o.getPropertyValue("box-sizing");if(c&&"border-box"===c)M=e+a+s;else{const n=r,o=n.clientWidth;M=e+t+i+a+s+(n.offsetWidth-o)}}a&&(r.style.transform=a),s&&(r.style.webkitTransform=s),i.roundLengths&&(M=Math.floor(M))}else M=(a-(i.slidesPerView-1)*E)/i.slidesPerView,i.roundLengths&&(M=Math.floor(M)),d[p]&&(d[p].style[t("width")]="".concat(M,"px"));d[p]&&(d[p].swiperSlideSize=M),y.push(M),i.centeredSlides?(x=x+M/2+k/2+E,0===k&&0!==p&&(x=x-a/2-E),0===p&&(x=x-a/2-E),Math.abs(x)<.001&&(x=0),i.roundLengths&&(x=Math.floor(x)),_%i.slidesPerGroup==0&&f.push(x),g.push(x)):(i.roundLengths&&(x=Math.floor(x)),(_-Math.min(e.params.slidesPerGroupSkip,_))%e.params.slidesPerGroup==0&&f.push(x),g.push(x),x=x+M+E),e.virtualSize+=M+E,k=M,_+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+C,s&&c&&("slide"===i.effect||"coverflow"===i.effect)&&(r.style.width="".concat(e.virtualSize+i.spaceBetween,"px")),i.setWrapperSize&&(r.style[t("width")]="".concat(e.virtualSize+i.spaceBetween,"px")),A&&e.grid.updateWrapperSize(M,f,t),!i.centeredSlides){const t=[];for(let n=0;n<f.length;n+=1){let r=f[n];i.roundLengths&&(r=Math.floor(r)),f[n]<=e.virtualSize-a&&t.push(r)}f=t,Math.floor(e.virtualSize-a)-Math.floor(f[f.length-1])>1&&f.push(e.virtualSize-a)}if(l&&i.loop){const t=y[0]+E;if(i.slidesPerGroup>1){const n=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup),r=t*i.slidesPerGroup;for(let e=0;e<n;e+=1)f.push(f[f.length-1]+r)}for(let n=0;n<e.virtual.slidesBefore+e.virtual.slidesAfter;n+=1)1===i.slidesPerGroup&&f.push(f[f.length-1]+t),g.push(g[g.length-1]+t),e.virtualSize+=t}if(0===f.length&&(f=[0]),0!==i.spaceBetween){const n=e.isHorizontal()&&s?"marginLeft":t("marginRight");d.filter(((e,t)=>!(i.cssMode&&!i.loop)||t!==d.length-1)).forEach((e=>{e.style[n]="".concat(E,"px")}))}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;y.forEach((t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)})),e-=i.spaceBetween;const t=e-a;f=f.map((e=>e<0?-w:e>t?t+C:e))}if(i.centerInsufficientSlides){let e=0;if(y.forEach((t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)})),e-=i.spaceBetween,e<a){const t=(a-e)/2;f.forEach(((e,n)=>{f[n]=e-t})),g.forEach(((e,n)=>{g[n]=e+t}))}}if(Object.assign(e,{slides:d,snapGrid:f,slidesGrid:g,slidesSizesGrid:y}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){p(r,"--swiper-centered-offset-before",-f[0]+"px"),p(r,"--swiper-centered-offset-after",e.size/2-y[y.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(h!==u&&e.emit("slidesLengthChange"),f.length!==T&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),g.length!==S&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const t="".concat(i.containerModifierClass,"backface-hidden"),n=e.el.classList.contains(t);h<=i.maxBackfaceHiddenSlides?n||e.el.classList.add(t):n&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let r,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>i?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{n.push(e)}));else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!i)break;n.push(a(e))}else n.push(a(t.activeIndex));for(r=0;r<n.length;r+=1)if(void 0!==n[r]){const e=n[r].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height="".concat(o,"px"))},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,i=t.slides,r=t.rtlTranslate,o=t.snapGrid;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;
2r&&(a=e),i.forEach((e=>{e.classList.remove(n.slideVisibleClass)})),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let s=0;s<i.length;s+=1){const e=i[s];let c=e.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const l=(a+(n.centeredSlides?t.minTranslate():0)-c)/(e.swiperSlideSize+n.spaceBetween),u=(a-o[0]+(n.centeredSlides?t.minTranslate():0)-c)/(e.swiperSlideSize+n.spaceBetween),d=-(a-c),h=d+t.slidesSizesGrid[s];(d>=0&&d<t.size-1||h>1&&h<=t.size||d<=0&&h>=t.size)&&(t.visibleSlides.push(e),t.visibleSlidesIndexes.push(s),i[s].classList.add(n.slideVisibleClass)),e.progress=r?-l:l,e.originalProgress=r?-u:u}},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let r=t.progress,o=t.isBeginning,a=t.isEnd,s=t.progressLoop;const c=o,l=a;if(0===i)r=0,o=!0,a=!0;else{r=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;o=n||r<=0,a=s||r>=1,n&&(r=0),s&&(r=1)}if(n.loop){const n=t.getSlideIndex(t.slides.filter((e=>"0"===e.getAttribute("data-swiper-slide-index")))[0]),i=t.getSlideIndex(t.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")==t.slides.length-1))[0]),r=t.slidesGrid[n],o=t.slidesGrid[i],a=t.slidesGrid[t.slidesGrid.length-1],c=Math.abs(e);s=c>=r?(c-r)/a:(c+a-o)/a,s>1&&(s-=1)}Object.assign(t,{progress:r,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!c&&t.emit("reachBeginning toEdge"),a&&!l&&t.emit("reachEnd toEdge"),(c&&!o||l&&!a)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,t=e.slides,n=e.params,i=e.slidesEl,r=e.activeIndex,o=e.virtual&&n.virtual.enabled,a=e=>m(i,".".concat(n.slideClass).concat(e,", swiper-slide").concat(e))[0];let s;if(t.forEach((e=>{e.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)})),o)if(n.loop){let t=r-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),s=a('[data-swiper-slide-index="'.concat(t,'"]'))}else s=a('[data-swiper-slide-index="'.concat(r,'"]'));else s=t[r];if(s){s.classList.add(n.slideActiveClass);let e=function(e,t){const n=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(s,".".concat(n.slideClass,", swiper-slide"))[0];n.loop&&!e&&(e=t[0]),e&&e.classList.add(n.slideNextClass);let i=function(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(s,".".concat(n.slideClass,", swiper-slide"))[0];n.loop&&0===!i&&(i=t[t.length-1]),i&&i.classList.add(n.slidePrevClass)}e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,i=t.snapGrid,r=t.params,o=t.activeIndex,a=t.realIndex,s=t.snapIndex;let c,l=e;const u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===l&&(l=function(e){const t=e.slidesGrid,n=e.params,i=e.rtlTranslate?e.translate:-e.translate;let r;for(let o=0;o<t.length;o+=1)void 0!==t[o+1]?i>=t[o]&&i<t[o+1]-(t[o+1]-t[o])/2?r=o:i>=t[o]&&i<t[o+1]&&(r=o+1):i>=t[o]&&(r=o);return n.normalizeSlideIndex&&(r<0||void 0===r)&&(r=0),r}(t)),i.indexOf(n)>=0)c=i.indexOf(n);else{const e=Math.min(r.slidesPerGroupSkip,l);c=e+Math.floor((l-e)/r.slidesPerGroup)}if(c>=i.length&&(c=i.length-1),l===o)return c!==s&&(t.snapIndex=c,t.emit("snapIndexChange")),void(t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=u(l)));let d;d=t.virtual&&r.virtual.enabled&&r.loop?u(l):t.slides[l]?parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10):l,Object.assign(t,{snapIndex:c,realIndex:d,previousIndex:o,activeIndex:l}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),a!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,n=t.params,i=e.closest(".".concat(n.slideClass,", swiper-slide"));let r,o=!1;if(i)for(let a=0;a<t.slides.length;a+=1)if(t.slides[a]===i){o=!0,r=a;break}if(!i||!o)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=i,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=r,n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}},M={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const t=this.params,n=this.rtlTranslate,i=this.translate,r=this.wrapperEl;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let o=l(r,e);return n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,i=n.rtlTranslate,r=n.params,o=n.wrapperEl,a=n.progress;let s,c=0,l=0;n.isHorizontal()?c=i?-e:e:l=e,r.roundLengths&&(c=Math.floor(c),l=Math.floor(l)),r.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-c:-l:r.virtualTranslate||(o.style.transform="translate3d(".concat(c,"px, ").concat(l,"px, 0px)")),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?c:l;const u=n.maxTranslate()-n.minTranslate();s=0===u?0:(e-n.minTranslate())/u,s!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,i,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===i&&(i=!0);const o=this,a=o.params,s=o.wrapperEl;if(o.animating&&a.preventInteractionOnTransition)return!1;const c=o.minTranslate(),l=o.maxTranslate();let u;if(u=i&&e>c?c:i&&e<l?l:e,o.updateProgress(u),a.cssMode){const e=o.isHorizontal();if(0===t)s[e?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return f({swiper:o,targetPosition:-u,side:e?"left"
vendor: 6,952 bytes, line 2
2:"top"}),!0;s.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,r),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,r),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}};function P(e){let t=e.swiper,n=e.runCallbacks,i=e.direction,r=e.step;const o=t.activeIndex,a=t.previousIndex;let s=i;if(s||(s=o>a?"next":o<a?"prev":"reset"),t.emit("transition".concat(r)),n&&o!==a){if("reset"===s)return void t.emit("slideResetTransition".concat(r));t.emit("slideChangeTransition".concat(r)),"next"===s?t.emit("slideNextTransition".concat(r)):t.emit("slidePrevTransition".concat(r))}}var R={slideTo:function(e,t,n,i,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const o=this;let a=e;a<0&&(a=0);const s=o.params,c=o.snapGrid,l=o.slidesGrid,u=o.previousIndex,d=o.activeIndex,h=o.rtlTranslate,p=o.wrapperEl,m=o.enabled;if(o.animating&&s.preventInteractionOnTransition||!m&&!i&&!r)return!1;const g=Math.min(o.params.slidesPerGroupSkip,a);let v=g+Math.floor((a-g)/o.params.slidesPerGroup);v>=c.length&&(v=c.length-1);const y=-c[v];if(s.normalizeSlideIndex)for(let f=0;f<l.length;f+=1){const e=-Math.floor(100*y),t=Math.floor(100*l[f]),n=Math.floor(100*l[f+1]);void 0!==l[f+1]?e>=t&&e<n-(n-t)/2?a=f:e>=t&&e<n&&(a=f+1):e>=t&&(a=f)}if(o.initialized&&a!==d){if(!o.allowSlideNext&&y<o.translate&&y<o.minTranslate())return!1;if(!o.allowSlidePrev&&y>o.translate&&y>o.maxTranslate()&&(d||0)!==a)return!1}let w;if(a!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(y),w=a>d?"next":a<d?"prev":"reset",h&&-y===o.translate||!h&&y===o.translate)return o.updateActiveIndex(a),s.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==s.effect&&o.setTranslate(y),"reset"!==w&&(o.transitionStart(n,w),o.transitionEnd(n,w)),!1;if(s.cssMode){const e=o.isHorizontal(),n=h?y:-y;if(0===t){const t=o.virtual&&o.params.virtual.enabled;t&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),t&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{p[e?"scrollLeft":"scrollTop"]=n}))):p[e?"scrollLeft":"scrollTop"]=n,t&&requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1}))}else{if(!o.support.smoothScroll)return f({swiper:o,targetPosition:n,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(y),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,i),o.transitionStart(n,w),0===t?o.transitionEnd(n,w):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,w))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this;let o=e;return r.params.loop&&(r.virtual&&r.params.virtual.enabled?o+=r.virtual.slidesBefore:o=r.getSlideIndex(r.slides.filter((e=>1*e.getAttribute("data-swiper-slide-index")===o))[0])),r.slideTo(o,t,n,i)},slideNext:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const i=this,r=i.enabled,o=i.params,a=i.animating;if(!r)return i;let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(i.slidesPerViewDynamic("current",!0),1));const c=i.activeIndex<o.slidesPerGroupSkip?1:s,l=i.virtual&&o.virtual.enabled;if(o.loop){if(a&&!l&&o.loopPreventsSliding)return!1;i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft}return o.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+c,e,t,n)},slidePrev:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const i=this,r=i.params,o=i.snapGrid,a=i.slidesGrid,s=i.rtlTranslate,c=i.enabled,l=i.animating;if(!c)return i;const u=i.virtual&&r.virtual.enabled;if(r.loop){if(l&&!u&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=d(s?i.translate:-i.translate),p=o.map((e=>d(e)));let f=o[p.indexOf(h)-1];if(void 0===f&&r.cssMode){let e;o.forEach(((t,n)=>{h>=t&&(e=n)})),void 0!==e&&(f=o[e>0?e-1:e])}let m=0;if(void 0!==f&&(m=a.indexOf(f),m<0&&(m=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(m=m-i.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),r.rewind&&i.isBeginning){const r=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(r,e,t,n)}return i.slideTo(m,e,t,n)},slideReset:function(e,t,n){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===i&&(i=.5);const r=this;let o=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/r.params.slidesPerGroup),c=r.rtlTranslate?r.translate:-r.translate;if(c>=r.snapGrid[s]){const e=r.snapGrid[s];c-e>(r.snapGrid[s+1]-e)*i&&(o+=r.params.slidesPerGroup)}else{const e=r.snapGrid[s-1];c-e<=(r.snapGrid[s]-e)*i&&(o-=r.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,r.slidesGrid.length-1),r.slideTo(o,e,t,n)},slideToClickedSlide:function(){const e=this,t=e.params,n=e.slidesEl,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,o=e.clickedIndex;const a=e.isElement?"swiper-slide":".".concat(t.slideClass);if(t.loop){if(e.animating)return;r=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?o<e.loopedSlides-i/2||o>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),o=e.getSlideIndex(m(n,"".concat(a,'[data-swiper-slide-index="').concat(r,'"]'))[0]),s((()=>{e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-i?(e.loopFix(),o=e.getSlideIndex(m(n,"".concat(a,'[data-swiper-slide-index="').concat(r,'"]'))[0]),s((()=>{e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}},I={loopCreate:function(e){const t=this,n=t.params,i=t.slidesEl;!n.loop||t.virtual&&t.params.virtual.enabled||(m(i,".".concat(n.slideClass,", swiper-slide")).forEac
2h(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"}))},loopFix:function(e){let t=void 0===e?{}:e,n=t.slideRealIndex,i=t.slideTo,r=void 0===i||i,o=t.direction,a=t.setTranslate,s=t.activeSlideIndex,c=t.byController,l=t.byMousewheel;const u=this;if(!u.params.loop)return;u.emit("beforeLoopFix");const d=u.slides,h=u.allowSlidePrev,p=u.allowSlideNext,f=u.slidesEl,m=u.params;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&m.virtual.enabled)return r&&(m.centeredSlides||0!==u.snapIndex?m.centeredSlides&&u.snapIndex<m.slidesPerView?u.slideTo(u.virtual.slides.length+u.snapIndex,0,!1,!0):u.snapIndex===u.snapGrid.length-1&&u.slideTo(u.virtual.slidesBefore,0,!1,!0):u.slideTo(u.virtual.slides.length,0,!1,!0)),u.allowSlidePrev=h,u.allowSlideNext=p,void u.emit("loopFix");const g="auto"===m.slidesPerView?u.slidesPerViewDynamic():Math.ceil(parseFloat(m.slidesPerView,10));let v=m.loopedSlides||g;v%m.slidesPerGroup!=0&&(v+=m.slidesPerGroup-v%m.slidesPerGroup),u.loopedSlides=v;const y=[],w=[];let b=u.activeIndex;void 0===s?s=u.getSlideIndex(u.slides.filter((e=>e.classList.contains("swiper-slide-active")))[0]):b=s;const C="next"===o||!o,T="prev"===o||!o;let S=0,E=0;if(s<v){S=Math.max(v-s,m.slidesPerGroup);for(let e=0;e<v-s;e+=1){const t=e-Math.floor(e/d.length)*d.length;y.push(d.length-t-1)}}else if(s>u.slides.length-2*v){E=Math.max(s-(u.slides.length-2*v),m.slidesPerGroup);for(let e=0;e<E;e+=1){const t=e-Math.floor(e/d.length)*d.length;w.push(t)}}if(T&&y.forEach((e=>{f.prepend(u.slides[e])})),C&&w.forEach((e=>{f.append(u.slides[e])})),u.recalcSlides(),m.watchSlidesProgress&&u.updateSlidesOffset(),r)if(y.length>0&&T)if(void 0===n){const e=u.slidesGrid[b],t=u.slidesGrid[b+S]-e;l?u.setTranslate(u.translate-t):(u.slideTo(b+S,0,!1,!0),a&&(u.touches[u.isHorizontal()?"startX":"startY"]+=t))}else a&&u.slideToLoop(n,0,!1,!0);else if(w.length>0&&C)if(void 0===n){const e=u.slidesGrid[b],t=u.slidesGrid[b-E]-e;l?u.setTranslate(u.translate-t):(u.slideTo(b-E,0,!1,!0),a&&(u.touches[u.isHorizontal()?"startX":"startY"]+=t))}else u.slideToLoop(n,0,!1,!0);if(u.allowSlidePrev=h,u.allowSlideNext=p,u.controller&&u.controller.control&&!c){const e={slideRealIndex:n,slideTo:!1,direction:o,setTranslate:a,activeSlideIndex:s,byController:!0};Array.isArray(u.controller.control)?u.controller.control.forEach((t=>{t.params.loop&&t.loopFix(e)})):u.controller.control instanceof u.constructor&&u.controller.control.params.loop&&u.controller.control.loopFix(e)}u.emit("loopFix")},loopDestroy:function(){const e=this,t=e.slides,n=e.params,i=e.slidesEl;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];t.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;r[t]=e})),t.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),r.forEach((e=>{i.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function O(e){const t=this,n=r(),i=a(),o=t.touchEventsData;o.evCache.push(e);const s=t.params,l=t.touches;if(!t.enabled)return;if(!s.simulateTouch&&"mouse"===e.pointerType)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let u=e;u.originalEvent&&(u=u.originalEvent);let d=u.target;if("wrapper"===s.touchEventsTarget&&!t.wrapperEl.contains(d))return;if("which"in u&&3===u.which)return;if("button"in u&&u.button>0)return;if(o.isTouched&&o.isMoved)return;const h=!!s.noSwipingClass&&""!==s.noSwipingClass,p=e.composedPath?e.composedPath():e.path;h&&u.target&&u.target.shadowRoot&&p&&(d=p[0]);const f=s.noSwipingSelector?s.noSwipingSelector:".".concat(s.noSwipingClass),m=!(!u.target||!u.target.shadowRoot);if(s.noSwiping&&(m?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===r()||n===a())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(f,d):d.closest(f)))return void(t.allowClick=!0);if(s.swipeHandler&&!d.closest(s.swipeHandler))return;l.currentX=u.pageX,l.currentY=u.pageY;const g=l.currentX,v=l.currentY,y=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,w=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(y&&(g<=w||g>=i.innerWidth-w)){if("prevent"!==y)return;e.preventDefault()}Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=g,l.startY=v,o.touchStartTime=c(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(o.allowThresholdMove=!1);let b=!0;d.matches(o.focusableElements)&&(b=!1,"SELECT"===d.nodeName&&(o.isTouched=!1)),n.activeElement&&n.activeElement.matches(o.focusableElements)&&n.activeElement!==d&&n.activeElement.blur();const C=b&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!C||d.isContentEditable||u.preventDefault(),t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",u)}function N(e){const t=r(),n=this,i=n.touchEventsData,o=n.params,a=n.touches,s=n.rtlTranslate;if(!n.enabled)return;if(!o.simulateTouch&&"mouse"===e.pointerType)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",l));const u=i.evCache.findIndex((e=>e.pointerId===l.pointerId));u>=0&&(i.evCache[u]=l);const d=i.evCache.length>1?i.evCache[0]:l,h=d.pageX,p=d.pageY;if(l.preventedByNestedSwiper)return a.startX=h,void(a.startY=p);if(!n.allowTouchMove)return l.target.matches(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(a,{startX:h,startY:p,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:h,currentY:p}),i.touchStartTime=c()));if(o.touchReleaseOnEdges&&!o.loop)if(n.isVertical()){if(p<a.startY&&n.translate<=n.maxTranslate()||p>a.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(h<a.startX&&n.translate<=n.maxTranslate()||h>a.startX&&n.translate>=n.minTranslate())return;if(t.activeElement&&l.target===t.activeElement&&l.target.matches(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);if(i.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;a.currentX=h,a.currentY=p;const f=a.currentX-a.startX,m=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(f**2+m**2)<n.params.threshold)return;if(void 0===i.isScrolling){let e;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?i.isScrolling=!1:f*f+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(f))/Math.PI,i.isScrolling=n.isHorizontal()?e>o.touchAngle:90-e>o.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",l),void 0===i.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(i.startMoving=!0)),i.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&i.evCache.length>1)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!o.cssMode&&l.cancelable&&l.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&l.stopPropagation();let g=n.isHorizontal()?f:m,v=n.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;o.oneWayMovement&&(g=Math.abs(g)*(s?1:-1),v=Math.abs(v)*(s?1:-1)),a.diff=g,g*=o.touchRatio,s&&(g=-g,v=-v);const y=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=v>0?"prev":"next";const w=n.params.loop&&!o.cssMode;if(!i.isMoved){if(w&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});
2n.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,!o.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let b;i.isMoved&&y!==n.touchesDirection&&w&&Math.abs(g)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),b=!0),n.emit("sliderMove",l),i.isMoved=!0,i.currentTranslate=g+i.startTranslate;let C=!0,T=o.resistanceRatio;if(o.touchReleaseOnEdges&&(T=0),g>0?(w&&!b&&i.currentTranslate>(o.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(C=!1,o.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+g)**T))):g<0&&(w&&!b&&i.currentTranslate<(o.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===o.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(C=!1,o.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-g)**T))),C&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),o.threshold>0){if(!(Math.abs(g)>o.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
2if(!i.allowThresholdMove)return i.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,i.currentTranslate=i.startTranslate,void(a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}o.followFinger&&!o.cssMode&&((o.freeMode&&o.freeMode.enabled&&n.freeMode||o.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&o.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function D(e){const t=this,n=t.touchEventsData,i=n.evCache.findIndex((t=>t.pointerId===e.pointerId));if(i>=0&&n.evCache.splice(i,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&("pointercancel"!==e.type||!t.browser.isSafari&&!t.browser.isWebView))return;const r=t.params,o=t.touches,a=t.rtlTranslate,l=t.slidesGrid;if(!t.enabled)return;if(!r.simulateTouch&&"mouse"===e.pointerType)return;let u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=c(),h=d-n.touchStartTime;if(t.allowClick){const e=u.path||u.composedPath&&u.composedPath();t.updateClickedSlide(e&&e[0]||u.target),t.emit("tap click",u),h<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",u)}if(n.lastClickTime=c(),s((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===o.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=r.followFinger?a?t.translate:-t.translate:-n.currentTranslate,r.cssMode)return;if(t.params.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});let f=0,m=t.slidesSizesGrid[0];for(let s=0;s<l.length;s+=s<r.slidesPerGroupSkip?1:r.slidesPerGroup){const e=s<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==l[s+e]?p>=l[s]&&p<l[s+e]&&(f=s,m=l[s+e]-l[s]):p>=l[s]&&(f=s,m=l[l.length-1]-l[l.length-2])}let g=null,v=null;r.rewind&&(t.isBeginning?v=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const y=(p-l[f])/m,w=f<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(h>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?g:f+w):t.slideTo(f)),"prev"===t.swipeDirection&&(y>1-r.longSwipesRatio?t.slideTo(f+w):null!==v&&y<0&&Math.abs(y)>r.longSwipesRatio?t.slideTo(v):t.slideTo(f))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||u.target!==t.navigation.nextEl&&u.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==g?g:f+w),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:f)):u.target===t.navigation.nextEl?t.slideTo(f+w):t.slideTo(f)}}let L;function B(){const e=this,t=e.params,n=e.el;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const i=e.allowSlideNext,r=e.allowSlidePrev,o=e.snapGrid,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(L),L=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function j(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function V(){const e=this,t=e.wrapperEl,n=e.rtlTranslate;if(!e.enabled)return;let i;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();i=0===r?0:(e.translate-e.minTranslate())/r,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}const F=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":".".concat(e.params.slideClass));if(n){const t=n.querySelector(".".concat(e.params.lazyPreloaderClass));t&&t.remove()}};function H(e){F(this,e.target),this.update()}let U=!1;function z(){}const G=(e,t)=>{const n=r(),i=e.params,o=e.el,a=e.wrapperEl,s=e.device,c=!!i.nested,l="on"===t?"addEventListener":"removeEventListener",u=t;o[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:c}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&o[l]("click",e.onClick,!0),i.cssMode&&a[l]("scroll",e.onScroll),i.updateOnWindowResize?e[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",B,!0):e[u]("observerUpdate",B,!0),o[l]("load",e.onLoad,{capture:!0})},q=(e,t)=>
2e.grid&&t.grid&&t.grid.rows>1;var W={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",runCallbacksOnInit:!0,_emitClasses:!1};function $(e,t){return function(n){void 0===n&&(n={});const i=Object.keys(n)[0],r=n[i];"object"==typeof r&&null!==r?(["navigation","pagination","scrollbar"].indexOf(i)>=0&&!0===e[i]&&(e[i]={auto:!0}),i in e&&"enabled"in r?(!0===e[i]&&(e[i]={enabled:!0}),"object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),h(t,n)):h(t,n)):h(t,n)}}const Y={eventsEmitter:_,update:A,translate:M,transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration="".concat(e,"ms")),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,i=n.params;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),P({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,i=n.params;n.animating=!1,i.cssMode||(n.setTransition(0),P({swiper:n,runCallbacks:e,direction:t,step:"End"}))}},slide:R,loop:I,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,t=r(),n=e.params;e.onTouchStart=O.bind(e),e.onTouchMove=N.bind(e),e.onTouchEnd=D.bind(e),n.cssMode&&(e.onScroll=V.bind(e)),e.onClick=j.bind(e),e.onLoad=H.bind(e),U||(t.addEventListener("touchstart",z),U=!0),G(e,"on")},detachEvents:function(){G(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,t=e.realIndex,n=e.initialized,i=e.params,r=e.el,o=i.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const s=(a in o?o[a]:void 0)||e.originalParams,c=q(e,i),l=q(e,s),u=i.enabled;c&&!l?(r.classList.remove("".concat(i.containerModifierClass,"grid"),"".concat(i.containerModifierClass,"grid-column")),e.emitContainerClasses()):!c&&l&&(r.classList.add("".concat(i.containerModifierClass,"grid")),(s.grid.fill&&"column"===s.grid.fill||!s.grid.fill&&"column"===i.grid.fill)&&r.classList.add("".concat(i.containerModifierClass,"grid-column")),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{const n=i[t]&&i[t].enabled,r=s[t]&&s[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()}));const d=s.direction&&s.direction!==i.direction,p=i.loop&&(s.slidesPerView!==i.slidesPerView||d);d&&n&&e.changeDirection(),h(e.params,s);const f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),u&&!f?e.disable():!u&&f&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",s),p&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",s)}
vendor: 2,704 bytes, line 2
2,getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let i=!1;const r=a(),o="window"===t?r.innerHeight:n.clientHeight,s=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}}));s.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let a=0;a<s.length;a+=1){const e=s[a],o=e.point,c=e.value;"window"===t?r.matchMedia("(min-width: ".concat(c,"px)")).matches&&(i=o):c<=n.clientWidth&&(i=o)}return i||"max"}},checkOverflow:{checkOverflow:function(){const e=this,t=e.isLocked,n=e.params,i=n.slidesOffsetBefore;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,t=e.classNames,n=e.params,i=e.rtl,r=e.el,o=e.device,a=function(e,t){const n=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((i=>{e[i]&&n.push(t+i)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),r.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const e=this.el,t=this.classNames;e.classList.remove(...t),this.emitContainerClasses()}}},X={};class J{constructor(){var e;let t,n;for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];1===a.length&&a[0].constructor&&"Object"===Object.prototype.toString.call(a[0]).slice(8,-1)?n=a[0]:(t=(e=i(a,2))[0],n=e[1]),n||(n={}),n=h({},n),t&&!n.el&&(n.el=t);const l=r();if(n.el&&"string"==typeof n.el&&l.querySelectorAll(n.el).length>1){const e=[];return l.querySelectorAll(n.el).forEach((t=>{const i=h({},n,{el:t});e.push(new J(i))})),e}const u=this;u.__swiper__=!0,u.support=E(),u.device=x({userAgent:n.userAgent}),u.browser=k(),u.eventsListeners={},u.eventsAnyListeners=[],u.modules=[...u.__modules__],n.modules&&Array.isArray(n.modules)&&u.modules.push(...n.modules);const d={};u.modules.forEach((e=>{e({params:n,swiper:u,extendParams:$(n,d),on:u.on.bind(u),once:u.once.bind(u),off:u.off.bind(u),emit:u.emit.bind(u)})}));const p=h({},W,d);return u.params=h({},p,X,n),u.originalParams=h({},u.params),u.passedParams=h({}
2,n),u.params&&u.params.on&&Object.keys(u.params.on).forEach((e=>{u.on(e,u.params.on[e])})),u.params&&u.params.onAny&&u.onAny(u.params.onAny),Object.assign(u,{enabled:u.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===u.params.direction,isVertical:()=>"vertical"===u.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:u.params.focusableElements,lastClickTime:c(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.emit("_swiper"),u.params.init&&u.init(),u}getSlideIndex(e){const t=this.slidesEl,n=this.params,i=y(m(t,".".concat(n.slideClass,", swiper-slide"))[0]);return y(e)-i}recalcSlides(){const e=this.slidesEl,t=this.params;this.slides=m(e,".".concat(t.slideClass,", swiper-slide"))}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),r=(n.maxTranslate()-i)*e+i;n.translateTo(r,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const n=this.params,i=this.slides,r=this.slidesGrid,o=this.slidesSizesGrid,a=this.size,s=this.activeIndex;let c=1;if(n.centeredSlides){let e,t=i[s].swiperSlideSize;for(let n=s+1;n<i.length;n+=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,c+=1,t>a&&(e=!0));for(let n=s-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,c+=1,t>a&&(e=!0))}else if("current"===e)for(let l=s+1;l<i.length;l+=1)(t?r[l]+o[l]-r[s]<a:r[l]-r[s]<a)&&(c+=1);else for(let l=s-1;l>=0;l-=1)r[s]-r[l]<a&&(c+=1);return c}update(){const e=this;if(!e||e.destroyed)return;const t=e.snapGrid,n=e.params;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let r;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&F(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(i(),e.params.autoHeight&&e.updateAutoHeight()):(r=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),r||i()),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove("".concat(n.params.containerModifierClass).concat(i)),n.el.classList.add("".concat(n.params.containerModifierClass).concat(e)),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="rtl"):(t.el.classList.remove("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="ltr"),t.update(
2))}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.shadowEl&&(t.isElement=!0);const i=()=>".".concat((t.params.wrapperClass||"").trim().split(" ").join("."));let r=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):m(n,i())[0];return!r&&t.params.createElements&&(r=g("div",t.params.wrapperClass),n.append(r),m(n,".".concat(t.params.slideClass)).forEach((e=>{r.append(e)}))),Object.assign(t,{el:n,wrapperEl:r,slidesEl:t.isElement?n:r,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===v(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===v(n,"direction")),wrongRTL:"-webkit-box"===v(r,"display")}),!0}init(e){const t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach((e=>{e.complete?F(t,e):e.addEventListener("load",(e=>{F(t,e.target)}))})),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,i=n.params,r=n.el,o=n.wrapperEl,a=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),r.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach((e=>{e.classList.remove(i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.el.swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){h(X,e)}static get extendedDefaults(){return X}static get defaults(){return W}static installModule(e){J.prototype.__modules__||(J.prototype.__modules__=[]);const t=J.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>J.installModule(e))),J):(J.installModule(e),J)}}function K(e){return void 0===e&&(e=""),".".concat(e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,"."))}Object.keys(Y).forEach((e=>
2{Object.keys(Y[e]).forEach((t=>{J.prototype[t]=Y[e][t]}))})),J.use([function(e){let t=e.swiper,n=e.on,i=e.emit;const r=a();let o=null,s=null;const c=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};n("init",(()=>{t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver((e=>{s=r.requestAnimationFrame((()=>{const n=t.width,i=t.height;let r=n,o=i;e.forEach((e=>{let n=e.contentBoxSize,i=e.contentRect,a=e.target;a&&a!==t.el||(r=i?i.width:(n[0]||n).inlineSize,o=i?i.height:(n[0]||n).blockSize)})),r===n&&o===i||c()}))})),o.observe(t.el)):(r.addEventListener("resize",c),r.addEventListener("orientationchange",l))})),n("destroy",(()=>{s&&r.cancelAnimationFrame(s),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),r.removeEventListener("resize",c),r.removeEventListener("orientationchange",l)}))},function(e){let t=e.swiper,n=e.extendParams,i=e.on,r=e.emit;const o=[],s=a(),c=function(e,n){void 0===n&&(n={});const i=new(s.MutationObserver||s.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void r("observerUpdate",e[0]);const n=function(){r("observerUpdate",e[0])};s.requestAnimationFrame?s.requestAnimationFrame(n):s.setTimeout(n,0)}));i.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:void 0===n.childList||n.childList,characterData:void 0===n.characterData||n.characterData}),o.push(i)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=w(t.el);for(let t=0;t<e.length;t+=1)c(e[t])}c(t.el,{childList:t.params.observeSlideChildren}),c(t.wrapperEl,{attributes:!1})}})),i("destroy",(()=>{o.forEach((e=>{e.disconnect()})),o.splice(0,o.length)}))}]);const Q=[function(e){let t,n,i,r=e.swiper;(0,e.extendParams)({grid:{rows:1,fill:"column"}}),r.grid={initSlides:e=>{const o=r.params.slidesPerView,a=r.params.grid,s=a.rows,c=a.fill;n=t/s,i=Math.floor(e/s),t=Math.floor(e/s)===e/s?e:Math.ceil(e/s)*s,"auto"!==o&&"row"===c&&(t=Math.max(t,o*s))},updateSlide:(e,o,a,s)=>{const c=r.params,l=c.slidesPerGroup,u=c.spaceBetween,d=r.params.grid,h=d.rows,p=d.fill;let f,m,g;if("row"===p&&l>1){const n=Math.floor(e/(l*h)),i=e-h*l*n,r=0===n?l:Math.min(Math.ceil((a-n*h*l)/h),l);g=Math.floor(i/r),m=i-g*r+n*l,f=m+g*t/h,o.style.order=f}else"column"===p?(m=Math.floor(e/h),g=e-m*h,(m>i||m===i&&g===h-1)&&(g+=1,g>=h&&(g=0,m+=1))):(g=Math.floor(e/n),m=e-g*n);o.style[s("margin-top")]=0!==g?u&&"".concat(u,"px"):""},updateWrapperSize:(e,n,i)=>{const o=r.params,a=o.spaceBetween,s=o.centeredSlides,c=o.roundLengths,l=r.params.grid.rows;if(r.virtualSize=(e+a)*t,r.virtualSize=Math.ceil(r.virtualSize/l)-a,r.wrapperEl.style[i("width")]="".concat(r.virtualSize+a,"px"),s){const e=[];for(let t=0;t<n.length;t+=1){let i=n[t];c&&(i=Math.floor(i)),n[t]<r.virtualSize+n[0]&&e.push(i)}n.splice(0,n.length),n.push(...e)}}}},function(e){let t=e.swiper,n=e.extendParams,i=e.on,r=e.emit;const o="swiper-pagination";let a;n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:"".concat(o,"-bullet"),bulletActiveClass:"".concat(o,"-bullet-active"),modifierClass:"".concat(o,"-"),currentClass:"".concat(o,"-current"),totalClass:"".concat(o,"-total"),hiddenClass:"".concat(o,"-hidden"),progressbarFillClass:"".concat(o,"-progressbar-fill"),progressbarOppositeClass:"".concat(o,"-progressbar-opposite"),clickableClass:"".concat(o,"-clickable"),lockClass:"".concat(o,"-lock"),horizontalClass:"".concat(o,"-horizontal"),verticalClass:"".concat(o,"-vertical"),paginationDisabledClass:"".concat(o,"-disabled")}}),t.pagination={el:null,bullets:[]};let s=0;const c=e=>(Array.isArray(e)||(e=[e].filter((e=>!!e))),e);function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function u(e,n){const i=t.params.pagination.bulletActiveClass;e&&(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&(e.classList.add("".concat(i,"-").concat(n)),(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&e.classList.add("".concat(i,"-").concat(n,"-").concat(n)))}function d(e){const n=e.target.closest(K(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const i=y(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===i)return;(i<t.loopedSlides||i>t.slides.length-t.loopedSlides)&&t.loopFix({direction:i<t.loopedSlides?"prev":"next",activeSlideIndex:i,slideTo:!1}),t.slideToLoop(i)}else t.slideTo(i)}function h(){const e=t.rtl,n=t.params.pagination;if(l())return;let i,o=t.pagination.el;o=c(o);const d=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,h=t.params.loop?Math.
2ceil(d/t.params.slidesPerGroup):t.snapGrid.length;if(i=t.params.loop?t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex:void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let c,l,d;if(n.dynamicBullets&&(a=b(r[0],t.isHorizontal()?"width":"height",!0),o.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=a*(n.dynamicMainBullets+4)+"px"})),n.dynamicMainBullets>1&&void 0!==t.previousIndex&&(s+=i-(t.previousIndex||0),s>n.dynamicMainBullets-1?s=n.dynamicMainBullets-1:s<0&&(s=0)),c=Math.max(i-s,0),l=c+(Math.min(r.length,n.dynamicMainBullets)-1),d=(l+c)/2),r.forEach((e=>{e.classList.remove(...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>"".concat(n.bulletActiveClass).concat(e))))})),o.length>1)r.forEach((e=>{const t=y(e);t===i&&e.classList.add(n.bulletActiveClass),n.dynamicBullets&&(t>=c&&t<=l&&e.classList.add("".concat(n.bulletActiveClass,"-main")),t===c&&u(e,"prev"),t===l&&u(e,"next"))}));else{const e=r[i];if(e&&e.classList.add(n.bulletActiveClass),n.dynamicBullets){const e=r[c],t=r[l];for(let i=c;i<=l;i+=1)r[i]&&r[i].classList.add("".concat(n.bulletActiveClass,"-main"));u(e,"prev"),u(t,"next")}}if(n.dynamicBullets){const i=Math.min(r.length,n.dynamicMainBullets+4),o=(a*i-a)/2-d*a,s=e?"right":"left";r.forEach((e=>{e.style[t.isHorizontal()?s:"top"]="".concat(o,"px")}))}}o.forEach(((e,o)=>{if("fraction"===n.type&&(e.querySelectorAll(K(n.currentClass)).forEach((e=>{e.textContent=n.formatFractionCurrent(i+1)})),e.querySelectorAll(K(n.totalClass)).forEach((e=>{e.textContent=n.formatFractionTotal(h)}))),"progressbar"===n.type){let r;r=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const o=(i+1)/h;let a=1,s=1;"horizontal"===r?a=o:s=o,e.querySelectorAll(K(n.progressbarFillClass)).forEach((e=>{e.style.transform="translate3d(0,0,0) scaleX(".concat(a,") scaleY(").concat(s,")"),e.style.transitionDuration="".concat(t.params.speed,"ms")}))}"custom"===n.type&&n.renderCustom?(e.innerHTML=n.renderCustom(t,i+1,h),0===o&&r("paginationRender",e)):(0===o&&r("paginationRender",e),r("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)}))}function p(){const e=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;let i=t.pagination.el;i=c(i);let o="";if("bullets"===e.type){let i=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&i>n&&(i=n);for(let n=0;n<i;n+=1)e.renderBullet?o+=e.renderBullet.call(t,n,e.bulletClass):o+="<".concat(e.bulletElement,' class="').concat(e.bulletClass,'"></').concat(e.bulletElement,">")}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):'<span class="'.concat(e.currentClass,'"></span> / <span class="').concat(e.totalClass,'"></span>')),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):'<span class="'.concat(e.progressbarFillClass,'"></span>')),i.forEach((n=>{"custom"!==e.type&&(n.innerHTML=o||""),"bullets"===e.type&&(t.pagination.bullets=[...n.querySelectorAll(K(e.bulletClass))])})),"custom"!==e.type&&r("paginationRender",i[0])}function f(){t.params.pagination=function(e,t,n,i){return e.params.createElements&&Object.keys(i).forEac
vendor: 1,305 bytes, line 2
2h((r=>{if(!n[r]&&!0===n.auto){let o=m(e.el,".".concat(i[r]))[0];o||(o=g("div",i[r]),o.className=i[r],e.el.append(o)),n[r]=o,t[r]=o}})),n}(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"==typeof e.el&&t.isElement&&(n=t.el.shadowRoot.querySelector(e.el)),n||"string"!=typeof e.el||(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.filter((e=>w(e,".swiper")[0]===t.el))[0])),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}),n=c(n),n.forEach((n=>{"bullets"===e.type&&e.clickable&&n.classList.add(e.clickableClass),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add("".concat(e.modifierClass).concat(e.type,"-dynamic")),s=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",d),t.enabled||n.classList.add(e.lockClass)})))}function v(){const e=t.params.pagination;if(l())return;let n=t.pagination.el;
2n&&(n=c(n),n.forEach((n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&n.removeEventListener("click",d)}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(e.bulletActiveClass)))}i("init",(()=>{!1===t.params.pagination.enabled?C():(f(),p(),h())})),i("activeIndexChange",(()=>{void 0===t.snapIndex&&h()})),i("snapIndexChange",(()=>{h()})),i("snapGridLengthChange",(()=>{p(),h()})),i("destroy",(()=>{v()})),i("enable disable",(()=>{let e=t.pagination.el;e&&(e=c(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),i("lock unlock",(()=>{h()})),i("click",((e,n)=>{const i=n.target;let o=t.pagination.el;if(Array.isArray(o)||(o=[o].filter((e=>!!e))),t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!i.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&i===t.navigation.nextEl||t.navigation.prevEl&&i===t.navigation.prevEl))return;const e=o[0].classList.contains(t.params.pagination.hiddenClass);r(!0===e?"paginationShow":"paginationHide"),o.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const C=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let e=t.pagination.el;e&&(e=c(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),v()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let e=t.pagination.el;e&&(e=c(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),f(),p(),h()},disable:C,render:p,update:h,init:f,destroy:v})}];return J.use(Q),J}()},18412(e,t,n){var i,r;n(3362),n(62953),i=[n(18638),n(64794),n(13667),n(86205),n(59412),n(95189),n(54515),n(60494),n(9340),n(81864),n(23161),n(33129),n(76285),n(16e3)],void 0===(r=function(e,t,i,r,o,a,s,c,l,u,d,h,p,f){var m=f.AvsService;return t.Module.extend({removeNoAnimationFlag:function(){setTimeout((function(){e("body").removeClass("no-animation")}),100)},responsiveBreakpoints:{phone:"(max-device-width: 767px)",tablet:"(min-device-width: 768px)",portrait:"(orientation : portrait)",landscape:"(orientation : landscape)"}
2,triggerCrmActions:{showUpsell:!1,showUpsellToyTickets:!1,showUpsellVotesPacks:!1,showAccount:!1,showAlerts:!1},appView:null,AppInstance:null,instancesOfCaptcha:{},fpClient:null,fpLandingProcessed:!1,refreshDeviceParameters:function(){n(60550).request("getAppModel").set({device:{type:window.matchMedia(this.responsiveBreakpoints.phone).matches?"phone":"tablet",orientation:window.matchMedia(this.responsiveBreakpoints.portrait).matches?"portrait":"landscape",width:window.innerWidth,height:window.innerHeight}})},androidHomescreenInstallerPrompt:null,setAndroidHomescreenInstaller:function(){if(!("serviceWorker"in navigator))return!1;navigator.serviceWorker.register("/service-worker.js",{scope:"/"}).then((function(e){})).catch((function(e){})),window.addEventListener("beforeinstallprompt",e.proxy((function(e){return e.preventDefault(),this.androidHomescreenInstallerPrompt=e,this.initHomescreenInstaller(),!1}),this))},initHomescreenInstaller:function(){if(!l.isStandalone()&&(e("body").addClass("has-homescreen-installer"),!c.get("homescreenInstallerSeen"))){var t=n(60550).request("getAppModel");if(t.userLoggedIn()&&t.hasCredits()){var i=h.random(0,100);h.contains([0,5],i%5)?n(60550).commands.execute("app:showHomescreenInstaller"):c.set("homescreenInstallerSeen","1")}}},getChatSessionsFromStorage:function(){return"undefined"!=typeof sessionStorage&&(JSON.parse(sessionStorage.getItem("chat_sessions"))||[])},storeLastChatSessionInStorage:function(e){var t=this.getChatSessionsFromStorage();!1!==t&&(t.push(e),sessionStorage.setItem("chat_sessions",JSON.stringify(t)))},onRegionShown:function(){var e=document.querySelector(".progress");e&&setTimeout((function(){e.parentNode.removeChild(e)}),300)},storeLastChatDetailsInLocalStorage:function(e){"undefined"!=typeof localStorage&&!1!==e.duration&&localStorage.setItem("last-chat-details",JSON.stringify(e))},guestMigrationFlowHandler:function(){if(o.flashBag.guest_migration_process){var e=new window.dnx.ui.GuestMigrationLogic(o.loginType,(function(){window.modal.showGuestMigration()})),t=o.flashBag.guest_migration_process.length>0?o.flashBag.guest_migration_process[0]:[];if(t.hasOwnProperty("payment_confirmation")){var n=t.payment_confirmation;snackbar.success(n.small_message,{title:n.message,timeout:15,icon:"CREDITS"}),e.consumeFlashBag(),o.flashBag.guest_migration_process.shift()}else t.hasOwnProperty("popin_migration")&&(e.showMigrationModal(),o.flashBag.guest_migration_process.shift())}},initialize:function(){var t=n(60550),d=this,h=new r;if(this.AppInstance=t,h.set(o.appModelData,{silent:!0}),this.setupEventListenersForVueModals(),this.triggerCrmActions=o.triggerCrmActions,this.triggerCrmActions.showUpsell?(u.navigate(o.appModule.paths.payment,{replace:!0},!0),this.triggerCrmActions.showUpsell=!1):this.triggerCrmActions.showUpsellToyTickets?(u.navigate(o.appModule.paths.paymentToyTickets,{replace:!0},!0),this.triggerCrmActions.showUpsellToyTickets=!1):this.triggerCrmActions.showUpsellVotesPacks?(u.navigate(o.appModule.paths.paymentVotesPakcs,{replace:!0},!0),this.triggerCrmActions.showUpsellVotesPacks=!1):this.triggerCrmActions.showAccount?(u.navigate(o.appModule.paths.account,{replace:!0},!0),this.triggerCrmActions.showAccount=!1):this.triggerCrmActions.showAlerts&&(u.navigate(o.appModule.paths.account_emailalerts,{replace:!0},!0),this.triggerCrmActions.showAlerts=!1),t.reqres.setHandler("getAppModel",(function(){return h})),e(window).on("orientationchange resize",(function(){setTimeout((function(){d.refreshDeviceParameters()}),300)})),t.chatRegion.on("show",(function(e,n,i){d.onRegionShown(),this.$el.addClass("is-visible"),t.conversationRegion.$el.removeClass("is-visible"),this.$el.hasClass("is-minimized")||d.appView.lockBackgroundScroll(!0),d.removeNoAnimationFlag(),t.vent.trigger("app:chatRegion:show")})),t.conversationRegion.on("show",(function(e,n,i){d.onRegionShown(),this.$el.addClass("is-visible"),t.chatRegion.$el.removeClass("is-visible"),d.appView.lockBackgroundScroll(!0),d.removeNoAnimationFlag()})),t.contentRegion.on("show",(function(e,n,i){d.onRegionShown(),t.chatRegion.$el.hasClass("is-minimized")||t.chatRegion.$el.removeClass("is-visible"),d.appView.lockBackgroun
2dScroll(!1),t.conversationRegion.$el.removeClass("is-visible"),d.removeNoAnimationFlag(),t.contentRegion.hasView()&&"ZappageView"===t.contentRegion.currentView.name&&(t.commands.execute("app:zapp:enableCams"),t.chatRegion.$el.hasClass("is-minimized")||t.commands.execute("app:zapp:showChatTutorial"))})),this.appView=new i({model:h,el:"body"}),h.on("change:page",(function(e){d.appView.render()})),h.on("change:user",(function(e){})),this.appView.on("creditCountChange",(function(e){document.dispatchEvent(new CustomEvent("nav-bar:update:credits",{detail:{credits:e.credits}}))})),t.reqres.setHandler("app:modals:show",(function(e,t){return d.appView.showModal(e,t||{})})),t.commands.setHandler("app:load-login-captcha",(function(e){d.loadLoginCaptcha(e)})),t.commands.setHandler("app:load-registration-captcha",(function(e){d.loadRegistrationCaptcha(e)})),t.commands.setHandler("app:modals:hide",(function(e){d.appView.hideModal(e)})),t.commands.setHandler("app:lockBackgroundScroll",(function(e){d.appView.lockBackgroundScroll(e)})),t.commands.setHandler("app:handleBanModel",(function(e){d.appView.handleBanModel(e)})),t.commands.setHandler("app:handleFavorite",(function(e){d.appView.toggleFavorite(e)})),t.commands.setHandler("app:resetScrollPos",(function(){d.appView.currentScrollTop=0})),t.commands.setHandler("app:reset-search",(function(){d.AppInstance.vent.trigger("app:reset-search")})),t.commands.setHandler("app:newNickname",(function(e){d.appView.newNickname(e)})),t.reqres.setHandler("app:chat:getChatSessions",(function(){return d.getChatSessionsFromStorage()})),t.commands.setHandler("app:chat:storeLastChat",(function(e){d.storeLastChatSessionInStorage(e),d.storeLastChatDetailsInLocalStorage(e)})),t.commands.setHandler("app:showHomescreenInstaller",(function(){if(l.isStandalone())return!1;(l.isAndroid()||l.isiOS())&&d.appView.showAppInstallBanner(),c.set("homescreenInstallerSeen","1")})),t.commands.setHandler("app:preparePromptForAndroid",this.setAndroidHomescreenInstaller),t.commands.setHandler("app:showThePrompt",(function(){if(null===d.androidHomescreenInstallerPrompt)return!1;!1!==d.androidHomescreenInstallerPrompt?(d.androidHomescreenInstallerPrompt.prompt(),d.androidHomescreenInstallerPrompt=!1):alert("Installer already shown. Refresh the page and press install again!")})),t.commands.setHandler("app:setLoadingAnimation",(function(e){d.appView.setLoadingAnimation(e)})),t.commands.setHandler("app:guestMigrationFlow",this.guestMigrationFlowHandler),o.flashBag.guest_migration_process)t.commands.execute("app:guestMigrationFlow");else if(o.flashBag.payment_process)snackbar.error(o.flashBag.payment_process[0],{timeout:10});else if(o.flashBag.payment_process_with_type){const e=o.flashBag.payment_process_with_type.shift();snackbar.show(e.type,{title:e.message,timeout:10})}else if(o.flashBag.payment_confirmation){var p=o.flashBag.payment_confirmation[0];snackbar.success(p.small_message,{title:p.message,timeout:15,icon:"CREDITS"})}else if(o.flashBag.profile_upgrade)a.confirm("",s.trans("profile_upgrade.confirm"),(function(){document.location=o.flashBag.profile_upgrade[0]}));else if(o.flashBag.login_failed){const e=function(){window.modal.showLogin()},t='<a data-bypass href="reset/">'+s.trans("forgottenPassword")+"</a>";a.alert("",o.flashBag.login_failed[0],e,{footerMessage:t})}else o.flashBag.showAudioMigration?window.modal.showAudioMigration():o.flashBag.oauth_sign_in_account_created?snackbar.success(o.flashBag.oauth_sign_in_account_created[0],{timeout:10}):o.flashBag.guest_access_activated&&snackbar.success(o.flashBag.guest_access_activated[0],{timeout:10});(o.appModule.disclaimerPage||o.appModule.showDisclaimer&&!c.get("disclaimerSeen"))&&e((function(){d.appView.showDisclaimer()})),window.addEventListener("pageshow",(function(e){e.persisted&&!o.appModule.disclaimerPage&&c.get("disclaimerSeen")&&(d.appView.ui.disclaimerPopin.removeClass("is-visible"),d.appView.lockBackgroundScroll(!1))})),l.isAndroid()?this.setAndroidHomescreenInstaller():l.isiOS()&&this.initHomescreenInstaller(),l.isSafari()&&e("body").addClass("is-safari"),l.isStandalone()&&e("body").addClass("is-standalone"),this.refreshDeviceParameters(),document.addEventListener("modals:add-fav",(e=>{let t=e.detail;this.appView.toggleFavorite({action:"add",id:t.profileId})})),document.addEventListener("modals:send-vg",(t=>{let n=t.detail;return e.ajax({method:"POST",url:o.chatModule.paths.consume_virtual_gift,data:{cammer_id:n.cammerId,product_id:n.productId}})})),o.upsellOfferAvailable&&window.modal.postUpsellAutoPack(),o.fingerprint.process.landing&&(document.addEventListener("click",(()=>{this.fingerprintLandingProcessing()}),{once:!0}),document.addEventListener("disclaimer:clicked:enter",(()=>{this.fingerprintLandingProcessing()}),{once:!0}),n.e(4375).then(n.bind(n,4375)).then((e=>{let t=e.FingerprintClient;_local.log("FP.loadAgent (touchpoint requested)"),this.fpClient=t.getInstance(),this.fpClient.loadAgent()})));const f=new window.dnx.logic.URLSearch,g=f.getParameterByName("registerpopin"),v=f.getParameterByName("loginpopin"),y=f.getParameterByName("cfcrm");if("chat"!==h.get("page"))if("1"===g)window.modal.showRegistration();else if("1"===v){if(null!==y&&"profile"===h.get("page")&&!o.appModule.showDisclaimer){const e=function(t){return window.modal.showLogin(),document.removeEventListener("click",e),!1};document.addEventListener("click",e)}else window.modal.showLogin()}const w=document.querySelector("#spinner-container-app");w.addEventListener("vue:spinner:show",(e=>{e.detail;Promise.all([n.e(3751),n.e(4853)]).then(n.bind(n,54853)).then((()=>{w.dispatchEvent(new CustomEvent("show-spinner"))}))})),o.flashBag.show_avs_modal&&m.showModal()},fingerprintLandingProcessing:function(){this.fpClient&&!this.fpLandingProcessed&&(this.fpLandingProcessed=!0,this.fpClient.analyze(o.fingerprint.tags).then((e=>{_local.log("FP.analyze result",e);const t=new FormData;t.append("fp_requestId",e.requestId),t.append("fp_visitorId",e.visitorId),navigator.sendBeacon(o.paths.fingerprintTouchPoint,t)})).catch((e=>{_local.log("FP.analyze error",e)})))},loadRegistrationCaptcha:function(e){if(!o.captcha.requiresCaptchaOnRegistration)return!1;this.loadCaptcha(e)},loadLoginCaptcha:function(e){if(!o.captcha.requiresCaptchaOnLogin)return!1;this.loadCaptcha(e)},loadCaptcha:function(e){this.instancesOfCaptcha.hasOwnProperty(e)||n.e(3546).then(n.bind(n,43546)).then((async t=>{let n=t.CaptchaHandler;const i=await n.getInstance(e,{siteKey:o.captcha.sitekey,locale:o.appModelData.user.locale});i.render(),this.instancesOfCaptcha[e]=i}))},setupEventListenersForVueModals:function(){document.addEventListener("vue:modals:close",(()=>
2{this.appView.lockBackgroundScroll(!1)})),document.addEventListener("vue:modals:shown",(()=>{this.appView.lockBackgroundScroll(!0)})),document.addEventListener("vue:modals:show",(e=>{let t=e.detail;const i=document.querySelector("#modals-container-app");Promise.all([n.e(3751),n.e(7121)]).then(n.bind(n,37121)).then((()=>{i.dispatchEvent(new CustomEvent("show-modal",{detail:t}))}))}))}})}.apply(t,i))||(e.exports=r)},4785(e,t,n){var i,r;i=[n(64794)],void 0===(r=function(e){return e.AppRouter.extend({swipeContext:!1,before:function(e,t){var i=n(60550).request("getAppModel"),r=i.get("currentRoute"),o={route:e,handler:this.appRoutes[e],params:t,router:this};i.set("previousRouteData",i.get("nextRouteData")),i.set({currentRoute:o,previousRoute:r,nextRouteData:null}),this.isASwipe(r,o)&&(this.swipeContext=!0),r&&r.router.leave&&r.router.leave.apply(r.router,[r.route,r.params,this.isASwipe(r,o)?"swipe":"zappage"])},after:function(e,t){n(60550).request("getAppModel").set("isFirstView",!1)},isASwipe:function(e,t){return e&&e.handler&&t&&t.handler&&"chatRoute"===t.handler&&e.handler===t.handler}})}.apply(t,i))||(e.exports=r)},9340(e,t,n){var i,r;i=[n(18638)],void 0===(r=function(e){return{isAndroid:function(){return e("body").hasClass("is-android")},isiOS:function(){return e("body").hasClass("is-ios")},isiOS15:function(){return e("html").hasClass("is-ios-15")},isSafari:function(){return-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("CriOS")},isStandalone:function(){return this.isAndroid()?window.matchMedia("(display-mode: standalone)").matches:!!this.isiOS()&&!!window.navigator.standalone},matchAdvancedSearchAside:function(){return window.matchMedia("(min-width: 1024px)").matches&&CSS.supports("aspect-ratio: auto")},matchChatBoxed:function(){return window.matchMedia("(min-width: 990px)").matches},isTouchSensitiveDevice:function(){let e=!1;try{document.createEvent("TouchEvent"),e=!0}catch(t){}return e}}}.apply(t,i))||(e.exports=r)},39876(e,t,n){var i,r;n(3362),n(9391),n(62953),i=[n(18638),n(59412),n(23161)],void 0===(r=function(e,t,i){return function(r,o){this.$form=r,this.shouldFingerprint=t.fingerprint.process.payment,this.bindFormSubmit=o||!0,this.doFingerprint=()=>new Promise(((e,t)=>{this.shouldFingerprint?a.call(this,null,e):e()}));const a=(r,o)=>{let s;function c(){i.hideLoadingAnimation(),null!==r?s.off("submit",a).trigger("submit"):null!==o&&"function"==typeof o&&o()}return null!==r?(r.preventDefault(),r.stopImmediatePropagation(),s=e(r.target)):s=this.$form,i.showLoadingAnimation(),n.e(4375).then(n.bind(n,4375)).then((e=>{e.FingerprintClient.getInstance().analyze(t.fingerprint.tags).then((e=>{_local.log("FP.analyze result",e),i.appendInputsToForm({fp_requestId:e.requestId,fp_visitorId:e.visitorId},s)})).catch((e=>{_local.log("FP.analyze error",e)})).finally((()=>{c()}))})).catch((e=>{_local.log("Dynamic import failed, process form"),c()}))};this.shouldFingerprint&&this.bindFormSubmit&&this.$form.on("submit",a)}}.apply(t,i))||(e.exports=r)},90858(e,t){var n;void 0===(n=function(){return window._gaq=window._gaq||[],window._gaq}.apply(t,[]))||(e.exports=n)},27631(e,t,n){var i,r;function o(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}n(89463),n(27495),n(62953),i=[n(18638)],void 0===(r=function(e){var t;return{state:null===(t=window)||void 0===t||null===(t=t.paymentPage)||void 0===t?void 0:t.state,getState:function(){return this.state},getRoutes:function(){return this.state.routes},getRouteUrlFromProps:function(e){const t=this.getRoutes(),n=o(e),i=n[0],r=a(n).slice(1),s=t[i];if(s&&!(!r[0]in s))return"object"==typeof s[r[0]]?s[r[0]][r[1]]:s[r[0]]},getPropsFromRoute:function(e){const t=this.getRoutes();let n=[],i=!1;return function t(r){for(let o in r){if(n.push(o),r[o]===e){i=!0;break}if(r[o].constructor===Object&&(t(r[o]),i))break;n.pop()}}(t),n},pushRouteToState:function(e){const t=this.getRouteUrlFromProps(e);this.state.currentRoute=t,window.history.pushState(e,"",t)}}}.apply(t,i))||(e.exports=r)},81864(e,t,n){var i,r;n(27495),n(25440),i=[n(18638),n(13386),n(59412)],void 0===(r=function(e,t,n){return{navigate:function(i,r,o){o?r.replace?setTimeout((()=>{window.location.replace(i)}),100):setTimeout((()=>{window.location.href=i}),100):(i.substr(0,n.baseUrl.length)===n.baseUrl&&(i=i.substr(n.baseUrl.length)),e("body").removeClass("no-animation"),t.history.navigate(i,r))},reload:function(e){e?window.location.reload():t.history.loadUrl()},back:function(){window.history.back()}}}.apply(t,i))||(e.exports=r)},4927(e,t,n){var i,r;n(74423),i=[n(18638),n(60494)],void 0===(r=function(e,t){return function(t,n){var i,r,o,a=function(){i.find(".overlay").removeClass("is-visible"),l(),c(!1)},s=function(){r.addClass("has-overlay"),u()},c=function(e){r.toggleClass("has-mini-overlay",e)},l=function(){r.removeClass("has-overlay"),d()},u=function(){o.closeBtn&&o.closeBtn.removeClass("is-hidden")},d=function(){o.closeBtn&&o.closeBtn.addClass("is-hidden")},h=function(e){return["modelWentLive","modelWentPrivate","toyDuration","factorVote","specialTariff","noMoreTeasing","warningModalVoyeur","warningModal","noMoreCredits","noMoreFreeSeconds","audioRedial"].includes(e)};this.showOverlay=function(e){!function(e){i.find(".overlay--"+e).addClass("is-visible"),s()}(e)},this.hideOverlay=function(e){!function(e){i.find(".overlay--"+e).removeClass("is-visible"),l()}(e)},this.toggleOverlay=function(e,t){!function(e,t){a(),t&&s(),h(e)&&c(t),i.find(".overlay--"+e).toggleClass("is-visible",t)}(e,t)},this.hideAllOverlays=function(){a()},this.hideAllOverlays=function(){a()},this.toggleHasOverlay=function(e){!function(e){r.toggleClass("has-overlay",e)}(e)},this.addHasOverlay=function(){u()},this.removeHasOverlay=function(){d()},this.isMiniOverlay=function(e){return h(e)},function(){i=t,r=n,o={closeBtn:e(".js-overlay-backdrop")}}.call(t,n)}}.apply(t,i))||(e.exports=r)},17024(e,t,n){var i,r;i=[n(18638),n(23161)],void 0===(r=function(e,t){return function(n){let i,r=!1;const o=n=>{r=!0,n.preventDefault(),n.stopImmediatePropagation(),i=e(n.target),t.showLoadingAnimationAndWaitIteration((()=>{e.ajax({url:"/ajax/check-payment-offer",type:"POST",data:i.serialize(),error:function(){i.off("submit",o).trigger("submit")},success:function(e){e.hasOwnProperty("showUpsellOffer")&&e.showUpsellOffer?(modal.preUpsellCorrelatedPack(),t.hideLoadingAnimation()):i.off("submit",o).trigger("submit")}})}))};n.on("submit",o),document.addEventListener("modals:pre-upsell:submit",(e=>{let t=e.detail;if(r){if(t.useUpsellPack){const e=i.get(0).querySelector('input[name="use-pre-upsell"]');e&&(e.value="1")}i.off("submit",o).trigger("submit")}}))}}.apply(t,i))||(e.exports=r)},23161(e,t,n){var i,r;i=[n(18638),n(59412)],void 0===(r=function(e,t){return{showLoadingAnimation:function(){e(".wrapper__body").addClass("is-loading")},showLoadingAnimationAndWaitIteration:function(n){var i=t.isAnimationTimeoutNeededBySubmission,r="animationiteration webkitAnimationIteration",o=e(".wrapper__body"),a=function(e){o.off(r,a),n.apply(this)};i&&o.on(r,a),o.addClass("is-loading"),i||n.apply(this)},hideLoadingAnimation:function(){e(".wrapper__body").removeClass("is-loading")},isValidURL:function(e){var t=document.createElement("a");try{return t.href=e,!!t.hostname}catch(n){return!1}},appendInputsToForm:function(t,n){for(var i in t){var r=i,o=t[i];n.find('input[name="'+r+'"]').remove(),e('<input type="hidden" name="'+r+'" />').val(o).appendTo(n)}},showDefaultPack:function(t){t.attr("data-pack-key",t.attr("data-default-pack-key")),e(".card-pack.selected .js-card-pack-head-without-offer").show(),e(".card-pack.selected .js-card-pack-head").hide()},hideDefaultPack:function(){e(".card-pack.selected .js-card-pack-head-without-offer").hide(),e(".card-pack.selected .js-card-pack-head").show()}
2,canUseWebP:function(){const e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))&&0===e.toDataURL("image/webp").indexOf("data:image/webp")}}}.apply(t,i))||(e.exports=r)},54515(e,t,n){var i,r;n(84864),n(27495),n(25440),i=[n(59412)],void 0===(r=function(e){var t=function(){};return t.trans=function(t,n){var i=e.translations[t];if(void 0===i){var r="";if(void 0!==n&&"object"==typeof n){var o=[];for(var a in n)o.push("'"+a+"': '"+a+"'");r="({"+o.join(", ")+"})"}var s="Missing translation for the token '"+t+"'. Add this to the js I18n object parameters :\n"+JSON.stringify(t)+": \"{{ '"+t+"'|trans"+r+"|escape('js') }}\"";console.log(s),i=t}if(void 0!==n&&"object"==typeof n)for(var a in n)i=i.replace(new RegExp(a,"g"),n[a]);return i},t}.apply(t,i))||(e.exports=r)},86205(e,t,n){var i,r;i=[n(13386)],void 0===(r=function(e){return e.Model.extend({defaults:{user:{},page:"zappage",isFirstView:!0,currentRoute:null,nextRouteData:null,previousRouteData:null,device:{type:"phone",orientation:"portrait",width:0,height:0},chatMinimized:!1,chatNavigationSource:"pageload"},initialize:function(){var e=sessionStorage.getItem("chatNavigationSource");e&&(this.set("chatNavigationSource",e),sessionStorage.removeItem("chatNavigationSource"))},userName:function(){return this.get("user").nickname},userLoggedIn:function(){return"ROLE_GUEST"!==this.get("user").role},userIsReturning:function(){return Boolean(this.get("user").isReturning)},userIsAudio:function(){return"ROLE_AUDIOTEL"===this.get("user").role},hasCredits:function(){return this.get("user").credits>0},preventLowCreditsWarning:function(){return this.get("user").noLowCreditsWarning},isChatMinimized:function(){return this.get("chatMinimized")},hasSpecialTariff:function(){return"NEW"===this.get("user").segment},isPayingUser:function(){return this.get("user").isPayingUser},brandName:function(){return this.get("user").brandName}})}.apply(t,i))||(e.exports=r)},47113(e,t,n){var i,r;n(27495),n(25440),i=[n(13386)],r=function(e){return e.Model.extend({fetching:!1,fetch:function(){return this.fetching=!0,e.Model.prototype.fetch.apply(this,arguments)},parse:function(e){if(this.fetching=!1,e.location)return window.location.replace(e.location),!1;var t=n(60550).request("getAppModel"),i=e.data&&e.data.modelData?e.data.modelData:{};return e.data&&e.data.appModelData&&t.set(e.data.appModelData),this.attributes.content===i.content&&(this.attributes.content="",this.set({content:i.content})),i}})}.apply(t,i),void 0===r||(e.exports=r)},20548(e,t,n){var i,r;i=[n(64794),n(59412)],void 0===(r=function(e,t){return e.Object.extend({createModelAndView:function(e,i,r,o,a,s,c){const l=n(60550),u=l.request("getAppModel");let d,h,p=!1,f=e.hasView()&&e.currentView.name===i;return f?(d=e.currentView,h=d.model,h.set(a,{silent:!0}),p=!0):(h=new o(a),c.model=h,u.get("isFirstView")?(h.set(t.firstModelData,{silent:!0}),c.el=r,d=new s(c),e.attachView(d)):(d=new s(c),p=!0),h.on("change:content",(function(t){e.hasView()&&e.currentView.name===i?(d.render(),"ZappageView"===i&&l.commands.execute("app:resetScrollPos"),e.trigger("show")):e.show(d)}))),{model:h,view:d,fetchModelData:p,viewExisted:f}}})}.apply(t,i))||(e.exports=r)},13667(e,t,n){var i,r;n(3362),n(27495),n(25440),n(62953),i=[n(64794),n(60494),n(59412),n(95189),n(23161),n(54515),n(9340),n(81864)],r=function(e,t,i,r,o,a,s,c){return e.ItemView.extend({name:"AppView",AppInstance:null,currentScrollTop:0,hasRequiredAge:null,birthDateCheckerApp:null,verifyAge:!1,disclaimerForceAsPage:!1,disclaimerRedirectToEnEnter:null,dataLayerHelper:null,recaptchaCheckInvoked:!1,cookieModalActionTaken:!1,adventCalendarModalTimeoutId:null,camsFactorModalTimeoutId:null,wc26BettingModalTimeoutId:null,ui:{wrapperBody:".wrapper__body",contentWrapper:"#content__wrapper",chatContainer:"#chat",conversationContainer:"#conversation",chatHeader:"header",contentOverlay:".content-overlay",iosHomescreenInstallHelper:".ios-homescreen-install-helper",disclaimerPopin:"#disclaimer",disclaimerEnterButton:"#disclaimer .js-disclaimer-accept",CookieManagement:"#disclaimer .js-modal-cookies",popinCloseButton:".js-popin-close",appInstallBanner:".js-app-install-banner",appInstallBannerCloseBtn:".js-app-install-banner-close-btn",appInstallBannerIosMoreButton:".js-app-install-banner-ios-more-button",appInstallBannerInstallButton:".js-app-install-banner-install-button",modalUnsubAdjustSettings:"#unsub-adjust-settings",reportContentPopin:".js-report-content-modal",reportContentPopinForm:".js-report-content-modal form",reportContentShowPopin:".js-show-report-content-modal",advancedSearch:"#nav-bar-app",advancedSearchContent:".advanced-search__content",advancedSearchBackDrop:".advanced-search__backdrop",alreadyRegisteredLink:".already-registered-link"},events:{"click @ui.disclaimerEnterButton":"disclaimerEnterButtonClickHandler","click @ui.popinCloseButton":"popinCloseButtonClickHandler","click @ui.appInstallBannerCloseBtn":"closeAppInstallBanner","click @ui.appInstallBannerIosMoreButton":"moreInformationAppInstallBanner","click @ui.appInstallBannerInstallButton":"installPromptAndroid","click @ui.modalUnsubAdjustSettings":"modalUnsubAdjustSettingsClickHandler","submit @ui.reportContentPopinForm":"reportContentPopinFormSubmitHandler","click @ui.reportContentShowPopin":"reportContentShowPopinClickHandler","click @ui.alreadyRegisteredLink":"openLoginModal","click @ui.CookieManagement":"cookieManagementClickHandler"},initialize:function(e){if(this.AppInstance=n(60550),e.el&&(this.isRendered=!0,this.bindUIElements()),this.verifyAge=i.appModule.birthdateCheck,this.disclaimerForceAsPage=i.appModule.disclaimerPage,this.disclaimerForceAsPage){let e="with-d-bg";o.canUseWebP()&&(e+=" webp"),this.ui.wrapperBody.addClass(e)}if(this.verifyAge){const e="birthdate-checker-app";this.birthDateCheckerApp=document.getElementById(e),null!==this.birthDateCheckerApp&&this.birthDateCheckerApp.addEventListener("has-required-age",(async e=>{this.hasRequiredAge=e.detail,!1===this.hasRequiredAge?setTimeout((()=>{document.location.href="https://www.google.com"}),5e3):this.hasRequiredAge&&(await this.savePendingCookieHandler(),this.hideDisclaimer(this.disclaimerRedirectToEnEnter))}),!1)}document.addEventListener("cookie-management:closed",(()=>{this.cookieModalActionTaken=!0,t.remove("disclaimerSeen"),this.showDisclaimer()}),!1),document.addEventListener("disclaimer:closed",(()=>{this.checkAndShowAdventCalendarModal(),this.checkAndShowWc26BettingModal()}),!1),i.dataLayerInformation.dataLayer&&n.e(1395).then(n.bind(n,41395)).then((e=>{var t,n;let r=e.DataLayerHelper;var o,a,s,c;(this.dataLayerHelper=new r(i.dataLayerInformation.dataLayer),i.dataLayerInformation.hasAccountCreation)&&_local.ga("dl:account:creation",{loginType:null===(o=i.appModelData)||void 0===o||null===(o=o.user)||void 0===o?void 0:o.loginType});i.dataLayerInformation.hasAccountLogin&&_local.ga("dl:account:login",{loginType:null===(a=i.appModelData)||void 0===a||null===(a=a.user)||void 0===a?void 0:a.loginType});null!==(t=i.dataLayerInformation.hasPaymentSuccessful)&&void 0!==t&&t.hasPayment&&null!==(null===(n=i.dataLayerInformation.hasPaymentSuccessful)||void 0===n?void 0:n.ecommerceDataLayer)&&_local.ga("dl:ecommerce:payment",{loginType:null===(s=i.appModelData)||void 0===s||null===(s=s.user)||void 0===s?void 0:s.loginType,data:null===(c=i.dataLayerInformation.hasPaymentSuccessful)||void 0===c||null===(c=c.ecommerceDataLayer)||void 0===c?void 0:c.ec
2ommerce})})),this.checkAndShowAdventCalendarModal(),this.checkAndShowCamsFactorModal(),this.checkAndShowCamsFactorWinnersModal(),this.checkAndShowWc26BettingModal(),document.addEventListener("chat:change-nickname",(e=>{this.model.get("user").nickname=e.detail.nickname}))},render:function(){const e=this.model.get("page");return"zappage"!==e&&(this.cancelAdventCalendarModalTimeout(),this.cancelCamsFactorModalTimeout(),this.cancelWc26BettingModalTimeout()),this.$el.attr("data-user-role",this.model.get("user").role),this.$el.attr("data-page",e),document.dispatchEvent(new CustomEvent("nav-bar:update:is-real-zappage",{detail:{pageName:e}})),this},showModal:function(e,t){var n=this.$el.find('.popin[data-popin-name="'+e+'"]');if(n.length)return void 0!==t&&t.hasOwnProperty("target_path")?n.find('input[name="target_path"]').val(t.target_path):n.find('input[name="target_path"]').val(""),this.lockBackgroundScroll(!0),n.removeClass("is-hidden"),n},hideModal:function(e){var t=this.$el.find('.popin[data-popin-name="'+e+'"]');t.length&&(t.addClass("is-hidden").removeClass("is-fixed"),this.lockBackgroundScroll(!1))},popinCloseButtonClickHandler:function(e){var t=$(e.currentTarget).parent().attr("data-popin-name");this.hideModal(t)},setLoadingAnimation:function(e){this.ui.wrapperBody.toggleClass("is-loading",e)},hideDisclaimer:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=1/24;if("GB"===this.model.get("user").country&&(n=null),t.set("disclaimerSeen","1",{expires:n}),this.disclaimerForceAsPage?this.verifyAge&&(document.location.href=i.paths.zappage):this.ui.disclaimerPopin.removeClass("is-visible"),e&&(document.location.href=e),i.dataLayerInformation.dataLayer){window.dataLayer=window.dataLayer||[],function(){dataLayer.push(arguments)}("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted",wait_for_update:2e3})}this.lockBackgroundScroll(!1),document.dispatchEvent(new Event("disclaimer:closed"))},showDisclaimer:function(){this.ui.disclaimerPopin.length&&(this.ui.disclaimerPopin.addClass("is-visible"),this.lockBackgroundScroll(!0))},disclaimerEnterButtonClickHandler:async function(e){if(null===this.disclaimerRedirectToEnEnter){const t=$(e.target).attr("href");void 0!==t&&t.length&&"#"!==t?this.disclaimerRedirectToEnEnter=t:this.disclaimerRedirectToEnEnter=!1}if(document.dispatchEvent(new Event("disclaimer:clicked:enter")),this.disclaimerForceAsPage&&!this.verifyAge||(e.preventDefault(),e.stopPropagation()),this.verifyAge){if(null===this.hasRequiredAge)return void this.birthDateCheckerApp.dispatchEvent(new CustomEvent("birthdate:validate"));if(!1===this.hasRequiredAge)return}await this.savePendingCookieHandler(),this.hideDisclaimer(this.disclaimerRedirectToEnEnter)},moreInformationAppInstallBanner:function(){this.ui.iosHomescreenInstallHelper.slideToggle()},lockBackgroundScroll:function(e){if(e)this.currentScrollTop=$(document).scrollTop(),document.body.style.top="-"+this.currentScrollTop+"px",$("body").toggleClass("bg-scroll-lock",e);else{const t=this.ui.chatContainer.hasClass("is-visible"),n=this.ui.chatContainer.hasClass("is-minimized");if(t&&!n)return;$("body").toggleClass("bg-scroll-lock",e),document.body.style.top="",this.currentScrollTop>0&&!s.isStandalone()&&$(document).scrollTop(this.currentScrollTop)}},showAppInstallBanner:function(){this.ui.appInstallBanner.show()},closeAppInstallBanner:function(){return this.ui.appInstallBanner.hide(),this.ui.iosHomescreenInstallHelper.hide(),!1},installPromptAndroid:function(){this.ui.appInstallBanner.hide(),this.AppInstance.commands.execute("app:showThePrompt")},handleBanModel:function(e){const t=this;"ban"===e.action?r.confirm("",a.trans("addModelInBanList"),(function(){t.toggleBanModel(e)})):this.toggleBanModel(e)},toggleBanModel:function(e){$.ajax({method:"POST",url:i.paths.ajax_toggle_ban_model.replace("__modelId__",e.id),data:{state:e.action},success:function(t){t.success&&e.hasOwnProperty("callbackSuccess")&&e.callbackSuccess.apply(this)},complete:function(){e.hasOwnProperty("callbackComplete")&&e.callbackComplete.apply(this)}})},toggleFavorite:function(e){$.ajax({method:"POST",url:i.paths.favorites_toggle.replace("__profile__",e.id),data:{state:e.action},success:function(t){t.success&&e.hasOwnProperty("callbackSuccess")&&(e.callbackSuccess.apply(this),e.hasOwnProperty("nickname")&&("remove"===e.action?snackbar.warning(a.trans("removeFromFavorites",{"%nickname%":e.nickname}),{timeout:5}):snackbar.success(a.trans("addInFavorites",{"%nickname%":e.nickname}),{timeout:5})))},complete:function(){e.hasOwnProperty("callbackComplete")&&e.callbackComplete.apply(this)}})},newNickname:function(e){var t=this,n=r.confirm("",a.trans("firstChooseNicknameToChat"),(function(){return n.find('input[type="submit"]').click(),!0}),null,{formInputName:"nickname",formInputType:"text",formInputPlaceholder:a.trans("firstChooseNickname"),formInputRequired:!0});n.find("form").on("submit",(function(i){i.preventDefault();var a=n.find("input[name=nickname]").val();$.ajax({url:"/change-nickname-process",type:"POST",data:$(this).serialize(),dataType:"json",beforeSend:function(){o.showLoadingAnimation()},complete:function(){o.hideLoadingAnimation()},success:function(n){n.success?(r.hide(),t.model.get("user").nickname=a,"function"==typeof e&&e.apply(this)):n.message&&r.alert("",n.message)}})}))},modalUnsubAdjustSettingsClickHandler:function(e){c.navigate(i.paths.account_newsletter,{replace:!0},!0)},reportContentPopinFormSubmitHandler:function(e){e.preventDefault();var t=this.ui.reportContentPopinForm,n=this,i=t.find('textarea[name="g-recaptcha-response"], input[name="g-recaptcha-response"]');i.length&&i.val()?(o.showLoadingAnimation(),$.ajax({type:t.attr("method"),url:t.attr("action"),data:t.serialize(),dataType:"json",success:function(e){var t=null;e.success&&(t=function(){n.hideModal("report-content")}),r.alert("",e.message,t)}}).always((function(){try{n._reportContentCaptcha&&n._reportContentCaptcha.reset()}catch(e){}i&&i.length&&i.val(""),o.hideLoadingAnimation()}))):this._reportContentCaptcha?(this._reportContentCaptcha.reset(),this._reportContentCaptcha.execute(t)):console.error("Captcha not initialized on submit")},reportContentShowPopinClickHandler:function(e){this.showModal("report-content");var t=this.ui.reportContentPopinForm;t&&t.length&&(0===t.find(".reCaptchaPopup").length&&t.append('<div class="reCaptchaPopup" style="display:none;"></div>'),n.e(3546).then(n.bind(n,43546)).then((async e=>{let t=e.CaptchaHandler;try{this._reportContentCaptcha||(this._reportContentCaptcha=await t.getInstance(".js-report-content-modal form",{siteKey:i.captcha.sitekey,locale:i.appModelData.user.locale})),await this._reportContentCaptcha.render()}catch(n){console.error(n)}})))},openLoginModal:function(){this.AppInstance.commands.execute("app:modals:hide","registration"),window.modal.showLogin()},checkAndShowAdventCalendarModal:function(){var e,n,r;if(!0===(null===(e=window)||void 0===e||null===(e=e.navBar)||void 0===e||null===(e=e.user)||void 0===e?void 0:e.isXcamsCam))return;if("zappage"!==this.model.get("page"))return;if(i.flashBag.show_avs_modal)return;const o=null===(n=i.flashBag)||void 0===n?void 0:n.showAdventCalendarModal;if(!this.model.get("user").isReturning&&!o)return;if(null===(r=i.seasonalEvents)||void 0===r||!r.adventCalendarRunning)return;const a=(new Date).getFullYear(),s="adventCalendarSeen_".concat(a);if(t.get(s)&&!o)return;t.get("disclaimerSeen")&&(this.cancelAdventCalendarModalTimeout(),this.adventCalendarModalTimeoutId=setTimeout((()=>{this.adventCalendarModalTimeoutId=null,window.modal.show("adventCalendar")}),3e3))},cancelAdventCalendarModalTimeout:function(){this.adventCalendarModalTimeoutId&&(clearTimeout(this.adventCalendarModalTimeoutId),this.adventCalendarModalTimeoutId=null)},checkAndShowCamsFactorModal:function(){var e,n,r;if(!0===(null===(e=window)||void 0===e||null===(e=e.navBar)||void 0===e||null===(e=e.user)||void 0===e?void 0:e.isXcamsCam))return;if("zappage"!==this.model.get("page"))return;if(i.flashBag.show_avs_modal)return;if(!t.get("disclaimerSeen"))return;if(null===(n=i.seasonalEvents)||void 0===n||!n.camsFactorIsRunning)return;const o=null===(r=i.seasonalEvents)||void 0===r?void 0:r.camsFactorStartDate;if(!o)return;const a=(new Date).toISOString().slice(0,10),s=new Date(o).toISOString().slice(0,10);let c,l;if(a===s)c="camsFactorInfo",l="camsFactorInfoModal_".concat(s);else{if("ROLE_USER"!==this.model.get("user").role)return;c="camsFactorDailyRecap",l="camsFactorDailyRecap_".concat(a)}if(t.get(l))return;const u=new Date;u.setHours(23,59,59,999),t.set(l,"1",{expires:u,path:"/"}),this.cancelCamsFactorModalTimeout(),this.camsFactorModalTimeoutId=setTimeout((()=>{this.camsFactorModalTimeoutId=null,window.modal.show(c)}),3e3)},cancelCamsFactorModalTimeout:function(){this.camsFactorModalTimeoutId&&(clearTimeout(this.camsFactorModalTimeoutId),this.camsFactorModalTimeoutId=null)},checkAndShowCamsFactorWinnersModal:function(){var e,n,r;if(!0===(null===(e=window)||void 0===e||null===(e=e.navBar)||void 0===e||null===(e=e.user)||void 0===e?void 0:e.isXcamsCam))return;if("zappage"!==this.model.get("page"))return;if(i.flashBag.show_avs_modal)return;if(null===(n=i.seasonalEvents)||void 0===n||!n.camsFactorIsPostStep)return;if("ROLE_USER"!==this.model.get("user").role)return;if(null!==(r=i.seasonalEvents)&&void 0!==r&&r.wc26IsRunning){const e=(new Date).toISOString().slice(0,10);let t=null;try{t=localStorage.getItem("wc26.voting.lastSeen")}catch(_){}if(t!==e)return}const o="camsFactorWinnersSeen";t.get(o)||(this.cancelCamsFactorWinnersModalTimeout(),this.camsFactorWinnersModalTimeoutId=setTimeout((()=>{this.camsFactorWinnersModalTimeoutId=null,t.set(o,"1",{expires:14,path:"/"}),window.modal.show("camsFactorWinners")}),3e3))},cancelCamsFactorWinnersModalTimeout:function(){this.camsFactorWinnersModalTimeoutId&&(clearTimeout(this.camsFactorWinnersModalTimeoutId),this.camsFactorWinnersModalTimeoutId=null)},checkAndShowWc26BettingModal:function(){var e,n,r;if(!0===(null===(e=window)||void 0===e||null===(e=e.navBar)||void 0===e||null===(e=e.user)||void 0===e?void 0:e.isXcamsCam))return;if("zappage"!==this.model.get("page"))return;if(i.flashBag.show_avs_modal||null!==(n=window.webPackConfig)&&void 0!==n&&null!==(n=n.avs)&&void 0!==n&&n.required)return;if(null===(r=i.seasonalEvents)||void 0===r||!r.wc26IsRunning)return;if(!t.get("disclaimerSeen"))return;if("ROLE_USER"!==this.model.get("user").role)return;const o=(new Date).toISOString().slice(0,10);let a=null;try{a=localStorage.getItem("wc26.voting.lastSeen")}catch(_){}a!==o&&(this.cancelWc26BettingModalTimeout(),this.wc26BettingModalTimeoutId=setTimeout((()=>{this.wc26BettingModalTimeoutId=null,window.modal.show("wc26Betting")}),3e3))},cancelWc26BettingModalTimeout:function(){this.wc26BettingModalTimeoutId&&(clearTimeout(this.wc26BettingModalTimeoutId),this.wc26BettingModalTimeoutId=null)},cookieManagementClickHandler:function(){var e;this.ui.disclaimerPopin.removeClass("is-visible"),window.modal.cookieManagement(null!==(e=this.ui.disclaimerPopin.data("translatedLocale"))&&void 0!==e?e:"en")},savePendingCookieHandler:async function(){const e=Boolean(t.get("cookie_consent"));if(!this.cookieModalActionTaken&&!e){const e=(await n.e(4876).then(n.bind(n,14876))).CookieConsentService;await e.getInstance().saveConsent(!0)}}})}.apply(t,i),void 0===r||(e.exports=r)},95735(e,t,n){var i,r;i=[n(18638),n(64794)],void 0===(r=function(e,t){return t.ItemView.extend({initialize:function(e){e.el&&(this.isRendered=!0,this.bindUIElements(),this.triggerOnRenderMethod())},render:function(){return this._ensureViewIsIntact(),this.triggerMethod("before:render",this),this.$el.html(this.model.get("content")),this.model.has("formattedPacks")&&!window.hasOwnProperty("formattedPacks")&&(window.formattedPacks=Object.freeze(this.model.get("formattedPacks"))),this.isRendered=!0,this.bindUIElements(),this.triggerOnRenderMethod(),this},triggerOnRenderMethod:function(){setTimeout(e.proxy((function(){this.triggerMethod("render",this)}),this),0)}})}.apply(t,i))||(e.exports=r)},4438(e,t,n){var i,r;n(27495),n(25440),i=[n(20548),n(17851),n(43043),n(12404),n(95189),n(54515),n(59412),n(81864),n(60494)],void 0===(r=function(e,t,i,r,o,a,s,c,l){return e.extend({chatRoute:function(e){var o=n(60550),a=(o.request("getAppModel"),this.createModelAndView(o.chatRegion,"ChatView","#chat > div",i,{id:e},t,{chatBox:new r})),s=a.model,l=a.view,u=a.fetchModelData;a.viewExisted||(l.on("chatNextCammer",(function(e){var t=this.model.get("id"),n=this;this.model.nextCammer().done((function(e){if(e.success){var i=n.model.get("id"),r=Backbone.history.getFragment().replace(t,i);c.navigate(r)}}))})),l.on("chatPrevCammer",(function(e){var t=this.model.get("id"),n=this;this.model.prevCammer().done((function(e){if(e.success){var i=n.model.get("id"),r=Backbone.history.getFragment().replace(t,i);c.navigate(r)}}))}
2))),u&&s.fetch(),o.commands.setHandler("app:chat:closeMinimizedChat",(function(){l.closeMinimizedChat()}))}})}.apply(t,i))||(e.exports=r)},22778(e,t,n){var i,r;i=[n(64794),n(22855)],void 0===(r=function(e,t){return e.Module.extend({initialize:function(){this.Router=new t}})}.apply(t,i))||(e.exports=r)},22855(e,t,n){var i,r;i=[n(4785),n(4438)],r=function(e,t){return e.extend({appRoutes:{"chat/:id(/)":"chatRoute","chatfs/:id(/)":"chatRoute"},before:function(t,n){e.prototype.before.apply(this,arguments)},after:function(t,n){e.prototype.after.apply(this,arguments)},leave:function(e,t,i){var r=n(60550),o=r.request("getAppModel"),a=null;if("swipe"===i)a="switchedCammerShuffle";else a="switchedCammerZap";r.chatRegion.hasView()&&"ChatView"===r.chatRegion.currentView.name&&(o.isChatMinimized()||r.chatRegion.currentView.leaveChatHandler(a),r.chatRegion.currentView.storeLastChatDetails()),r.chatRegion.currentView.chatVueApp.dispatchEvent(new CustomEvent("toggle-app",{detail:{show:!1}}))},controller:new t})}.apply(t,i),void 0===r||(e.exports=r)},12404(e,t,n){var i,r;i=[n(59412),n(25631),n(53883),n(81864)],r=function(e,t,i,r){return function(){var i,o=this,a={};o.chat=null;var s=[],c={chatMode:"FREE",comfrom:"",cf0:"",cf1:"",cf2:"",cfcrm:"",clientId:null,autoPackActive:!1,autoPackUrl:"",connectionHost:"https://svc.dnxnetwork.lu/",connectionPorts:[80,443,1935],webRTCEndpoint:"https://rtcweb.xmodels-live.ch/janus/",language:null,partnerParameters:"",role:"ROLE_GUEST",streamPlayerSwfUrl:"https://new.xcams.com/bundles/dnxchat/swf/StreamPlayer.swf",token:null,user_agent:"",isTablet:!1,isMobile:!1,isHlsSourceTagNeeded:!1,isHlsSupported:!1,isHlsAutoplaySupported:!1,isIsivioo:!1,autoStart:!0};o.start=function(n,c,l){var u,d;if(l){var h=0;!function n(){var i=setTimeout((function(){t.ajax({url:e.checkAudioSession.paths.checkaudiosession,timeout:5e3,success:function(t){t&&t.success?n():r.navigate(e.checkAudioSession.paths.index,{replace:!0},!0)},error:function(t){++h>=10&&r.navigate(e.checkAudioSession.paths.index,{replace:!0},!0),n()}})}),5e3);s.push(i)}()}(n=t(n)).dnxChat({account:-1!==["dev","test"].indexOf(e.environment)?e.fakeChatId:c.modelId,autopack:{active:a.autoPackData.enabled,url:a.autoPackData.url},chatMode:c.chatMode,comfrom:a.comfrom,cf0:a.cf0,cf1:a.cf1,cf2:a.cf2,cfcrm:a.cfcrm,clientId:a.clientId,partner_parameters:a.partnerParameters,token:a.token,connectionHost:a.connectionHost,connectionPorts:a.connectionPorts,webRTCEndpoint:a.webRTCEndpoint,language:a.language,livePlayerSwfPath:a.streamPlayerSwfUrl,role:a.role,user_agent:a.user_agent,isTablet:a.isTablet,isMobile:a.isMobile,isMobileApp:!0,isHlsSourceTagNeeded:a.isHlsSourceTagNeeded,isHlsSupported:a.isHlsSupported,isHlsAutoplaySupported:!!i.mediaElementsStarted||a.isHlsAutoplaySupported,isIsivioo:a.isIsivioo,videoElement:i.videoElement,audioElement:i.audioElement,muteVideo:a.muteVideo,nicknamePromotionFor:a.nicknamePromotionFor,php_session_id:a.php_session_id,commonUuid:a.commonUuid,translationState:null!==c.translationLanguage?"Y":"N",translationLanguage:c.translationLanguage,visitorCountry:a.visitorCountry,tariffs:c.tariffs,autoStart:null===(u=c.autoStart)||void 0===u||u,chatNavigationSource:null!==(d=c.chatNavigationSource)&&void 0!==d?d:"pageload"}),o.chat=n.data("chat")},o.restart=function(t,n){-1!==["dev","test"].indexOf(e.environment)&&(t.account=e.fakeChatId),o.chat.restart(t,n)},o.destroy=function(){o.chat&&(s.forEach((function(e){clearTimeout(e)})),s=[],o.chat.destroy())},o.on=function(){var e,n={};if("string"==typeof arguments[0]?(n[arguments[0]]=arguments[1],e=arguments[2]):(n=arguments[0],e=arguments[1]),void 0!==e)for(var i in n)n[i]=t.proxy(n[i],e);t(document).on(n)},o.off=function(e,n){return t(document).off(e,n),o},o.trigger=function(e,n){t(document).trigger(e,n)},i=n(60550),a=t.extend(!0,{},c,e.chatBoxParameters)}}.apply(t,i),void 0===r||(e.exports=r)},41128(e,t,n){var i,r;n(3362),n(9391),i=[n(25631)],void 0===(r=function(e){"use strict";void 0===window.dnx&&(window.dnx={}),void 0===window.dnx.ui&&(window.dnx.ui={}),void 0===window.dnx.ui.chat&&(window.dnx.ui.chat={});window.dnx.ui.chat.LivePreviewBlur=function(t,n,i,r){let o,a,s,c,l,u={};const d=function(t,n,i,r){o=e(n),u=e.extend(u,r),c=t,s=u.videoElement?u.videoElement:document.createElement("video"),a=e(s),a.attr({src:document.location.protocol+"//statvideo.xmodels-live.ch/play/"+i+"/TEASING_HIGH/file.mp4",id:"liveplayer"}),o.append(a),e(document).on("startVideoStream.dnxChat",m),s.load(),a.on("error",h),a.on("ended",p),setTimeout((function(){o.trigger("video_start"),s.setAttribute("playsinline",!0);const t=s.play();s.onloadeddata=function(){o.trigger("video_render")},void 0!==t&&t.then((function(){"undefined"!=typeof _local&&_local.log("[dnx.LivePreviewBlur] Autoplay with sound started")})).catch((function(){"undefined"!=typeof _local&&(_local.log("[dnx.LivePreviewBlur] Autoplay with sound prevented",{muted:s.muted,paused:s.paused}),_local.log("[dnx.LivePreviewBlur] Mute the video and play it again")),s.muted=!0}
2)).finally((function(){s.muted&&setTimeout((function(){e(document).trigger("audioNeedsUnlocking.dnxChat")}),50),e(document).trigger("startVideoStream.dnxChat")}))}),0)},h=function(e){o.trigger("video_error")},p=function(e){f(),o.trigger("video_rejected")},f=function(){s.pause()},m=function(t){e(document).trigger("hidePlayButton.dnxChat"),function(){const e=s.play();void 0!==e&&e.catch((()=>{}))}()};this.destroy=function(){s&&(f(),a.removeAttr("src"),a[0].load(),o.find("video").remove(),a.off("error",h),a.off("ended",p)),e(document).off("startVideoStream.dnxChat",m),l&&document.removeEventListener("startLivePreviewVideo.dnxChat",l),document.removeEventListener("stopLivePreviewVideo.dnxChat",p)},this.toggleVolume=function(){let e=0;return c.vars.isMute&&(e=1),this.setVolume(e),e},this.setVolume=function(e){s&&(s.volume=e,g()||(s.muted=!e))},this.isVideoMuted=function(){return s.muted},this.unmuteVideo=function(){s.muted=!1};const g=function(){return!(["iPad","iPhone","iPod"].indexOf(navigator.platform)>=0)};(function(e,t,n,i){i.autoStart?d(e,t,n,i):(l=()=>d(e,t,n,i),document.addEventListener("startLivePreviewVideo.dnxChat",l),document.addEventListener("stopLivePreviewVideo.dnxChat",p))}).call(this,t,n,i,r)}}.apply(t,i))||(e.exports=r)},70700(e,t,n){var i,r;n(3362),n(62953),i=[n(59412)],r=function(e){return window._local={},canLog=()=>"prod"!==e.environment,window._local.log=function(){canLog()&&("undefined"!=typeof console&&void 0!==console.log||(console={log:function(){}}),console.log.apply(console,arguments))},window._local.logGroupCollapsed=function(){canLog()&&console.groupCollapsed.apply(console,arguments)},window._local.logGroupEnd=function(){canLog()&&console.groupEnd.apply(console,arguments)},window._local.ga=function(e,t){document.dispatchEvent(new CustomEvent(e,{detail:t}))},window.transitionScreen={show(e){document.dispatchEvent(new CustomEvent("vue:transition:show",{detail:{type:e}}))},hide(){document.dispatchEvent(new Event("vue:transition:hide"))},disconnected(){this.show("disconnected")},outOfCredits(){this.show("outOfCredits")},kickedOut(){this.show("kickedOut")},freeToPaid(){this.show("freeToPaid")},connect(){this.show("connect")}},window.modal={show(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};document.dispatchEvent(new CustomEvent("vue:modals:show",{detail:{type:e,...t}}))},hide(){document.dispatchEvent(new Event("vue:modals:close"))},lowCredits(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.paths.payment2018;this.show("lowCredits",{options:{backdropVisible:!1,translations:{creditsLow:e.translations.creditsLow,refillToContinueTheShow:e.translations.refillToContinueTheShow,refillNow:e.translations.refillNow},data:{paymentPath:t}}})},secretChatDisclaimer(){this.show("secretChatDisclaimer",{options:{backdropVisible:!1}})},visitorSatisfaction(e,t){this.show("visitorSatisfaction",{profileId:e,duration:t})},emailVerified(){this.show("emailVerified")},preUpsellCorrelatedPack(){this.show("preUpsellCorrelatedPack")},postUpsellAutoPack(){this.show("postUpsellAutoPack")},showLogin(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t={options:{keepAlive:!1},...e&&{targetedUrl:e}},i=n(60550).request("getAppModel");i.has("profileNickname")&&(t.profileId=i.get("profileNickname")),this.show("login",t)},hideLogin(){this.hide()},showSetPassword(){this.show("setPassword",{options:{modalSkippable:!1}})},easterInstructions(){this.show("easterInstructions")},showRegistration(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i={options:{keepAlive:!1,...t.options||{},...t.callback&&{callback:t.callback},...t.data&&{data:t.data},...t.translations&&{translations:t.translations}},...e&&{targetedUrl:e}},r=n(60550).request("getAppModel");r.has("profileNickname")&&(i.profileId=r.get("profileNickname")),this.show("registration",i)},cookieManagement(e){this.show("cookieManagement",{options:{backdropVisible:!1,backdropClass:"backdrop-not-clickable"},...e&&{localeToTranslateTo:e}})},showGuestMigration(){const e={},t=n(60550).request("getAppModel");t.has("profileNickname")&&(e.profileId=t.get("profileNickname")),this.show("guestMigration",e)},showAudioMigration(){const e={},t=n(60550).request("getAppModel");t.has("profileNickname")&&(e.profileId=t.get("profileNickname")),this.show("audioMigration",e)},showCamsFactorVoting(e,t){this.show("camsFactorVoting",{cammerId:e,modelNickname:t})},showAvs(){this.show("avs")}},window.snackbar={show(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Promise.all([n.e(3751),n.e(8560)]).then(n.bind(n,48560)).then((()=>{document.dispatchEvent(new CustomEvent("snackbar:".concat(e),{detail:t}))}))},success(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.message=e,this.show("success",t)},warning(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.message=e,this.show("warning",t)},error(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.message=e,this.show("error",t)},info(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.message=e,this.show("info",t)},notify(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.message=e,n.notification=!0,this.show(t,n)}},window._local}.apply(t,i),void 0===r||(e.exports=r)},34995(e,t,n){var i,r;i=[n(97378)],void 0===(r=function(e){window.io=e}.apply(t,i))||(e.exports=r)},42546(e,t,n){var i,r;i=[n(18638),n(59412),n(70700)],void 0===(r=function(e,t,n){return n.threatMetrix={startTime:null,delay:2e3,getRemainingTime:function(){var e=(new Date).getTime();return Math.max(0,this.delay-(e-this.startTime))},isInitialized:function(){return null!==this.startTime&&0==this.getRemainingTime()},start:function(){null===this.startTime&&(this.startTime=(new Date).getTime(),t.threatMetrix.autostart||e.ajax({url:t.threatMetrix.path,data:{start:1}}))},link:function(t){var n=this;e(t).on("click",(function(t){if(!n.isInitialized()){t.preventDefault();var i=e(this);setTimeout((function(){document.location.href=i.attr("href")}),n.getRemainingTime())}}))},ajax:function(t){setTimeout((function(){e.ajax(t)}),this.getRemainingTime())}},t.threatMetrix.autostart&&n.threatMetrix.start(!0),n.threatMetrix}.apply(t,i))||(e.exports=r)}
2,25631(e,t,n){var i,r;i=[n(29514)],void 0===(r=function(e){var t=$.noConflict(!0);return window.dnxChatGetJQueryFunc=function(){return t},t}.apply(t,i))||(e.exports=r)},43043(e,t,n){var i,r;i=[n(47113),n(59412)],r=function(e,t){return e.extend({url:function(e){var t="chat/"+this.get("id")+"/?partial";return e&&(e.next?t+="&next":e.prev&&(t+="&prev")),t},urlNickname:function(){return"chat/"+this.get("nickname")+"/"},parse:function(t){return e.prototype.parse.apply(this,arguments)},nextCammer:function(){return this.fetch({url:this.url({next:!0})})},prevCammer:function(){return this.fetch({url:this.url({prev:!0})})},getVirtualItemBalance:function(){return $.ajax({method:"GET",url:t.chatModule.paths.get_virtual_item_balance,dataType:"json"})},assignVisitorProcess:function(e,n){var i={method:"GET",url:t.chatModule.paths.assign_visitor_process,data:{process_name:e}};return $.extend(i,n),$.ajax(i)}})}.apply(t,i),void 0===r||(e.exports=r)},17851(e,t,n){var i,r;n(74423),n(3362),n(27495),n(25440),n(62953),i=[n(18638),n(56883),n(95735),n(54515),n(59412),n(81864),n(95189),n(60494),n(23161),n(33129),n(9340),n(48217),n(4927),n(77858),n(76334),n(22814),n(16e3)],r=function(e,t,i,r,o,a,s,c,l,u,d,h,p,f,m,g,v){var y=v.AvsService;return i.extend({name:"ChatView",AppInstance:null,appModel:null,chatBox:null,toyStatus:"TOY_NOT_AVAILABLE",toyVisible:"PAY",previewWithoutAutoStart:["O2M_CRM_LINK","O2O_CRM_LINK","VOYEUR_CRM_LINK"],overlaysManager:null,hammerChat:null,rootEl:null,isFullscreen:!0,isMobileStream:!1,showInterface:!0,audiotelRedialType:null,timerTeasingFiveSec:null,swiperChatHandler:null,pathBeforeMinimizing:null,initialize:function(t){var r;this.AppInstance=n(60550),this.appModel=this.AppInstance.request("getAppModel"),this.chatBox=t.chatBox,this.chatVueApp=document.querySelector("#chat-vue-app"),this.deviceType=null!==(r=e("html").data("device"))&&void 0!==r?r:"mobile",this.chatBox.lastChat={startedAt:null,endedAt:null},this.picturesViewer,this.resizeHandler=e.proxy(this.resizeHandler,this),this.appModel.on("change:device",this.resizeHandler),this.orientation=this.appModel.get("device").orientation,this.HAMMER_ACTION_SINGLETAP="singletap",this.ratioOfHorizontalScroll=0,this.model.set("toyStatus",this.toyStatus),this.model.set("toyVisible",this.toyVisible),this.setChatBoxEvents(),this.triggerDefaultActions=o.triggerDefaultActions,document.addEventListener("chat:next-model",(e=>{this.nextModelHandler()})),document.addEventListener("chat:prev-model",(e=>{this.prevModelHandler()})),document.addEventListener("chat:close",(e=>{this.closeChatHandler()})),document.addEventListener("autopack:refill",(e=>{var t,n;const i=new window.dnx.logic.PaypalProcessing,r=null!==(t=null===(n=e.detail)||void 0===n?void 0:n.doIt)&&void 0!==t&&t;this.chatBox.trigger("doAutoRefill.dnxChat",[r,i.getFraudnetGuid()])})),document.addEventListener("redirectToPayment",(e=>{var t;this.redirectToPayment(null!==(t=e.detail.fromGoButtons)&&void 0!==t&&t)})),document.addEventListener("restartChatConnection",(e=>{this.chatBox.restart({account:this.model.get("id"),chatMode:e.detail.legacyChatMode,chatNavigationSource:this.appModel.get("chatNavigationSource")},!0)})),document.addEventListener("chat:ui:toggle",(e=>{const t=this.$el.parent().hasClass("has-hidden-controls");this.toggleUi(t)})),document.addEventListener("chat:viewMode:change",(e=>{const t="fullscreen"===e.detail.view;d.matchChatBoxed()?this.toggleDesktopFullscreen(t):this.toggleFullscreen(t)})),document.addEventListener("hideStreamLoader",(e=>{this.ui.videoContainer.removeClass("is-loading")})),document.addEventListener("chat:minimize",(()=>{this.minimizeChat()})),i.prototype.initialize.apply(this,arguments)},ui:{wrapper:".chat__wrapper",chatControls:".chat__controls",overlays:"#overlaysWrapper",player:"#chatPlayer",playerHolder:".chat__player-holder",videoContainer:"#videoContainer",videoPlayerContainer:"#videoPlayerContainer",redialOverlayContent:".js-overlay-redial-content",redialOverlayGoBtn:".js-overlay-redial-bo-btn",mainChat:".chat",playStreamBtn:"#playstream",videoSnapshot:".chat__video-snapshot",header:".header",chatActions:".chat__actions",headerLogo:".header__logo",swiperWrapper:".swiper-wrapper",swiperSlide:".swiper-slide.slide-chat",swiperSlideChatPrev:".slide-chat.swiper-slide-prev",swiperSlideChatNext:".slide-chat.swiper-slide-next",swiperSlidePic:".swiper-slide.slide-picture",slidesPictures:".js-gallery-image",mediaViewer:".js-media-viewer",swiperSlidePics:".swiper__pictures .swiper-slide",mediaViewerPrevBtn:".js-media-viewer-prev",mediaViewerNextBtn:".js-media-viewer-next",mediaViewerCloseBtn:".js-media-viewer-close",mediaViewerBackdrop:".js-media-viewer-backdrop",chatMinimizeIcon:".js-chat-minimize",chatImgBlurred:".chat__blur img"},events:{"click @ui.headerLogo":"headerLogoClickHandler","click @ui.redialOverlayGoBtn":"audiotelRedialClickHandler","click @ui.mediaViewerPrevBtn":"mediaViewerPrevHandler","click @ui.mediaViewerNextBtn":"mediaViewerNextHandler","click @ui.mediaViewerCloseBtn":"closeMediaViewer","click @ui.mediaViewerBackdrop":"closeMediaViewer","click @ui.slidesPictures":"openMediaViewer","click @ui.chatMinimizeIcon":"chatMinimizeHandler"},triggerDefaultActions:{goLive:!1,goPrivate:!1,disableSound:!1,sendGift:!1},render:function(){return i.prototype.render.apply(this,arguments)},onRender:function(){var e,i,a,s=this;this.rootEl=this.$el.parent().get(0),this.ui.wrapper.scrollTop(0),this.pathBeforeMinimizing=null,this.isMobileStream="MOB"===this.model.get("applType"),this.rootEl.classList.toggle("chat--mobile-stream",this.isMobileStream),this.swiperHandler(),this.initChatViewMode(),this.overlaysManager=new p(this.ui.overlays,this.ui.wrapper),this.resetChatDuration(),clearTimeout(this.timerTeasingFiveSec);let l=this.model.get("chatMode");this.ui.videoPlayerContainer.toggleClass("is-free-chat-blurred","FREE"===l&&y.isFreeChatBlurred()),this.model.get("isOnline")?(this.fiveSecondPreviewBeforePaidChat()&&(l="O2M_TEASING_5S"),this.appModel.isChatMinimized()?(this.chatBox.trigger("exit.dnxChat","switchedCammer"),this.chatBox.restart({account:this.model.get("id"),chatMode:l,translationLanguage:this.model.get("translationLanguage"),chatNavigationSource:this.appModel.get("chatNavigationSource")},!0)):this.chatBox.start(this.ui.videoPlayerContainer,{modelId:this.model.get("id"),chatMode:l,translationLanguage:this.model.get("translationLanguage"),tariffs:{o2o:this.model.get("tariffs").o2o,o2m:this.model.get("tariffs").o2m},autoStart:!this.previewWithoutAutoStart.includes(l),chatNavigationSource:this.appModel.get("chatNavigationSource")},this.model.get("enableCheckAudioSession"))):this.setOffline(),this.appModel.isChatMinimized()&&this.maximizeChat(),this.hammerChat=new t.Manager(this.ui.videoContainer.get(0));var u=new t.Tap({event:this.HAMMER_ACTION_SINGLETAP});this.hammerChat.add([u]),this.hammerChat.on(this.HAMMER_ACTION_SINGLETAP,(function(e){s.appModel.isChatMinimized()&&(s.maximizeChat(),s.toggleUi(!0))})),this.appModel.isChatMinimized()&&this.rootEl.classList.add("chat--fullscreen"),n.e(8301).then(n.bind(n,58301)).then((e=>{let t=e.MediaSlider;this.ui.swiperSlidePics.length>=1&&(this.picturesViewer=new t(this.ui.mediaViewer.find(".swiper").selector,this.ui.mediaViewer.find(".swiper-slide").selector,{pagination:{el:".media-viewer__pagination",type:"fraction"}}))})),d.isTouchSensitiveDevice()||new PerfectScrollbar("#popover-chat-reaction",{wheelPropagation:!1}),_local.ga("dl:chat:enter",{chatModel:null===(e=this.model)||void 0===e?void 0:e.get("nickname"),chatTranslationLanguage:null===(i=this.model)||void 0===i?void 0:i.get("translationLanguage"),chatModelLanguages:null===(a=this.model)||void 0===a?void 0:a.get("isoLanguages")});const h=this.model.get("tariffs"),f=this.appModel.get("user"),m={display:o.seasonalEvents.camsFactorIsRunning||o.seasonalEvents.isValentine,context:o.seasonalEvents.camsFactorIsRunning?"camsfactor":"valentine"};Promise.all([n.e(3751),n.e(9928),n.e(8279),n.e(8924)]).then(n.bind(n,96213)).then((()=>{var e,t,n,i,a,s,u,d,p,g,v,y,w,b,C,T;this.chatVueApp.dispatchEvent(new CustomEvent("toggle-app",{detail:{show:!0,cammer:{account:this.model.get("id"),nickname:this.model.get("nickname"),tariffs:{private:h.o2m,vip:h.o2o,voyeur:h.voyeur},isOnline:this.model.get("isOnline"),inShow:this.model.get("inShow"),spokenLanguages:{textual:this.model.get("languages"),isoCode:this.model.get("isoLanguages")},firstLanguage:this.model.get("firstLanguage"),country:this.model.get("country"),isFavorite:this.model.get("isFavorite"),isBlacklisted:this.model.get("isBlacklisted"),snapshot:this.model.get("pictures")[0],pictures:this.model.get("pictures").slice(1),age:this.model.get("age"),description:this.model.get("description"),showCountryFlag:this.model.get("showCountryFlag"),camsFactorRanking:null!==(e=this.model.get("competitionRanking"))&&void 0!==e?e:null,topBadgeStatus:null!==(t=this.model.get("topBadgeStatus"))&&void 0!==t?t:"none",topBadgeLabel:null!==(n=this.model.get("topBadgeLabel"))&&void 0!==n?n:"",videoTeaserUrl:this.model.get("freeVideo").url},user:{role:f.role.toLowerCase(),loggedIn:this.appModel.userLoggedIn(),credits:f.credits,returning:f.isReturning,country:f.country,translationLanguage:this.model.get("translationLanguage"),locale:f.locale,nickname:null!==(i=null!==(a=c.get("nickname"))&&void 0!==a?a:f.nickname)&&void 0!==i?i:"",payingUser:f.isPayingUser,brandName:f.brandName,lastPaidWith:this.model.get("lastPaidWith"),eligibleToLivePreview:this.model.get("eligibleToLivePreview"),eligibleToPreviewBeforePaidChat:this.model.get("eligibleToPreviewBeforePaidChat")},chatMode:l,chatType:this.model.get("chatType"),hasChatConnection:null!==this.chatBox.chat.connection,visitorCam:{type:(null===(s=this.chatBox.chat)||void 0===s?void 0:s.currentVisitorCamType)||null,c2cEnabled:(null===(u=this.chatBox.chat)||void 0===u||null===(u=u.vars)||void 0===u?void 0:u.c2cEnabled)||!1,webRTCSupported:"WebRTCVisitorCam"===(null===(d=this.chatBox.chat)||void 0===d?void 0:d.currentVisitorCamType)},toy:{status:this.toyStatus,visible:this.toyVisible,balance:this.model.get("toyTicketsBalance"),duration:0,price:0},viewMode:this.isFullscreen?"fullscreen":"compact",chatOffer:{currencyTextual:null!==(p=null===(g=o.offerTariffDto)||void 0===g||null===(g=g.currencyInfo)||void 0===g?void 0:g.currency)&&void 0!==p?p:null,integerPart:null!==(v=null===(y=o.offerTariffDto)||void 0===y?void 0:y.finalAmount)&&void 0!==v?v:null,finalCredits:null!==(w=null===(b=o.offerTariffDto)||void 0===b?void 0:b.finalCredits)&&void 0!==w?w:null,currencyConversion:null!==(C=null===(T=o.offerTariffDto)||void 0===T?void 0:T.currencyConversion)&&void 0!==C&&C,offerTextSuffix:r.trans("only")},bestTipper:{display:m.display,context:m.context},seasonalEvent:o.seasonalEvents.currentEvent,easterEggPromo:this.model.get("easterEggPromo"),paymentPagePath:this.getPaymentPathForUserLoggedIn()}})),this.showSnapshot()}))},swiperHandler:function(){var t=1;this.ui.swiperSlide.first().hasClass("chat__wrapper")&&(t=0),this.swiperChatHandler=new m(".swiper__chat",{noSwiping:!0,initialSlide:t,init:!1,on:{init:()=>{setTimeout((()=>{document.dispatchEvent(new CustomEvent("swiper:navigation:stateChanged",{detail:{activeIndex:this.swiperChatHandler.activeIndex,slidesLength:this.swiperChatHandler.slides.length,hasPrev:this.swiperChatHandler.activeIndex>0,hasNext:this.swiperChatHandler.activeIndex<this.swiperChatHandler.slides.length-1}}))}),200)}}}),this.ui.swiperSlide.find("> img").css("visibility","visible"),this.swiperChatHandler.init();var n=this;this.swiperChatHandler.on("slideChange",(function(t){const i=e(n.swiperChatHandler.slides[n.swiperChatHandler.activeIndex]).attr("data-cammer-id");n.appModel.set("chatNavigationSource","swipe"),null!==n.pathBeforeMinimizing&&n.leaveChatHandler("switchedCammerShuffle"),a.navigate("chat/"+i+"/",{trigger:!0})})),this.swiperChatHandler.on("sliderMove",(function(e){document.dispatchEvent(new Event("hide:popover"))}))},prevModelHandler:function(){document.dispatchEvent(new CustomEvent("chatView:videoOverlay:hideAll")),this.swiperChatHandler.slidePrev(0)},nextModelHandler:function(){document.dispatchEvent(new CustomEvent("chatView:videoOverlay:hideAll")),this.swiperChatHandler.slideNext(0)},resizeHandler:function(t){var n=this;this.orientation=this.appModel.get("device").orientation,"landscape"!==this.orientation||this.isMobileStream&&"mobile"!==this.deviceType?n.appModel.isChatMinimized()||(n.$el.parent().toggleClass("chat--fullscreen chat__desktop--fullscreen",n.isFullscreen),n.isFullscreen||n.toggleInterface(!0)):(n.$el.parent().addClass("chat--fullscreen"),d.matchChatBoxed()&&n.$el.parent().toggleClass("chat__desktop--fullscreen",n.isFullscreen)),e("#chat").height("100%"),setTimeout((function(){n.appModel.isChatMinimized()||n.centerVideo(),"portrait"===n.orientation&&e(window).scrollTop(e(window).scrollTop()-10)}),200)},storeLastChatDetails:function(){var e=this.chatBox.lastChat.reason;void 0===e&&(e="switchedCammerZap");var t={chatMode:this.model.get("chatMode"),cammerNickname:this.model.get("nickname"),cammerId:this.model.get("id"),duration:this.getLastChatDuration(),reason:e};this.AppInstance.commands.execute("app:chat:storeLastChat",t)}
2,toggleVideoAndSnapshot:function(e,t){this.ui.videoPlayerContainer.toggleClass("is-fading-in",!e),this.ui.videoSnapshot.toggleClass("is-visible",!e),this.getStreamMediaPlayer().toggleClass("is-visible",e&&!t),this.ui.chatImgBlurred.toggleClass("is-visible",e)},showSnapshot:function(e){e=e||!1,this.toggleVideoAndSnapshot(!1,!1)},showVideo:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.toggleVideoAndSnapshot(!0,e)},setOffline:function(){this.ui.videoContainer.removeClass("is-loading")},toggleVideoOverlay:function(e,t){this.overlaysManager.toggleOverlay(e,t),d.isTouchSensitiveDevice()&&this.overlaysManager.toggleHasOverlay(t)},showVideoOverlay:function(e){this.toggleVideoOverlay(e,!0),document.dispatchEvent(new Event("hide:popover")),document.dispatchEvent(new CustomEvent("chatView:videoOverlay:show",{detail:{isMini:this.overlaysManager.isMiniOverlay(e)}}))},hideAllVideoOverlays:function(){this.overlaysManager.hideAllOverlays(),document.dispatchEvent(new CustomEvent("chatView:videoOverlay:hideAll")),d.isTouchSensitiveDevice()&&this.overlaysManager.removeHasOverlay()},getPaymentPathForUserLoggedIn:function(){let e=o.paths.payment2018;const t=this.model.get("lastPaidWith"),n=null==t?void 0:t.paymentMethod,i=null==t?void 0:t.packKey;return n&&["dimoco","sunrise","salt","swisscom"].includes(n.toLowerCase())?e.replace("/payment2018/","/mobile2018/"):(n&&(e+=n.toLowerCase()),n&&i&&(e=e+"/"+i.toLowerCase()),e)},redirectToPayment:function(e){let t;e=e||!1;const n={};if(this.appModel.userLoggedIn())t=this.getPaymentPathForUserLoggedIn();else{if(!o.offerAvailable)return void window.transitionScreen.connect();t=o.paths.signup_with_profile.replace("__profileId__",this.model.get("nickname")),"O2M_BLUR"!==this.model.get("chatMode")||e||(n.fromTeasing=1)}t=this.AppInstance.getUrlWithExtraParameters(t,n),a.navigate(t,{},!0)},setChatBoxEvents:function(){this.chatBox.on({"groupShowMode.dnxChat":function(){this.model.set("chatMode","O2M"),this.hideAllVideoOverlays();var e=this.model.get("tariffs");this.model.get("nickname");-1!==u.indexOf([7,10,15],e.o2m)&&this.appModel.hasSpecialTariff()&&snackbar.info(r.trans("specialTariffForNewCustomer"),{timeout:10})},"blurPreviewMode.dnxChat":function(){this.model.set("chatMode","O2M_BLUR"),this.hideAllVideoOverlays()},"teasingMode.dnxChat":function(){this.model.set("chatMode","O2M_TEASING_5S"),this.hideAllVideoOverlays();this.model.get("nickname");this.timerTeasingFiveSec=setTimeout((()=>{this.chatBox.trigger("noMoreTeasingTime.dnxChat",!0),e("#liveplayer").get(0).pause()}),1e4)},"voyeurMode.dnxChat":function(){this.model.set("chatMode","O2O_VOYEUR"),this.hideAllVideoOverlays();var e=this.model.get("nickname"),t=this.model.get("tariffs");const n=r.trans("chat_welcome_voyeur",{"%nickname%":e,"%tariff%":t.voyeur}),i=r.trans("chat_welcome_voyeur_details",{"%nickname%":e,"%tariff%":t.voyeur});snackbar.info(i,{title:n,timeout:20})},"privateShowMode.dnxChat":function(){this.model.set("chatMode","O2O"),this.hideAllVideoOverlays();this.model.get("tariffs"),this.model.get("nickname")},"noMoreCredits.dnxChat":function(){this.showSnapshot(),this.endChatDuration()},"audiotelHangUp.dnxChat":function(){this.clearAudiotelTimeout();var t=this;e.ajax({url:o.paths.audiotelRedial,type:"GET",success:function(e){if(e.success&&e.status&&e.status.match(/^OK/)){var n={redialStatus:e.status,chatBox:t.chatBox};e.infos&&(n.displayNumber=e.infos.display_number,n.pinCode=e.infos.pin_code),t.showVideoOverlay("audioRedial"),t.audiotelRedialOverlayHandler(n),t.timerAudiotel=setTimeout((function(){t.redirectToPayment()}),7e4)}},error:function(){t.redirectToPayment()}})},"chatStatusChanged.dnxChat":function(e,t){"OFFLINE"===t||this.chatMinimizeHandler(!1)},"noMoreFreeSeconds.dnxChat":function(){},"noMoreAccess.dnxChat":function(e,t){this.ui.videoContainer.removeClass("is-loading"),this.showSnapshot()},"joinFailed.dnxChat":function(e,t){this.ui.videoContainer.removeClass("is-loading"),clearTimeout(this.timerTeasingFiveSec)},"youHaveBeenBanned.dnxChat":function(e,t){this.endChatDuration()},"showGoPrivateButtons.dnxChat":function(e,t){},"youHaveBeenMutedOrUnmuted.dnxChat":function(e){},"requestOne2One.dnxChat":function(){},"joinSuccess.dnxChat":function(){this.triggerDefaultActions.sendGift&&(this.ui.giftItem.filter('[data-gift-id="'+this.triggerDefaultActions.sendGift+'"]').trigger("click"),this.triggerDefaultActions.sendGift=!1),this.hideAllVideoOverlays(),-1===["O2M_TEASING_5S","O2M_BLUR"].indexOf(this.chatBox.chat.vars.chatType)&&this.startChatDuration(),this.chatBox.chat.videoStream.ready&&this.ui.videoContainer.removeClass("is-loading"),[this.timerTeasingFiveSec].forEac
2h(clearTimeout)},"askVisitorToJoinPaid.dnxChat":function(e,t){this.endChatDuration()},"chatStreamReady.dnxChat":function(){this.ui.videoContainer.removeClass("is-loading")},"videoTeaserStarted.dnxChat":function(e){this.showVideo(!0)},"videoStarted.dnxChat chatVideoRender.dnxChat":function(e){this.showVideo(),"chatVideoRender"!==e.type&&setTimeout((()=>{this.centerVideo()}),0)},"chatStreamLoadedData.dnxChat":function(){this.centerVideo()},"askForAutoRefill.dnxChat":function(e,t){if(!this.appModel.preventLowCreditsWarning())if(t){const e="CREDITCARD"===o.autoPackData.method?r.trans("card"):"paypal",t=r.trans("autoPackChatModalPrice").replace("%paymentMethod%",e);snackbar.info("",{timeout:10,title:r.trans("creditsFinishingSoon"),data:{template:"Autorefill",autorefill:o.autoPackData,translation:{autoPackWillActivate:r.trans("autoPackWillActivate"),youWillReceiveXCredits:r.trans("youWillReceiveXCredits"),autoPackChatModalPrice:t,cancelAutoPack:r.trans("cancelAutoPack"),clickHere:r.trans("clickHere")}}})}else modal.lowCredits(this.getPaymentPathForUserLoggedIn())},"autorefillFailed.dnxChat":function(){snackbar.error(r.trans("autopackFailMessage"),{timeout:5,title:r.trans("autopackFailTitle")})},"autorefillDone.dnxChat":function(){const e=r.trans("autopackSuccessful"),t=o.autoPackData.discount.freeCredits,n=r.trans("xCreditsAddedForYourAccount",{"%credits%":o.autoPackData.credits,"%freeCredits%":t});snackbar.success(n,{title:e,timeout:5})},"voyeurAllowedChanged.dnxChat":function(e,t){},"noMoreTeasingTime.dnxChat":function(e,t){this.endChatDuration()},"exit.dnxChat":function(e,t){null===this.chatBox.lastChat.endedAt&&this.endChatDuration(),this.chatBox.lastChat.reason=t}},this)},minimizeChat:function(){this.pathBeforeMinimizing=location.pathname,this.chatVueApp.dispatchEvent(new CustomEvent("toggle-app",{detail:{show:!1}})),document.dispatchEvent(new Event("chat-minimized")),this.rootEl.style.transform=null,this.rootEl.style.right=null,this.rootEl.style.bottom=null,this.rootEl.style.opacity=null,this.rootEl.classList.add("chat--fullscreen"),this.rootEl.classList.add("is-minimized"),this.rootEl.classList.add("is-animated"),this.appModel.set("chatMinimized",!0),this.AppInstance.commands.execute("app:lockBackgroundScroll",!1),this.$el.parent().off("transitionend")},maximizeChat:function(){this.rootEl.style.transform=null,this.rootEl.style.right=null,this.rootEl.style.bottom=null,this.rootEl.classList.remove("is-minimized"),this.rootEl.classList.add("is-animated"),this.appModel.set("chatMinimized",!1),this.toggleInterface(this.showInterface),"portrait"===this.orientation&&this.toggleFullscreen(this.isFullscreen),document.dispatchEvent(new Event("chat-maximized")),this.pathBeforeMinimizing&&a.navigate(this.pathBeforeMinimizing,{replace:!0}),this.$el.parent().one("transitionend",this.maximizeChatTransitionEndHandler.bind(this)),this.appModel.set({page:"chat"})},maximizeChatTransitionEndHandler:function(){this.AppInstance.commands.execute("app:lockBackgroundScroll",!0),this.rootEl.classList.remove("is-animated"),this.chatVueApp.dispatchEvent(new CustomEvent("toggle-app",{detail:{show:!0}}))},closeMinimizedChat:function(){this.rootEl.classList.remove("is-minimized"),this.rootEl.classList.remove("is-animated"),this.rootEl.classList.remove("is-visible"),this.rootEl.removeAttribute("style"),this.appModel.set("chatMinimized",!1),this.toggleInterface(!0),this.AppInstance.commands.execute("app:lockBackgroundScroll",!1),this.AppInstance.commands.execute("app:zapp:enableCams"),this.AppInstance.commands.execute("app:guestMigrationFlow"),this.chatBox.trigger("exit.dnxChat","switchedCammerZap");const e=this.getLastChatDuration(),t=this.model.get("chatMode");e>60&&["O2O","O2M"].includes(t)&&modal.visitorSatisfaction(this.model.get("id"),e),this.chatBox.destroy(),this.chatVueApp.dispatchEvent(new CustomEvent("toggle-app",{detail:{show:!1}}))},leaveChatHandler:function(e){this.chatBox.trigger("exit.dnxChat",e),this.chatBox.destroy()},toggleInterface:function(e){this.showInterface=void 0===e?!this.showInterface:e,this.toggleUi(this.showInterface)},toggleUi:function(e){this.$el.parent().toggleClass("has-hidden-controls",!e)},initChatViewMode:function(){let e;if(this.isMobileStream&&"mobile"!==this.deviceType)e=!1;else{e="compact"!==window.localStorage.getItem("chat_view_mode")}d.matchChatBoxed()?this.toggleDesktopFullscreen(e):this.toggleFullscreen(e),document.dispatchEvent(new CustomEvent("chat:viewMode:change",{detail:{view:e?"fullscreen":"compact"}}))},toggleDesktopFullscreen:function(e){this.isFullscreen="boolean"==typeof e?e:!this.isFullscreen,this.isFullscreen?this.$el.parent().addClass("chat__desktop--fullscreen"):(this.$el.parent().removeClass("chat__desktop--fullscreen"),this.toggleInterface(!0))},toggleFullscreen:function(e){this.isFullscreen="boolean"==typeof e?e:!this.isFullscreen,this.isFullscreen?this.$el.parent().addClass("chat--fullscreen"):(this.$el.parent().removeClass("chat--fullscreen"),this.toggleInterface(!0)),setTimeout((()=>{this.centerVideo()}),0)},centerVideo:function(){var e=this.getStreamMediaPlayer();if(e.length)if("portrait"===this.orientation){var t=e.innerWidth();t>window.innerWidth?this.ui.playerHolder.scrollLeft((t-window.innerWidth)/2):this.ui.playerHolder.scrollLeft(0)}
2else{var n=e.innerHeight();n>window.innerHeight?this.ui.playerHolder.scrollTop((window.innerHeight-n)/2):this.ui.playerHolder.scrollTop(0)}},notify:function(t,n,i){var r=this.ui.wrapper.find(".notification");r.length&&r.remove();var o=e("<div class='notification notification--"+t+"'>"+n+"</div>");this.ui.wrapper.append(o),setTimeout((function(){o.addClass("is-visible")}),100),setTimeout((function(){o.removeClass("is-visible"),o.one("transitionend",(function(){o.remove()}))}),i||3e3)},getStreamMediaPlayer:function(){return this.ui.videoPlayerContainer.find("#liveplayer")},headerLogoClickHandler:function(e){this.minimizeChat()},closeChatHandler:function(){this.closeMinimizedChat()},audiotelRedialOverlayHandler:function(e){var t=e.redialStatus;if(u.has(e,"displayNumber"))var n=e.displayNumber;if(u.has(e,"pinCode"))var i=e.pinCode;var o,a="OK_PIN_NEEDED"===t,s=n&&!i;this.audiotelRedialType=a?s?"reversePin":"pin":"noPin","noPin"===this.audiotelRedialType?o=r.trans("audio_redial.message_no_pin",{"%nickname%":'<span class="profile-nickname">'+this.model.get("nickname")+"</span>"}):"pin"===this.audiotelRedialType?o=r.trans("audio_redial.redial.message_pin",{"%nickname%":'<span class="profile-nickname">'+this.model.get("nickname")+"</span>"}):"reversePin"===this.audiotelRedialType&&(o=r.trans("audio_redial.redial.message_reverse_pin",{"%nickname%":'<span class="profile-nickname">'+this.model.get("nickname")+"</span>"})),this.ui.redialOverlayContent.find(".js-overlay-redial-text").html(o),this.ui.redialOverlayContent.find(".js-overlay-redial-number").text(n),"pin"===this.audiotelRedialType&&this.ui.redialOverlayContent.find(".js-overlay-redial-pin-wrapper").show().find(".js-overlay-redial-pin").text(i),"reversePin"===this.audiotelRedialType&&this.ui.redialOverlayContent.find(".js-overlay-redial-input-pin").show()},audiotelRedialClickHandler:function(t){t.preventDefault();var n,i=this;this.clearAudiotelTimeout(),"reversePin"===this.audiotelRedialType&&(n=this.ui.redialOverlayContent.find("js-overlay-redial-input-pin").val());var a={redial_status:this.redialStatus};n&&(a.pin=n),e.ajax({url:o.paths.audiotelRedial,type:"POST",data:a,success:function(e){e.success?i.chatBox.restart({token:e.token,chatNavigationSource:i.appModel.get("chatNavigationSource")},!0):s.alert("",e.error)},error:function(){s.alert("",r.trans("AnErrorOccuredPleaseRetryLater"))}})},clearAudiotelTimeout:function(){null!==this.timerAudiotel&&clearTimeout(this.timerAudiotel)},startChatDuration:function(){this.chatBox.lastChat.startedAt=Date.now(),this.chatBox.lastChat.endedAt=null},endChatDuration:function(){this.chatBox.lastChat.endedAt=Date.now(),this.setModelIdInSession()},setModelIdInSession:function(){"FREE"!==this.model.get("chatMode")&&this.getLastChatDuration()>=60&&e.ajax({url:o.paths.ajax_set_last_paid_chat,type:"POST",data:{model_id:this.model.get("id")}})},resetChatDuration:function(){this.chatBox.lastChat.startedAt=null,this.chatBox.lastChat.endedAt=null},getLastChatDuration:function(){if(null===this.chatBox.lastChat.startedAt)return!1;var e=null===this.chatBox.lastChat.endedAt?Date.now():this.chatBox.lastChat.endedAt;return Math.ceil((e-this.chatBox.lastChat.startedAt)/1e3)},fiveSecondPreviewBeforePaidChat:function(){if(!1===this.model.get("teasingBeforePaidChat"))return!1;var e=!1,t=JSON.parse(localStorage.getItem("last-chat-details"));return this.model.get("eligibleToPreviewBeforePaidChat")&&"FREE"!==this.model.get("chatMode")&&"O2M_BLUR"!==this.model.get("chatMode")&&!this.appModel.isChatMinimized()&&null!==t&&t.chatMode&&"swipe"===this.appModel.get("chatNavigationSource")&&(e=!0),e},openMediaViewer:function(t){var n;const i=null!==(n=e(t.currentTarget).data("index"))&&void 0!==n?n:0;this.picturesViewer.slideTo(i),this.ui.mediaViewer.addClass("is-visible")},closeMediaViewer:function(){this.ui.mediaViewer.removeClass("is-visible")},mediaViewerPrevHandler:function(){this.picturesViewer.slidePrev()},mediaViewerNextHandler:function(){this.picturesViewer.slideNext()},chatMinimizeHandler:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.ui.chatMinimizeIcon.toggleClass("is-minimized",e)}})}.apply(t,i),void 0===r||(e.exports=r)},67364(e,t,n){var i,r;i=[n(20548),n(27759),n(82505),n(95189),n(54515),n(81864)],void 0===(r=function(e,t,i,r,o,a){return e.extend({conversationRoute:function(e){var s=n(60550),c=this.createModelAndView(s.conversationRegion,"ConversationView","#conversation > div",i,{id:e},t,{}),l=c.model,u=c.view,d=c.fetchModelData;c.viewExisted||(u.on("deleteConversation",(function(e){l.delete().done((function(e){e.success&&a.navigate("conversations",{trigger:!0,replace:!0},!0)}))})),u.on("sendMessage",(function(e){l.sendMessage(e.message,e.gifts).done((function(t){t.success?(u.addConversationRow(e.message,e.gifts),document.dispatchEvent(new CustomEvent("nav-bar:update:credits",{detail:{credits:t.credits}}))):r.alert(o.trans("messageboxAlertTitle"),t.error)}))}
2))),d&&l.fetch()}})}.apply(t,i))||(e.exports=r)},50892(e,t,n){var i,r;i=[n(64794),n(33745)],void 0===(r=function(e,t){return e.Module.extend({initialize:function(){this.Router=new t}})}.apply(t,i))||(e.exports=r)},33745(e,t,n){var i,r;i=[n(4785),n(67364)],r=function(e,t){return e.extend({appRoutes:{"conversation/:id(/)":"conversationRoute"},before:function(t,n){e.prototype.before.apply(this,arguments)},after:function(t,n){e.prototype.after.apply(this,arguments)},leave:function(e,t){var i=n(60550);i.conversationRegion.$el.removeClass("is-visible"),i.commands.execute("app:lockBackgroundScroll",!1)},controller:new t})}.apply(t,i),void 0===r||(e.exports=r)},82505(e,t,n){var i,r;i=[n(18638),n(59412),n(47113)],r=function(e,t,n){return n.extend({defaults:{partialType:t.constants.PARTIAL_TYPE_FULL,page:1,pages:0},initialize:function(e){this.on("change:type",(function(e){this.fetch()}))},url:function(t){var n="conversation/"+this.get("id"),i={partial:"",partial_type:this.get("partialType"),page:this.get("page"),navigate_from:"conversations"};return n+"?"+e.param(i)},parse:function(e){return n.prototype.parse.apply(this,arguments)},delete:function(){return e.ajax({method:"POST",url:t.conversationModule.paths.delete_conversations,data:{hashes:[this.get("conversationHash")]}})},sendMessage:function(n,i){return e.ajax({method:"POST",url:t.conversationModule.paths.messagebox_writeMessage,data:{cammerid:this.get("id"),messagetext:n,gifts:i}})}})}.apply(t,i),void 0===r||(e.exports=r)},27759(e,t,n){var i,r;n(3362),n(62953),i=[n(18638),n(33129),n(95735),n(54515),n(95189)],r=function(e,t,i,r,o){return i.extend({name:"ConversationView",picturesViewer:null,ui:{giftsBtn:".js-chat__text-gift",giftsContainer:".js-gifts",giftsGenericContainer:".js-gift-section-generic",giftsInner:".js-gifts > div",giftItem:".js-gifts__item",giftsConfirm:".js-gifts__confirm",giftsSubmit:".js-gifts__submit",giftsClose:".js-gifts__close",deleteBtn:".js-delete-btn",sendMessage:".js-conversation__send-txt",conversationsHolder:".js-conversation__holder",conversationText:".js-conversation__text-content",conversationConfirm:".js-conversations__confirm",cancelConversationConfirm:".js-conversations__confirm-cancel",validConversationConfirm:".js-conversations__confirm-send",chatMessages:".chat__message",chatDateRows:".chat__message--date",scrollableChatSection:".chat__section",mediaViewer:".js-media-viewer",mediaViewerPrevBtn:".js-media-viewer-prev",mediaViewerNextBtn:".js-media-viewer-next",mediaViewerCloseBtn:".js-media-viewer-close",mediaViewerBackdrop:".js-media-viewer-backdrop",slidesPictures:".js-picture-thumbnail"},events:{"click @ui.giftsBtn":"giftsTrigger","click @ui.giftItem":"toggleHighlightGiftHandler","click @ui.deleteBtn":"deleteConversationHandler","click @ui.sendMessage":"sendMessageHandler","keyup @ui.conversationText":"sendMessageHandler","click @ui.cancelConversationConfirm":"cancelConversationConfirm","click @ui.validConversationConfirm":"validateConversationConfirm","click @ui.giftsClose":"hideGifts","click @ui.slidesPictures":"showMediaViewer","click @ui.mediaViewerCloseBtn":"closeMediaViewer","click @ui.mediaViewerBackdrop":"closeMediaViewer","click @ui.mediaViewerPrevBtn":"mediaViewerPrevHandler","click @ui.mediaViewerNextBtn":"mediaViewerNextHandler"},initialize:function(e){i.prototype.initialize.apply(this,arguments),e.el&&this.initView()},bindUIElements:function(){i.prototype.bindUIElements.apply(this,arguments)},render:function(){var t=i.prototype.render.apply(this,arguments);return this.initView(),document.dispatchEvent(new CustomEvent("conversation:show",{detail:this.model.get("conversationHash")})),window.matchMedia("(max-width: 990px)").matches&&e("body").addClass("bg-scroll-lock"),t},toggleGiftIconChat:function(){this.ui.giftsBtn.toggleClass("is-active")},toggleGiftsWrapper:function(){this.ui.giftsContainer.find("ul").toggleClass("is-hidden")},toggleGiftsContainer:function(){this.ui.giftsContainer.toggleClass("is-visible"),this.ui.giftsGenericContainer.toggleClass("is-visible")},toggleConfirmationContainer:function(){this.ui.giftsConfirm.toggleClass("is-hidden")},giftsIsVisible:function(e){return this.ui.giftsContainer.hasClass("is-visible")},giftsTrigger:function(e){this.toggleGiftsContainer(),this.toggleGiftIconChat()},toggleHighlightGiftHandler:function(t){var n=e(t.currentTarget);n.hasClass("is-selected")?n.removeClass("is-selected"):this.ui.giftsContainer.find(".js-gifts__item.is-selected").length>=10?o.alert(r.trans("messages.alerts.too_much_gift_in_message")):n.addClass("is-selected")},hideGifts:function(e){this.ui.giftsContainer.removeClass("is-visible"),this.ui.giftsGenericContainer.removeClass("is-visible")},deleteConversationHandler:function(e){this.trigger("deleteConversation")},sendMessageHandler:function(e){(this.toggleSendButton(),"keyup"!==e.type||13===e.keyCode)&&(this.ui.conversationText.val().length>0?this.toggleMessageConfirmation():(this.ui.conversationText.val(""),this.ui.conversationText.removeClass("is-sendable")))},addConversationRow:function(n,i){var r=this;i=[];this.ui.giftsContainer.find(".js-gifts__item.is-selected").each((function(t,n){var r=e(n);i.push({sexPref:r.attr("data-gift-sex-pref"),id:r.attr("data-gift-id"),name:r.find(".js-gift-name").val()}),r.removeClass("is-selected")}));var o=t.template(e("#template_new_user_message").html(),{message:n,date:(new Date).toUTCString(),gifts:i});this.ui.conversationsHolder.append(o),this.bindUIElements(),this.setLocalDates(),setTimeout((function(){r.ui.conversationsHolder.find(".chat__message.is-hidden").removeClass("is-hidden"),r.ui.conversationsHolder.parents("#conversation").scrollTop(r.ui.conversationsHolder.height()+160)}),50)},toggleMessageConfirmation:function(e){var t=this.getCreditsCost();this.hideGifts(),this.ui.giftsBtn.removeClass("is-active"),this.ui.conversationConfirm.find(".js-message-credits").html(t),this.ui.conversationConfirm.removeClass("is-hidden"),this.ui.conversationText.focus()},cancelConversationConfirm:function(e){this.ui.conversationConfirm.addClass("is-hidden"),this.ui.conversationText.focus()},validateConversationConfirm:function(e){var t=this.ui.conversationText.val(),n=this.getSelectedGifts();this.ui.conversationConfirm.addClass("is-hidden"),this.ui.conversationText.val("").focus(),this.ui.conversationText.removeClass("is-sendable"),this.ui.sendMessage.focus(),this.trigger("sendMessage",{message:t,gifts:n})},setLocalDates:function(){this.ui.chatDateRows.each((function(t){var n=e(this),i=new Date(n.data("date"));n.html("<strong>"+i.toLocaleDateString()+"</strong>, "+i.toLocaleTimeString())}))},getCreditsCost:function(){let t=1;return this.ui.giftsContainer.find(".js-gifts__item.is-selected").each((function(n,i){const r=e(i),o=parseInt(r.attr("data-number"))||0,a=parseInt(r.attr("data-credits"));t+=o>0?0:a})),t}
2,getSelectedGifts:function(){const t=[];return this.ui.giftsContainer.find(".js-gifts__item.is-selected").each((function(n,i){t.push(parseInt(e(i).attr("data-gift-id")))})),t},toggleSendButton:function(){this.ui.conversationText.toggleClass("is-sendable",""!==this.ui.conversationText.val())},initView:function(){this.setLocalDates(),t.defer((function(e){if(e.ui.chatMessages.length){const t=e.ui.chatMessages.last().position().top;e._parent.$el.scrollTop(0),e._parent.$el.animate({scrollTop:t})}e.loadMediaViewer()}),this)},loadMediaViewer:function(){if(0===this.ui.slidesPictures.length)return!1;n.e(8301).then(n.bind(n,58301)).then((e=>{let t=e.MediaSlider;this.picturesViewer=new t(this.ui.mediaViewer.find(".swiper").selector,this.ui.mediaViewer.find(".swiper-slide").selector,{pagination:{el:".media-viewer__pagination",type:"fraction"}})}))},showMediaViewer:function(t){var n;const i=null!==(n=e(t.currentTarget).data("index"))&&void 0!==n?n:0;this.picturesViewer.slideTo(i),this.ui.mediaViewer.addClass("is-visible"),e("body").addClass("bg-scroll-lock")},closeMediaViewer:function(){this.ui.mediaViewer.removeClass("is-visible"),e("body").removeClass("bg-scroll-lock")},mediaViewerPrevHandler:function(){this.picturesViewer.slidePrev()},mediaViewerNextHandler:function(){this.picturesViewer.slideNext()}})}.apply(t,i),void 0===r||(e.exports=r)},91208(e,t,n){var i,r;i=[n(20548),n(84437),n(52753),n(54515)],void 0===(r=function(e,t,i,r){return e.extend({conversationsRoute:function(e){const o=n(60550),a=(o.request("getAppModel"),o.contentRegion),s=this.createModelAndView(a,"ConversationsView",".content__wrapper-target > div",i,{},t,{}),c=s.model,l=s.view,u=s.viewExisted;let d=s.fetchModelData;c.routeWithId=e,u?(d=!1,c.refresh()):(l.on("conversationsNextPage",(function(e){this.model.nextPage()})),l.on("conversationsRefresh",(function(e){this.model.refresh()})),l.on("deleteConversations",(function(e){const t=e.conversationsHashes;c.delete(t).done((function(e){e.success?(t.forEach((function(e){l.hideConversation(e)})),l.hideBarActions()):l.showModalAlert(r.trans("deleteMessageError"))})).fail((function(){l.showModalAlert(r.trans("deleteMessageError"))}))})),l.on("readConversations",(function(e){const t=e.conversationsHashes;c.read(t).done((function(e){e.success?(l.showModalAlert(r.trans("readMessageSuccess")),t.forEach((function(e){l.readConversations(e)})),l.hideBarActions()):l.showModalAlert(r.trans("readMessageError"))})).fail((function(){l.showModalAlert(r.trans("readMessageError"))}))}))),d&&c.fetch()}})}.apply(t,i))||(e.exports=r)},98152(e,t,n){var i,r;i=[n(64794),n(40301)],void 0===(r=function(e,t){return e.Module.extend({initialize:function(){this.Router=new t}})}.apply(t,i))||(e.exports=r)},40301(e,t,n){var i,r;i=[n(4785),n(91208)],r=function(e,t){return e.extend({appRoutes:{"conversations(/:id)":"conversationsRoute"},before:function(t,n){e.prototype.before.apply(this,arguments)},after:function(t,n){e.prototype.after.apply(this,arguments)},controller:new t})}.apply(t,i),void 0===r||(e.exports=r)},52753(e,t,n){var i,r;i=[n(18638),n(59412),n(47113)],r=function(e,t,n){return n.extend({defaults:{partialType:t.constants.PARTIAL_TYPE_FULL,routeWithId:null},url:function(t){var n={partial:"",partial_type:this.get("partialType"),page:this.get("page")};return"conversations?"+e.param(n)},parse:function(e){return n.prototype.parse.apply(this,arguments)},nextPage:function(e){return!(this.fetching||this.get("page")>=this.get("pages"))&&(this.set({page:this.get("page")+1,partialType:t.constants.PARTIAL_TYPE_LIST_ITEMS},{silent:!0}),this.fetch(e))},refresh:function(e){return this.set({page:1,partialType:t.constants.PARTIAL_TYPE_LIST_ITEMS},{silent:!0}),this.fetch(e)},delete:function(n){return e.ajax({method:"POST",url:t.conversationModule.paths.delete_conversations,data:{hashes:n}})},read:function(n){return e.ajax({method:"POST",url:t.conversationModule.paths.read_conversations,data:{hashes:n}})}})}.apply(t,i),void 0===r||(e.exports=r)},84437(e,t,n){var i,r;i=[n(18638),n(56883),n(95189),n(54515),n(95735),n(59412),n(81864),n(9340)],r=function(e,t,i,r,o,a,s,c){return o.extend({name:"ConversationsView",ui:{conversationRows:".js-conversations__row",conversationsActions:".conversations__actions",conversationsActionCancel:".conversations__actions--cancel",conversationsActionModify:".conversations__actions--modify",conversations:".conversations__list",readConversations:".js-conversations-read",removeConversation:".js-conversation__button--remove",removeConversations:".js-conversations__checked--delete",conversationsBarAction:".conversations__bar-action",conversationCheckbox:".conversation__checkbox",conversationsRowIsCheckable:".is-checkable",moreMessagesButton:".js-more-messages"},events:{"click @ui.readConversations":"readConversationsChecked","click @ui.deleteButton":"removeConversationsChecked","click @ui.removeConversation":"removeConversationHandler","click @ui.removeConversations":"removeConversations","click @ui.conversationsActionModify":"showBarActions","click @ui.conversationsActionCancel":"hideBarActions","click @ui.conversationsRowIsCheckable":"checkConversation","click @ui.moreMessagesButton":"conversationsNextPage"},initialize:function(e){o.prototype.initialize.apply(this,arguments),this.Ap
2pInstance=n(60550)},render:function(){var t=this.model.get("content");return this.model.get("partialType")==a.constants.PARTIAL_TYPE_LIST_ITEMS?this.model.get("page")>1?this.ui.conversations.append(t):this.ui.conversations.html(t):this.$el.html(t),this.isRendered=!0,this.bindUIElements(),this.triggerOnRenderMethod(),e("body").removeClass("bg-scroll-lock"),this},onRender:function(){if(this.model.get("page")<this.model.get("pages")&&this.ui.moreMessagesButton.addClass("is-visible"),document.addEventListener("conversation:show",(e=>{this.selectConversation(e.detail),this.readConversations(e.detail)})),this.setLocalDates(),null!==this.model.routeWithId&&(s.navigate("/conversation/"+this.model.routeWithId,!0),this.model.routeWithId=null),c.isTouchSensitiveDevice()||(new PerfectScrollbar(".conversations__inner",{wheelPropagation:!1}),new PerfectScrollbar("#conversation",{wheelPropagation:!1})),window.matchMedia("(min-width: 990px)").matches){const e=this.AppInstance.request("getAppModel").get("previousRoute");e&&"conversationRoute"===e.handler||this.AppInstance.conversationRegion.$el.addClass("is-visible")}},setLocalDates:function(){this.ui.conversationRows.each((function(t){var n=e(this),i=new Date(n.data("date")),r="";r=i.toDateString()===(new Date).toDateString()?i.toLocaleTimeString():i.toLocaleDateString(),n.find(".conversation__date").html(r)}))},readConversationsChecked:function(t){var n=[];e('[name="conversation_hashes[]"]:checked').each((function(){n.push(e(this).val())})),n.length&&this.trigger("readConversations",{conversationsHashes:n})},removeConversations:function(t){var n=[];e('[name="conversation_hashes[]"]:checked').each((function(){n.push(e(this).val())})),n.length&&this.trigger("deleteConversations",{conversationsHashes:n})},removeConversationHandler:function(t){var n=e(t.currentTarget).parents("li").data("conversationHash");this.trigger("deleteConversations",{conversationsHashes:[n]})},hideConversation:function(e){var t=this.$("#conversation"+e);t.addClass("is-hidden"),t.one("webkitTransitionEnd otransitionend msTransitionEnd transitionend",(function(e){t.remove()}))},showModalAlert:function(e){i.alert("",e)},showBarActions:function(t){e('input[name="conversation_hashes[]"]').prop("checked",!1),this.ui.conversationsBarAction.show(),this.ui.conversationsActionCancel.show(),this.ui.conversationsActionModify.hide(),this.ui.conversationCheckbox.show(),this.ui.conversationRows.addClass("is-checkable")},hideBarActions:function(t){e('input[name="conversation_hashes[]"]').prop("checked",!1),this.ui.conversationsBarAction.hide(),this.ui.conversationsActionCancel.hide(),this.ui.conversationsActionModify.show(),this.ui.conversationCheckbox.hide(),this.ui.conversationRows.removeClass("is-checkable")},checkConversation:function(t){var n=e(t.currentTarget).find(".conversation__checkbox--input").is(":checked");e(t.currentTarget).find(".conversation__checkbox--input").prop("checked",!n)},readConversations:function(e){this.$("#conversation"+e).removeClass("conversations__row--unread")},conversationsNextPage:function(){this.ui.moreMessagesButton.removeClass("is-visible"),this.trigger("conversationsNextPage")},selectConversation:function(e){if(0===e.length)return;const t=this.ui.conversations.find("[data-conversation-hash=".concat(e,"]"));this.ui.conversations.find(".is-selected").removeClass("is-selected"),t.length>0&&t.addClass("is-selected")}})}.apply(t,i),void 0===r||(e.exports=r)},22620(e,t,n){var i,r;i=[n(64794),n(22786),n(37066),n(81864),n(59412)],void 0===(r=function(e,t,i,r,o){return e.Module.extend({AppInstance:null,nbOfCamsOnline:null,initialize:function(){var e=this;this.AppInstance=n(60550);var a=this.AppInstance.request("getAppModel");this.nbOfCamsOnline=o.firstModelData.nb_online;var s=new i,c=new t({el:"#search-form"});this.refreshCounterNbCammer(),this.AppInstance.vent.on("app:reset-search",(function(e){c.resetForm()})),c.on("searchFormSubmit",(function(t){s.fetch({type:"POST",data:t.data}).done((function(t){a.set("nextRouteData",{ZappageController:{searchInitData:t}}),t.data.modelData.nb_online>=0&&(e.nbOfCamsOnline=t.data.modelData.nb_online,e.refreshCounterNbCammer()),"zappageSearchRoute"===a.get("currentRoute").handler?r.reload():r.navigate("search/",{trigger:!0})}))}))},refreshCounterNbCammer:function(){$("#nav-bar-app .js-search-nb-online, #header .js-search-nb-online").html(this.nbOfCamsOnline)}})}.apply(t,i))||(e.exports=r)},37066(e,t,n){var i,r;i=[n(13386)],void 0===(r=function(e){return e.Model.extend({url:function(){return"search/?partial"}})}.apply(t,i))||(e.exports=r)}
2,22786(e,t,n){var i,r;i=[n(18638),n(13386),n(64794),n(33129)],void 0===(r=function(e,t,n,i){return n.ItemView.extend({name:"SearchView",checkBoxState:{},searchAdvanced:"",ui:{checkbox:":checkbox",radio:":radio",okButton:".submit a",nicknameInput:'input[name="search[nickname]"]'},events:{"change @ui.checkbox":"checkboxChangeHandler","change @ui.radio":"checkboxChangeHandler","click @ui.okButton":"okButtonClickHandler"},initialize:function(e){var t=this;this.searchAdvanced=document.getElementById("nav-bar-app"),this.searchAdvanced&&(this.searchAdvanced.addEventListener("reset-form",(function(e){t.resetForm()})),this.searchAdvanced.addEventListener("options-changed",(function(e){setTimeout((function(){t.submitForm()}),0)}))),e.el&&(this.isRendered=!0,this.bindUIElements()),this.saveCheckboxState()},okButtonClickHandler:function(e){this.trigger("okButtonClicked")},checkboxChangeHandler:function(e){this.uiEmptyNickname(),this.submitForm()},uiUnselectAllCheckboxExceptSexGroupType:function(){this.ui.checkbox.not('[name="search[sexGroupType][]"]').each((function(){e(this).prop("checked",!1)}))},saveCheckboxState:function(){var t=this;"undefined"!=typeof sessionStorage&&sessionStorage.getItem("search_advanced_form_state")&&(this.checkBoxState=JSON.parse(sessionStorage.getItem("search_advanced_form_state"))),i.isEmpty(this.checkBoxState)&&(this.ui.checkbox.each((function(){t.checkBoxState[e(this).attr("id")]=e(this).prop("checked")})),this.ui.radio.each((function(){t.checkBoxState[e(this).attr("id")]=e(this).prop("checked")})),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("search_advanced_form_state",JSON.stringify(t.checkBoxState)))},restoreCheckboxState:function(){if(!i.isEmpty(this.checkBoxState)){var t=this;this.ui.checkbox.each((function(){e(this).prop("checked",t.checkBoxState[e(this).attr("id")])})),this.ui.radio.each((function(){e(this).prop("checked",t.checkBoxState[e(this).attr("id")])}))}},uiEmptyNickname:function(){this.ui.nicknameInput.val("")},resetForm:function(){this.uiEmptyNickname(),this.restoreCheckboxState(),this.submitForm()},submitForm:function(e){this.scrollTopAfterFilterChange(),this.trigger("searchFormSubmit",{data:this.$el.serialize(),type:e})},scrollTopAfterFilterChange:function(){window.scrollTo({top:0,behavior:"smooth"})}})}.apply(t,i))||(e.exports=r)},75848(e,t,n){var i,r;i=[n(20548),n(97379),n(36306),n(75810),n(30682),n(60067),n(54437),n(71249),n(27995)],void 0===(r=function(e,t,i,r,o,a,s,c,l){return e.extend({loginRoute:function(e){var r=n(60550),o=this.createModelAndView(r.contentRegion,"LoginView",".content__wrapper-target > div",i,{id:e},t,{}),a=o.model,s=(o.view,o.fetchModelData);o.viewExisted;s&&a.fetch()},signupRoute:function(e){var t=n(60550),i=this.createModelAndView(t.contentRegion,"SignupView",".content__wrapper-target > div",o,{id:e},r,{}),a=i.model,s=(i.view,i.fetchModelData);i.viewExisted;s&&a.fetch()},payment2018Route:function(e){var t=n(60550);void 0!==t.chatRegion.currentView&&t.chatRegion.currentView.closeMinimizedChat();var i=this.createModelAndView(t.contentRegion,"Payment2018View",".content__wrapper-target > div",s,{id:e},a,{}),r=i.model,o=(i.view,i.fetchModelData);i.viewExisted;o&&r.fetch()},resetRoute:function(){var e=n(60550),t=this.createModelAndView(e.contentRegion,"ResetView",".content__wrapper-target > div",l,{},c,{}),i=t.model,r=(t.view,t.fetchModelData);t.viewExisted;r&&i.fetch()}})}.apply(t,i))||(e.exports=r)},45800(e,t,n){var i,r;i=[n(64794),n(4301)],void 0===(r=function(e,t){return e.Module.extend({initialize:function(){this.Router=new t}})}.apply(t,i))||(e.exports=r)},4301(e,t,n){var i,r;i=[n(4785),n(75848)],r=function(e,t){return e.extend({appRoutes:{"login/(:id)(/)":"loginRoute","signup/(:id)":"signupRoute","payment2018/(:id)":"payment2018Route","audiotel2018/":"payment2018Route","mobile2018/":"payment2018Route","payment2018/(:packKey)":"payment2018Route","payment2018/(:paymentMethod)/(:packKey)":"payment2018Route","reset/":"resetRoute"},before:function(t,n){e.prototype.before.apply(this,arguments)},after:function(t,n){e.prototype.after.apply(this,arguments)},controller:new t})}.apply(t,i),void 0===r||(e.exports=r)},36306(e,t,n){var i,r;i=[n(47113)],r=function(e){return e.extend({url:function(){var e="login/";return this.id&&(e+=this.id),e+="?partial"},parse:function(t){return e.prototype.parse.apply(this,arguments)}})}.apply(t,i),void 0===r||(e.exports=r)},54437(e,t,n){var i,r;i=[n(47113)],r=function(e){return e.extend({url:function(){var e="payment2018/";return this.id&&(e+=this.id),e+="?partial"},parse:function(t){return e.prototype.parse.apply(this,arguments)}})}.apply(t,i),void 0===r||(e.exports=r)},27995(e,t,n){var i,r;i=[n(47113)],r=function(e){return e.extend({url:function(){return"reset/?partial"},parse:function(t){return e.prototype.parse.apply(this,arguments)}})}.apply(t,i),void 0===r||(e.exports=r)},30682(e,t,n){var i,r;i=[n(47113)],r=function(e){return e.extend({url:function(){var e="signup/";return this.id&&(e+=this.id),e+="?partial"},parse:function(t){return e.prototype.parse.apply(this,arguments)}})}.apply(t,i),void 0===r||(e.exports=r)},42098(e,t,n){var i,r;n(3362),n(62953),i=[n(18638),n(42546),n(90858),n(23161),n(75836),n(59412)],void 0===(r=function(e,t,i,r,o,a){var s,c,l=function(t,r){var o=this,u=!1;c=r;var d={$thisForm:(s=t).find("form"),$input:s.find(".js-form-input"),$passwordToggle:s.find(".js-password-toggle"),$inputPassword:s.find(".js-type-password"),$formError:s.find(".form-error"),$registerBtn:s.find(".js-register-button"),$registerBtnDefaultText:s.find(".js-register-button").text(),$spinner:s.find(".js-spinner"),$successfulRegistration:c.find(".js-success-registration"),$accountCreation:c.find(".js-account-creation"),$overlay:c.find(".payment-block__bottom .inactive"),$guestAccessBtn:s.find(".js-guest-access"),$backToAccountCreation:c.find(".js-back-to-registration"),$guestHeader:c.find(".js-header-guest")};n(60550).commands.execute("app:load-registration-captcha","#account-creation-form"),d.$guestAccessBtn.on("click",(function(){p()})),d.$backToAccountCreation.on("click",(function(){e(o).trigger(e.Event("backToAccountCreation")),f()}));var h=function(){d.$registerBtn.html(""),d.$registerBtn.animate({width:l.SPINNER_SIZE,borderRadius:l.REGISTER_BTN_ANIM_RADIUS},200,(function(){d.$spinner.removeClass("hidden"),d.$registerBtn.css("width",l.REGIST
2ER_BTN_DEFAULT_SIZE).css("border-radius",l.REGISTER_BTN_DEFAULT_RADIUS).html(d.$registerBtnDefaultText),d.$registerBtn.addClass("hidden")}))},p=function(){d.$overlay.addClass("hidden"),s.trigger("account-creation:toggle-picture",[!0]),document.dispatchEvent(new CustomEvent("payment:methods-and-packs:show")),d.$accountCreation.animate({height:0},500,(function(){e(this).addClass("hidden"),d.$guestHeader.removeClass("hidden")}))},f=function(){d.$guestHeader.addClass("hidden"),d.$overlay.removeClass("hidden"),s.trigger("account-creation:toggle-picture",[!1]),document.dispatchEvent(new CustomEvent("payment:methods-and-packs:hide")),d.$accountCreation.removeClass("hidden").css("height","auto")};d.$input.on("keyup",(function(){var t=e(this),n=s.find("li.input-error[data-input='"+t.attr("data-input")+"']");t.is(":invalid")?n.removeClass("hidden"):n.addClass("hidden")})),d.$passwordToggle.on("click",(function(e){e.preventDefault();var t=d.$inputPassword,n="password"===t.attr("type")?"text":"password";t.attr("type",n).focus()})),a.captcha.requiresCaptchaOnRegistration&&d.$thisForm.on("submit",(function(e){return e.preventDefault(),void 0!==e.originalEvent&&(e.stopImmediatePropagation(),n.e(3546).then(n.bind(n,43546)).then((async e=>{let t=e.CaptchaHandler;const n=await t.getInstance("#account-creation-form",{siteKey:a.captcha.sitekey,locale:a.appModelData.user.locale});u&&n.reset(),n.execute(d.$thisForm),u=!0})),!1)})),d.$thisForm.on("submit",(function(t){t.preventDefault();var n=["dnx","xcams"];for(var r in n)i.push([n[r]+"._trackPageview","Mobile/Form/Public/Payment/Step1/Registration/Submitted"]);var o=Date.now(),a=null;return e.ajax({url:d.$thisForm.attr("action"),type:d.$thisForm.attr("method"),data:d.$thisForm.serialize(),dataType:"json",beforeSend:function(){d.$formError.addClass("hidden"),h()},success:function(t){if(a=Date.now(),t.success)d.$spinner.add(d.$accountCreation).add(d.$overlay).addClass("hidden"),d.$accountCreation.addClass("hidden").animate({height:l.SUCCESS_BLOCK_HEIGHT},300,(function(){d.$successfulRegistration.removeClass("hidden"),d.$guestHeader.addClass("hidden"),e(".js-payment--per-packs").removeClass("has-guest-header-label"),s.trigger("account-creation:toggle-picture",[!0])})),document.dispatchEvent(new Event("user:account-created")),document.dispatchEvent(new CustomEvent("payment:methods-and-packs:show"));else if(t.location)document.location=t.location;else{var n=a-o,i=function(){d.$spinner.addClass("hidden"),d.$registerBtn.removeClass("hidden"),d.$formError.html(t.error).removeClass("hidden")};n>l.REGISTER_BTN_ANIM_TOTAL_DURATION?i():setTimeout((function(){i()}
2),l.REGISTER_BTN_ANIM_TOTAL_DURATION-n)}}}),!1}))};return l.SUCCESS_BLOCK_HEIGHT="80px",l.SPINNER_SIZE="45px",l.REGISTER_BTN_DEFAULT_SIZE="100%",l.REGISTER_BTN_DEFAULT_RADIUS="5px",l.REGISTER_BTN_ANIM_RADIUS="60px",l.REGISTER_BTN_ANIM_TOTAL_DURATION=700,l}.apply(t,i))||(e.exports=r)},97379(e,t,n){var i,r;n(3362),n(62953),i=[n(95735),n(23161),n(59412)],r=function(e,t,i){return e.extend({name:"LoginView",AppInstance:null,appModel:null,ui:{loginForm:"#loginForm"},events:{"submit @ui.loginForm":"loginFormSubmitHandler"},render:function(){return e.prototype.render.apply(this,arguments)},onRender:function(){this.AppInstance=n(60550),this.appModel=this.AppInstance.request("getAppModel"),this.AppInstance.commands.execute("app:load-login-captcha","#loginForm")},loginFormSubmitHandler:function(e){if(i.captcha.requiresCaptchaOnLogin){if(void 0!==e.originalEvent)return n.e(3546).then(n.bind(n,43546)).then((async e=>{let t=e.CaptchaHandler;(await t.getInstance("#loginForm",{siteKey:i.captcha.sitekey,locale:i.appModelData.user.locale})).execute(this.ui.loginForm)})),!1}t.showLoadingAnimation()}})}.apply(t,i),void 0===r||(e.exports=r)},60067(e,t,n){var i,r;function o(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 i,r,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}n(89463),n(3362),n(27495),n(62953),i=[n(95735),n(90858),n(42098),n(6818),n(13748),n(78514),n(56839),n(32034),n(1398),n(12629),n(27410),n(30590),n(10488),n(65754),n(25841),n(95189),n(23161),n(27631),n(75836),n(59412)],r=function(e,t,i,r,a,s,c,l,u,d,h,p,f,m,g,v,y,w,b,C){return e.extend({name:"SignupView",accountCreationView:null,packChoiceView:null,smsView:null,audiotelView:null,mobileView:null,paymentMethodsView:null,audiotelDropdownView:null,smsDropdownView:null,dimocoDropdownView:null,ui:{wrapperBody:".wrapper_body",paymentPage:".payment-page-2018",paymentBlockList:".js-payment-block-list",paymentBlock:".payment-block",facebookSignupButton:".js-facebook-signup",paymentFormWrapper:".js-payment-form-wrapper",perPacksAccountCreation:".js-section-account-creation",accountCreation:".js-account-creation",sectionPictures:".js-section-payment-pictures",secondarySectionPictures:".js-section-payment-pictures-secondary",sectionPaymentMethods:".js-section-payment-methods",sectionListPacks:".js-section-packs-and-method-body",perPacksList:".js-payment--per-packs .payment-block__pack-list",mobilePayment:".js-mobile-form",audiotelPayment:".js-audiotel-form",paymentMethodsList:".js-payment-methods-list",audiotelDropdown:".js-dropdown--audiotel",mobileDropdown:".js-dropdown--mobile",anotherMethodLink:".js-another-method",sectionInPaymentColumnRight:".payment__column.payment__column--right",autoPackShowMoreButton:".js-autopack-show-more",autoPackMoreInfo:".js-autopack-more-info"},events:{"click @ui.autoPackShowMoreButton":"autoPackShowMoreClickHandler"},onPopState:function(){var e=this;window.history.pushState&&$(window).on("popstate",(function(t){var n=window.history.state;n&&e.matchRoute(n),y.hideLoadingAnimation()}))},matchRoute:function(e){switch(o(e,1)[0]){case"paymentMethods":this.matchPaymentMethodsRoute(e);break;case"paymentOptions":this.matchPaymentOptionsRoute(e)}},matchPaymentOptionsRoute:function(e){const t=o(e,2),n=(t[0],t[1]);$(".js-payment-method[data-method='"+n.toUpperCase()+"']").trigger("click",[!1])},matchPaymentMethodsRoute:function(e){const t=o(e,3),n=(t[0],t[1]),i=t[2],r=$(".js-payment-method[data-method='"+n.toUpperCase()+"']"),a=$('.js-pack-list-methods[data-method-name="'+n.toUpperCase()+'"]').find('.card-pack[data-pack-key="'+i+'"]');r.trigger("click",[!1]),a.length&&a.trigger("click",[!1])},render:function(){return e.prototype.render.apply(this,arguments)},onDestroy:function(){this.audiotelView&&this.audiotelView.destroy()},onRender:function(){var e=this;$(document).scrollTop(0),document.addEventListener("payment:methods-and-packs:show",(function(){e.toggleDisabledPaymentMethodsAndPacks(!0)})),document.addEventListener("payment:methods-and-packs:hide",(function(){e.toggleDisabledPaymentMethodsAndPacks(!1)})),this.packChoiceView=new r(this.ui.perPacksList,this.ui.sectionListPacks),this.paymentMethodsView=new c(this.ui.paymentMethodsList,this.ui.sectionPaymentMethods,new p,new l),new u,new d,new h,new f,new m,this.ui.audiotelPayment.length&&(this.audiotelDropdownView=new g(this.ui.audiotelPayment),this.audiotelView=new a(this.ui.audiotelPayment,this.audiotelDropdownView)),this.ui.mobilePayment.length&&(this.mobileDropdownView=new g(this.ui.mobilePayment),this.mobileView=new s(this.ui.mobilePayment,this.mobileDropdownView)),this.ui.accountCreation.is(":visible")&&(this.accountCreationView=new i(this.ui.perPacksAccountCreation,this.ui.paymentPage),this.ui.perPacksAccountCreation.on("account-creation:toggle-picture",((e,t)=>
2{this.toggleSectionPictures(t)}))),this.toggleSectionPictures(this.ui.accountCreation.is(":hidden"));const t=window.matchMedia("(min-width: 990px) and (max-width: 1320px)");try{t.addEventListener("change",(e=>{e.matches&&this.toggleSectionPictures(this.ui.accountCreation.is(":hidden"))}))}catch(y){t.addListener((e=>{this.toggleSectionPictures(this.ui.accountCreation.is(":hidden"))}))}C.fingerprint.process.payment&&n.e(4375).then(n.bind(n,4375)).then((e=>{e.FingerprintClient.getInstance().loadAgent()})),$(this.audiotelView).on("refresh",(function(t){e.countryChangeHandler(t.country,e.audiotelView)})),$(this.audiotelDropdownView).on("change",(function(t){e.countryChangeHandler(t.country,e.audiotelView)})),$(this.mobileDropdownView).on("change",(function(t){e.countryChangeHandler(t.country,e.mobileView)}));const o=w.getState();if($.isEmptyObject(window.history.state)){const e=w.getPropsFromRoute(o.currentRoute);e.length&&(w.pushRouteToState(e),this.matchRoute(e))}else this.matchRoute(window.history.state);var v=(new window.dnx.logic.URLSearch).getParameterByName("guest");null!==v&&"1"===v&&$(".js-guest-access").click(),this.onPopState()},countryChangeHandler:function(e,t){$.ajax({url:t.changePath,type:"GET",data:{country:e}}).success((function(e,n,i){"application/json"===i.getResponseHeader("Content-Type")&&e.alert?v.alert("",e.alert):(t.$thisView.html(e),t.init())}))},toggleDisabledPaymentMethodsAndPacks:function(e){this.ui.sectionInPaymentColumnRight.find(".payment__methods .disabled-section").toggleClass("hidden",e),e&&!b.hasMethodSelected()&&(e=!1),this.ui.sectionInPaymentColumnRight.find(".payment__packs-and-method-body .disabled-section").toggleClass("hidden",e)},toggleSectionPictures:function(e){window.matchMedia("(min-width: 990px) and (max-width: 1320px)").matches&&(this.ui.sectionPictures.toggleClass("is-hidden",e),this.ui.secondarySectionPictures.toggleClass("is-hidden",!e))},autoPackShowMoreClickHandler:function(){this.ui.autoPackMoreInfo.toggle()}})}.apply(t,i),void 0===r||(e.exports=r)},71249(e,t,n){var i,r;n(3362),n(62953),i=[n(95735),n(59412)],r=function(e,t){return e.extend({name:"ResetView",_captcha:null,initialize:function(e){const t=document.getElementById("reset-back-to-login-btn");t&&t.addEventListener("click",(function(e){window.modal.showLogin("/")}),!1),this._initCaptcha()},_initCaptcha:function(){const e=$(".access--forgot form");if(!e.length)return;0===e.find(".reCaptchaPopup").length&&e.append('<div class="reCaptchaPopup" style="display:none;"></div>');const i=this;n.e(3546).then(n.bind(n,43546)).then((async function(e){let n=e.CaptchaHandler;try{i._captcha=await n.getInstance(".access--forgot form",{siteKey:t.captcha.sitekey,locale:t.appModelData.user.locale}),await i._captcha.render()}catch(r){console.error(r)}})),e.on("submit",(function(t){const n=e.find('textarea[name="g-recaptcha-response"], input[name="g-recaptcha-response"]');n.length&&n.val()||(t.preventDefault(),i._captcha&&(i._captcha.reset(),i._captcha.execute(e)))}))},render:function(){return e.prototype.render.apply(this,arguments)}})}.apply(t,i),void 0===r||(e.exports=r)},75810(e,t,n){var i,r;i=[n(95735),n(90858)],r=function(e,t){return e.extend({name:"SignupView",ui:{passwordToggle:".js-password-toggle",signupForm:"form",emailInput:"#subscription_email",passwordInput
2:"#subscription_password"},events:{"click @ui.passwordToggle":"passwordToggleClickHandler","click @ui.signupForm":"formSubmitHandler","keypress @ui.emailInput":"emailInputKeypressHandler","keypress @ui.passwordInput":"passwordInputKeypressHandler"},emailEnterEventSent:!1,emailInputKeypressHandler:function(e){if(this.emailEnterEventSent)return!0;this.emailEnterEventSent=!0;var n=["dnx","xcams"];for(var i in n)t.push([n[i]+"._trackPageview","Mobile/Form/Public/Payment/Step1/Registration/Entered email"])},passwordEnterEventSent:!1,passwordInputKeypressHandler:function(e){if(this.passwordEnterEventSent)return!0;this.passwordEnterEventSent=!0;var n=["dnx","xcams"];for(var i in n)t.push([n[i]+"._trackPageview","Mobile/Form/Public/Payment/Step1/Registration/Entered password"])},passwordToggleClickHandler:function(e){e.preventDefault();var t=this.ui.passwordToggle.siblings("input"),n="password"===t.attr("type")?"text":"password";t.attr("type",n).focus()},formSubmitHandler:function(e){var n=["dnx","xcams"];for(var i in n)t.push([n[i]+"._trackPageview","Mobile/Form/Public/Payment/Step1/Registration/Submitted"])},render:function(){return e.prototype.render.apply(this,arguments)}})}.apply(t,i),void 0===r||(e.exports=r)},13748(e,t,n){var i,r;i=[n(18638),n(59412),n(81864),n(23161),n(95189),n(54515),n(39876),n(16e3)],void 0===(r=function(e,t,n,i,r,o,a,s){var c=s.AvsService;return function(t,n){var r=this;r.$thisView=t,r.countryDropdownHandler=n,r.changePath="/audiotel2018/ajax",r.currentCountry=null;this.init=function(){o();var t=r.$thisView.find("form");r.refreshPinCodeTime=t.data("refresh-pin-code"),r.currentCountry=t.find("select[name=country]").val(),clearTimeout(r.refreshTimer),r.refreshTimer=null,r.refreshPinCodeTime&&(r.refreshTimer=setTimeout((function(){e(r).trigger(e.Event("refresh",{country:r.currentCountry}))}),1e3*r.refreshPinCodeTime)),new a(t),t.on("submit",(function(e){e.preventDefault();var n=function(){i.showLoadingAnimationAndWaitIteration((function(){t.off("submit").trigger("submit")}))};c.guardPaidAction(n)||n()}))};var o=function(){r.countryDropdownHandler.init()};this.destroy=function(){clearTimeout(r.refreshTimer)},this.init()}}.apply(t,i))||(e.exports=r)},65754(e,t,n){var i,r;i=[n(18638),n(23161),n(39876),n(17024)],void 0===(r=function(e,t,n,i){return function(){const r=e(".js-common-payment-form-submit-handler");new i(r),new n(r),r.on("submit",(function(n){n.preventDefault(),_local.ga("dl:ecommerce:submit");var i=e(n.target);t.showLoadingAnimationAndWaitIteration((function(){i.off("submit").trigger("submit")}))}))}}.apply(t,i))||(e.exports=r)},25841(e,t,n){var i,r;i=[n(18638)],void 0===(r=function(e){return function(t){var n=this;n.$thisView=t;var i={listChangeEventHandler:function(t,i,r,o){var a=this;t.on("change",(function(){var s=t.val();t.find(i).each((function(){var t=e(this).val();t===s&&(a.selectOption(t,r,o),e(n).trigger(e.Event("change",{country:s})))}))}))},selectOption:function(e,t,n){t.attr("data-country",e).removeClass().addClass(n+e.toLowerCase())},init:function(e,t,n,r){var o=e.find(t).filter(".is-selected").val();e.val(o),i.listChangeEventHandler(e,t,n,r),i.selectOption(o,n,r)}};this.init=function(){var e={flag:n.$thisView.find("#flag"),flagClass:"country-flag country-flag--",list:n.$thisView.find(".js-option-list"),optionClass:".js-option"};i.init(e.list,e.optionClass,e.flag,e.flagClass)}}}.apply(t,i))||(e.exports=r)},32034(e,t,n){var i,r;n(74423),n(3362),n(27495),i=[n(18638),n(90858),n(23161),n(95189),n(59412),n(54515),n(39876),n(17024)],void 0===(r=function(e,t,n,i,r,o,a,s){return function(){var t=e(".js-payment--per-packs"),c=".payment-form--creditcard",l=t.find(c),u=r.strumpfTokenization.env,d=r.strumpfTokenization.key,h=r.strumpfTokenization.endpoint,p={number:{originalId:"creditcard_cardNumber",originalElement:l.find("#creditcard_cardNumber"),fieldLength:0,cssText:""},cvv:{originalId:"creditcard_cvc",originalElement:l.find("#creditcard_cvc"),fieldLength:0,cssText:""}},f=!0,m=function(t){var n=function(e){return"number"===(e=e||"number")||"cvv"===e?S().spreedly[e+"FrameId"]:""}(t);return n?e("#"+n):null},g=l.find(".js-use-new-card"),v=l.find(".js-use-saved-card"),y="",w=l.find('input[name="request-to-use-another-card"]');function b(){const t=e(".js-pack-list-methods[data-method-name='CREDITCARD']").find(".card-pack.selected");setTimeout((function(){const e=t.find(".card-pack__content--header").outerHeight(!0),n=t.find(".card-pack__content--body").outerHeight(!0);t.find(".card-pack__content").height(n+e)}),0)}w.length&&"1"===w.val()&&i.alert("",o.trans("yourCardCouldNotBeProcessed")),t.on("click",".js-use-new-card",(function(t){t.preventDefault(),b(),e("[name=newCard]",l).val(1),e("input[type=text]",l).val("").removeAttr("disabled"),e("select",l).removeAttr("disabled"),l.hasClass("payment-form--creditcard-has-saved-card-extra-cvc")&&e("#creditcard_cvcSavedCard").attr("disabled",!0),g.addClass("is-hidden"),v.removeClass("is-hidden"),l.hasClass("payment-form--creditcard-has-saved-card")?(y="payment-form--creditcard-has-saved-card",l.removeClass("payment-form--creditcard-has-saved-card")):(y="payment-form--creditcard-has-saved-card-extra-cvc",l.removeClass("payment-form--creditcard-has-saved-card-extra-cvc")),l.find(".alert").remove()})).on("click",".js-use-saved-card",(function(t){t.preventDefault(),b(),e("input[type=text]",l).attr("disabled",!0),e("select",l).attr("disabled",!0),e("[name=newCard]",l).val(0),v.addClass("is-hidden"),g.removeClass("is-hidden"),l.addClass(y),l.hasClass("payment-form--creditcard-has-saved-card-extra-cvc")&&e("#creditcard_cvcSavedCard").attr("disabled",!1).focus(),l.find(".alert").remove()}));var C=!1,T={applicable:r.strumpfTokenization.applicable,tokenizer:null},S=function(){return T.tokenizer},E=function(t,r){if(!0!==T.applicable)_local.log("TM: Skip tokenization because not applicable"),t();else if(null===T.tokenizer)_local.log("TM: tokenisation cannot be performed because the tokenizer is not available"),i.alert(o.trans("internal_error"));else if(function(e){return void 0!==e&&"1"===e.find(".js-new-card").val()}(r)){_local.log("TM: can tokenize the card");var a=e("#creditcard_expireYear").val();S().tokenize({cardholder:e("#creditcard_holder").val(),exp_month:e("#creditcard_expireMonth").val(),exp_year:2===a.length?(new Date).getFullYear().toString().slice(0,2)+a:a},(function(e){if(void 0!==e.error&&null!==e.error)return n.hideLoadingAnimation(),!1;n.appendInputsToForm({cardtoken_token:e.token,cardtoken_fingerprint:e.details.fingerprint},r),r.find(":input").filter((function(e,t){return this.name.match(/creditcard\[(?!_token)/)})).prop("disabled",!0),t()}))}else t()};const x=function(e){e.preventDefault(),e.stopImmediatePropagation(),n.showLoadingAnimationAndWaitIteration((function(){E((function(){t.off("submit",c,x).find(c).submit()}),l)}))};new s(l),new a(l),t.on("submit",c,x),t.on("submit",c,(function(e){e.preventDefault(),_local.ga("dl:ecommerce:submit"),n.showLoadingAnimationAndWaitIteration((function(){t.off("submit",c).find(c).trigger("submit")}))}));var k=function(e,t){t?e.show():e.hide()};this.initializeTokenizer=async function(){var t;const n=await async function(){try{const e=await fetch("/spreedly-iframe-tokenization",{method:"GET",credentials:"include",headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json"}});if(!e.ok)throw new Error("HTTP error ".concat(e.status));return await e.json()}catch(error){_local.log(error)}}(),i=null!==(t=null==n?void 0:n.response)&&void 0!==t?t:"",o=this;C?o.strumpfInit(i):e.getScript("https://strumpf.dnxpay.io/cdn/js/spreedly.tokenizer.bi-1.0.3.min.js").done((function(){C=!0,strumpf.browserInfo.collect({paymentSessionId:r.strumpfTokenization.tm_session_id,publicKey:r.strumpfTokenization.key,acceptHeader:r.strumpfTokenization.acceptHeader,strumpfBase:r.strumpfTokenization.strumpfBase}),o.strumpfInit(i)}))},this.strumpfInit=function(e){strumpf.init({"spreedly-env":u,"strumpf-key":d,"strumpf-endpoint":h,cardnumber:{"element-id":"spreedly-number",css:"","field-type":"text","number-format":"prettyFormat"},cvv:{"element-id":"spreedly-cvv",css:"","field-type":"number"},"init-callback":A,"error-callback":P,debug:!1,"spreedly-secure-tokenization":e}),T.tokenizer=strumpf};var _="",A=function(){if(null!=T.tokenizer){for(_ in M(),f&&S().spreedly.on("fieldEvent",(function(t,n,i,r){"enter"===n?l.find("button.bouton.bouton--submit").trigger("click"):"number"!==t&&"cvv"!==t||"input"===n&&(p[t].fieldLength=r[t+"Length"],k(e("label[for="+p[t].originalId+"]"),0===p[t].fieldLength))})),p)k(e("label[for="+p[_].originalId+"]"),!0),m(_).attr("tabindex",p[_].originalElement.attr("tabindex")),""===p[_].cssText&&(p[_].cssText=e("#"+p[_].originalId).getStyleText()),S().spreedly.setStyle(_,p[_].cssText),p[_].originalElement.hide(),m(_).show();f=!1}},M=function(){p.number.fieldLength=0,p.cvv.fieldLength=0},P=function(e){if(n.hideLoadingAnimation(),void 0!==e[0]){var t,r=e[0].key;switch(r){case"validation.invalid_cardholder_name":i.alert(o.trans("creditcard.invalid_credit_card_holder"));break;case"validation.invalid_card_number":i.alert(o.trans("creditcard.invalid_credit_card_number"));break;case"validation.invalid_expiration_date":i.alert(o.trans("creditcard.invalid_credit_card_expire_date"));break;case"validation.invalid_expiration_year":i.alert(o.trans("creditcard.invalid_credit_card_expire_year"));break;case"validation.invalid_expiration_month":i.alert(o.trans("creditcard.invalid_credit_card_expire_month"));break;case"validation.invalid_cvv":i.alert(o.trans("creditcard.invalid_credit_card_cvc"));break;default:i.alert(o.trans("internal_error")),(r.includes("spreedly")||r.includes("strumpf"))&&(t={error:r,message:"Spreedly tokenization error"},navigator.sendBeacon("/ajax-log-event",JSON.stringify(t)))}}}}}.apply(t,i))||(e.exports=r)},1398(e,t,n){var i,r;i=[n(18638),n(23161),n(39876),n(17024)],void 0===(r=function(e,t,n,i){return function(){const r=e(".payment-form--ideal");new i(r),new n(r),r.on("submit",(function(e){e.preventDefault(),_local.ga("dl:ecommerce:submit"),t.showLoadingAnimationAndWaitIteration((function(){r.off("submit").trigger("submit")}))}))}}.apply(t,i))||(e.exports=r)},10488(e,t,n){var i,r;i=[n(18638),n(23161),n(59412),n(39876),n(95189),n(52673)],void 0===(r=function(e,t,n,i,r,o){return function(){const o=e(".payment-form--letpay"),a=o.get(0);if(!o.length)return;const s=new dnx.logic.LetPayPaymentHandler(n.letpayContractId,n.environment),c=window.formattedPacks;
2s.getScriptLoadedPromise().done((function(){}));const l=function(e){e.location?document.location=e.location:e.alert&&snackbar.error(e.alert,{timeout:10})};new i(o),o.on("submit",(function(i){i.preventDefault(),t.showLoadingAnimation(),_local.ga("dl:ecommerce:submit");const u=o.find('input[name="paymentMethod"]').val().toUpperCase(),d=o.find('input[name="packKey"]').val(),h=c[u][d],p=s.startLetPayCheckout(h.amount,h.currency,u);var f=function(e){_local.log("TM[LetPay-Checkout]",e)},m=!1;p.on("checkout-success",(function(i){f(i),m=!0,t.appendInputsToForm({letpay_token:i.detail[0].paymentToken,letpay_referenceId:i.detail[0].referenceId},o),s.logLetPayEvent({amount:h.amount,currency:h.currency,method:u,event:i.type}),e.ajax({url:o.attr("action"),type:o.attr("method"),data:o.serialize(),beforeSend:function(){t.showLoadingAnimation()},complete:function(){t.hideLoadingAnimation()},success:function(e){a.addEventListener("letpayCheckout.checkoutDismissedAfterSuccess",(()=>{l(e)}))}}),r.alert("",n.translations.letPayCloseWidgetReminder)})),p.on("checkout-ready",(function(e){t.hideLoadingAnimation(),s.logLetPayEvent({amount:h.amount,currency:h.currency,method:u,event:e.type})})),p.on("checkout-dismissed",(function(e){f(e),m&&(_local.log("TM[LetPay-Checkout] checkout-success & checkout-dismissed received => submit form"),s.logLetPayEvent({amount:h.amount,currency:h.currency,method:u,event:"checkout-dismissed-after-success"}),a.dispatchEvent(new Event("letpayCheckout.checkoutDismissedAfterSuccess")))})),p.on("checkout-error",f)}))}}.apply(t,i))||(e.exports=r)},12629(e,t,n){var i,r;i=[n(18638),n(23161),n(39876),n(17024),n(27244)],void 0===(r=function(e,t,n,i){return function(){const r=e(".payment-form--mobile-phone");new window.dnx.logic.MobilePhoneNumberProcessing(e(".js-input-bg"),{allowPhoneWithoutPrefix:"+351",defaultPrefix:"+351"}).validatePhone(),new i(r),new n(r),r.on("submit",(function(e){e.preventDefault(),_local.ga("dl:ecommerce:submit"),t.showLoadingAnimationAndWaitIteration((function(){r.off("submit").trigger("submit")}))}))}}.apply(t,i))||(e.exports=r)},78514(e,t,n){var i,r;i=[n(18638),n(23161),n(39876)],void 0===(r=function(e,t,n){var i;return function(r){var o=".phone-pack__head .tick",a=(i=r).find("form"),s=e(".js-payment-method-selected"),c=e("#dimoco-withdrawal"),l=e("#dimoco-renounce-withdrawal-btn");function u(t){var n,r;i.find(".js-mobile-pack").not(t).each((function(){var t,n;t=e(this),n=o,t.removeClass("selected"),t.find(n).removeClass("visible")})),r=o,(n=t).addClass("selected"),n.find(r).addClass("visible"),i.find("input[name=packKey]").val(n.attr("data-pack-key"))}u(i.find(".js-mobile-pack").last()),i.on("click",".js-mobile-pack",(function(){var t=e(this);t.hasClass("selected")||u(t)})),s.on("click",(function(t){t.preventDefault(),e("#payment-method-mobile")[0].value=t.currentTarget.getAttribute("data-method"),a.submit()})),c.on("change",(function(t){l.toggleClass("is-disabled",!e(this).prop("checked"))})),new n(a),a.on("submit",(function(e){e.preventDefault(),_local.ga("dl:ecommerce:submit"),t.showLoadingAnimationAndWaitIteration((function(){a.off("submit").trigger("submit")}))}))}}.apply(t,i))||(e.exports=r)},6818(e,t,n){var i,r;n(3362),n(62953),i=[n(18638),n(27631),n(23161),n(75836)],void 0===(r=function(e,t,i,r){let o,a;return function(i,s){o=i,a=s;const c=".card-pack__head .tick",l=".card-pack__content";function u(t){const n=e("html, body"),i=t.offset().top-52;n.animate({scrollTop:i},500,"swing")}function d(e){let n=e.$pack,i=e.pushState,o=void 0===i||i;n.find(".card-pack__content").height(0),n.find(l).addClass("hidden"),n.find(c).removeClass("visible"),n.removeClass("selected selected-animation-done"),o&&t.pushRouteToState(["paymentMethods",r.currentMethod.toLowerCase(),"generic"])}e(".card-pack__head").on("click",(function(t){const n=e(this).closest(".card-pack");n.hasClass("selected-animation-done")&&(r.packClicked(null),t.stopPropagation(),d({$pack:n}),e(".card-pack").find(".inactive").addClass("hidden"))})),o.on("click",".card-pack",(function(i){if(!r.hasMethodSelected())return!1;const a=e(this),s=void 0!==i.originalEvent;var h,p;(r.packClicked(a),a.hasClass("selected"))?setTimeout((()=>u(a)),0):(function(e){const t=window.formattedPacks;if(!t[r.currentMethod].hasOwnProperty("p5")||!t[r.currentMethod].p5.hasOwnProperty("maxXLPacks")||1===t[r.currentMethod].p5.maxXLPacks)return;const i={ideal:"#ideal-form-quantity-selector",ideal_paynl:"#ideal-form-quantity-selector",default:"#common-form-quantity-selector"},o=e.data("max-xl-packs")>1,a=document.querySelector("#pack-quantity-selector-app"),s=e.data("pack-key");let c=e.data("creditsText"),l=t[r.currentMethod][s];Promise.all([n.e(3751),n.e(1818)]).then(n.bind(n,81818)).then((()=>{var e;a.dispatchEvent(new CustomEvent("toggle-app",{detail:{disabled:!o,target:null!==(e=i[r.currentMethod.toLowerCase()])&&void 0!==e?e:i.default,price:{amount:l.amount,credits:l.credits,currency:l.currency,creditsText:c}}}))}))}(a),o.find(".card-pack").not(a).each((function(){const t=e(this);
2t.find(".inactive").removeClass("hidden"),t.hasClass("selected")&&d({$pack:t,pushState:!1})})),r.moveForm(),(p=a).find(".inactive").addClass("hidden"),p.addClass("selected"),p.find(l).removeClass("hidden"),p.find(c).addClass("visible"),p.find(".card-pack__content").height("auto"),p.addClass("selected-animation-done"),setTimeout((()=>u(p)),0),s&&t.pushRouteToState(["paymentMethods",null===(h=r.currentMethod)||void 0===h?void 0:h.toLowerCase(),r.getPackKeySelected()]))}))}}.apply(t,i))||(e.exports=r)},75836(e,t,n){var i,r;n(27495),n(25440),i=[n(18638)],void 0===(r=function(e){return{ui:{sectionInPaymentColumnRight:e(".payment__column.payment__column--right"),pictureSection:e(".js-section-payment-pictures")},formSelectorScope:null,creditcardFormHandler:null,paypalFormHandler:null,templates:{},currentMethod:null,methodTemplateClass:null,methodOfferFee:null,$currentPack:null,initialStrumpfInit:!0,setFormSelectorScope(e){return this.formSelectorScope=e,this},setCreditCardFormHandler(e){return this.creditcardFormHandler=e,this},setPaypalFormHandler(e){return this.paypalFormHandler=e,this},methodClicked(e){let t=e.method,n=e.templateClass,i=e.offerFee;this.currentMethod=t,this.methodTemplateClass=n,this.methodOfferFee=i,_local.ga("dl:ecommerce:order",{payment_type:this.currentMethod})},hasMethodSelected(){return null!==this.currentMethod},getForm(){let t=null;if(this.$currentPack&&this.$currentPack.length&&this.methodTemplateClass&&this.currentMethod){if(e.isEmptyObject(this.templates)||void 0===this.templates[this.methodTemplateClass]){const t=e(this.formSelectorScope).find("."+this.methodTemplateClass).detach();this.templates[this.methodTemplateClass]=t.children()}t=this.templates[this.methodTemplateClass]}return t},packClicked(e){var t;(this.$currentPack=e,e&&!e.hasClass("selected"))&&_local.ga("dl:ecommerce:product",{currentPack:this.getPackKeySelected(),modelName:null===(t=this.ui)||void 0===t||null===(t=t.pictureSection)||void 0===t?void 0:t.find(".model-name").text()})},getPackKeySelected(){var e,t;return null!==(e=null===(t=this.$currentPack)||void 0===t?void 0:t.attr("data-pack-key"))&&void 0!==e?e:null},moveForm(){const e=this.getForm();return e&&(e.find("input[name=packKey]").val(this.$currentPack.data("pack-key")),e.find("input[name=paymentMethod]").val(this.currentMethod),this.$currentPack.find(".card-pack__content--body").html("").append(e)),this.handleOfferDisclaimers(e),this.reloadMethodIframes(e),e},reloadMethodIframes(e){e&&("PAYPAL"===this.currentMethod?this.paypalFormHandler.renderButton():"CREDITCARD"===this.currentMethod&&this.initialStrumpfInit&&(this.creditcardFormHandler.initializeTokenizer(),this.initialStrumpfInit=!1))},handleOfferDisclaimers(e){if(!e)return;
2const t=this.$currentPack.data("isSpecialOffer");e.find(".js-creditcard-autorefill-checkbox-option").toggle(!t);if(this.$currentPack.data("isTwentyFiveForOne"))e.find(".js-payment-disclaimer").remove();else if(t&&!e.hasClass("payment-form--creditcard")){const t=e.find(".js-payment-disclaimer");t.html(t.html().replace("%credit%",this.methodOfferFee))}}}}.apply(t,i))||(e.exports=r)},56839(e,t,n){var i,r;n(74423),i=[n(18638),n(75836),n(27631),n(59412),n(95189),n(54515),n(16e3)],r=function(e,t,n,i,r,o,a){var s,c,l,u=a.AvsService;return function(i,r,o,a){s=i,c=o,l=a;var d={audioAndMobileSection:e(".js-payment--audio-and-mobile"),perPacksSection:e(".js-payment--per-packs")};window.formattedPacks;function h(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];d.perPacksSection.toggleClass("is-hidden",!e),d.audioAndMobileSection.toggleClass("is-hidden",e)}t.setCreditCardFormHandler(l).setPaypalFormHandler(c).setFormSelectorScope(".js-payment--per-packs"),s.on("click",".js-payment-method",(function(i){const r=e(this),o=void 0!==i.originalEvent;if(r.hasClass("payment-method--downtime")||"true"===r.attr("data-downtime"))return i.preventDefault(),i.stopPropagation(),!1;if("true"===r.attr("data-avs-blocked"))return i.preventDefault(),i.stopPropagation(),u.showModal(),!1;const a=function(e){const t=Object.create(p);return t.init(e),t}(r).getName();if(!r.hasClass("selected")){const i=r.attr("data-template-class");if(t.methodClicked({method:a,templateClass:i,offerFee:r.attr("data-offer-fee")}),document.dispatchEvent(new CustomEvent("payment:methods-and-packs:show")),e(this).siblings().removeClass("selected"),r.addClass("selected"),e(".js-pack-list-methods").addClass("is-hidden"),["MOBILE","AUDIOTEL"].includes(a)){const t=d.audioAndMobileSection.find("."+i);d.audioAndMobileSection.find(".payment__method").addClass("hidden"),t.removeClass("hidden"),h(!1),o&&n.pushRouteToState(["paymentOptions",a.toLowerCase()]);const r=t.offset().top-52;e("html, body").animate({scrollTop:r},500,"swing")}else{var s;if(o)n.pushRouteToState(["paymentMethods",a.toLowerCase(),null!==(s=t.getPackKeySelected())&&void 0!==s?s:"generic"]);const i=e('.js-pack-list-methods[data-method-name="'.concat(a,'"]')),r=t.getPackKeySelected();if(i.removeClass("is-hidden"),e(".payment-block__promotion").toggleClass("is-hidden",!i.has(".card-pack--free").length),i.find(".inactive").addClass("hidden"),r){const e=i.find(".card-pack");let t=e[2];e.filter('[data-pack-key="'.concat(r,'"]')).length>0&&(t=e.filter('[data-pack-key="'.concat(r,'"]'))),t.click()}else t.moveForm();h(!0)}}"AUDIOTEL"===a&&u.blocksPaidActions()&&u.showModal()})),document.addEventListener("vue:avs:verified",(function(){s.find('.js-payment-method[data-avs-blocked="true"]').removeAttr("data-avs-blocked").removeClass("payment-method--avs-blocked")}));var p={init:function(e){this.element=e},getName:function(){return this.element.attr("data-method")}}}}.apply(t,i),void 0===r||(e.exports=r)},30590(e,t,n){var i,r;n(74423),n(3362),i=[n(18638),n(23161),n(59412),n(95189),n(54515),n(39876),n(77858),n(37352)],void 0===(r=function(e,t,n,i,r,o,a,s){return function(){const a=e(".payment-form--paypal");let s=!1,c=null;const l=["test","dev"].includes(n.environment),u=a.find("input[name=paymentMode]").val(),d="paypal-button",h=new window.dnx.logic.PaypalProcessing(u),p=n.strumpfTokenization.strumpfBase,f=new o(a,!1);this.renderButton=function(){if(a.length&&"ACTIVE"!==u)if(s)a.find("#"+d).empty(),setTimeout((function(){m()}),0);else{var t;const i={en:"en_US",fr:"fr_FR",it:"it_IT",es:"es_ES",nl:"nl_NL",de:"de_DE",pt:"pt_PT"},o=null!==(t=n.appModelData.user.locale)&&void 0!==t?t:"en",a=i[o]?i[o]:i.en,c=n.paypalClientId,u=v();w("https://".concat(l?"sandbox":"www",".paypal.com/sdk/js?client-id=").concat(c,"&disable-funding=card&currency=").concat(u,"&locale=").concat(a)).then((()=>{s=!0,m()})).catch((t=>{var n;y({event:"paypal_sdk_load_error",message:"PayPal SDK failed to load",error:null!==(n=null==t?void 0:t.message)&&void 0!==n?n:"Unknown error"}),snackbar.error(r.trans("paypal.sdkLoadingError"),{timeout:10}),e('.js-payment-method[data-method="PAYPAL"]').removeClass("selected");e("html, body").animate({scrollTop:0},500,"swing"),e(".card-pack.selected").each((function(){const t=e(this);t.find(".card-pack__content").height(0),t.find(".card-pack__content--body").addClass("hidden"),t.find(".tick").removeClass("visible"),t.removeClass("selected selected-animation-done")})),e(".inactive").addClass("hidden")}))}};const m=function(){paypal.Buttons({style:{layout:"horizontal",color:"gold",shape:"pill",label:"buynow"},createOrder:async()=>(_local.ga("dl:ecommerce:submit"),await f.doFingerprint(),await(async()=>{const e={packKey:a.find("input[name=packKey]").val(),context:a.find("input[name=context]").val(),fp_requestId:a.find("input[name=fp_requestId]").val(),fp_visitorId:a.find("input[name=fp_visitorId]").val(),session_identifier:h.getFraudnetGuid()},t=await h.paymentHandler(e);if("BillingAgreement"===t.type&&t.billingToken)return c=t.billingToken,t.billingToken;if("OneTimePayment"===t.type&&t.id)return c=t.id,t.id;{let e=null;t.offerUsed&&(e=function(){document.location.reload()}),i.alert("",t.error,e)}})()),onApprove:function(e,n){return t.showLoadingAnimation(),n.order.get().then((function(e){y({event:"onApprove",message:"Paypal onApprove event",custom_id:e.purchase_units[0].custom_id,iframe_context:window.self!==window.top}),setTimeout((()=>{window.location.href=e.purchase_units[0].custom_id}),100)}))},onCancel:function(e){window.location.href="".concat(p,"/redirect/paypal/payment/cancel/").concat(e.orderID)},onError:function(e){var t;if(!c)return;const n=null!==(t=null==e?void 0:e.message)&&void 0!==t?t:"Unknown error";window.location.href="".concat(p,"/redirect/paypal/payment/error/").concat(c,"?err=").concat(n)}}).render("#".concat(d))},g=e("#js-payment-with-billing-agreement");e("#js-cancel-billing-agreement").on("click",(async function(e){e.preventDefault(),t.showLoadingAnimation();const n=await h.cancelBillingAgreement();i.alert("",n.message,(function(){document.location.reload(!0)}))})),g.on("click",(function(n){n.preventDefault(),_local.ga("dl:ecommerce:submit");return f.doFingerprint().then((()=>{e.ajax({url:window.location.origin+"/payment-agreement",type:"POST",beforeSend:function(){t.showLoadingAnimation()},complete:function(){t.hideLoadingAnimation()},data:{sessionIdentifier:h.getFraudnetGuid(),packKey:a.find("input[name=packKey]").val(),context:a.find("input[name=context]").val(),paymentMethod:"PAYPAL",fp_requestId:a.find("input[name=fp_requestId]").val(),fp_visitorId:a.find("input[name=fp_visitorId]").val(),billingAgreement:1}}).done((function(e){if(e.error){let t=null;e.offerUsed&&(t=function(){document.location.reload()}),i.alert("",e.error,t)}else{const t='<img src="/bundles/dnxmobile/img/default/payment2018/logos/paypal.png"  id="paypal-img" width="100" /><br><br>
2'+r.trans("payment_made_successfully");i.alert("",t,(function(){document.location=e.location}))}}))}))}));const v=function(){var e;const t=window.formattedPacks;return t.PAYPAL&&t.PAYPAL.p1?null!==(e=t.PAYPAL.p1.processingCurrency)&&void 0!==e?e:t.PAYPAL.p1.currency:"EUR"};function y(e){navigator.sendBeacon("/ajax-log-event",JSON.stringify(e))}const w=function(e){return new Promise(((t,n)=>{const i=document.createElement("script");i.src=e,i.onload=t,i.onerror=n,document.head.appendChild(i)}))}}}.apply(t,i))||(e.exports=r)},27410(e,t,n){var i,r;i=[n(18638),n(23161)],void 0===(r=function(e,t){return function(){var n=e(".payment-form--bank-information"),i=e(".js-switch-bank"),r=n.find("input[name=bankBic]").val(),o=n.find("input[name=accountHolderFirstname]").val(),a=n.find("input[name=accountHolderLastname]").val(),s=["packKey","context","paymentMethod"];i.on("click",(function(){function t(e){var t=e.prop("name");return-1===s.indexOf(t)}var i;(i=e(".js-bank-information-error")).length&&i[0].remove("p"),e(".js-use-other-bank-details").toggleClass("is-hidden"),e(".js-use-my-bank-details").toggleClass("is-hidden"),n.each((function(){e(this).find("input").map((function(){!function(n){if(t(n)){var i=n.prop("disabled");e(".js-bank-information-updated").val(i?"1":"0"),"bankInformationUpdated"!==n.attr("name")&&n.prop("disabled",!i)}}(e(this)),function(e){if(t(e))if(e.prop("disabled"))switch(e.prop("name")){case"bankBic":e.val(r);break;case"accountHolderLastname":e.val(a);break;case"accountHolderFirstname":e.val(o)}else e.val("")}(e(this))}))}))})),n.on("submit",(function(e){e.preventDefault(),t.showLoadingAnimationAndWaitIteration((function(){n.off("submit").trigger("submit")}))}))}}.apply(t,i))||(e.exports=r)},15125(e,t,n){var i,r;i=[n(47113),n(59412)],r=function(e,t){return e.extend({url:function(e){var t;return(null!==(t=e.path)&&void 0!==t?t:"profile/")+this.get("id")+"/?partial"},parse:function(t){return e.prototype.parse.apply(this,arguments)}})}.apply(t,i),void 0===r||(e.exports=r)},88840(e,t,n){var i,r;n(27495),n(25440),i=[n(20548),n(46323),n(15125),n(59412),n(9340)],void 0===(r=function(e,t,i,r,o){return e.extend({profileRoute:function(e){const r=n(60550),o=r.request("getAppModel").get("currentRoute"),a=r.contentRegion,s=o.route.replace(":id(/)","");a.hasView()&&"ProfileView"===a.currentView.name&&a.currentView.model.get("nickname");const c=this.createModelAndView(r.contentRegion,"ProfileView",".profile__wrapper",i,{id:e},t,{});let l=c.model,u=(c.view,c.fetchModelData);c.viewExisted;u&&l.fetch({url:l.url({path:s})})}})}.apply(t,i))||(e.exports=r)},64456(e,t,n){var i,r;i=[n(64794),n(29293)],void 0===(r=function(e,t){return e.Module.extend({initialize:function(){this.Router=new t}})}.apply(t,i))||(e.exports=r)},29293(e,t,n){var i,r;i=[n(4785),n(88840)],r=function(e,t){return e.extend({appRoutes:{"profile/:id(/)":"profileRoute","profil/:id(/)":"profileRoute","profilo/:id(/)":"profileRoute","profiel/:id(/)":"profileRoute","perfil/:id(/)":"profileRoute","perfile/:id(/)":"profileRoute"},before:function(t,n){e.prototype.before.apply(this,arguments)},after:function(t,n){e.prototype.after.apply(this,arguments)},controller:new t})}.apply(t,i),void 0===r||(e.exports=r)},46323(e,t,n){var i,r;n(3362),n(27495),n(25440),n(62953),i=[n(18638),n(95735),n(54515),n(59412),n(95189),n(23161),n(81864),n(4927),n(16e3),n(76285)],r=function(e,t,i,r,o,a,s,c,l,u){var d=l.AvsService;return t.extend({name:"ProfileView",AppInstance:null,appModel:null,overlaysManager:null,picturesViewer:null,videosViewer:null,visitorService:null,ui:{wrapper:".profile__wrapper",chatControls:".chat__controls",overlays:"#overlaysWrapper",cammerProfile:"#cammerProfile",profileContentCollapse:".js-profile-content-collapse",teaser:"#teaser",wrapperTeaser:".profile__teaser",favoriteButton:".js-toggle-fav",offlineButton:".js-offline-btn",teaserVideoContainer:".js-container-video",teaserImageContainer:".js-container-image",imageInGallery:".js-gallery-image",videoInGallery:".js-gallery-video",virtualGiftsBtn:".js-chat__text-gift",banModelBtn:".js-ban-model",camsFactorVoteBtn:".js-camsfactor-vote",virtualGiftsContainer:".js-gifts",virtualGiftsGenericContainer:".js-gift-section-generic",virtualGiftsBtnClose:".js-gifts__close",giftItem:".js-gifts__item",conversationBtn:".js-conversation-action",goCh
2atBtn:".js-btn-go",relatedCammer:".profile__other-cammer .js-models-item",swiperSlidePics:".swiper__pictures .swiper-slide",swiperSlideClips:".swiper__clips .swiper-slide",mediaViewer:".js-media-viewer",mediaViewerPrevBtn:".js-media-viewer-prev",mediaViewerNextBtn:".js-media-viewer-next",mediaViewerCloseBtn:".js-media-viewer-close",mediaViewerBackdrop:".js-media-viewer-backdrop",videoViewer:".js-video-viewer",videoViewerPrevBtn:".js-video-viewer-prev",videoViewerNextBtn:".js-video-viewer-next",videoViewerCloseBtn:".js-video-viewer-close",videoViewerBackdrop:".js-video-viewer-backdrop",videoViewerImageContainer:".js-video-viewer-image-container",videoViewerPlayBtn:".js-video-viewer-info svg.media-viewer__info--icon"},events:{"click @ui.teaserVideoContainer":"teaserVideoContainerClickHandler","click @ui.imageInGallery":"imageInGalleryClickHandler","click @ui.mediaViewerBackdrop":"mediaViewerBackdropClickHandler","click @ui.mediaViewerCloseBtn":"mediaViewerBackdropClickHandler","click @ui.mediaViewerNextBtn":"mediaViewerNextClickHandler","click @ui.mediaViewerPrevBtn":"mediaViewerPrevClickHandler","click @ui.favoriteButton":"favoriteButtonClickHandler","click @ui.offlineButton":"offlineButtonClickHandler","click @ui.banModelBtn":"banModelBtnClickHandler","click @ui.goChatBtn":"goChatBtnClickHandler","click @ui.relatedCammer":"relatedCammerClickHandler","click @ui.giftItem":"giftItemClickHandler","click @ui.virtualGiftsBtn":"virtualGiftsBtnClickHandler","click @ui.virtualGiftsBtnClose":"virtualGiftsBtnCloseClickHandler","click @ui.videoViewerPlayBtn":"videoViewerPlayBtnClickHandler","click @ui.videoViewerImageContainer":"videoViewerImageContainerClickHandler","click @ui.videoInGallery":"videoGalleryClickHandler","click @ui.videoViewerBackdrop":"videoViewerBackdropClickHandler","click @ui.videoViewerCloseBtn":"videoViewerCloseClickHandler","click @ui.videoViewerNextBtn":"videoViewerNextClickHandler","click @ui.videoViewerPrevBtn":"videoViewerPrevClickHandler","click @ui.conversationBtn":"conversationBtnClickHandler","click @ui.camsFactorVoteBtn":"camsFactorVoteBtnClickHandler"},initialize:function(e){this.AppInstance=n(60550),this.appModel=this.AppInstance.request("getAppModel"),t.prototype.initialize.apply(this,arguments)},render:function(){return t.prototype.render.apply(this,arguments)},onRender:function(){if(this.overlaysManager=new c(this.ui.overlays,this.ui.wrapper),n.e(6134).then(n.bind(n,36134)).then((e=>{let t=e.VisitorService;visitorService=t.getInstance()})),this.model.get("freeVideo")&&this.ui.teaser[0]){this.ui.teaserVideoContainer.removeClass("is-hidden");var t=this.ui.teaser[0].play();void 0!==t&&(t.catch((()=>{})),this.ui.teaser[0].muted=!0,this.ui.teaser[0].play()),e.ajax({url:r.paths.video_watched_url.replace("__videoId__",this.ui.teaser.data("video-id"))})}n.e(8301).then(n.bind(n,58301)).then((e=>{let t=e.MediaSlider;this.ui.swiperSlidePics.length>=1&&(new t(".swiper__pictures",this.ui.swiperSlidePics.selector,this.getSwiperOption(this.ui.swiperSlidePics.length)),this.picturesViewer=new t(this.ui.mediaViewer.find(".swiper").selector,this.ui.mediaViewer.find(".swiper-slide").selector,{pagination:{el:".media-viewer__pagination",type:"fraction"}})),this.ui.swiperSlideClips.length>=1&&(new t(".swiper__clips",this.ui.swiperSlideClips.selector,this.getSwiperOption(this.ui.swiperSlideClips.length)),this.videosViewer=new t(this.ui.videoViewer.find(".swiper").selector,this.ui.videoViewer.find(".swiper-slide").selector,{pagination:{el:".media-viewer__pagination",type:"fraction"}}))}))},getSwiperOption:()=>({noSwiping:!0,initialSlide:1,slidesPerView:1.08,init:!1,spaceBetween:10,breakpoints:{640:{slidesPerView:3.08},768:{slidesPerView:4.2}}}),teaserVideoContainerClickHandler:function(){this.ui.teaserVideoContainer[0].paused?this.ui.teaserVideoContainer[0].play():this.ui.teaserVideoContainer[0].pause()},imageInGalleryClickHandler:function(t){var n;const i=null!==(n=e(t.currentTarget).data("index"))&&void 0!==n?n:0;this.picturesViewer.slideTo(i),this.ui.mediaViewer.addClass("is-visible")},mediaViewerBackdropClickHandler:function(){this.ui.mediaViewer.removeClass("is-visible")},mediaViewerBackdropClickHandler:function(){this.ui.mediaViewer.removeClass("is-visible")},mediaViewerPrevClickHandler:function(){this.picturesViewer.slidePrev()},mediaViewerNextClickHandler:function(){this.picturesViewer.slideNext()},videoGalleryClickHandler:function(t){var n;const i=null!==(n=e(t.currentTarget).data("index"))&&void 0!==n?n:0;this.videosViewer.on("slideChange",(t=>{const n=e(this.videosViewer.slides[t.previousIndex]);0!==n.length&&n.find("video")[0].pause()})),this.videosViewer.slideTo(i),this.ui.videoViewer.addClass("is-visible")},favoriteButtonClickHandler:function(e){const t=this.ui.favoriteButton.attr("data-favorite"),n=this.model.get("id"),i=this.model.get("nickname");if(!this.appModel.userLoggedIn())return"add"===t&&visitorService&&visitorService.addModelToFavoritesCookie(n),void this.showConnectMod
2al();this.AppInstance.commands.execute("app:handleFavorite",{action:t,id:n,nickname:i,callbackSuccess:()=>{this.ui.favoriteButton.attr("data-favorite","add"===t?"remove":"add")}})},offlineButtonClickHandler:function(e){this.ui.favoriteButton[0].click()},banModelBtnClickHandler:function(t){const n=e(t.currentTarget),o=n.attr("data-ban-state");this.AppInstance.commands.execute("app:handleBanModel",{action:o,id:this.model.get("id"),callbackSuccess:()=>{"ban"===o?window.location=r.paths.zappage:snackbar.success(i.trans("removeFromBanList",{"%nickname%":this.model.get("nickname")}),{timeout:5}),n.attr("data-ban-state","ban"===o?"unban":"ban")}})},camsFactorVoteBtnClickHandler:function(t){if(!this.appModel.userLoggedIn())return void this.showConnectModal();const n=e(t.currentTarget),i=n.attr("data-cammer-id"),r=n.attr("data-model-nickname");document.dispatchEvent(new CustomEvent("vue:modals:show",{detail:{type:"camsFactorVoting",cammerId:i,modelNickname:r}}))},relatedCammerClickHandler:function(e){sessionStorage.setItem("chatNavigationSource","profile_related_thumbnail")},goChatBtnClickHandler:function(e){if(sessionStorage.setItem("chatNavigationSource","profile_cta"),d.blocksPaidActions()){if("FREE"===this.ui.goChatBtn.attr("data-chat-type")&&d.isFreeChatAccessible())return;e.preventDefault();var t=this.ui.goChatBtn.attr("href");d.guardPaidAction((function(){window.location=t}))&&setTimeout((()=>{var e;null===(e=document.querySelector(".wrapper__body"))||void 0===e||null===(e=e.querySelector(".progress"))||void 0===e||e.remove()}),0)}},showConnectModal:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.appModel.userIsReturning()?window.modal.showLogin(e):window.modal.showRegistration(e)},preventActions:function(e){d.guardPaidAction(e.bind(this))||e.call(this)},giftItemClickHandler:function(t){const n=e(t.currentTarget),o=n.data("giftId"),s=n.hasClass("has-badge"),c=this;e.ajax({method:"POST",url:r.chatModule.paths.consume_virtual_gift,beforeSend:()=>{a.showLoadingAnimation(),this.hideGifts()},complete:()=>{a.hideLoadingAnimation()},data:{cammer_id:this.model.get("id"),product_id:o}}).done((function(e){e.success?(document.dispatchEvent(new CustomEvent("nav-bar:update:credits",{detail:{credits:e.credits}})),e.virtualGift&&window.snackbar.success(i.trans("virtualGiftSentModelWillLoveIt",{"%virtual_gift_name%":e.virtualGift.name,"%model_name%":c.model.get("nickname")}),{timeout:5}),s&&c.decrementFreeGift(n)):snackbar.error(e.error)}))},decrementFreeGift:function(e){const t=e.find(".js-free-gifts--item-count"),n=parseInt(t.text())-1;t.text(n),0===n&&e.remove()},showGifts:function(){this.ui.virtualGiftsContainer.addClass("is-visible"),this.ui.virtualGiftsGenericContainer.addClass("is-visible"),this.toggleAppBgScrollLock(!0)},hideGifts:function(){this.ui.virtualGiftsContainer.removeClass("is-visible"),this.ui.virtualGiftsGenericContainer.removeClass("is-visible"),this.toggleAppBgScrollLock(!1)},toggleAppBgScrollLock:function(t){e("body").toggleClass("bg-scroll-lock",t)},virtualGiftsBtnClickHandler:function(e){d.blocksPaidActions()?this.preventActions(this.showGifts):this.appModel.userLoggedIn()?this.showGifts():this.showConnectModal()},virtualGiftsBtnCloseClickHandler:function(e){this.hideGifts()},videoViewerPlayBtnClickHandler:function(t){const n=e(t.currentTarget).parent(".js-video-viewer-info").parent(".swiper-slide-active").attr("data-video-id");this.loadVideoHandler(n)},videoViewerImageContainerClickHandler:function(t){const n=e(t.currentTarget).attr("data-video-id");this.loadVideoHandler(n)},loadVideoHandler:function(t){const n=this.model.get("clips").find((function(e){if(e.id===t)return e}));if(n)if("PAY_PER_VIEW"===n.pay_type){if(!d.blocksPaidActions()&&!this.appModel.userLoggedIn())return window.location.href=r.paths.login_with_profile.replace("__profileId__",this.model.get("nickname")),!1;this.preventActions((()=>{o.confirm("",i.trans("playThisVideoForXCredits",{"%nbCredits%":n.virtualGiftQuantity}),(()=>this.loadClipDetailsAndConsumeVideo(n.video_id,t)))}))}else this.loadVideoInViewer(n.timedUrl,t),e.ajax({url:r.paths.video_watched_url.replace("__videoId__",n.video_id)})},loadClipDetailsAndConsumeVideo:function(t,n){const i=r.paths.ajax_load_clip.replace("__clipId__",t),a=this.model.get("nickname");e.getJSON(i,[],(i=>{var s,c=i.clipUrl;if(null==i||null===(s=i.consumeInfo)||void 0===s||!s.success)return o.alert("",i.consumeInfo.error,(function(){var e;return null!=i&&null!==(e=i.consumeInfo)&&void 0!==e&&e.payment?window.location.href=r.paths.payment2018:c||(window.location.href=r.paths.login_with_profile.replace("__profileId__",a)),!1}));document.dispatchEvent(new CustomEvent("nav-bar:update:credits",{detail:{credits:i.consumeInfo.credits}})),this.loadVideoInViewer(c,n),e.ajax({url:r.paths.video_watched_url.replace("__videoId__",t)})}))},loadVideoInViewer:function(e,t){const n=this.ui.videoViewer.find("[data-vi
2deo-id="+t+"]"),i=n.find("video"),r=n.find(".media-viewer__cover"),o=n.find(".js-video-viewer-info");r.addClass("is-hidden"),o.addClass("is-hidden"),i.removeClass("is-hidden"),i.attr("src",e);let a=i[0].play();void 0!==a&&a.catch((()=>{})),i.on("ended",(function(e){r.removeClass("is-hidden"),o.removeClass("is-hidden"),i.addClass("is-hidden"),i.off("ended")})),i.on("click",(function(e){i[0].paused?(a=i[0].play(),void 0!==a&&a.catch((()=>{}))):i[0].pause()}))},closeVideoViewer:function(){this.ui.videoViewer.removeClass("is-visible"),e(this.videosViewer.slides).each((function(){const t=e(this).find("video");t.attr("src",""),t.addClass("is-hidden"),e(this).find(".media-viewer__cover").removeClass("is-hidden"),e(this).find(".js-video-viewer-info").removeClass("is-hidden")}))},videoViewerBackdropClickHandler:function(){this.closeVideoViewer()},videoViewerCloseClickHandler:function(){this.closeVideoViewer()},videoViewerNextClickHandler:function(){this.videosViewer.slideNext()},videoViewerPrevClickHandler:function(){this.videosViewer.slidePrev()},conversationBtnClickHandler:function(e){e.preventDefault();const t=this.ui.conversationBtn.data("href");d.blocksPaidActions()?this.preventActions((()=>{window.location=t})):this.appModel.userLoggedIn()?window.location=t:this.showConnectModal(t)}})}.apply(t,i),void 0===r||(e.exports=r)},80607(e,t,n){"use strict";n.r(t),n.d(t,{ModelAppearanceRecord:()=>v});n(62953);function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function o(e,t){return e.get(s(e,t))}function a(e,t,n){return e.set(s(e,t),n),n}function s(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,g=new WeakMap;class v{constructor(e,t,n){r(this,c,void 0),r(this,l,void 0),r(this,u,!1),r(this,d,!1),r(this,h,0),r(this,p,0),r(this,f,0),r(this,m,0),r(this,g,0),a(c,this,e),a(l,this,t),a(d,this,n)}updateTotalVisibleTime(){if(0===o(h,this))return;const e=(new Date).getTime(),t=e-o(h,this);o(d,this)&&a(m,this,o(m,this)+t),a(f,this,o(f,this)+t),a(h,this,e)}focusChanged(e){if(a(d,this,e),o(u,this)){const t=(new Date).getTime(),n=t-o(h,this);e||a(m,this,o(m,this)+n),a(f,this,o(f,this)+n),a(h,this,t)}}visibleChanged(e){var t;e?(a(h,this,(new Date).getTime()),a(p,this,0),a(g,this,(t=o(g,this),t++,t))):(a(p,this,(new Date).getTime()),this.updateTotalVisibleTime());a(u,this,e)}onAway(){o(u,this)&&this.updateTotalVisibleTime()}isAllZero(){return 0===o(f,this)&&0===o(m,this)}hasReachedMaxVisibleDuration(){return o(f,this)>v.MAX_VISIBLE_DURATION_MS||o(m,this)>v.MAX_VISIBLE_DURATION_MS}resetTimings(){a(h,this,0),a(p,this,0),a(f,this,0),a(m,this,0),a(g,this,0)}getArrayDataForServer(){return[o(c,this),o(l,this),o(f,this),o(m,this),o(g,this)]}}i(v,"sentToServer",["cammerId","cammerIndex","totalVisibleTime","totalVisibleTimeWithFocus","timesVisibilityChanged"]),i(v,"MAX_VISIBLE_DURATION_MS",6048e5)},44948(e,t,n){"use strict";n.r(t),n.d(t,{ModelItemsAppearance:()=>y});n(62953);var i=n(80607),r=n(59412);function o(e,t,n){a(e,t),t.set(e,n)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t){return e.get(l(e,t))}function c(e,t,n){return e.set(l(e,t),n),n}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakSet;class y{constructor(){var e,t;a(e=this,t=v),t.add(e),o(this,u,"/dnx-event-collector/appearance/zappage/"),o(this,d,""),o(this,h,void 0),o(this,p,void 0),o(this,f,void 0),o(this,m,null),o(this,g,null),l(v,this,w).call(this)}onAway(e){"filterchanged"===e&&l(v,this,_).call(this),s(p,this).forEac
2h(((e,t)=>{e.onAway()})),l(v,this,A).call(this,e),"filterchanged"===e&&s(p,this).clear()}observeForIntersection(e){s(h,this).observe(e)}unobserveForIntersection(e){s(h,this).unobserve(e)}onModelClick(e,t){c(m,this,null!=e?e:null),c(g,this,null!=t?t:null),this.onAway("modelclicked")}}function w(){c(f,this,document.hasFocus()),l(v,this,C).call(this),l(v,this,b).call(this),l(v,this,T).call(this),c(p,this,new Map)}function b(){document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&this.onAway("visibilitychanged")}))}function C(){window.addEventListener("focus",(()=>{l(v,this,S).call(this,!0)})),window.addEventListener("blur",(()=>{l(v,this,S).call(this,!1)}))}function T(){c(h,this,new IntersectionObserver(l(v,this,k).bind(this),{root:null,rootMargin:"0px",threshold:.75}))}function S(e){c(f,this,e),s(p,this).forEach(((t,n)=>{t.focusChanged(e)}))}function E(e,t){const n=s(f,this);s(p,this).has(e)||s(p,this).set(e,new i.ModelAppearanceRecord(e,t,n))}function x(e,t,n){l(v,this,E).call(this,e,t),s(p,this).get(e).visibleChanged(n)}function k(e,t){e.forEach((e=>{const t=e.target.getAttribute("data-cammer-id");if(null===t)return;const n=Array.from(e.target.parentNode.children).indexOf(e.target);l(v,this,x).call(this,t,n,e.isIntersecting)}))}function _(){s(h,this)&&s(h,this).disconnect()}function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=[];if(s(p,this).forEach(((e,n)=>{e.hasReachedMaxVisibleDuration()&&e.resetTimings(),e.isAllZero()||t.push(e.getArrayDataForServer())})),0===t.length)return;const n={trigger:e,appearanceColumns:i.ModelAppearanceRecord.sentToServer,appearanceData:t};"modelclicked"===e&&null!==s(m,this)&&(n.clickedCammerId=s(m,this),n.clickedCammerIndex=s(g,this),c(m,this,null),
2c(g,this,null));const o=r.commonUuid;navigator.sendBeacon(s(d,this)+s(u,this)+e+"/"+o,JSON.stringify(n))}},27051(e,t,n){"use strict";n.r(t),n.d(t,{ModelItemsMutationObserver:()=>p});n(62953);var i=n(44948);function r(e,t,n){o(e,t),t.set(e,n)}function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(c(e,t))}function s(e,t,n){return e.set(c(e,t),n),n}function c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var l=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakSet;class p{constructor(){var e,t;o(e=this,t=h),t.add(e),r(this,l,"ul.models"),r(this,u,null),r(this,d,null),c(h,this,f).call(this)}handleInitialModelItems(){const e=document.querySelector(a(l,this));null!==e&&c(h,this,m).call(this,e)}onModelClick(e,t){a(d,this).onModelClick(e,t)}}function f(){s(d,this,new i.ModelItemsAppearance)}function m(e){a(u,this)&&(a(d,this).onAway("filterchanged"),a(u,this).disconnect()),s(u,this,new MutationObserver(c(h,this,g).bind(this))),a(u,this).observe(e,{attributes:!1,childList:!0,subtree:!0});e.querySelectorAll("li.models__item").forEach((e=>a(d,this).observeForIntersection(e)))}function g(e){e.forEach((e=>{"childList"===e.type&&(e.addedNodes.forEach((e=>{e.classList&&e.classList.contains("models__item")&&a(d,this).observeForIntersection(e)})),e.removedNodes.forEach((e=>{e.classList&&e.classList.contains("models__item")&&a(d,this).unobserveForIntersection(e)})))}))}},93597(e,t,n){var i,r;n(27495),n(62953),n(48408),i=[n(18638),n(47113),n(59412)],r=function(e,t,n){return t.extend({defaults:{partialType:n.constants.PARTIAL_TYPE_FULL},initialize:function(e){this.on("change:type",(function(e){this.fetch()}))},url:function(){var t="",i={partial:"",partial_type:this.get("partialType"),page:this.get("page"),nickname:this.get("nickname"),searchvalue:this.get("searchValue")};return i.nickname||delete i.nickname,i.searchvalue||delete i.searchvalue,this.get("type")===n.constants.ZAPPAGE_TYPE_SEARCH&&(t="search/"),t+"?"+e.param(i)},parse:function(e){return t.prototype.parse.apply(this,arguments)},nextPage:function(e){return!(this.fetching||this.get("page")>=this.get("pages"))&&(this.set({page:this.get("page")+1,partialType:n.constants.PARTIAL_TYPE_LIST_ITEMS}),this.fetch(e))},refresh:function(e){let t=n.constants.PARTIAL_TYPE_LIST_ITEMS;e&&e.refreshSearchResultsOnly&&(t=n.constants.ZAPPAGE_TYPE_SEARCH);const i=new URLSearchParams(window.location.search);return this.set({page:1,partialType:t,nickname:i.get("nickname"),searchValue:i.get("searchvalue")}),this.fetch(e)}})}.apply(t,i),void 0===r||(e.exports=r)},525(e,t,n){var i,r;i=[n(64794),n(18638),n(56883),n(60494)],void 0===(r=function(e,t,n,i){return e.ItemView.extend({name:"TutorialView",tutorialLength:0,tutorialCurrent:0,dragDirection:null,ui:{tutorialPanels:".tutorial__panel",tutorialClose:".tutorial__close",tutorialPrev:".tutorial__prev",tutorialNext:".tutorial__next",tutorialBullets:".tutorial__bullets a",tutorialOk:".tutorial__ok-next-page"},events:{"click @ui.tutorialClose":"closeTutorial","click @ui.tutorialPrev":"prevTutorial","click @ui.tutorialNext":"nextTutorial","click @ui.tutorialOk":"nextTutorial"},initialize:function(e){if(e.el){this.isRendered=!0,this.bindUIElements(),this.on("showTutorial",this.openTutorial);var t=new n(this.el),i=this;t.get("pan").set({direction:n.DIRECTION_ALL}),t.on("panleft panright",(function(e){"panleft"===e.type?i.dragDirection="left":i.dragDirection="right"})),t.on("panend",(function(e){"left"===i.dragDirection?i.nextTutorial():i.prevTutorial()}))}},openTutorial:function(){this.tutorialLength=this.ui.tutorialPanels.length,this.goToTutorial(this.tutorialCurrent),t(document).scrollTop(0),this.$el.addClass("is-visible")},closeTutorial:function(){this.$el.fadeOut()},goToTutorial:function(e){this.ui.tutorialPanels.removeClass("is-active"),this.ui.tutorialBullets.removeClass("is-active"),this.ui.tutorialPanels.eq(e).addClass("is-active"),this.ui.tutorialBullets.eq(e).addClass("is-active"),this.tutorialCurrent=e,this.ui.tutorialPrev.toggleClass("is-disabled",0===this.tutorialCurrent),this.ui.tutorialNext.toggleClass("is-disabled",this.tutorialCurrent===this.ui.tutorialPanels.length-1)},prevTutorial:function(){this.tutorialCurrent>0&&this.goToTutorial(this.tutorialCurrent-1)},nextTutorial:function(){this.tutorialCurrent+1<this.tutorialLength?this.goToTutorial(this.tutorialCurrent+1):this.closeTutorial()}})}.apply(t,i))||(e.exports=r)},39413(e,t,n){var i,r;n(74423),n(3362),n(62953),i=[n(18638),n(60494),n(95735),n(525),n(33129),n(94414),n(9340),n(56883),n(59412),n(27051),n(54515),n(95189),n(16e3)],r=function(e,t,i,r,o,a,s,c,l,u,d,h,p){var f=p.AvsService;return i.extend({name:"ZappageView",appearanceMutationObserver:null,ui:{modelItem:".js-models-item",models:"ul.models",modelsItems:"li.models__item",modelsOtherCams:".js-models-other-cams",modelsNicknameMatch:".js-models-nickname-match",modelsDescMatch:".js-models-description-match",moreModelsNicknameMatch:".js-more-models-nickname-match",moreModelsDescMatch:".js-more-models-description-match",pullable:".pullable",pullableInner:".pullable__inner",pullableInfo:".pullable__info",footer
2:"footer",footerSeo:".text-seo",dummyChat:"#dummyChat",dummyChatPlayer:".dummyChat__player",wcsfDescToggle:".js-wcs-banner-toggle",loadMoreModelsBtn:".js-zappage-load-more",modelsItemSlideShow:".js-models-item-slide-show",livePreviewStartButton:".js-live-preview-start",videoPreviewStartButton:".js-video-preview-start",slideShowStartButton:".js-slideshow-picture-start",noResultResetButton:".js-no-result-reset-btn",openActionsButton:".js-open-actions-btn",closeActionsButton:".js-close-actions-btn",overlayActionsButton:".model__actions--overlay",favoriteButton:".js-action-fav",conversationButton:".js-action-conversation",banModelButton:".js-action-ban-model",voteModelButton:".js-action-vote",firstOfferBanner:".js-first-offer-banner"},events:{"click @ui.modelItem":"modelItemClickHandler","touchstart @ui.pullable":"pullTouchStartHandler","touchend @ui.pullable":"pullTouchEndHandler","touchmove @ui.pullable":"pullTouchMoveHandler","click @ui.wcsfDescToggle":"wcsfDescToggleClickHandler","click @ui.moreModelsNicknameMatch":"moreModelsNickMatchClickHandler","click @ui.moreModelsDescMatch":"moreModelsDescMatchClickHandler","click @ui.loadMoreModelsBtn":"loadMoreModels","click @ui.noResultResetButton":"resetSearch","click @ui.openActionsButton":"openActionsMenu","click @ui.closeActionsButton":"closeActionsMenu","click @ui.overlayActionsButton":"closeActionsMenu","click @ui.favoriteButton":"toggleFavorite","click @ui.conversationButton":"conversationHandler","click @ui.banModelButton":"toggleBanModelHandler","click @ui.voteModelButton":"voteModelButtonHandler","click @ui.firstOfferBanner":"sendDataLayer"},initialize:function(t){var r;(this.AppInstance=n(60550),this.appModel=this.AppInstance.request("getAppModel"),i.prototype.initialize.apply(this,arguments),this.pullScrollHandler=e.proxy(this.pullScrollHandler,this),e(window).on("scroll",this.pullScrollHandler),this.initGridSize(),document.addEventListener("grid:size:changed",(t=>{const n=t.detail.value;e("html").attr("data-grid",n),this.toggleActionsMenuByDeviceOrGridSize(n),this.setGridSizeInLocalStorage(n)})),"IntersectionObserver"in window&&l.appModelData.isRealZappage&&(this.appearanceMutationObserver=new u.ModelItemsMutationObserver),t.el)&&(this.showOnlyFirstCategorizedResults(),this.initializeModelListActionHandler(),null===(r=this.appearanceMutationObserver)||void 0===r||r.handleInitialModelItems(),this.showMoreGirlsButtonWhenNoContentScrollable(),this.toggleActionsMenuByDeviceOrGridSize(this.getCurrentGridSize()))},onDestroy:function(){e(window).off("scroll",this.pullScrollHandler),this.off("view:chatRegion:show")}
2,modelItemClickHandler:function(t){var n;const i=e(t.currentTarget).closest(".js-models-item"),r=i.closest("li.models__item").attr("data-cammer-id"),o=i.closest("li.models__item").index();null===(n=this.appearanceMutationObserver)||void 0===n||n.onModelClick(r,o);const a=this,s=this.ui.modelItem.not(i),c=this.appModel.isChatMinimized();if(!c){const e=i.find("img").attr("src"),t=i[0].getAttribute("href"),n=i[0].getBoundingClientRect();t.includes("https://")||(this.ui.dummyChat.css({top:n.top,height:n.height,left:n.left,width:n.width}),e&&this.ui.dummyChatPlayer.css("background-image","url("+e+")"),setTimeout((function(){a.ui.dummyChat.css({top:0,height:"100vh",left:0,width:"100vw"})}),30))}i.addClass("is-loading is-disabled"),s.each((function(){e(this).removeClass("is-disabled")})),this.once("view:chatRegion:show",(function(e){i.removeClass("is-loading"),c||setTimeout((function(){a.ui.dummyChat.removeAttr("style"),a.ui.dummyChatPlayer.removeAttr("style")}),600)})),this.appModel.set("chatNavigationSource","zappage_thumbnail")},uiIsRefreshing:function(){return this.ui.pullableInner.hasClass("is-refreshing")},uiResetPullable:function(){this.ui.pullableInner.removeClass("is-pulled is-refreshing").css({"-webkit-transform":"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)"}).data("mouseposition",null),this.ui.pullableInfo.css("height",0).removeClass("is-refreshing is-ready")},uiSetIsPulling:function(){this.ui.pullableInner.removeClass("is-pulled").addClass("is-refreshing").css({"-webkit-transform":"translate3d(0, 75px, 0)",transform:"translate3d(0, 75px, 0)"}),this.ui.pullableInfo.css("height",50).addClass("is-refreshing"),this.trigger("zappageRefresh",{refreshSearchResultsOnly:this.ui.modelsNicknameMatch.length>0||this.ui.modelsDescMatch.length>0||this.ui.modelsOtherCams.length>0})},uiSetPullPosition:function(e){this.ui.pullableInner.css({"-webkit-transform":"translate3d(0, "+e+"px, 0)",transform:"translate3d(0, "+e+"px, 0)"}),this.ui.pullableInfo.css("height",e+"px")},uiTogglePullInfo:function(e){this.ui.pullableInfo.toggleClass("is-ready",e)},pullTouchStartHandler:function(e){this.ui.pullableInner.data("mousedown",!0).data("mouseposition",e.pageY||e.originalEvent.touches[0].pageY)},pullTouchEndHandler:function(t){this.ui.pullableInner.data("mousedown",!1);var n=this.ui.pullableInner.data("mouseposition"),i=t.pageY?t.pageY-n:t.originalEvent.changedTouches[0].pageY-n;this.uiIsRefreshing()||(0===e(window).scrollTop()&&i>150?this.uiSetIsPulling():this.uiResetPullable())},pullTouchMoveHandler:function(t){if(this.ui.pullableInner.data("mousedown")){var n=this.ui.pullableInner.data("mouseposition"),i=window.innerHeight?window.innerHeight:e(window).height(),r=t.pageY||t.originalEvent.touches[0].pageY,o=t.pageY?t.pageY-n:t.originalEvent.touches[0].pageY-n;o>0&&this.ui.pullableInner.addClass("is-pulled"),this.uiIsRefreshing()||(r<i?(this.uiSetPullPosition(o),this.uiTogglePullInfo(!0)):this.uiTogglePullInfo(!1),0===e(window).scrollTop()&&o>0?(t.preventDefault(),this.uiSetPullPosition(o),o>150?this.uiTogglePullInfo(!0):this.uiTogglePullInfo(!1)):this.uiTogglePullInfo(!1))}},pullScrollHandler:function(t){if(e("body").hasClass("bg-scroll-lock")||0===this.ui.models.length||this.ui.models.hasClass("no-scroll")||this.ui.modelsNicknameMatch.length>0||this.ui.modelsDescMatch.length>0)return;const n=this.model.get("page"),i=this.model.get("pages");var r=Math.max(e(window).height(),window.innerHeight),o=document.documentElement.scrollHeight-r,a=this.ui.footer.height()+this.ui.footerSeo.height();n%3==0&&n<i?this.ui.loadMoreModelsBtn.removeClass("hidden"):e(window).scrollTop()>=o-a&&!this.model.fetching&&"zappage_top100"!==this.model.get("type")&&this.trigger("zappageNextPage")},scrollTop:function(e){var t=e||0;this.ui.pullable.scrollTop(t)},enableCams:function(){this.ui.modelItem.jquery&&this.ui.modelItem.removeClass("is-disabled")},render:function(){var t=this.model.get("content");let n=null;var i;e(t).is("section")?(this.$el.html(t),n=this.model.get("dataLayer"),setTimeout((()=>{var e;null===(e=this.appearanceMutationObserver)||void 0===e||e.handleInitialModelItems(),this.showMoreGirlsButtonWhenNoContentScrollable()}),0)):this.model.get("page")>1?this.ui.models.append(t):(this.ui.models.html(t),null===(i=this.appearanceMutationObserver)||void 0===i||i.handleInitialModelItems(),this.showMoreGirlsButtonWhenNoContentScrollable(),this.uiResetPullable());return n&&_local.ga("dl:common:search",n),this.isRendered=!0,this.bindUIElements(),this.showOnlyFirstCategorizedResults(),this.initializeModelListActionHandler(),this.toggleActionsMenuByDeviceOrGridSize(this.getCurrentGridSize()),this},showChatTutorial:function(){const e=void 0!==t.get("tutorialShown"),n=this.AppInstance.request("app:chat:getChatSessions");if(!s.matchChatBoxed()&&!e&&n.length>=2){const e=o.random(0,100);if(o.contains([0,3],e%3)){new r({el:"#tutorial"}).trigger("showTutorial"),t.set("tutorialShown","1")}else t.set("tutorialShown","1")}},wcsfDescToggleClickHandler:function(t){e(t.currentTarget).parents(".wcs-banner").toggleClass("is-open")},moreModelsNickMatchClickHandler:function(t){var n=this.ui.modelsNicknameMatch.find("li").filter((function(){return e(this).is(":hidden")}));n.slice(0,6).show(),Math.max(0,n.length-6)||this.ui.moreModelsNicknameMatch.addClass("hidden")},moreModelsDescMatchClickHandler:function(t){var n=this.ui.modelsDescMatch.find("li").filter((function(){return e(this).is(":hidden")}));n.slice(0,6).show(),Math.max(0,n.length-6)||this.ui.moreModelsDescMatch.addClass("hidden")},showOnlyFirstCategorizedResults:function(){this.ui.modelsNicknameMatch.length>0&&(this.ui.modelsNicknameMatch.find("li").slice(6).hide(),this.ui.modelsNicknameMatch.find("li").length>6&&this.ui.moreModelsNicknameMatch.removeClass("hidden")),this.ui.modelsDescMatch.length>0&&(this.ui.modelsDescMatch.find("li").slice(6).hide(),this.ui.modelsDescMatch.find("li").length>6&&this.ui.moreModelsDescMatch.removeClass("hidden"))}
2,loadMoreModels:function(t){e(t.target).addClass("hidden"),this.trigger("zappageNextPage")},initializeModelListActionHandler:function(){if(0===this.ui.models.length)return;const t=this;if(this.ui.livePreviewStartButton.on("click",(function(){t.bindActionOnCammer(e(this).get(0))})),this.ui.videoPreviewStartButton.on("click",(function(){t.bindActionOnCammer(e(this).get(0))})),this.ui.slideShowStartButton.on("click",(function(){t.bindActionOnCammer(e(this).get(0))})),s.isTouchSensitiveDevice()){this.hammer=new c.Manager(this.ui.models.get(0));const n=new c.Swipe({event:"swipe",direction:c.DIRECTION_HORIZONTAL});this.hammer.add([n]),this.hammer.on("swipe",(function(i){t.hammer.remove([n]),t.bindActionOnCammer(e(i.target).parents(".js-models-item").get(0))}))}else this.ui.modelItem.on("mouseover",(function(){t.bindActionOnCammer(e(this).get(0))}))},bindActionOnCammer:function(e){const t=this,i=document.querySelectorAll(this.ui.models.selector);n.e(6403).then(n.bind(n,36403)).then((n=>{let r=n.ModelListActionHandler,o=n.MODE_LIVE_PREVIEW,a=n.MODE_VIDEO_PREVIEW;t.ui.modelItem.off("mouseover");const c=new r({targetElement:e,isMobileDevice:s.isTouchSensitiveDevice()});i.forEach((e=>{c.enableLivePreview(e.querySelectorAll(o.itemSelector)),c.enableVideoPreview(e.querySelectorAll(a.itemSelector)),c.enableSlideShow(e.querySelectorAll(t.ui.modelsItemSlideShow.selector))}))}))},setGridSizeInLocalStorage:function(e){window.localStorage.setItem("grid_size",e),t.set("grid_size",e,{expires:365}),t.remove("grid_size_auto")},getCurrentGridSize:function(){const e=window.localStorage.getItem("grid_size");return null!=e?e:this.autoDetectBestGridSize()},initGridSize:function(){document.querySelector("html").dataset.grid=this.getCurrentGridSize()},toggleActionsMenuByDeviceOrGridSize:function(e){const t="small"===e,n=s.isTouchSensitiveDevice(),i=this.appModel.userLoggedIn(),r=this.appModel.userIsAudio(),o=!n&&i&&!t&&!r;this.ui.modelsItems.toggleClass("has-actions",o)},autoDetectBestGridSize:function(){if(s.isTouchSensitiveDevice())return"medium";const e=window.innerHeight,n=window.innerWidth;let i="small";return n>1900&&e>940?i="large":(n>1350||e>680)&&(i="medium"),t.set("grid_size_auto",i,{expires:365}),i},resetSearch:function(){this.AppInstance.commands.execute("app:reset-search")},showMoreGirlsButtonWhenNoContentScrollable:function(){document.documentElement.scrollHeight===document.documentElement.clientHeight&&this.model.get("pages")>1&&0===this.ui.modelsNicknameMatch.length&&0===this.ui.modelsDescMatch.length&&this.ui.loadMoreModelsBtn.removeClass("hidden")},openActionsMenu:function(t){t.preventDefault(),t.stopPropagation(),this.closeActionsMenu(),e(t.currentTarget).parents("li").addClass("model__actions--open")},closeActionsMenu:function(e){this.ui.modelsItems.removeClass("model__actions--open")},toggleFavorite:function(t){const n=e(t.currentTarget),i=n.attr("data-favorite"),r=n.parents("li").attr("data-cammer-id"),o=n.parents("li").attr("data-cammer-nickname");this.AppInstance.commands.execute("app:handleFavorite",{action:i,id:r,nickname:o,callbackSuccess:()=>{n.attr("data-favorite","add"===i?"remove":"add"),n.parents("li").toggleClass("has-fav","add"===i)},callbackComplete:()=>{this.closeActionsMenu()}})},conversationHandler:function(t){t.preventDefault(),t.stopPropagation();const n=e(t.currentTarget).attr("href");this.preventActions((function(){window.location=n}))},preventActions:function(e){if(f.blocksPaidActions()){if(f.guardPaidAction(e.bind(this)))return}else if(!this.appModel.userLoggedIn())return void window.modal.showLogin();e.call(this)},toggleBanModelHandler:function(t){const n=e(t.currentTarget),i=n.attr("data-ban-state"),r=n.parents("li").attr("data-cammer-id"),o=n.parents("li").attr("data-cammer-nickname");this.AppInstance.commands.execute("app:handleBanModel",{action:i,id:r,callbackSuccess:()=>{this.trigger("zappageRefresh",{refreshSearchResultsOnly:!1}),"unban"===i&&snackbar.success(d.trans("removeFromBanList",{"%nickname%":o}),{timeout:5}),n.attr("data-ban-state","ban"===i?"unban":"ban")},callbackComplete:()=>{this.closeActionsMenu()}})},voteModelButtonHandler:function(t){const n=e(t.currentTarget),i=n.parents("li").attr("data-cammer-id"),r=n.parents("li").attr("data-cammer-nickname");this.appModel.userLoggedIn()?(document.dispatchEvent(new CustomEvent("vue:modals:show",{detail:{type:"camsFactorVoting",cammerId:i,modelNickname:r}})),this.closeActionsMenu()):window.modal.showLogin()},sendDataLayer:function(){_local.ga("dl:common:first-offer-banner")}})}.apply(t,i),void 0===r||(e.exports=r)},91336(e,t,n){var i,r;i=[n(20548),n(39413),n(93597),n(59412),n(9340)],r=function(e,t,i,r,o){return e.extend({zappageSearchRoute:function(){return this.zappageRoute.apply(this,arguments)},zappageFavoritesRoute:function(){return this.zappageRoute.apply(this,arguments)},zappageLastVisitedRoute:function(){return this.zappageRoute.apply(this,arguments)},zappageRoute:function(){var e=n(60550),o=e.request("getAppModel"),a=r.constants.ZAPPAGE_TYPE_ZAPPAGE,s=o.get("previousRouteData"),c=o.get("currentRoute").handler,l=e.contentRegion;"zappageSearchRoute"===c&&(a=r.constants.ZAPPAGE_TYPE_SEARCH);var u=l.hasView()&&"ZappageView"===l.currentView.name?l.currentView.model.get("type"):"",d={};u!==a&&(d.type=a,d.page=1,d.partialType=r.constants.PARTIAL_TYPE_FULL);var h=this.createModelAndView(l,"ZappageView",".content__wrapper-target > div",i,d,t,{}),p=h.model,f=h.view,m=h.fetchModelData;h.viewExisted?u===a&&(m=!1,o.set({page:p.get("pageName")}
2),l.trigger("show")):(e.vent.on("app:chatRegion:show",(function(){f.trigger("view:chatRegion:show")})),f.on("zappageNextPage",(function(e){this.model.nextPage()})),f.on("zappageRefresh",(function(e){this.model.refresh({refreshSearchResultsOnly:e.refreshSearchResultsOnly})})),e.commands.setHandler("app:zapp:scrolltop",(function(e){f.scrollTop(e)})),e.commands.setHandler("app:zapp:enableCams",(function(){f.enableCams()})),e.commands.setHandler("app:zapp:showChatTutorial",(function(){f.showChatTutorial()}))),s&&s.ZappageController&&s.ZappageController.searchInitData&&(m=!1,p.set(p.parse(s.ZappageController.searchInitData))),m&&p.fetch()}})}.apply(t,i),void 0===r||(e.exports=r)},17896(e,t,n){var i,r;i=[n(64794),n(82733)],void 0===(r=function(e,t){return e.Module.extend({initialize:function(){this.Router=new t}})}.apply(t,i))||(e.exports=r)},82733(e,t,n){var i,r;i=[n(4785),n(91336)],r=function(e,t){return e.extend({appRoutes:{"/":"zappageRoute","search(/)":"zappageSearchRoute","favorites/":"zappageFavoritesRoute","last-visited/":"zappageLastVisitedRoute","*path":"zappageRoute"},before:function(t,n){e.prototype.before.apply(this,arguments)},after:function(t,n){e.prototype.after.apply(this,arguments)},controller:new t})}.apply(t,i),void 0===r||(e.exports=r)},85350(e,t){var n,i,r;i="undefined"!=typeof window?window:this,r=function(i,r){var o=[],a=o.slice,s=o.concat,c=o.push,l=o.indexOf,u={},d=u.toString,h=u.hasOwnProperty,p={},f=i.document,m="2.1.1",g=function(e,t){return new g.fn.init(e,t)},v=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,w=/-([\da-z])/gi,b=function(e,t){return t.toUpperCase()};function C(e){var t=e.length,n=g.type(e);return"function"!==n&&!g.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}g.fn=g.prototype={jquery:m,constructor:g,selector:"",length:0,toArray:function(){return a.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:a.call(this)},pushStack:function(e){var t=g.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return g.each(this,e,t)},map:function(e){return this.pushStack(g.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:c,sort:o.sort,splice:o.splice},g.extend=g.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{}
vendor: 13,651 bytes, line 2
2,s++),"object"==typeof a||g.isFunction(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(i=e[t])&&(l&&i&&(g.isPlainObject(i)||(r=g.isArray(i)))?(r?(r=!1,o=n&&g.isArray(n)?n:[]):o=n&&g.isPlainObject(n)?n:{},a[t]=g.extend(l,o,i)):void 0!==i&&(a[t]=i));return a},g.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===g.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!g.isArray(e)&&e-parseFloat(e)>=0},isPlainObject:function(e){return!("object"!==g.type(e)||e.nodeType||g.isWindow(e)||e.constructor&&!h.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[d.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=g.trim(e))&&(1===e.indexOf("use strict")?((t=f.createElement("script")).text=e,f.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(y,"ms-").replace(w,b)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var i=0,r=e.length,o=C(e);if(n){if(o)for(;i<r&&!1!==t.apply(e[i],n);i++);else for(i in e)if(!1===t.apply(e[i],n))break}else if(o)for(;i<r&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(v,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?g.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!==a&&i.push(e[r]);return i},map:function(e,t,n){var i,r=0,o=e.length,a=[];if(C(e))for(;r<o;r++)null!=(i=t(e[r],r,n))&&a.push(i);else for(r in e)null!=(i=t(e[r],r,n))&&a.push(i);return s.apply([],a)},guid:1,proxy:function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),g.isFunction(e))return i=a.call(arguments,2),r=function(){return e.apply(t||this,i.concat(a.call(arguments)))},r.guid=e.guid=e.guid||g.guid++,r},now:Date.now,support:p}),g.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var T=function(e){var t,n,i,r,o,a,s,c,l,u,d,h,p,f,m,g,v,y,w,b="sizzle"+-new Date,C=e.document,T=0,S=0,E=oe(),x=oe(),k=oe(),_=function(e,t){return e===t&&(d=!0),0},A="undefined",M=1<<31,P={}.hasOwnProperty,R=[],I=R.pop,O=R.push,N=R.push,D=R.slice,L=R.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",V="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",F=V.replace("w","w#"),H="\\["+j+"*("+V+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+j+"*\\]",U=":("+V+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",z=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),G=new RegExp("^"+j+"*,"+j+"*"),q=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),W=new RegExp("="+j+"*([^\\]'\"]*?)"+j+"*\\]","g"),$=new RegExp(U),Y=new RegExp("^"+F+"$"),X={ID:new RegExp("^#("+V+")"),CLASS:new RegExp("^\\.("+V+")"),TAG:new RegExp("^("+V.replace("w","w*")+")"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","ig"),ie=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{N.apply(R=D.call(C.childNodes),C.childNodes),R[C.childNodes.length].nodeType}catch(Ce){N={apply:R.length?function(e,t){O.apply(e,D.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function re(e,t,i,r){var o,s,l,u,d,f,v,y,T,S;if((t?t.ownerDocument||t:C)!==p&&h(t),i=i||[],!e||"string"!=typeof e)return i;if(1!==(u=(t=t||p).nodeType)&&9!==u)return[];if(m&&!r){if(o=Z.exec(e))if(l=o[1]){if(9===u){if(!(s=t.getElementById(l))||!s.parentNode)return i;if(s.id===l)return i.push(s),i}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(l))&&w(t,s)&&s.id===l)return i.push(s),i}else{if(o[2])return N.apply(i,t.getElementsByTagName(e)),i;if((l=o[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(i,t.getElementsByClassName(l)),i}if(n.qsa&&(!g||!g.test(e))){if(y=v=b,T=t,S=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(f=a(e),(v=t.getAttribute("id"))?y=v.replace(te,"\\$&"):t.setAttribute("id",y),y="[id='"+y+"'] ",d=f.length;d--;)f[d]=y+me(f[d]);T=ee.test(e)&&pe(t.parentNode)||t,S=f.join(",")}if(S)try{return N.apply(i,T.querySelectorAll(S)),i}catch(E){}finally{v||t.removeAttribute("id")}}}return c(e.replace(z,"$1"),t,i,r)}function oe(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ae(e){return e[b]=!0,e}function se(e){var t=p.createElement("div");try{return!!e(t)}catch(Ce){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),r=e.length;r--;)i.attrHandle[n[r]]=t}function le(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||M)-(~e.sourceIndex||M);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ue(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return ae((function(t){return t=+t,ae((function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function pe(e){return e&&typeof e.getElementsByTagName!==A&&e}for(t in n=re.support={},o=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=re.setDocument=function(e){var t,r=e?e.ownerDocument||e:C,a=r.defaultView;return r!==p&&9===r.nodeType&&r.documentElement?(p=r,f=r.documentElement,m=!o(r),a&&a!==a.top&&(a.addEventListener?a.addEventListener("unload",(function(){h()}),!1):a.attachEvent&&a.attachEvent("onunload",(function(){h()}))),n.attributes=se((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=se((function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Q.test(r.getElementsByClassName)&&se((function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length})),n.getById=se((function(e){return f.appendChild(e).id=b,!r.getElementsByName||!r.getElementsByName(b).length})),n.getById?(i.find.ID=function(e,t){if(typeof t.getElementById!==A&&m){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(ne,ie);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(ne,ie);return function(e){var n=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=n.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==A)return t.getElementsByTagName(e)}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(typeof t.getElementsByClassName!==A&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=Q.test(r.querySelectorAll))&&(se((function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&g.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+j+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")})),se((function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+j+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=Q.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&se((function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),v.push("!=",U)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(f.compareDocumentPosition),w=t||Q.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},_=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===r||e.ownerDocument===C&&w(C,e)?-1:t===r||t.ownerDocument===C&&w(C,t)?1:u?L.call(u,e)-L.call(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,o=e.parentNode,a=t.parentNode,s=[e],c=[t];if(!o||!a)return e===r?-1:t===r?1:o?-1:a?1:u?L.call(u,e)-L.call(u,t):0;if(o===a)return le(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;s[i]===c[i];)i++;return i?le(s[i],c[i]):s[i]===C?-1:c[i]===C?1:0},r):p},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&h(e),t=t.replace(W,"='$1']"),n.matchesSelector&&m&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(Ce){}return re(t,p,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),w(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var r=i.attrHandle[t.toLowerCase()],o=r&&P.call(i.attrHandle,t.toLowerCase())?r(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,i=[],r=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(_),d){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return u=null,e},r=re.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},i=re.selectors={cacheLength:50,createPseudo:ae,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ne,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&E(e,(function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=re.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,h,p,f,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!c&&!s;if(g){if(o){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&y){for(p=(l=(u=g[b]||(g[b]={}))[e]||[])[0]===T&&l[1],h=l[0]===T&&l[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(h=p=0)||f.pop();)if(1===d.nodeType&&++h&&d===t){u[e]=[T,p,h];break}}else if(y&&(l=(t[b]||(t[b]={}))[e])&&l[0]===T)h=l[1];else for(;(d=++p&&d&&d[m]||(h=p=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++h||(y&&((d[b]||(d[b]={}))[e]=[T,h]),d!==t)););
vendor: 4,813 bytes, line 2
2return(h-=r)===i||h%i==0&&h/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ae((function(e,n){for(var i,o=r(e,t),a=o.length;a--;)e[i=L.call(e,o[a])]=!(n[i]=o[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:ae((function(e){var t=[],n=[],i=s(e.replace(z,"$1"));return i[b]?ae((function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,r,o){return t[0]=e,i(t,null,o,n),!n.pop()}})),has:ae((function(e){return function(t){return re(e,t).length>0}})),contains:ae((function(e){return function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}})),lang:ae((function(e){return Y.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(ne,ie).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,n){return[n<0?n+t:n]})),even:he((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:he((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:he((function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e})),gt:he((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},i.pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=ue(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=de(t);function fe(){}function me(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ge(e,t,n){var i=t.dir,r=n&&"parentNode"===i,o=S++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,o)}:function(t,n,a){var s,c,l=[T,o];if(a){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,a))return!0}else for(;t=t[i];)if(1===t.nodeType||r){if((s=(c=t[b]||(t[b]={}))[i])&&s[0]===T&&s[1]===o)return l[2]=s[2];if(c[i]=l,l[2]=e(t,n,a))return!0}}}function ve(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function ye(e,t,n,i,r){for(var o,a=[],s=0,c=e.length,l=null!=t;s<c;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),l&&t.push(s)));return a}function we(e,t,n,i,r,o){return i&&!i[b]&&(i=we(i)),r&&!r[b]&&(r=we(r,o)),ae((function(o,a,s,c){var l,u,d,h=[],p=[],f=a.length,m=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)re(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!o&&t?m:ye(m,h,e,s,c),v=n?r||(o?e:f||i)?[]:a:g;if(n&&n(g,v,s,c),i)for(l=ye(v,p),i(l,[],s,c),u=l.length;u--;)(d=l[u])&&(v[p[u]]=!(g[p[u]]=d));if(o){if(r||e){if(r){for(l=[],u=v.length;u--;)(d=v[u])&&l.push(g[u]=d);r(null,v=[],l,c)}for(u=v.length;u--;)(d=v[u])&&(l=r?L.call(o,d):h[u])>-1&&(o[l]=!(a[l]=d))}}else v=ye(v===a?v.splice(f,v.length):v),r?r(null,a,v,c):N.apply(a,v)}))}function be(e){for(var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],c=a?1:0,u=ge((function(e){return e===t}),s,!0),d=ge((function(e){return L.call(t,e)>-1}),s,!0),h=[function(e,n,i){return!a&&(i||n!==l)||((t=n).nodeType?u(e,n,i):d(e,n,i))}];c<o;c++)if(n=i.relative[e[c].type])h=[ge(ve(h),n)];else{if((n=i.filter[e[c].type].apply(null,e[c].matches))[b]){for(r=++c;r<o&&!i.relative[e[r].type];r++);return we(c>1&&ve(h),c>1&&me(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(z,"$1"),n,c<r&&be(e.slice(c,r)),r<o&&be(e=e.slice(r)),r<o&&me(e))}h.push(n)}return ve(h)}return fe.prototype=i.filters=i.pseudos,i.setFilters=new fe,a=re.tokenize=function(e,t){var n,r,o,a,s,c,l,u=x[e+" "];if(u)return t?0:u.slice(0);for(s=e,c=[],l=i.preFilter;s;){for(a in n&&!(r=G.exec(s))||(r&&(s=s.slice(r[0].length)||s),c.push(o=[])),n=!1,(r=q.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(z," ")}
vendor: 9,846 bytes, line 2
2),s=s.slice(n.length)),i.filter)!(r=X[a].exec(s))||l[a]&&!(r=l[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?re.error(e):x(e,c).slice(0)},s=re.compile=function(e,t){var n,r=[],o=[],s=k[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=be(t[n]))[b]?r.push(s):o.push(s);s=k(e,function(e,t){var n=t.length>0,r=e.length>0,o=function(o,a,s,c,u){var d,h,f,m=0,g="0",v=o&&[],y=[],w=l,b=o||r&&i.find.TAG("*",u),C=T+=null==w?1:Math.random()||.1,S=b.length;for(u&&(l=a!==p&&a);g!==S&&null!=(d=b[g]);g++){if(r&&d){for(h=0;f=e[h++];)if(f(d,a,s)){c.push(d);break}u&&(T=C)}n&&((d=!f&&d)&&m--,o&&v.push(d))}if(m+=g,n&&g!==m){for(h=0;f=t[h++];)f(v,y,a,s);if(o){if(m>0)for(;g--;)v[g]||y[g]||(y[g]=I.call(c));y=ye(y)}N.apply(c,y),u&&!o&&y.length>0&&m+t.length>1&&re.uniqueSort(c)}return u&&(T=C,l=w),v};return n?ae(o):o}(o,r)),s.selector=e}return s},c=re.select=function(e,t,r,o){var c,l,u,d,h,p="function"==typeof e&&e,f=!o&&a(e=p.selector||e);if(r=r||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&n.getById&&9===t.nodeType&&m&&i.relative[l[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(ne,ie),t)||[])[0]))return r;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(c=X.needsContext.test(e)?0:l.length;c--&&(u=l[c],!i.relative[d=u.type]);)if((h=i.find[d])&&(o=h(u.matches[0].replace(ne,ie),ee.test(l[0].type)&&pe(t.parentNode)||t))){if(l.splice(c,1),!(e=o.length&&me(l)))return N.apply(r,o),r;break}}return(p||s(e,f))(o,t,!m,r,ee.test(e)&&pe(t.parentNode)||t),r},n.sortStable=b.split("").sort(_).join("")===b,n.detectDuplicates=!!d,h(),n.sortDetached=se((function(e){return 1&e.compareDocumentPosition(p.createElement("div"))})),se((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ce("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&se((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ce("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),se((function(e){return null==e.getAttribute("disabled")}))||ce(B,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),re}(i);g.find=T,g.expr=T.selectors,g.expr[":"]=g.expr.pseudos,g.unique=T.uniqueSort,g.text=T.getText,g.isXMLDoc=T.isXML,g.contains=T.contains;var S=g.expr.match.needsContext,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function k(e,t,n){if(g.isFunction(t))return g.grep(e,(function(e,i){return!!t.call(e,i,e)!==n}));if(t.nodeType)return g.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(x.test(t))return g.filter(t,e,n);t=g.filter(t,e)}return g.grep(e,(function(e){return l.call(t,e)>=0!==n}))}g.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?g.find.matchesSelector(i,e)?[i]:[]:g.find.matches(e,g.grep(t,(function(e){return 1===e.nodeType})))},g.fn.extend({find:function(e){var t,n=this.length,i=[],r=this;if("string"!=typeof e)return this.pushStack(g(e).filter((function(){for(t=0;t<n;t++)if(g.contains(r[t],this))return!0})));for(t=0;t<n;t++)g.find(e,r[t],i);return(i=this.pushStack(n>1?g.unique(i):i)).selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(k(this,e||[],!1))},not:function(e){return this.pushStack(k(this,e||[],!0))},is:function(e){return!!k(this,"string"==typeof e&&S.test(e)?g(e):e||[],!1).length}});var _,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(g.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!n[1]&&t)return!t||t.jquery?(t||_).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof g?t[0]:t,g.merge(this,g.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),E.test(n[1])&&g.isPlainObject(t))for(n in t)g.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(i=f.getElementById(n[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=f,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):g.isFunction(e)?void 0!==_.ready?_.ready(e):e(g):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),g.makeArray(e,this))}).prototype=g.fn,_=g(f);var M=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}g.extend({dir:function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&g(e).is(n))break;i.push(e)}return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),g.fn.extend({has:function(e){var t=g(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(g.contains(this,t[e]))return!0}))},closest:function(e,t){for(var n,i=0,r=this.length,o=[],a=S.test(e)||"string"!=typeof e?g(e,t||this.context):0;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&g.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?g.unique(o):o)},index:function(e){return e?"string"==typeof e?l.call(g(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(g.unique(g.merge(this.get(),g(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),g.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return g.dir(e,"parentNode")},parentsUntil:function(e,t,n){return g.dir(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return g.dir(e,"nextSibling")},prevAll:function(e){return g.dir(e,"previousSibling")},nextUntil:function(e,t,n){return g.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return g.dir(e,"previousSibling",n)},siblings:function(e){return g.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return g.sibling(e.firstChild)},contents:function(e){return e.contentDocument||g.merge([],e.childNodes)}},(function(e,t){g.fn[e]=function(n,i){var r=g.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=g.filter(i,r)),this.length>1&&(P[e]||g.unique(r),M.test(e)&&r.reverse()),this.pushStack(r)}}));var I,O=/\S+/g,N={};function D(){f.removeEventListener("DOMContentLoaded",D,!1),i.removeEventListener("load",D,!1),g.ready()}g.Callbacks=function(e){e="string"==typeof e?N[e]||function(e){var t=N[e]={};return g.each(e.match(O)||[],(function(e,n){t[n]=!0})),t}(e):g.extend({},e);var t,n,i,r,o,a,s=[],c=!e.once&&[],l=function(d){for(t=e.memory&&d,n=!0,a=r||0,r=0,o=s.length,i=!0;s&&a<o;a++)if(!1===s[a].apply(d[0],d[1])&&e.stopOnFalse){t=!1;break}i=!1,s&&(c?c.length&&l(c.shift()):t?s=[]:u.disable())},u={add:function(){if(s){var n=s.length;!function t(n){g.each(n,(function(n,i){var r=g.type(i);"function"===r?e.unique&&u.has(i)||s.push(i):i&&i.length&&"string"!==r&&t(i)}))}(arguments),i?o=s.length:t&&(r=n,l(t))}return this},remove:function(){return s&&g.each(arguments,(function(e,t){for(var n;(n=g.inArray(t,s,n))>-1;)s.splice(n,1),i&&(n<=o&&o--,n<=a&&a--)})),this},has:function(e){return e?g.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],o=0,this},disable:function(){return s=c=t=void 0,this},disabled:function(){return!s},lock:function(){return c=void 0,t||u.disable(),this},locked:function(){return!c},fireWith:function(e,t){return!s||n&&!c||(t=[e,(t=t||[]).slice?t.slice():t],i?c.push(t):l(t)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},g.extend({Deferred:function(e){var t=[["resolve","done",g.Callbacks("once memory"),"resolved"],["reject","fail",g.Callbacks("once memory"),"rejected"],["notify","progress",g.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return g.Deferred((function(n){g.each(t,(function(t,o){var a=g.isFunction(e[t])&&e[t];r[o[1]]((function(){var e=a&&a.apply(this,arguments);e&&g.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===i?n.promise():this,a?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?g.extend(e,i):i}},r={};return i.pipe=i.then,g.each(t,(function(e,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add((function(){n=s}),t[1^e][2].disable,t[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=a.fireWith})),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,r=0,o=a.call(arguments),s=o.length,c=1!==s||e&&g.isFunction(e.promise)?s:0,l=1===c?e:g.Deferred(),u=function(e,n,i){return function(r){n[e]=this,i[e]=arguments.length>1?a.call(arguments):r,i===t?l.notifyWith(n,i):--c||l.resolveWith(n,i)}};if(s>1)for(t=new Array(s),n=new Array(s),i=new Array(s);r<s;r++)o[r]&&g.isFunction(o[r].promise)?o[r].promise().done(u(r,i,o)).fail(l.reject).progress(u(r,n,t)):--c;return c||l.resolveWith(i,o),l.promise()}}),g.fn.ready=function(e){return g.ready.promise().done(e),this},g.extend({isReady:!1,readyWait:1,holdReady:function(e){e?g.readyWait++:g.ready(!0)},ready:function(e){(!0===e?--g.readyWait:g.isReady)||(g.isReady=!0,!0!==e&&--g.readyWait>0||(I.resolveWith(f,[g]),g.fn.triggerHandler&&(g(f).triggerHandler("ready"),g(f).off("ready"))))}}),g.ready.promise=function(e){return I||(I=g.Deferred(),"complete"===f.readyState?setTimeout(g.ready):(f.addEventListener("DOMContentLoaded",D,!1),i.addEventListener("load",D,!1))),I.promise(e)},g.ready.promise();var L=g.access=function(e,t,n,i,r,o,a){var s=0,c=e.length,l=null==n;
vendor: 4,502 bytes, line 2
2if("object"===g.type(n))for(s in r=!0,n)g.access(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,g.isFunction(i)||(a=!0),l&&(a?(t.call(e,i),t=null):(l=t,t=function(e,t,n){return l.call(g(e),n)})),t))for(;s<c;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:l?t.call(e):c?t(e[0],n):o};function B(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=g.expando+Math.random()}g.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},B.uid=1,B.accepts=g.acceptData,B.prototype={key:function(e){if(!B.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=B.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(i){t[this.expando]=n,g.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var i,r=this.key(e),o=this.cache[r];if("string"==typeof t)o[t]=n;else if(g.isEmptyObject(o))g.extend(this.cache[r],t);else for(i in t)o[i]=t[i];return o},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var i;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(i=this.get(e,t))?i:this.get(e,g.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i,r,o=this.key(e),a=this.cache[o];if(void 0===t)this.cache[o]={};else{g.isArray(t)?i=t.concat(t.map(g.camelCase)):(r=g.camelCase(t),i=t in a?[t,r]:(i=r)in a?[i]:i.match(O)||[]),n=i.length;for(;n--;)delete a[i[n]]}},hasData:function(e){return!g.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var j=new B,V=new B,F=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,H=/([A-Z])/g;function U(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(H,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:F.test(n)?g.parseJSON(n):n)}catch(r){}V.set(e,t,n)}else n=void 0;return n}g.extend({hasData:function(e){return V.hasData(e)||j.hasData(e)},data:function(e,t,n){return V.access(e,t,n)},removeData:function(e,t){V.remove(e,t)},_data:function(e,t,n){return j.access(e,t,n)},_removeData:function(e,t){j.remove(e,t)}}),g.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=V.get(o),1===o.nodeType&&!j.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=g.camelCase(i.slice(5)),U(o,i,r[i]));j.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){V.set(this,e)})):L(this,(function(t){var n,i=g.camelCase(e);if(o&&void 0===t)return void 0!==(n=V.get(o,e))||void 0!==(n=V.get(o,i))||void 0!==(n=U(o,i,void 0))?n:void 0;this.each((function(){var n=V.get(this,i);V.set(this,i,t),-1!==e.indexOf("-")&&void 0!==n&&V.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){V.remove(this,e)}))}}),g.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=j.get(e,t),n&&(!i||g.isArray(n)?i=j.access(e,t,g.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=g.queue(e,t),i=n.length,r=n.shift(),o=g._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,(function(){g.dequeue(e,t)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return j.get(e,n)||j.access(e,n,{empty:g.Callbacks("once memory").add((function(){j.remove(e,[t+"queue",n])}))})}}),g.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?g.queue(this[0],e):void 0===t?this:this.each((function(){var n=g.queue(this,e,t);g._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&g.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){g.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=g.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=j.get(o[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var z,G,q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,W=["Top","Right","Bottom","Left"],$=function(e,t){return e=t||e,"none"===g.css(e,"display")||!g.contains(e.ownerDocument,e)},Y=/^(?:checkbox|radio)$/i;z=f.createDocumentFragment().appendChild(f.createElement("div")),(G=f.createElement("input")).setAttribute("type","radio"),G.setAttribute("checked","checked"),G.setAttribute("name","t"),z.appendChild(G),p.checkClone
vendor: 4,642 bytes, line 2
2=z.cloneNode(!0).cloneNode(!0).lastChild.checked,z.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!z.cloneNode(!0).lastChild.defaultValue;var X="undefined";p.focusinBubbles="onfocusin"in i;var J=/^key/,K=/^(?:mouse|pointer|contextmenu)|click/,Q=/^(?:focusinfocus|focusoutblur)$/,Z=/^([^.]*)(?:\.(.+)|)$/;function ee(){return!0}function te(){return!1}function ne(){try{return f.activeElement}catch(e){}}g.event={global:{},add:function(e,t,n,i,r){var o,a,s,c,l,u,d,h,p,f,m,v=j.get(e);if(v)for(n.handler&&(n=(o=n).handler,r=o.selector),n.guid||(n.guid=g.guid++),(c=v.events)||(c=v.events={}),(a=v.handle)||(a=v.handle=function(t){return typeof g!==X&&g.event.triggered!==t.type?g.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(O)||[""]).length;l--;)p=m=(s=Z.exec(t[l])||[])[1],f=(s[2]||"").split(".").sort(),p&&(d=g.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=g.event.special[p]||{},u=g.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&g.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=c[p])||((h=c[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,a)||e.addEventListener&&e.addEventListener(p,a,!1)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),g.event.global[p]=!0)},remove:function(e,t,n,i,r){var o,a,s,c,l,u,d,h,p,f,m,v=j.hasData(e)&&j.get(e);if(v&&(c=v.events)){for(l=(t=(t||"").match(O)||[""]).length;l--;)if(p=m=(s=Z.exec(t[l])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=g.event.special[p]||{},h=c[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)u=h[o],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,v.handle)||g.removeEvent(e,p,v.handle),delete c[p])}else for(p in c)g.event.remove(e,p+t[l],n,i,!0);g.isEmptyObject(c)&&(delete v.handle,j.remove(e,"events"))}},trigger:function(e,t,n,r){var o,a,s,c,l,u,d,p=[n||f],m=h.call(e,"type")?e.type:e,v=h.call(e,"namespace")?e.namespace.split("."):[];if(a=s=n=n||f,3!==n.nodeType&&8!==n.nodeType&&!Q.test(m+g.event.triggered)&&(m.indexOf(".")>=0&&(v=m.split("."),m=v.shift(),v.sort()),l=m.indexOf(":")<0&&"on"+m,(e=e[g.expando]?e:new g.Event(m,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=v.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:g.makeArray(t,[e]),d=g.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(n,t))){if(!r&&!d.noBubble&&!g.isWindow(n)){for(c=d.delegateType||m,Q.test(c+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||f)&&p.push(s.defaultView||s.parentWindow||i)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)e.type=o>1?c:d.bindType||m,(u=(j.get(a,"events")||{})[e.type]&&j.get(a,"handle"))&&u.apply(a,t),(u=l&&a[l])&&u.apply&&g.acceptData(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!g.acceptData(n)||l&&g.isFunction(n[m])&&!g.isWindow(n)&&((s=n[l])&&(n[l]=null),g.event.triggered=m,n[m](),g.event.triggered=void 0,s&&(n[l]=s)),e.result}},dispatch:function(e){e=g.event.fix(e);var t,n,i,r,o,s,c=a.call(arguments),l=(j.get(this,"events")||{})[e.type]||[],u=g.event.special[e.type]||{};if(c[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(s=g.event.handlers.call(this,e,l),t=0;(r=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(i=((g.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,c))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,c=e.target;if(s&&c.nodeType&&(!e.button||"click"!==e.type))for(;c!==this;c=c.parentNode||this)if(!0!==c.disabled||"click"!==e.type){for(i=[],n=0;n<s;n++)void 0===i[r=(o=t[n]).selector+" "]&&(i[r]=o.needsContext?g(r,this).index(c)>=0:g.find(r,this,null,[c]).length),i[r]&&i.push(o);i.length&&a.push({elem:c,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{}
2,keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,o=t.button;return null==e.pageX&&null!=t.clientX&&(i=(n=e.target.ownerDocument||f).documentElement,r=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[g.expando])return e;var t,n,i,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=K.test(r)?this.mouseHooks:J.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new g.Event(o),t=i.length;t--;)e[n=i[t]]=o[n];return e.target||(e.target=f),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ne()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ne()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&g.nodeName(this,"input"))return this.click(),!1},_default:function(e){return g.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,i){var r=g.extend(new g.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?g.event.trigger(r,null,t):g.event.dispatch.call(t,r),r.isDefaultPrevented()&&n.preventDefault()}},g.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},g.Event=function(e,t){if(!(this instanceof g.Event))return new g.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ee:te):this.type=e,t&&g.extend(this,t),this.timeStamp=e&&e.timeStamp||g.now(),this[g.expando]=!0},g.Event.prototype={isDefaultPrevented:te,isPropagationStopped:te,isImmediatePropagationStopped:te,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ee,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ee,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ee,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}}
vendor: 11,391 bytes, line 2
2,g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){g.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||g.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),p.focusinBubbles||g.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){g.event.simulate(t,e.target,g.event.fix(e),!0)};g.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=j.access(i,t);r||i.addEventListener(e,n,!0),j.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=j.access(i,t)-1;r?j.access(i,t,r):(i.removeEventListener(e,n,!0),j.remove(i,t))}}})),g.fn.extend({on:function(e,t,n,i,r){var o,a;if("object"==typeof e){for(a in"string"!=typeof t&&(n=n||t,t=void 0),e)this.on(a,t,n,e[a],r);return this}if(null==n&&null==i?(i=t,n=t=void 0):null==i&&("string"==typeof t?(i=n,n=void 0):(i=n,n=t,t=void 0)),!1===i)i=te;else if(!i)return this;return 1===r&&(o=i,i=function(e){return g().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=g.guid++)),this.each((function(){g.event.add(this,e,i,n,t)}))},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,g(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=te),this.each((function(){g.event.remove(this,e,n,t)}))},trigger:function(e,t){return this.each((function(){g.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return g.event.trigger(e,t,n,!0)}});var ie=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,re=/<([\w:]+)/,oe=/<|&#?\w+;/,ae=/<(?:script|style|link)/i,se=/checked\s*(?:[^=]|=\s*.checked.)/i,ce=/^$|\/(?:java|ecma)script/i,le=/^true\/(.*)/,ue=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,de={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function he(e,t){return g.nodeName(e,"table")&&g.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function fe(e){var t=le.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function me(e,t){for(var n=0,i=e.length;n<i;n++)j.set(e[n],"globalEval",!t||j.get(t[n],"globalEval"))}function ge(e,t){var n,i,r,o,a,s,c,l;if(1===t.nodeType){if(j.hasData(e)&&(o=j.access(e),a=j.set(t,o),l=o.events))for(r in delete a.handle,a.events={},l)for(n=0,i=l[r].length;n<i;n++)g.event.add(t,r,l[r][n]);V.hasData(e)&&(s=V.access(e),c=g.extend({},s),V.set(t,c))}}function ve(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&g.nodeName(e,t)?g.merge([e],n):n}de.optgroup=de.option,de.tbody=de.tfoot=de.colgroup=de.caption=de.thead,de.th=de.td,g.extend({clone:function(e,t,n){var i,r,o,a,s,c,l,u=e.cloneNode(!0),d=g.contains(e.ownerDocument,e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||g.isXMLDoc(e)))for(a=ve(u),i=0,r=(o=ve(e)).length;i<r;i++)s=o[i],c=a[i],l=void 0,"input"===(l=c.nodeName.toLowerCase())&&Y.test(s.type)?c.checked=s.checked:"input"!==l&&"textarea"!==l||(c.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(u),i=0,r=o.length;i<r;i++)ge(o[i],a[i]);else ge(e,u);return(a=ve(u,"script")).length>0&&me(a,!d&&ve(e,"script")),u},buildFragment:function(e,t,n,i){for(var r,o,a,s,c,l,u=t.createDocumentFragment(),d=[],h=0,p=e.length;h<p;h++)if((r=e[h])||0===r)if("object"===g.type(r))g.merge(d,r.nodeType?[r]:r);else if(oe.test(r)){for(o=o||u.appendChild(t.createElement("div")),a=(re.exec(r)||["",""])[1].toLowerCase(),s=de[a]||de._default,o.innerHTML=s[1]+r.replace(ie,"<$1></$2>")+s[2],l=s[0];l--;)o=o.lastChild;g.merge(d,o.childNodes),(o=u.firstChild).textContent=""}else d.push(t.createTextNode(r));for(u.textContent="",h=0;r=d[h++];)if((!i||-1===g.inArray(r,i))&&(c=g.contains(r.ownerDocument,r),o=ve(u.appendChild(r),"script"),c&&me(o),n))for(l=0;r=o[l++];)ce.test(r.type||"")&&n.push(r);return u},cleanData:function(e){for(var t,n,i,r,o=g.event.special,a=0;void 0!==(n=e[a]);a++){if(g.acceptData(n)&&(r=n[j.expando])&&(t=j.cache[r])){if(t.events)for(i in t.events)o[i]?g.event.remove(n,i):g.removeEvent(n,i,t.handle);j.cache[r]&&delete j.cache[r]}delete V.cache[n[V.expando]]}}}),g.fn.extend({text:function(e){return L(this,(function(e){return void 0===e?g.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||he(this,e).appendChild(e)}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=he(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},remove:function(e,t){for(var n,i=e?g.filter(e,this):this,r=0;null!=(n=i[r]);r++)t||1!==n.nodeType||g.cleanData(ve(n)),n.parentNode&&(t&&g.contains(n.ownerDocument,n)&&me(ve(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(g.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e??!1,t=t??e,this.map((function(){return g.clone(this,e,t)}))},html:function(e){return L(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ae.test(e)&&!de[(re.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ie,"<$1></$2>");try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(g.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,(function(t){e=this.parentNode,g.cleanData(ve(this)),e&&e.replaceChild(t,this)})),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=s.apply([],e);var n,i,r,o,a,c,l=0,u=this.length,d=this,h=u-1,f=e[0],m=g.isFunction(f);if(m||u>1&&"string"==typeof f&&!p.checkClone&&se.test(f))return this.each((function(n){var i=d.eq(n);m&&(e[0]=f.call(this,n,i.html())),i.domManip(e,t)}));if(u&&(i=(n=g.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===n.childNodes.length&&(n=i),i)){for(o=(r=g.map(ve(n,"script"),pe)).length;l<u;l++)a=n,l!==h&&(a=g.clone(a,!0,!0),o&&g.merge(r,ve(a,"script"))),t.call(this[l],a,l);if(o)for(c=r[r.length-1].ownerDocument,g.map(r,fe),l=0;l<o;l++)a=r[l],ce.test(a.type||"")&&!j.access(a,"globalEval")&&g.contains(c,a)&&(a.src?g._evalUrl&&g._evalUrl(a.src):g.globalEval(a.textContent.replace(ue,"")))}return this}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){g.fn[e]=function(e){for(var n,i=[],r=g(e),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),g(r[a])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var ye,we={};function be(e,t){var n,r=g(t.createElement(e)).appendTo(t.body),o=i.getDefaultComputedStyle&&(n=i.getDefaultComputedStyle(r[0]))?n.display:g.css(r[0],"display");return r.detach(),o}function Ce(e){var t=f,n=we[e];return n||("none"!==(n=be(e,t))&&n||((t=(ye=(ye||g("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=be(e,t),ye.detach()),we[e]=n),n}var Te=/^margin/,Se=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),Ee=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)};function xe(e,t,n){var i,r,o,a,s=e.style;return(n=n||Ee(e))&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||g.contains(e.ownerDocument,e)||(a=g.style(e,t)),Se.test(a)&&Te.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function ke(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var e,t,n=f.documentElement,r=f.createElement("div"),o=f.createElement("div");function a(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",n.appendChild(r);var a=i.getComputedStyle(o,null);e="1%"!==a.top,t="4px"===a.width,n.removeChild(r)}o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===o.style.backgroundClip,r.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",r.appendChild(o),i.getComputedStyle&&g.extend(p,{pixelPosition:function(){return a(),e},boxSizingReliable:function(){return null==t&&a(),t},reliableMarginRight:function(){var e,t=o.appendChild(f.createElement("div"));return t.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",o.style.width="1px",n.appendChild(r),e=!parseFloat(i.getComputedStyle(t,null).marginRight),n.removeChild(r),e}}))}(),g.swap=function(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=a[o];return r};var _e=/^(none|table(?!-c[ea]).+)/,Ae=new RegExp("^("+q+")(.*)$","i"),Me=new RegExp("^([+-])=("+q+")","i"),Pe={position:"absolute",visibility:"hidden",display:"block"},Re={letterSpacing:"0",fontWeight:"400"},Ie=["Webkit","O","Moz","ms"];function Oe(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),i=t,r=Ie.length;r--;)if((t=Ie[r]+n)in e)return t;return i}function Ne(e,t,n){var i=Ae.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function De(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=g.css(e,n+W[o],!0,r)),i?("content"===n&&(a-=g.css(e,"padding"+W[o],!0,r)),"margin"!==n&&(a-=g.css(e,"border"+W[o]+"Width",!0,r))):(a+=g.css(e,"padding"+W[o],!0,r),"padding"!==n&&(a+=g.css(e,"border"+W[o]+"Width",!0,r)));return a}function Le(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=Ee(e),a="border-box"===g.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(((r=xe(e,t,o))<0||null==r)&&(r=e.style[t]),Se.test(r))return r;i=a&&(p.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+De(e,t,n||(a?"border":"content"),i,o)+"px"}function Be(e,t){for(var n,i,r,o=[],a=0,s=e.length;a<s;a++)(i=e[a]).style&&(o[a]=j.get(i,"olddisplay"),n=i.style.display,t?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&$(i)&&(o[a]=j.access(i,"olddisplay",Ce(i.nodeName)))):(r=$(i),"none"===n&&r||j.set(i,"olddisplay",r?n:g.css(i,"dis
2play"))));for(a=0;a<s;a++)(i=e[a]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[a]||"":"none"));return e}function je(e,t,n,i,r){return new je.prototype.init(e,t,n,i,r)}g.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=xe(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=g.camelCase(t),c=e.style;if(t=g.cssProps[s]||(g.cssProps[s]=Oe(c,s)),a=g.cssHooks[t]||g.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:c[t];"string"==(o=typeof n)&&(r=Me.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(g.css(e,t)),o="number"),null!=n&&n==n&&("number"!==o||g.cssNumber[s]||(n+="px"),p.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(c[t]=n))}},css:function(e,t,n,i){var r,o,a,s=g.camelCase(t);return t=g.cssProps[s]||(g.cssProps[s]=Oe(e.style,s)),(a=g.cssHooks[t]||g.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=xe(e,t,i)),"normal"===r&&t in Re&&(r=Re[t]),""===n||n?(o=parseFloat(r),!0===n||g.isNumeric(o)?o||0:r):r}}),g.each(["height","width"],(function(e,t){g.cssHooks[t]={get:function(e,n,i){if(n)return _e.test(g.css(e,"display"))&&0===e.offsetWidth?g.swap(e,Pe,(function(){return Le(e,t,i)})):Le(e,t,i)},set:function(e,n,i){var r=i&&Ee(e);return Ne(0,n,i?De(e,t,i,"border-box"===g.css(e,"boxSizing",!1,r),r):0)}}})),g.cssHooks.marginRight=ke(p.reliableMarginRight,(function(e,t){if(t)return g.swap(e,{display:"inline-block"},xe,[e,"marginRight"])})),g.each({margin:"",padding:"",border:"Width"},(function(e,t){g.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+W[i]+t]=o[i]||o[i-2]||o[0];return r}},Te.test(e)||(g.cssHooks[e+t].set=Ne)})),g.fn.extend({css:function(e,t){return L(this,(function(e,t,n){var i,r,o={},a=0;if(g.isArray(t)){for(i=Ee(e),r=t.length;a<r;a++)o[t[a]]=g.css(e,t[a],!1,i);return o}return void 0!==n?g.style(e,t,n):g.css(e,t)}),e,t,arguments.length>1)},show:function(){return Be(this,!0)},hide:function(){return Be(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){$(this)?g(this).show():g(this).hide()}))}}),g.Tween=je,je.prototype={constructor:je,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(g.cssNumber[n]?"":"px")},cur:function(){var e=je.propHooks[this.prop];return e&&e.get?e.get(this):je.propHooks._default.get(this)},run:function(e){var t,n=je.propHooks[this.prop];return this.options.duration?this.pos=t=g.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):je.propHooks._default.set(this),this}},je.prototype.init.prototype=je.prototype,je.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=g.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){g.fx.step[e.prop]?g.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[g.cssProps[e.prop]]||g.cssHooks[e.prop])?g.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},je.propHooks.scrollTop=je.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},g.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},g.fx=je.prototype.init,g.fx.step={};var Ve,Fe,He=/^(?:toggle|show|hide)$/,Ue=new RegExp("^(?:([+-])=|)("+q+")([a-z%]*)$","i"),ze=/queueHooks$/,Ge=[function(e,t,n){var i,r,o,a,s,c,l,u=this,d={},h=e.style,p=e.nodeType&&$(e),f=j.get(e,"fxshow");for(i in n.queue||(null==(s=g._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,c=s.empty.fire,s.empty.fire=function(){s.unqueued||c()}),s.unqueued++,u.always((function(){u.always((function(){s.unqueued--,g.queue(e,"fx").length||s.empty.fire()}))}))),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(l=g.css(e,"display"))?j.get(e,"olddisplay")||Ce(e.nodeName):l)&&"none"===g.css(e,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",u.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),t)if(r=t[i],He.exec(r)){if(delete t[i],o=o||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!f||void 0===f[i])continue;p=!0}d[i]=f&&f[i]||g.style(e,i)}else l=void 0;if(g.isEmptyObject(d))"inline"===("none"===l?Ce(e.nodeName):l)&&(h.display=l);else for(i in f?"hidden"in f&&(p=f.hidden):f=j.access(e,"fxshow",{}),o&&(f.hidden=!p),p?g(e).show():u.done((function(){g(e).hide()})),u.done((function(){var t;for(t in j.remove(e,"fxshow"),d)g.style(e,t,d[t])})),d)a=Ye(p?f[i]:0,i,u),i in f||(f[i]=a.start,p&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}],qe={"*":[function(e,t){var n=this.createTween(e,t),i=n.cur(),r
vendor: 7,301 bytes, line 2
2=Ue.exec(t),o=r&&r[3]||(g.cssNumber[e]?"":"px"),a=(g.cssNumber[e]||"px"!==o&&+i)&&Ue.exec(g.css(n.elem,e)),s=1,c=20;if(a&&a[3]!==o){o=o||a[3],r=r||[],a=+i||1;do{a/=s=s||".5",g.style(n.elem,e,a+o)}while(s!==(s=n.cur()/i)&&1!==s&&--c)}return r&&(a=n.start=+a||+i||0,n.unit=o,n.end=r[1]?a+(r[1]+1)*r[2]:+r[2]),n}]};function We(){return setTimeout((function(){Ve=void 0})),Ve=g.now()}function $e(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=W[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function Ye(e,t,n){for(var i,r=(qe[t]||[]).concat(qe["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function Xe(e,t,n){var i,r,o=0,a=Ge.length,s=g.Deferred().always((function(){delete c.elem})),c=function(){if(r)return!1;for(var t=Ve||We(),n=Math.max(0,l.startTime+l.duration-t),i=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(i);return s.notifyWith(e,[l,i,n]),i<1&&a?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:g.extend({},t),opts:g.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Ve||We(),duration:n.duration,tweens:[],createTween:function(t,n){var i=g.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(i),i},stop:function(t){var n=0,i=t?l.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),u=l.props;for(function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=g.camelCase(n)],o=e[n],g.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=g.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(u,l.opts.specialEasing);o<a;o++)if(i=Ge[o].call(l,e,u,l.opts))return i;return g.map(u,Ye,l),g.isFunction(l.opts.start)&&l.opts.start.call(e,l),g.fx.timer(g.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}g.Animation=g.extend(Xe,{tweener:function(e,t){g.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,r=e.length;i<r;i++)n=e[i],qe[n]=qe[n]||[],qe[n].unshift(t)},prefilter:function(e,t){t?Ge.unshift(e):Ge.push(e)}}),g.speed=function(e,t,n){var i=e&&"object"==typeof e?g.extend({},e):{complete:n||!n&&t||g.isFunction(e)&&e,duration:e,easing:n&&t||t&&!g.isFunction(t)&&t};return i.duration=g.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in g.fx.speeds?g.fx.speeds[i.duration]:g.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){g.isFunction(i.old)&&i.old.call(this),i.queue&&g.dequeue(this,i.queue)},i},g.fn.extend({fadeTo:function(e,t,n,i){return this.filter($).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=g.isEmptyObject(e),o=g.speed(t,n,i),a=function(){var t=Xe(this,g.extend({},e),o);(r||j.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=g.timers,a=j.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&ze.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||g.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=j.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=g.timers,a=i?i.length:0;for(n.finish=!0,g.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),g.each(["toggle","show","hide"],(function(e,t){var n=g.fn[t];g.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate($e(t,!0),e,i,r)}})),g.each({slideDown:$e("show"),slideUp:$e("hide"),slideToggle:$e("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){g.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),g.timers=[],g.fx.tick=function(){var e,t=0,n=g.timers;for(Ve=g.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||g.fx.stop(),Ve=void 0},g.fx.timer=function(e){g.timers.push(e),e()?g.fx.start():g.timers.pop()},g.fx.interval=13,g.fx.start=function(){Fe||(Fe=setInterval(g.fx.tick,g.fx.interval))},g.fx.stop=function(){clearInterval(Fe),Fe=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(e,t){return e=g.fx&&g.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=setTimeout(t,e);n.stop=function(){clearTimeout(i)}}))},function(){var e=f.createElement("input"),t=f.createElement("select"),n=t.appendChild(f.createElement("option"));e.type="checkbox",p.checkOn=""!==e.value,p.optSelected=n.selected,t.disabled=!0,p.optDisabled=!n.disabled,(e=f.createElement("input")).value="t",e.type="radio",p.radioValue="t"===e.value}();var Je,Ke=g.expr.attrHandle;g.fn.extend({attr:function(e,t){return L(this,g.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){g.removeAttr(this,e)}))}}),g.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===X?g.prop(e,t,n):(1===o&&g.isXMLDoc(e)||(t=t.toLowerCase(),i=g.attrHooks[t]||(g.expr.match.bool.test(t)?Je:void 0)),void 0===n?i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=g.find.attr(e,t))??void 0:null!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):void g.removeAttr(e,t))},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(O);if(o&&1===e.nodeType)for(;n=o[r++];)i=g.propFix[n]||n,g.expr.match.bool.test(n)&&(e[i]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&g.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),Je={set:function(e,t,n){return!1===t?g.removeAttr(e,n):e.setAttribute(n,n),n}},g.each(g.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=Ke[t]||g.find.attr;Ke[t]=function(e,t,i){var r,o;return i||(o=Ke[t],Ke[t]=r,r=null!=n(e,t,i)?t.toLowerCase():null,Ke[t]=o),r}}));var Qe=/^(?:input|select|textarea|button)$/i;g.fn.extend({prop:function(e,t){return L(this,g.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[g.propFix[e]||e]}))}}),g.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var i,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!g.isXMLDoc(e))&&(t=g.propFix[t]||t,r=g.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||Qe.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),p.optSelected||(g.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){g.propFix[this.toLowerCase()]=this}));var Ze=/[\t\r\n\f]/g;g.fn.extend({addClass:function(e){var t,n,i,r,o,a,s="string"==typeof e&&e,c=0,l=this.length;
2if(g.isFunction(e))return this.each((function(t){g(this).addClass(e.call(this,t,this.className))}));if(s)for(t=(e||"").match(O)||[];c<l;c++)if(i=1===(n=this[c]).nodeType&&(n.className?(" "+n.className+" ").replace(Ze," "):" ")){for(o=0;r=t[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a=g.trim(i),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,i,r,o,a,s=0===arguments.length||"string"==typeof e&&e,c=0,l=this.length;if(g.isFunction(e))return this.each((function(t){g(this).removeClass(e.call(this,t,this.className))}));if(s)for(t=(e||"").match(O)||[];c<l;c++)if(i=1===(n=this[c]).nodeType&&(n.className?(" "+n.className+" ").replace(Ze," "):"")){for(o=0;r=t[o++];)for(;i.indexOf(" "+r+" ")>=0;)i=i.replace(" "+r+" "," ");a=e?g.trim(i):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):g.isFunction(e)?this.each((function(n){g(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if("string"===n)for(var t,i=0,r=g(this),o=e.match(O)||[];t=o[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else n!==X&&"boolean"!==n||(this.className&&j.set(this,"__className__",this.className),this.className=this.className||!1===e?"":j.get(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Ze," ").indexOf(t)>=0)return!0;return!1}});var et=/\r/g;g.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=g.isFunction(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,g(this).val()):e)?r="":"number"==typeof r?r+="":g.isArray(r)&&(r=g.map(r,(function(e){return null==e?"":e+""}))),(t=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=g.valHooks[r.type]||g.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(et,""):n??"":void 0}}),g.extend({valHooks:{option:{get:function(e){var t=g.find.attr(e,"value");return null!=t?t:g.trim(g.text(e))}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||r<0,a=o?null:[],s=o?r+1:i.length,c=r<0?s:o?r:0;c<s;c++)if(((n=i[c]).selected||c===r)&&(p.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!g.nodeName(n.parentNode,"optgroup"))){if(t=g(n).val(),o)return t;a.push(t)}return a}
vendor: 5,095 bytes, line 2
2,set:function(e,t){for(var n,i,r=e.options,o=g.makeArray(t),a=r.length;a--;)((i=r[a]).selected=g.inArray(i.value,o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),g.each(["radio","checkbox"],(function(){g.valHooks[this]={set:function(e,t){if(g.isArray(t))return e.checked=g.inArray(g(e).val(),t)>=0}},p.checkOn||(g.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){g.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),g.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var tt=g.now(),nt=/\?/;g.parseJSON=function(e){return JSON.parse(e+"")},g.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new DOMParser).parseFromString(e,"text/xml")}catch(n){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||g.error("Invalid XML: "+e),t};var it,rt,ot=/#.*$/,at=/([?&])_=[^&]*/,st=/^(.*?):[ \t]*([^\r\n]*)$/gm,ct=/^(?:GET|HEAD)$/,lt=/^\/\//,ut=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,dt={},ht={},pt="*/".concat("*");try{rt=location.href}catch(Nt){(rt=f.createElement("a")).href="",rt=rt.href}function ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(O)||[];if(g.isFunction(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function mt(e,t,n,i){var r={},o=e===ht;function a(s){var c;return r[s]=!0,g.each(e[s]||[],(function(e,s){var l=s(t,n,i);return"string"!=typeof l||o||r[l]?o?!(c=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),c}return a(t.dataTypes[0])||!r["*"]&&a("*")}function gt(e,t){var n,i,r=g.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&g.extend(!0,e,i),e}it=ut.exec(rt.toLowerCase())||[],g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:rt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(it[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":pt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":g.parseJSON,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?gt(gt(e,g.ajaxSettings),t):gt(g.ajaxSettings,e)},ajaxPrefilter:ft(dt),ajaxTransport:ft(ht),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,r,o,a,s,c,l,u=g.ajaxSetup({},t),d=u.context||u,h=u.context&&(d.nodeType||d.jquery)?g(d):g.event,p=g.Deferred(),f=g.Callbacks("once memory"),m=u.statusCode||{},v={},y={},w=0,b="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!o)for(o={};t=st.exec(r);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return t??null},getAllResponseHeaders:function(){return 2===w?r:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return w||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return w||(u.mimeType=e),this},statusCode:function(e){var t;if(e)if(w<2)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||b;return n&&n.abort(t),T(0,t),this}};if(p.promise(C).complete=f.add,C.success=C.done,C.error=C.fail,u.url=((e||u.url||rt)+"").replace(ot,"").replace(lt,it[1]+"//"),u.type=t.method||t.type||u.method||u.type,u.dataTypes=g.trim(u.dataType||"*").toLowerCase().match(O)||[""],null==u.crossDomain&&(s=ut.exec(u.url.toLowerCase()),u.crossDomain=!(!s||s[1]===it[1]&&s[2]===it[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(it[3]||("http:"===it[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=g.param(u.data,u.traditional)),mt(dt,u,t,C),2===w)return C;for(l in(c=u.global)&&0==g.active++&&g.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!ct.test(u.type),i=u.url,u.hasContent||(u.data&&(i=u.url+=(nt.test(i)?"&":"?")+u.data,delete u.data),!1===u.cache&&(u.url=at.test(i)?i.replace(at,"$1_="+tt++):i+(nt.test(i)?"&":"?")+"_="+tt++)),u.ifModified&&(g.lastModified[i]&&C.setRequestHeader("If-Modified-Since",g.lastModified[i]),g.etag[i]&&C.setRequestHeader("If-None-Match",g.etag[i])),(u.data&&u.hasContent&&!1!==u.contentType||t.contentType)&&C.setRequestHeader("Content-Type",u.contentType),C.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+pt+"; q=0.01":""):u.accepts["*"]),u.headers)C.setRequestHeader(l,u.headers[l]);
vendor: 5,042 bytes, line 2
2if(u.beforeSend&&(!1===u.beforeSend.call(d,C,u)||2===w))return C.abort();for(l in b="abort",{success:1,error:1,complete:1})C[l](u[l]);if(n=mt(ht,u,t,C)){C.readyState=1,c&&h.trigger("ajaxSend",[C,u]),u.async&&u.timeout>0&&(a=setTimeout((function(){C.abort("timeout")}),u.timeout));try{w=1,n.send(v,T)}catch(Nt){if(!(w<2))throw Nt;T(-1,Nt)}}else T(-1,"No Transport");function T(e,t,o,s){var l,v,y,b,T,S=t;2!==w&&(w=2,a&&clearTimeout(a),n=void 0,r=s||"",C.readyState=e>0?4:0,l=e>=200&&e<300||304===e,o&&(b=function(e,t,n){for(var i,r,o,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){c.unshift(r);break}if(c[0]in n)o=c[0];else{for(r in n){if(!c[0]||e.converters[r+" "+c[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),n[o]}(u,C,o)),b=function(e,t,n,i){var r,o,a,s,c,l={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!c&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=u.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=l[c+" "+o]||l["* "+o]))for(r in l)if((s=r.split(" "))[1]===o&&(a=l[c+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[r]:!0!==l[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(Nt){return{state:"parsererror",error:a?Nt:"No conversion from "+c+" to "+o}}}return{state:"success",data:t}}(u,b,C,l),l?(u.ifModified&&((T=C.getResponseHeader("Last-Modified"))&&(g.lastModified[i]=T),(T=C.getResponseHeader("etag"))&&(g.etag[i]=T)),204===e||"HEAD"===u.type?S="nocontent":304===e?S="notmodified":(S=b.state,v=b.data,l=!(y=b.error))):(y=S,!e&&S||(S="error",e<0&&(e=0))),C.status=e,C.statusText=(t||S)+"",l?p.resolveWith(d,[v,S,C]):p.rejectWith(d,[C,S,y]),C.statusCode(m),m=void 0,c&&h.trigger(l?"ajaxSuccess":"ajaxError",[C,u,l?v:y]),f.fireWith(d,[C,S]),c&&(h.trigger("ajaxComplete",[C,u]),--g.active||g.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return g.get(e,t,n,"json")},getScript:function(e,t){return g.get(e,void 0,t,"script")}}),g.each(["get","post"],(function(e,t){g[t]=function(e,n,i,r){return g.isFunction(n)&&(r=r||i,i=n,n=void 0),g.ajax({url:e,type:t,dataType:r,data:n,success:i})}})),g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){g.fn[t]=function(e){return this.on(t,e)}})),g._evalUrl=function(e){return g.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},g.fn.extend({wrapAll:function(e){var t;return g.isFunction(e)?this.each((function(t){g(this).wrapAll(e.call(this,t))})):(this[0]&&(t=g(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this)},wrapInner:function(e){return g.isFunction(e)?this.each((function(t){g(this).wrapInner(e.call(this,t))})):this.each((function(){var t=g(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g.isFunction(e);return this.each((function(n){g(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)})).end()}}),g.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},g.expr.filters.visible=function(e){return!g.expr.filters.hidden(e)};var vt=/%20/g,yt=/\[\]$/,wt=/\r?\n/g,bt=/^(?:submit|button|image|reset|file)$/i,Ct=/^(?:input|select|textarea|keygen)/i;function Tt(e,t,n,i){var r;if(g.isArray(t))g.each(t,(function(t,r){n||yt.test(e)?i(e,r):Tt(e+"["+("object"==typeof r?t:"")+"]",r,n,i)}));else if(n||"object"!==g.type(t))i(e,t);else for(r in t)Tt(e+"["+r+"]",t[r],n,i)}g.param=function(e,t){var n,i=[],r=function(e,t){t=g.isFunction(t)?t():t??"",i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=g.ajaxSettings&&g.ajaxSettings.traditional),g.isArray(e)||e.jquery&&!g.isPlainObject(e))g.each(e,(function(){r(this.name,this.value)}));else for(n in e)Tt(n,e[n],t,r);return i.join("&").replace(vt,"+")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=g.prop(this,"elements");return e?g.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!g(this).is(":disabled")&&Ct.test(this.nodeName)&&!bt.test(e)&&(this.checked||!Y.test(e))})).map((function(e,t){var n=g(this).val();return null==n?null:g.isArray(n)?g.map(n,(function(e){return{name:t.name,value:e.replace(wt,"\r\n")}})):{name:t.name,value:n.replace(wt,"\r\n")}})).get()}}),g.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(Nt){}};var St=0,Et={},xt={0:200,1223:204},kt=g.ajaxSettings.xhr();i.ActiveXObject&&g(i).on("unload",(function(){for(var e in Et)Et[e]()})),p.cors=!!kt&&"withCredentials"in kt,p.ajax=kt=!!kt,g.ajaxTransport((function(e){var t;if(p.cors||kt&&!e.crossDomain)return{send:function(n,i){var r,o=e.xhr(
vendor: 4,664 bytes, line 2
2),a=++St;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)o[r]=e.xhrFields[r];for(r in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)o.setRequestHeader(r,n[r]);t=function(e){return function(){t&&(delete Et[a],t=o.onload=o.onerror=null,"abort"===e?o.abort():"error"===e?i(o.status,o.statusText):i(xt[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=t(),o.onerror=t("error"),t=Et[a]=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(Nt){if(t)throw Nt}},abort:function(){t&&t()}}})),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return g.globalEval(e),e}}}),g.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),g.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain)return{send:function(i,r){t=g("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),f.head.appendChild(t[0])},abort:function(){n&&n()}}}));var _t=[],At=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=_t.pop()||g.expando+"_"+tt++;return this[e]=!0,e}}),g.ajaxPrefilter("json jsonp",(function(e,t,n){var r,o,a,s=!1!==e.jsonp&&(At.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&At.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=g.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(At,"$1"+r):!1!==e.jsonp&&(e.url+=(nt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||g.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=i[r],i[r]=function(){a=arguments},n.always((function(){i[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,_t.push(r)),a&&g.isFunction(o)&&o(a[0]),a=o=void 0})),"script"})),g.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||f;var i=E.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=g.buildFragment([e],t,r),r&&r.length&&g(r).remove(),g.merge([],i.childNodes))};var Mt=g.fn.load;g.fn.load=function(e,t,n){if("string"!=typeof e&&Mt)return Mt.apply(this,arguments);var i,r,o,a=this,s=e.indexOf(" ");return s>=0&&(i=g.trim(e.slice(s)),e=e.slice(0,s)),g.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&g.ajax({url:e,type:r,dataType:"html",data:t}).done((function(e){o=arguments,a.html(i?g("<div>").append(g.parseHTML(e)).find(i):e)})).complete(n&&function(e,t){a.each(n,o||[e.responseText,t,e])}),this},g.expr.filters.animated=function(e){return g.grep(g.timers,(function(t){return e===t.elem})).length};var Pt=i.document.documentElement;function Rt(e){return g.isWindow(e)?e:9===e.nodeType&&e.defaultView}g.offset={setOffset:function(e,t,n){var i,r,o,a,s,c,l=g.css(e,"position"),u=g(e),d={};"static"===l&&(e.style.position="relative"),s=u.offset(),o=g.css(e,"top"),c=g.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+c).indexOf("auto")>-1?(a=(i=u.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(c)||0),g.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},g.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){g.offset.setOffset(this,e,t)}));var t,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;return o?(t=o.documentElement,g.contains(t,i)?(typeof i.getBoundingClientRect!==X&&(r=i.getBoundingClientRect()),n=Rt(o),{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r):void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===g.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),g.nodeName(e[0],"html")||(i=e.offset()),i.top+=g.css(e[0],"borderTopWidth",!0),i.left+=g.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-g.css(n,"marginTop",!0),left:t.left-i.left-g.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||Pt;e&&!g.nodeName(e,"html")&&"static"===g.css(e,"position");)e=e.offsetParent;return e||Pt}))}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;g.fn[e]=function(r){return L(this,(function(e,r,o){var a=Rt(e);
2if(void 0===o)return a?a[t]:e[r];a?a.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o}),e,r,arguments.length,null)}})),g.each(["top","left"],(function(e,t){g.cssHooks[t]=ke(p.pixelPosition,(function(e,n){if(n)return n=xe(e,t),Se.test(n)?g(e).position()[t]+"px":n}))})),g.each({Height:"height",Width:"width"},(function(e,t){g.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){g.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===r?"margin":"border");return L(this,(function(t,n,i){var r;return g.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===i?g.css(t,n,a):g.style(t,n,i,a)}),t,o?i:void 0,o,null)}}))})),g.fn.size=function(){return this.length},g.fn.andSelf=g.fn.addBack,void 0===(n=function(){return g}.apply(t,[]))||(e.exports=n),function(e){e.fn.getStyleText=function(){var e=this.get(0),t="";if(i.getComputedStyle)for(var n=i.getComputedStyle(e,null),r=0,o=n.length;r<o;r++){var a=n[r];t+=a+": "+n.getPropertyValue(a)+"; "}return t}}(g);var It=i.jQuery,Ot=i.$;return g.noConflict=function(e){return i.$===g&&(i.$=Ot),e&&i.jQuery===g&&(i.jQuery=It),g},typeof r===X&&(i.jQuery=i.$=g),g},"object"==typeof e.exports?e.exports=i.document?r(i,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return r(e)}:r(i)},37332(e,t){var n;(function(){var i=this,r=i._,o={},a=Array.prototype,s=Object.prototype,c=Function.prototype,l=a.push,u=a.slice,d=a.concat,h=s.toString,p=s.hasOwnProperty,f=a.forEach,m=a.map,g=a.reduce,v=a.reduceRight,y=a.filter,w=a.every,b=a.some,C=a.indexOf,T=a.lastIndexOf,S=Array.isArray,E=Object.keys,x=c.bind,k=function(e){return e instanceof k?e:this instanceof k?void(this._wrapped=e):new k(e)};e.exports&&(t=e.exports=k),t._=k,k.VERSION="1.6.0";var _=k.each=k.forEach=function(e,t,n){if(null==e)return e;if(f&&e.forEach===f)e.forEach(t,n);else if(e.length===+e.length){for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e)===o)return}else{var a=k.keys(e);for(i=0,r=a.length;i<r;i++)if(t.call(n,e[a[i]],a[i],e)===o)return}return e};k.map=k.collect=function(e,t,n){var i=[];return null==e?i:m&&e.map===m?e.map(t,n):(_(e,(function(e,r,o){i.push(t.call(n,e,r,o))})),i)};var A="Reduce of empty array with no initial value";k.reduce=k.foldl=k.inject=function(e,t,n,i){var r=arguments.length>2;if(null==e&&(e=[]),g&&e.reduce===g)return i&&(t=k.bind(t,i)),r?e.reduce(t,n):e.reduce(t);if(_(e,(function(e,o,a){r?n=t.call(i,n,e,o,a):(n=e,r=!0)})),!r)throw new TypeError(A);return n},k.reduceRight=k.foldr=function(e,t,n,i){var r=arguments.length>2;if(null==e&&(e=[]),v&&e.reduceRight===v)return i&&(t=k.bind(t,i)),r?e.reduceRight(t,n):e.reduceRight(t);var o=e.length;if(o!==+o){var a=k.keys(e);o=a.length}if(_(e,(function(s,c,l){c=a?a[--o]:--o,r?n=t.call(i,n,e[c],c,l):(n=e[c],r=!0)})),!r)throw new TypeError(A);return n},k.find=k.detect=function(e,t,n){var i;return M(e,(function(e,r,o){if(t.call(n,e,r,o))return i=e,!0})),i},k.filter=k.select=function(e,t,n){var i=[];return null==e?i:y&&e.filter===y?e.filter(t,n):(_(e,(function(e,r,o){t.call(n,e,r,o)&&i.push(e)})),i)},k.reject=function(e,t,n){return k.filter(e,(function(e,i,r){return!t.call(n,e,i,r)}),n)},k.every=k.all=function(e,t,n){t||(t=k.identity);var i=!0;return null==e?i:w&&e.every===w?e.every(t,n):(_(e,(function(e,r,a){if(!(i=i&&t.call(n,e,r,a)))return o})),!!i)};var M=k.some=k.any=function(e,t,n){t||(t=k.identity);var i=!1;return null==e?i:b&&e.some===b?e.some(t,n):(_(e,(function(e,r,a){if(i||(i=t.call(n,e,r,a)))return o})),!!i)};k.contains=k.include=function(e,t){return null!=e&&(C&&e.indexOf===C?-1!=e.indexOf(t):M(e,(function(e){return e===t})))},k.invoke=function(e,t){var n=u.call(arguments,2),i=k.isFunction(t);return k.map(e,(function(e){return(i?t:e[t]).apply(e,n)}))},k.pluck=function(e,t){return k.map(e,k.property(t))},k.where=function(e,t){return k.filter(e,k.matches(t))},k.findWhere=function(e,t){return k.find(e,k.matches(t))},k.max=function(e,t,n){if(!t&&k.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.max.apply(Math,e);var i=-1/0,r=-1/0;return _(e,(function(e,o,a){var s=t?t.call(n,e,o,a):e;s>r&&(i=e,r=s)})),i},k.min=function(e,t,n){if(!t&&k.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.min.apply(Math,e);var i=1/0,r=1/0;return _(e,(function(e,o,a){var s=t?t.call(n,e,o,a):e;s<r&&(i=e,r=s)})),i},k.shuffle=function(e){var t,n=0,i=[];return _(e,(function(e){t=k.random(n++),i[n-1]=i[t],i[t]=e})),i},k.sample=function(e,t,n){return null==t||n?(e.length!==+e.length&&(e=k.values(e)),e[k.random(e.length-1)]):k.shuffle(e).slice(0,Math.max(0,t))};var P=function(e){return null==e?k.identity:k.isFunction(e)?e:k.property(e)};k.sortBy=function(e,t,n){return t=P(t),k.pluck(k.map(e,(function(e,i,r){return{value:e,index:i,criteria:t.call(n,e,i,r)}})).sort((function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index})),"value")};var R=function(e){return function(t,n,i){var r={};return n=P(n),_(t,(function(o,a){var s=n.call(i,o,a,t);e(r,s,o)})),r}};k.groupBy=R((function(e,t,n){k.has(e,t)?e[t].push(n):e[t]=[n]})),k.indexBy=R((function(e,t,n){e[t]=n})),k.countBy=R((function(e,t){k.has(e,t)?e[t]++:e[t]=1})),k.sortedIndex=function(e,t,n,i){for(var r=(n=P(n)).call(i,t),o=0,a=e.length;o<a;){var s=o+a>>>1;n.call(i,e[s])<r?o=s+1:a=s}return o},k.toArray=function(e){return e?k.isArray(e)?u.call(e):e.length===+e.length?k.map(e,k.identity):k.values(e):[]},k.size=function(e){return null==e?0:e.length===+e.length?e.length:k.keys(e).length},k.first=k.head=k.take=function(e,t,n){if(null!=e)return null==t||n?e[0]:t<0?[]:u.call(e,0,t)},k.initial=function(e,t,n){return u.call(e,0,e.length-(null==t||n?1:t))},k.last=function(e,t,n){if(null!=e)return null==t||n?e[e.length-1]:u.call(e,Math.max(e.length-t,0))},k.rest=k.tail=k.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},k.compact=function(e){return k.filter(e,k.identity)};var I=function(e,t,n){return t&&k.every(e,k.isArray)?d.apply(n,e):(_(e,(function(e){k.isArray(e)||k.isArguments(e)?t?l.apply(n,e):I(e,t,n
2):n.push(e)})),n)};k.flatten=function(e,t){return I(e,t,[])},k.without=function(e){return k.difference(e,u.call(arguments,1))},k.partition=function(e,t){var n=[],i=[];return _(e,(function(e){(t(e)?n:i).push(e)})),[n,i]},k.uniq=k.unique=function(e,t,n,i){k.isFunction(t)&&(i=n,n=t,t=!1);var r=n?k.map(e,n,i):e,o=[],a=[];return _(r,(function(n,i){(t?i&&a[a.length-1]===n:k.contains(a,n))||(a.push(n),o.push(e[i]))})),o},k.union=function(){return k.uniq(k.flatten(arguments,!0))},k.intersection=function(e){var t=u.call(arguments,1);return k.filter(k.uniq(e),(function(e){return k.every(t,(function(t){return k.contains(t,e)}))}))},k.difference=function(e){var t=d.apply(a,u.call(arguments,1));return k.filter(e,(function(e){return!k.contains(t,e)}))},k.zip=function(){for(var e=k.max(k.pluck(arguments,"length").concat(0)),t=new Array(e),n=0;n<e;n++)t[n]=k.pluck(arguments,""+n);return t},k.object=function(e,t){if(null==e)return{};for(var n={},i=0,r=e.length;i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},k.indexOf=function(e,t,n){if(null==e)return-1;var i=0,r=e.length;if(n){if("number"!=typeof n)return e[i=k.sortedIndex(e,t)]===t?i:-1;i=n<0?Math.max(0,r+n):n}if(C&&e.indexOf===C)return e.indexOf(t,n);for(;i<r;i++)if(e[i]===t)return i;return-1},k.lastIndexOf=function(e,t,n){if(null==e)return-1;var i=null!=n;if(T&&e.lastIndexOf===T)return i?e.lastIndexOf(t,n):e.lastIndexOf(t);for(var r=i?n:e.length;r--;)if(e[r]===t)return r;return-1},k.range=function(e,t,n){arguments.length<=1&&(t=e||0,e=0),n=arguments[2]||1;for(var i=Math.max(Math.ceil((t-e)/n),0),r=0,o=new Array(i);r<i;)o[r++]=e,e+=n;return o};var O=function(){};k.bind=function(e,t){var n,i;if(x&&e.bind===x)return x.apply(e,u.call(arguments,1));if(!k.isFunction(e))throw new TypeError;return n=u.call(arguments,2),i=function(){if(!(this instanceof i))return e.apply(t,n.concat(u.call(arguments)));O.prototype=e.prototype;var r=new O;O.prototype=null;var o=e.apply(r,n.concat(u.call(arguments)));return Object(o)===o?o:r}},k.partial=function(e){var t=u.call(arguments,1);return function(){for(var n=0,i=t.slice(),r=0,o=i.length;r<o;r++)i[r]===k&&(i[r]=arguments[n++]);for(;n<arguments.length;)i.push(arguments[n++]);return e.apply(this,i)}},k.bindAll=function(e){var t=u.call(arguments,1);if(0===t.length)throw new Error("bindAll must be passed function names");return _(t,(function(t){e[t]=k.bind(e[t],e)})),e},k.memoize=function(e,t){var n={};return t||(t=k.identity),function(){var i=t.apply(this,arguments);return k.has(n,i)?n[i]:n[i]=e.apply(this,arguments)}},k.delay=function(e,t){var n=u.call(arguments,2);return setTimeout((function(){return e.apply(null,n)}),t)},k.defer=function(e){return k.delay.apply(k,[e,1].concat(u.call(arguments,1)))},k.throttle=function(e,t,n){var i,r,o,a=null,s=0;n||(n={});var c=function(){s=!1===n.leading?0:k.now(),a=null,o=e.apply(i,r),i=r=null};return function(){var l=k.now();s||!1!==n.leading||(s=l);var u=t-(l-s);return i=this,r=arguments,u<=0?(clearTimeout(a),a=null,s=l,o=e.apply(i,r),i=r=null):a||!1===n.trailing||(a=setTimeout(c,u)),o}},k.debounce=function(e,t,n){var i,r,o,a,s,c=function(){var l=k.now()-a;l<t?i=setTimeout(c,t-l):(i=null,n||(s=e.apply(o,r),o=r=null))};return function(){o=this,r=arguments,a=k.now();var l=n&&!i;return i||(i=setTimeout(c,t)),l&&(s=e.apply(o,r),o=r=null),s}},k.once=function(e){var t,n=!1;return function(){return n||(n=!0,t=e.apply(this,arguments),e=null),t}},k.wrap=function(e,t){return k.partial(t,e)},k.compose=function(){var e=arguments;return function(){for(var t=arguments,n=e.length-1;n>=0;n--)t=[e[n].apply(this,t)];return t[0]}},k.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},k.keys=function(e){if(!k.isObject(e))return[];if(E)return E(e);var t=[];for(var n in e)k.has(e,n)&&t.push(n);return t},k.values=function(e){for(var t=k.keys(e),n=t.length,i=new Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i},k.pairs=function(e){for(var t=k.keys(e),n=t.length,i=new Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},k.invert=function(e){for(var t={},n=k.keys(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t},k.functions=k.methods=function(e){var t=[];
2for(var n in e)k.isFunction(e[n])&&t.push(n);return t.sort()},k.extend=function(e){return _(u.call(arguments,1),(function(t){if(t)for(var n in t)e[n]=t[n]})),e},k.pick=function(e){var t={},n=d.apply(a,u.call(arguments,1));return _(n,(function(n){n in e&&(t[n]=e[n])})),t},k.omit=function(e){var t={},n=d.apply(a,u.call(arguments,1));for(var i in e)k.contains(n,i)||(t[i]=e[i]);return t},k.defaults=function(e){return _(u.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e},k.clone=function(e){return k.isObject(e)?k.isArray(e)?e.slice():k.extend({},e):e},k.tap=function(e,t){return t(e),e};var N=function(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof k&&(e=e._wrapped),t instanceof k&&(t=t._wrapped);var r=h.call(e);if(r!=h.call(t))return!1;switch(r){case"[object String]":return e==String(t);case"[object Number]":return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}if("object"!=typeof e||"object"!=typeof t)return!1;for(var o=n.length;o--;)if(n[o]==e)return i[o]==t;var a=e.constructor,s=t.constructor;if(a!==s&&!(k.isFunction(a)&&a instanceof a&&k.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1;n.push(e),i.push(t);var c=0,l=!0;if("[object Array]"==r){if(l=(c=e.length)==t.length)for(;c--&&(l=N(e[c],t[c],n,i)););}else{for(var u in e)if(k.has(e,u)&&(c++,!(l=k.has(t,u)&&N(e[u],t[u],n,i))))break;if(l){for(u in t)if(k.has(t,u)&&!c--)break;l=!c}}return n.pop(),i.pop(),l};k.isEqual=function(e,t){return N(e,t,[],[])},k.isEmpty=function(e){if(null==e)return!0;if(k.isArray(e)||k.isString(e))return 0===e.length;for(var t in e)if(k.has(e,t))return!1;return!0},k.isElement=function(e){return!(!e||1!==e.nodeType)},k.isArray=S||function(e){return"[object Array]"==h.call(e)},k.isObject=function(e){return e===Object(e)},_(["Arguments","Function","String","Number","Date","RegExp"],(function(e){k["is"+e]=function(t){return h.call(t)=="[object "+e+"]"}})),k.isArguments(arguments)||(k.isArguments=function(e){return!(!e||!k.has(e,"callee"))}),k.isFunction=function(e){return"function"==typeof e},k.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},k.isNaN=function(e){return k.isNumber(e)&&e!=+e},k.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"==h.call(e)},k.isNull=function(e){return null===e},k.isUndefined=function(e){return void 0===e},k.has=function(e,t){return p.call(e,t)},k.noConflict=function(){return i._=r,this},k.identity=function(e){return e},k.constant=function(e){return function(){return e}},k.property=function(e){return function(t){return t[e]}},k.matches=function(e){return function(t){if(t===e)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0}},k.times=function(e,t,n){for(var i=Array(Math.max(0,e)),r=0;r<e;r++)i[r]=t.call(n,r);return i},k.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},k.now=Date.now||function(){return(new Date).getTime()};var D={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};D.unescape=k.invert(D.escape);var L={escape:new RegExp("["+k.keys(D.escape).join("")+"]","g"),unescape:new RegExp("("+k.keys(D.unescape).join("|")+")","g")};k.each(["escape","unescape"],(function(e){k[e]=function(t){return null==t?"":(""+t).replace(L[e],(function(t){return D[e][t]}))}})),k.result=function(e,t){if(null!=e){var n=e[t];return k.isFunction(n)?n.call(e):n}},k.mixin=function(e){_(k.functions(e),(function(t){var n=k[t]=e[t];k.prototype[t]=function(){var e=[this._wrapped];return l.apply(e,arguments),H.call(this,n.apply(k,e))}}))};var B=0;k.uniqueId=function(e){var t=++B+"";return e?e+t:t},k.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var j=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},F=/\\|'|\r|\n|\t|\u2028|\u2029/g;k.template=function(e,t,n){var i;n=k.defaults({},n,k.templateSettings);var r=new RegExp([(n.escape||j).source,(n.interpolate||j).source,(n.evaluate||j).source].join("|")+"|$","g"),o=0,a="__p+='";e.replace(r,(function(t,n,i,r,s){return a+=e.slice(o,s).replace(F,(function(e){return"\\"+V[e]})),n&&(a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"),i&&(a+="'+\n((__t=("+i+"))==null?'':__t)+\n'"),r&&(a+="';\n"+r+"\n__p+='"),o=s+t.length,t})),a+="';\n",n.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{i=new Function(n.variable||"obj","_",a)}catch(c){throw c.source=a,c}if(t)return i(t,k);var s=function(e){return i.call(this,e,k)};
2return s.source="function("+(n.variable||"obj")+"){\n"+a+"}",s},k.chain=function(e){return k(e).chain()};var H=function(e){return this._chain?k(e).chain():e};k.mixin(k),_(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=a[e];k.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!=e&&"splice"!=e||0!==n.length||delete n[0],H.call(this,n)}})),_(["concat","join","slice"],(function(e){var t=a[e];k.prototype[e]=function(){return H.call(this,t.apply(this._wrapped,arguments))}})),k.extend(k.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),void 0===(n=function(){return k}.apply(t,[]))||(e.exports=n)}).call(this)},72478(e,t,n){var i,r;i=[n(18638),n(33129)],void 0===(r=function(e,t){return{modals:[],alert:function(n,i,r,o){o=e.extend({okLabel:null,formInputName:null,formInputPlaceholder:"",formInputType:"text",formInputRequired:!1,smallMessage:null,footerMessage:null},o),void 0===i&&""!==n&&(i=n);var a=e(t.template(e("#modal-container-tpl").html(),{title:n,message:i,small_message:o.smallMessage,footer_message:o.footerMessage}));if(this.modals.push(a),o.formInputName){var s=e(t.template(e("#modal-form-tpl").html(),o));a.find(".modal__content").append(s)}return o.okLabel&&a.find(".js-modal-ok").text(o.okLabel),a.addClass("is-visible").appendTo("body"),this.addButtonHandler(".js-modal-ok",r),a},confirm:function(n,i,r,o,a){a=e.extend({okLabel:null,cancelLabel:null,formInputName:null,formInputPlaceholder:"",formInputType:"text",formInputRequired:!1,smallMessage:null,classModifier:null,closeButton:null},a),void 0===i&&""!==n&&(i=n);var s=e(t.template(e("#modal-confirm-container-tpl").html(),{title:n,message:i,small_message:a.smallMessage,class_modifier:a.classModifier,close_button:a.closeButton}));if(this.modals.push(s),a.formInputName){var c=e(t.template(e("#modal-form-tpl").html(),a));s.find(".modal__content").append(c)}return a.okLabel&&s.find(".js-modal-ok").text(a.okLabel),a.cancelLabel&&s.find(".js-modal-cancel").text(a.cancelLabel),s.addClass("is-visible").appendTo("body"),this.addButtonHandler(".js-modal-ok",r),this.addButtonHandler(".js-modal-cancel",o),this.addButtonHandler(".js-modal-close",o),s},addButtonHandler:function(t,n){this.modals[this.modals.length-1].find(t).on("click",e.proxy((function(e){(e.preventDefault(),"function"==typeof n)?n.apply(this,[])||this.hide():this.hide()}),this))},hide:function(){this.modals.pop().remove()}}}.apply(t,i))||(e.exports=r)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.