diff --git a/openvidu-client/src/main/java/io/openvidu/client/internal/ProtocolElements.java b/openvidu-client/src/main/java/io/openvidu/client/internal/ProtocolElements.java index d29dd150..b1732535 100644 --- a/openvidu-client/src/main/java/io/openvidu/client/internal/ProtocolElements.java +++ b/openvidu-client/src/main/java/io/openvidu/client/internal/ProtocolElements.java @@ -37,6 +37,7 @@ public class ProtocolElements { public static final String JOINROOM_ROOM_PARAM = "session"; public static final String JOINROOM_METADATA_PARAM = "metadata"; public static final String JOINROOM_SECRET_PARAM = "secret"; + public static final String JOINROOM_PLATFORM_PARAM = "platform"; public static final String JOINROOM_RECORDER_PARAM = "recorder"; public static final String JOINROOM_PEERID_PARAM = "id"; diff --git a/openvidu-server/pom.xml b/openvidu-server/pom.xml index 17d147a7..b44ece16 100644 --- a/openvidu-server/pom.xml +++ b/openvidu-server/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 @@ -280,6 +281,11 @@ commons-lang3 3.7 + + com.maxmind.geoip2 + geoip2 + 2.12.0 + diff --git a/openvidu-server/src/main/java/io/openvidu/server/cdr/CDREvent.java b/openvidu-server/src/main/java/io/openvidu/server/cdr/CDREvent.java index 70c41b0e..9a100eab 100644 --- a/openvidu-server/src/main/java/io/openvidu/server/cdr/CDREvent.java +++ b/openvidu-server/src/main/java/io/openvidu/server/cdr/CDREvent.java @@ -32,6 +32,8 @@ public class CDREvent implements Comparable { private Long startTime; private Integer duration; private Participant participant; + private String location; + private String platform; private MediaOptions mediaOptions; private String receivingFrom; private String reason; @@ -88,6 +90,8 @@ public class CDREvent implements Comparable { public CDREvent(CDREventName eventName, Participant participant, String sessionId) { this(eventName, sessionId); this.participant = participant; + this.location = participant.getLocation(); + this.platform = participant.getPlatform(); this.startTime = this.timeStamp; } @@ -122,6 +126,12 @@ public class CDREvent implements Comparable { if (this.participant != null) { json.addProperty("participantId", this.participant.getParticipantPublicId()); } + if (this.location != null) { + json.addProperty("location", this.location); + } + if (this.platform != null) { + json.addProperty("platform", this.platform); + } if (this.mediaOptions != null) { json.addProperty("connection", this.receivingFrom != null ? "INBOUND" : "OUTBOUND"); json.addProperty("audioEnabled", this.mediaOptions.hasAudio()); diff --git a/openvidu-server/src/main/java/io/openvidu/server/cdr/CallDetailRecord.java b/openvidu-server/src/main/java/io/openvidu/server/cdr/CallDetailRecord.java index e73e2a89..f5c884ed 100644 --- a/openvidu-server/src/main/java/io/openvidu/server/cdr/CallDetailRecord.java +++ b/openvidu-server/src/main/java/io/openvidu/server/cdr/CallDetailRecord.java @@ -38,7 +38,7 @@ import io.openvidu.server.recording.Recording; * * - 'sessionCreated': {sessionId, timestamp} * - 'sessionDestroyed': {sessionId, timestamp, startTime, endTime, duration, reason} - * - 'participantJoined': {sessionId, timestamp, participantId} + * - 'participantJoined': {sessionId, timestamp, participantId, location, platform} * - 'participantLeft': {sessionId, timestamp, participantId, startTime, endTime, duration, reason} * - 'webrtcConnectionCreated' {sessionId, timestamp, participantId, connection, [receivingFrom], audioEnabled, videoEnabled, [videoSource], [videoFramerate]} * - 'webrtcConnectionDestroyed' {sessionId, timestamp, participantId, startTime, endTime, duration, connection, [receivingFrom], audioEnabled, videoEnabled, [videoSource], [videoFramerate], reason} diff --git a/openvidu-server/src/main/java/io/openvidu/server/core/Participant.java b/openvidu-server/src/main/java/io/openvidu/server/core/Participant.java index 23002643..260d38f3 100644 --- a/openvidu-server/src/main/java/io/openvidu/server/core/Participant.java +++ b/openvidu-server/src/main/java/io/openvidu/server/core/Participant.java @@ -26,19 +26,24 @@ public class Participant { private String clientMetadata = ""; // Metadata provided on client side private String serverMetadata = ""; // Metadata provided on server side private Token token; // Token associated to this participant + private String location; // Remote IP of the participant + private String platform; // Platform used by the participant to connect to the session protected boolean streaming = false; protected volatile boolean closed; private final String METADATA_SEPARATOR = "%/%"; - public Participant(String participantPrivatetId, String participantPublicId, Token token, String clientMetadata) { + public Participant(String participantPrivatetId, String participantPublicId, Token token, String clientMetadata, + String location, String platform) { this.participantPrivatetId = participantPrivatetId; this.participantPublicId = participantPublicId; this.token = token; this.clientMetadata = clientMetadata; if (!token.getServerMetadata().isEmpty()) this.serverMetadata = token.getServerMetadata(); + this.location = location; + this.platform = platform; } public String getParticipantPrivateId() { @@ -81,6 +86,22 @@ public class Participant { this.token = token; } + public String getLocation() { + return this.location; + } + + public void setLocation(String location) { + this.location = location; + } + + public String getPlatform() { + return this.platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + } + public boolean isStreaming() { return streaming; } @@ -166,6 +187,8 @@ public class Participant { public JsonObject toJson() { JsonObject json = new JsonObject(); json.addProperty("connectionId", this.participantPublicId); + json.addProperty("location", this.location); + json.addProperty("platform", this.platform); json.addProperty("token", this.token.getToken()); json.addProperty("role", this.token.getRole().name()); json.addProperty("serverData", this.serverMetadata); diff --git a/openvidu-server/src/main/java/io/openvidu/server/core/SessionManager.java b/openvidu-server/src/main/java/io/openvidu/server/core/SessionManager.java index 4095bea0..4a55350d 100644 --- a/openvidu-server/src/main/java/io/openvidu/server/core/SessionManager.java +++ b/openvidu-server/src/main/java/io/openvidu/server/core/SessionManager.java @@ -115,8 +115,9 @@ public abstract class SessionManager { public abstract void removeFilterEventListener(Session session, Participant subscriber, String streamId, String eventType); - - public abstract String getParticipantPrivateIdFromStreamId(String sessionId, String streamId) throws OpenViduException; + + public abstract String getParticipantPrivateIdFromStreamId(String sessionId, String streamId) + throws OpenViduException; /** * Returns a Session given its id @@ -331,10 +332,11 @@ public abstract class SessionManager { } public Participant newParticipant(String sessionId, String participantPrivatetId, Token token, - String clientMetadata) { + String clientMetadata, String location, String platform) { if (this.sessionidParticipantpublicidParticipant.get(sessionId) != null) { String participantPublicId = this.generateRandomChain(); - Participant p = new Participant(participantPrivatetId, participantPublicId, token, clientMetadata); + Participant p = new Participant(participantPrivatetId, participantPublicId, token, clientMetadata, location, + platform); while (this.sessionidParticipantpublicidParticipant.get(sessionId).putIfAbsent(participantPublicId, p) != null) { participantPublicId = this.generateRandomChain(); @@ -350,7 +352,7 @@ public abstract class SessionManager { String clientMetadata) { if (this.sessionidParticipantpublicidParticipant.get(sessionId) != null) { Participant p = new Participant(participantPrivatetId, ProtocolElements.RECORDER_PARTICIPANT_PUBLICID, - token, clientMetadata); + token, clientMetadata, null, null); this.sessionidParticipantpublicidParticipant.get(sessionId) .put(ProtocolElements.RECORDER_PARTICIPANT_PUBLICID, p); return p; diff --git a/openvidu-server/src/main/java/io/openvidu/server/kurento/core/KurentoParticipant.java b/openvidu-server/src/main/java/io/openvidu/server/kurento/core/KurentoParticipant.java index a4924722..3cd75b0c 100644 --- a/openvidu-server/src/main/java/io/openvidu/server/kurento/core/KurentoParticipant.java +++ b/openvidu-server/src/main/java/io/openvidu/server/kurento/core/KurentoParticipant.java @@ -80,7 +80,7 @@ public class KurentoParticipant extends Participant { public KurentoParticipant(Participant participant, KurentoSession kurentoSession, MediaPipeline pipeline, InfoHandler infoHandler, CallDetailRecord CDR, OpenviduConfig openviduConfig) { super(participant.getParticipantPrivateId(), participant.getParticipantPublicId(), participant.getToken(), - participant.getClientMetadata()); + participant.getClientMetadata(), participant.getLocation(), participant.getPlatform()); this.openviduConfig = openviduConfig; this.session = kurentoSession; this.pipeline = pipeline; @@ -157,7 +157,7 @@ public class KurentoParticipant extends Participant { public synchronized void releaseAllFilters() { // Check this, mutable array? filters.forEach((s, filter) -> removeFilterElement(s)); - if(this.publisher.getFilter() != null) { + if (this.publisher.getFilter() != null) { this.publisher.revert(this.publisher.getFilter()); } } diff --git a/openvidu-server/src/main/java/io/openvidu/server/rpc/RpcHandler.java b/openvidu-server/src/main/java/io/openvidu/server/rpc/RpcHandler.java index 354e9867..290eb3b4 100644 --- a/openvidu-server/src/main/java/io/openvidu/server/rpc/RpcHandler.java +++ b/openvidu-server/src/main/java/io/openvidu/server/rpc/RpcHandler.java @@ -17,6 +17,8 @@ package io.openvidu.server.rpc; +import java.io.IOException; +import java.net.InetAddress; import java.util.Arrays; import java.util.List; import java.util.concurrent.ConcurrentHashMap; @@ -25,6 +27,7 @@ import java.util.concurrent.ConcurrentMap; import org.kurento.jsonrpc.DefaultJsonRpcHandler; import org.kurento.jsonrpc.Session; import org.kurento.jsonrpc.Transaction; +import org.kurento.jsonrpc.internal.ws.WebSocketServerSession; import org.kurento.jsonrpc.message.Request; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -34,6 +37,7 @@ import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import com.google.gson.JsonSyntaxException; +import com.maxmind.geoip2.exception.GeoIp2Exception; import io.openvidu.client.OpenViduException; import io.openvidu.client.OpenViduException.Code; @@ -43,6 +47,7 @@ import io.openvidu.server.core.MediaOptions; import io.openvidu.server.core.Participant; import io.openvidu.server.core.SessionManager; import io.openvidu.server.core.Token; +import io.openvidu.server.utils.GeoLocationByIpUtils; public class RpcHandler extends DefaultJsonRpcHandler { @@ -51,6 +56,9 @@ public class RpcHandler extends DefaultJsonRpcHandler { @Autowired OpenviduConfig openviduConfig; + @Autowired + GeoLocationByIpUtils geoLocationByIp; + @Autowired SessionManager sessionManager; @@ -159,8 +167,26 @@ public class RpcHandler extends DefaultJsonRpcHandler { String sessionId = getStringParam(request, ProtocolElements.JOINROOM_ROOM_PARAM); String token = getStringParam(request, ProtocolElements.JOINROOM_TOKEN_PARAM); String secret = getStringParam(request, ProtocolElements.JOINROOM_SECRET_PARAM); + String platform = getStringParam(request, ProtocolElements.JOINROOM_PLATFORM_PARAM); String participantPrivatetId = rpcConnection.getParticipantPrivateId(); + InetAddress remoteAddress = null; + String location = ""; + Object obj = rpcConnection.getSession().getAttributes().get("remoteAddress"); + if (obj != null && obj instanceof InetAddress) { + remoteAddress = (InetAddress) obj; + try { + location = this.geoLocationByIp.getLocationByIp(remoteAddress); + } catch (IOException e) { + e.printStackTrace(); + location = "error"; + } catch (GeoIp2Exception e) { + log.warn("Error getting address location: {}", e.getMessage()); + location = "unknown"; + } + + } + boolean recorder = false; try { @@ -193,7 +219,7 @@ public class RpcHandler extends DefaultJsonRpcHandler { clientMetadata); } else { participant = sessionManager.newParticipant(sessionId, participantPrivatetId, tokenObj, - clientMetadata); + clientMetadata, location, platform); } rpcConnection.setSessionId(sessionId); @@ -521,6 +547,10 @@ public class RpcHandler extends DefaultJsonRpcHandler { @Override public void afterConnectionEstablished(Session rpcSession) throws Exception { log.info("After connection established for WebSocket session: {}", rpcSession.getSessionId()); + if (rpcSession instanceof WebSocketServerSession) { + rpcSession.getAttributes().put("remoteAddress", + ((WebSocketServerSession) rpcSession).getWebSocketSession().getRemoteAddress().getAddress()); + } } @Override diff --git a/openvidu-server/src/main/java/io/openvidu/server/utils/GeoLocationByIpUtils.java b/openvidu-server/src/main/java/io/openvidu/server/utils/GeoLocationByIpUtils.java new file mode 100644 index 00000000..b7c443ca --- /dev/null +++ b/openvidu-server/src/main/java/io/openvidu/server/utils/GeoLocationByIpUtils.java @@ -0,0 +1,69 @@ +package io.openvidu.server.utils; + +import java.io.IOException; +import java.io.InputStream; +import java.net.InetAddress; + +import javax.annotation.PostConstruct; +import javax.annotation.PreDestroy; +import javax.inject.Inject; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.core.io.Resource; +import org.springframework.core.io.ResourceLoader; +import org.springframework.stereotype.Service; + +import com.maxmind.db.Reader; +import com.maxmind.geoip2.DatabaseReader; +import com.maxmind.geoip2.exception.GeoIp2Exception; +import com.maxmind.geoip2.model.CityResponse; + +/** + * This product includes GeoLite2 data created by MaxMind, available from + * http://www.maxmind.com. + */ + +@Service("geolocationservice") +public class GeoLocationByIpUtils { + + private static final Logger log = LoggerFactory.getLogger(GeoLocationByIpUtils.class); + + private static DatabaseReader reader = null; + private ResourceLoader resourceLoader; + + @Inject + public GeoLocationByIpUtils(ResourceLoader resourceLoader) { + this.resourceLoader = resourceLoader; + } + + @PostConstruct + public void init() { + try { + log.info("GeoLocationByIpUtils: Trying to load GeoLite2-City database..."); + Resource resource = resourceLoader.getResource("classpath:GeoLite2-City.mmdb"); + InputStream dbAsStream = resource.getInputStream(); + // Initialize the reader + reader = new DatabaseReader.Builder(dbAsStream).fileMode(Reader.FileMode.MEMORY).build(); + log.info("GeoLocationServiceImpl: Database was loaded successfully"); + } catch (IOException | NullPointerException e) { + log.error("Database reader cound not be initialized", e); + } + } + + @PreDestroy + public void preDestroy() { + if (reader != null) { + try { + reader.close(); + } catch (IOException e) { + log.error("Failed to close the GeoLocation reader"); + } + } + } + + public String getLocationByIp(InetAddress ipAddress) throws IOException, GeoIp2Exception { + CityResponse response = reader.city(ipAddress); + return response.getCity().getNames().get("en") + ", " + response.getCountry().getNames().get("en"); + } +} diff --git a/openvidu-server/src/main/resources/GeoLite2-City.mmdb b/openvidu-server/src/main/resources/GeoLite2-City.mmdb new file mode 100644 index 00000000..dbaddbdb Binary files /dev/null and b/openvidu-server/src/main/resources/GeoLite2-City.mmdb differ diff --git a/openvidu-server/src/main/resources/static/index.html b/openvidu-server/src/main/resources/static/index.html index 98f80b28..bce48aae 100644 --- a/openvidu-server/src/main/resources/static/index.html +++ b/openvidu-server/src/main/resources/static/index.html @@ -18,6 +18,6 @@ - + diff --git a/openvidu-server/src/main/resources/static/main.a5878fcbbb284a79712e.js b/openvidu-server/src/main/resources/static/main.a5878fcbbb284a79712e.js deleted file mode 100644 index 5ccc7218..00000000 --- a/openvidu-server/src/main/resources/static/main.a5878fcbbb284a79712e.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+leM":function(e,t,n){"use strict";t.__esModule=!0;var r=n("M42G"),i=n("iZBl"),o=n("keth"),s=n("8HiN"),a=n("p571"),u=n("7W0T"),l=n("OCCK"),c=n("dvth"),d=n("8v+A"),p=n("kPIN");t.OpenVidu=function(){function e(){var e=this;this.publishers=[],this.secret="",this.recorder=!1,this.advancedConfiguration={},console.info("'OpenVidu' initialized"),-1!==p.name.toLowerCase().indexOf("mobile")&&(window.onorientationchange=function(){e.publishers.forEach(function(t){if(t.stream&&t.stream.hasVideo&&t.stream.streamManager.videos[0])var n=0,r=t.stream.videoDimensions.width,i=t.stream.videoDimensions.height,o=t.stream.getMediaStream().getVideoTracks()[0].getSettings(),a=-1!==p.name.toLowerCase().indexOf("firefox")?o.width:t.videoReference.videoWidth,u=-1!==p.name.toLowerCase().indexOf("firefox")?o.height:t.videoReference.videoHeight,l=setInterval(function(){o=t.stream.getMediaStream().getVideoTracks()[0].getSettings(),a=-1!==p.name.toLowerCase().indexOf("firefox")?o.width:t.videoReference.videoWidth,u=-1!==p.name.toLowerCase().indexOf("firefox")?o.height:t.videoReference.videoHeight,c(r,i,a,u)},100),c=function(r,i,o,a){++n>4&&clearTimeout(l),o===r&&a===i||(t.stream.videoDimensions={width:o||0,height:a||0},e.sendRequest("streamPropertyChanged",{streamId:t.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(t.stream.videoDimensions),reason:"deviceRotated"},function(n,o){n?console.error("Error sending 'streamPropertyChanged' event",n):(e.session.emitEvent("streamPropertyChanged",[new s.StreamPropertyChangedEvent(e.session,t.stream,"videoDimensions",t.stream.videoDimensions,{width:r,height:i},"deviceRotated")]),t.emitEvent("streamPropertyChanged",[new s.StreamPropertyChangedEvent(t,t.stream,"videoDimensions",t.stream.videoDimensions,{width:r,height:i},"deviceRotated")]))}),clearTimeout(l))}})})}return e.prototype.initSession=function(){return this.session=new o.Session(this),this.session},e.prototype.initPublisher=function(e,t,n){var r;r=t&&"function"!=typeof t?{audioSource:void 0!==(r=t).audioSource?r.audioSource:void 0,frameRate:this.isMediaStreamTrack(r.videoSource)?void 0:void 0!==r.frameRate?r.frameRate:void 0,insertMode:void 0!==r.insertMode?"string"==typeof r.insertMode?u.VideoInsertMode[r.insertMode]:r.insertMode:u.VideoInsertMode.APPEND,mirror:void 0===r.mirror||r.mirror,publishAudio:void 0===r.publishAudio||r.publishAudio,publishVideo:void 0===r.publishVideo||r.publishVideo,resolution:this.isMediaStreamTrack(r.videoSource)?void 0:void 0!==r.resolution?r.resolution:"640x480",videoSource:void 0!==r.videoSource?r.videoSource:void 0}:{insertMode:u.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var o,s=new i.Publisher(e,r,this);return t&&"function"==typeof t?o=t:n&&(o=n),s.initialize().then(function(){void 0!==o&&o(void 0),s.emitEvent("accessAllowed",[])}).catch(function(e){void 0!==o&&o(e),s.emitEvent("accessDenied",[])}),this.publishers.push(s),s},e.prototype.initPublisherAsync=function(e,t){var n=this;return new Promise(function(r,i){var o,s=function(e){e?i(e):r(o)};o=t?n.initPublisher(e,t,s):n.initPublisher(e,s)})},e.prototype.initLocalRecorder=function(e){return new r.LocalRecorder(e)},e.prototype.checkSystemRequirements=function(){var e=p.name;return"Chrome"!==e&&"Chrome Mobile"!==e&&"Firefox"!==e&&"Firefox Mobile"!==e&&"Firefox for iOS"!==e&&"Opera"!==e&&"Opera Mobile"!==e&&"Safari"!==e?0:1},e.prototype.getDevices=function(){return new Promise(function(e,t){navigator.mediaDevices.enumerateDevices().then(function(t){var n=[];t.forEach(function(e){"audioinput"!==e.kind&&"videoinput"!==e.kind||n.push({kind:e.kind,deviceId:e.deviceId,label:e.label})}),e(n)}).catch(function(e){console.error("Error getting devices",e),t(e)})})},e.prototype.getUserMedia=function(e){var t=this;return new Promise(function(n,r){t.generateMediaConstraints(e).then(function(t){navigator.mediaDevices.getUserMedia(t).then(function(e){n(e)}).catch(function(t){var n=t.toString();r(new a.OpenViduError("screen"!==e.videoSource?a.OpenViduErrorName.DEVICE_ACCESS_DENIED:a.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n))})}).catch(function(e){r(e)})})},e.prototype.enableProdMode=function(){console.log=function(){},console.debug=function(){},console.info=function(){},console.warn=function(){}},e.prototype.setAdvancedConfiguration=function(e){this.advancedConfiguration=e},e.prototype.generateMediaConstraints=function(e){var t=this;return new Promise(function(n,r){var i={audio:null!==e.audioSource&&!1!==e.audioSource&&(void 0===e.audioSource||e.audioSource),video:null!==e.videoSource&&!1!==e.videoSource&&{height:{ideal:480},width:{ideal:640}}};if("string"==typeof i.audio&&(i.audio={deviceId:{exact:i.audio}}),i.video){if(e.resolution){var o=e.resolution.toLowerCase().split("x"),s=Number(o[0]),u=Number(o[1]);i.video.width.ideal=s,i.video.height.ideal=u}if(e.frameRate&&(i.video.frameRate={ideal:e.frameRate}),e.videoSource&&"string"==typeof e.videoSource)if("screen"===e.videoSource)if("Chrome"!==p.name&&-1===p.name.indexOf("Firefox")){var d=new a.OpenViduError(a.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome and Firefox. Detected browser: "+p.name);console.error(d),r(d)}else t.advancedConfiguration.screenShareChromeExtension&&-1===p.name.indexOf("Firefox")?c.getScreenConstraints(function(e,o){if(e||o.mandatory&&"screen"===o.mandatory.chromeMediaSource)if("permission-denied"===e||"PermissionDeniedError"===e){var s=new a.OpenViduError(a.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");console.error(s),r(s)}else{var u=t.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();c.getChromeExtensionStatus(u,function(e){if("installed-disabled"===e){var n=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");console.error(n),r(n)}if("not-installed"===e){var i=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,t.advancedConfiguration.screenShareChromeExtension);console.error(i),r(i)}})}else i.video=o,n(i)}):l.getScreenId(function(e,o,s){if(e){if("not-installed"===e){var u=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,t.advancedConfiguration.screenShareChromeExtension?t.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");console.error(u),r(u)}else if("installed-disabled"===e){var l=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");console.error(l),r(l)}else if("permission-denied"===e){var c=new a.OpenViduError(a.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");console.error(c),r(c)}}else i.video=s.video,n(i)}),e.videoSource="screen";else i.video.deviceId={exact:e.videoSource},n(i);else n(i)}else n(i)})},e.prototype.startWs=function(e){var t={heartbeat:5e3,sendCloseMessage:!1,ws:{uri:this.wsUri,useSockJS:!1,onconnected:e,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this)},rpc:{requestTimeout:1e4,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session)}};this.jsonRpcClient=new d.clients.JsonRpcClient(t)},e.prototype.closeWs=function(){this.jsonRpcClient.close()},e.prototype.sendRequest=function(e,t,n){t&&t instanceof Function&&(n=t,t={}),console.debug('Sending request: {method:"'+e+'", params: '+JSON.stringify(t)+"}"),this.jsonRpcClient.send(e,t,n)},e.prototype.isMediaStreamTrack=function(e){return!!e&&void 0!==e.enabled&&"boolean"==typeof e.enabled&&void 0!==e.id&&"string"==typeof e.id&&void 0!==e.kind&&"string"==typeof e.kind&&void 0!==e.label&&"string"==typeof e.label&&void 0!==e.muted&&"boolean"==typeof e.muted&&void 0!==e.readyState&&"string"==typeof e.readyState},e.prototype.getWsUri=function(){return this.wsUri},e.prototype.getSecret=function(){return this.secret},e.prototype.getRecorder=function(){return this.recorder},e.prototype.disconnectCallback=function(){console.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection():alert("Connection error. Please reload page.")},e.prototype.reconnectingCallback=function(){console.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.onLostConnection():alert("Connection error. Please reload page.")},e.prototype.reconnectedCallback=function(){console.warn("Websocket reconnected"),this.isRoomAvailable()?this.session.onRecoveredConnection():alert("Connection error. Please reload page.")},e.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof o.Session||(console.warn("Session instance not found"),!1)},e}()},"+snY":function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("HyLw");t.ConnectionEvent=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n,r)||this;return s.connection=i,s.reason=o,s}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},"0fCr":function(e,t,n){"use strict";t.__esModule=!0;var r=n("ReYS"),i=n("WDJJ"),o=n("PyKc"),s=n("kaSr"),a=n("vxzt"),u=n("p571");t.Stream=function(){function e(e,t){var n=this;this.ee=new s,this.isSubscribeToRemote=!1,this.isLocalStreamReadyToPublish=!1,this.isLocalStreamPublished=!1,this.publishedOnce=!1,this.session=e,t.hasOwnProperty("id")?(this.inboundStreamOpts=t,this.streamId=this.inboundStreamOpts.id,this.hasAudio=this.inboundStreamOpts.hasAudio,this.hasVideo=this.inboundStreamOpts.hasVideo,this.hasAudio&&(this.audioActive=this.inboundStreamOpts.audioActive),this.hasVideo&&(this.videoActive=this.inboundStreamOpts.videoActive,this.typeOfVideo=this.inboundStreamOpts.typeOfVideo?this.inboundStreamOpts.typeOfVideo:void 0,this.frameRate=-1===this.inboundStreamOpts.frameRate?void 0:this.inboundStreamOpts.frameRate,this.videoDimensions=this.inboundStreamOpts.videoDimensions)):(this.outboundStreamOpts=t,this.hasAudio=this.isSendAudio(),this.hasVideo=this.isSendVideo(),this.hasAudio&&(this.audioActive=!!this.outboundStreamOpts.publisherProperties.publishAudio),this.hasVideo&&(this.videoActive=!!this.outboundStreamOpts.publisherProperties.publishVideo,this.frameRate=this.outboundStreamOpts.publisherProperties.frameRate,this.typeOfVideo=this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":this.isSendScreen()?"SCREEN":"CAMERA")),this.ee.on("mediastream-updated",function(){n.streamManager.updateMediaStream(n.mediaStream),console.debug("Video srcObject ["+n.mediaStream+"] updated in stream ["+n.streamId+"]")})}return e.prototype.getMediaStream=function(){return this.mediaStream},e.prototype.setMediaStream=function(e){this.mediaStream=e},e.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated")},e.prototype.getWebRtcPeer=function(){return this.webRtcPeer},e.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},e.prototype.subscribeToMyRemote=function(e){this.isSubscribeToRemote=e},e.prototype.setOutboundStreamOptions=function(e){this.outboundStreamOpts=e},e.prototype.subscribe=function(){var e=this;return new Promise(function(t,n){e.initWebRtcPeerReceive().then(function(){t()}).catch(function(e){n(e)})})},e.prototype.publish=function(){var e=this;return new Promise(function(t,n){e.isLocalStreamReadyToPublish?e.initWebRtcPeerSend().then(function(){t()}).catch(function(e){n(e)}):e.ee.once("stream-ready-to-publish",function(){e.publish().then(function(){t()}).catch(function(e){n(e)})})})},e.prototype.disposeWebRtcPeer=function(){this.webRtcPeer&&this.webRtcPeer.dispose(),this.speechEvent&&this.speechEvent.stop(),this.stopWebRtcStats(),console.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"WebRTCPeer from 'Stream' with id ["+this.streamId+"] is now closed")},e.prototype.disposeMediaStream=function(){this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function(e){e.stop()}),this.mediaStream.getVideoTracks().forEach(function(e){e.stop()}),delete this.mediaStream),console.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed")},e.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},e.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},e.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},e.prototype.isSendScreen=function(){return!!this.outboundStreamOpts&&"screen"===this.outboundStreamOpts.publisherProperties.videoSource},e.prototype.setSpeechEventIfNotExists=function(){if(!this.speechEvent){var e=this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};e.interval="number"==typeof e.interval?e.interval:50,e.threshold="number"==typeof e.threshold?e.threshold:-50,this.speechEvent=a(this.mediaStream,e)}},e.prototype.enableSpeakingEvents=function(){var e=this;this.setSpeechEventIfNotExists(),this.speechEvent.on("speaking",function(){e.session.emitEvent("publisherStartSpeaking",[new o.PublisherSpeakingEvent(e.session,"publisherStartSpeaking",e.connection,e.streamId)])}),this.speechEvent.on("stopped_speaking",function(){e.session.emitEvent("publisherStopSpeaking",[new o.PublisherSpeakingEvent(e.session,"publisherStopSpeaking",e.connection,e.streamId)])})},e.prototype.enableOnceSpeakingEvents=function(){var e=this;this.setSpeechEventIfNotExists(),this.speechEvent.on("speaking",function(){e.session.emitEvent("publisherStartSpeaking",[new o.PublisherSpeakingEvent(e.session,"publisherStartSpeaking",e.connection,e.streamId)]),e.disableSpeakingEvents()}),this.speechEvent.on("stopped_speaking",function(){e.session.emitEvent("publisherStopSpeaking",[new o.PublisherSpeakingEvent(e.session,"publisherStopSpeaking",e.connection,e.streamId)]),e.disableSpeakingEvents()})},e.prototype.disableSpeakingEvents=function(){this.speechEvent.stop(),this.speechEvent=void 0},e.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},e.prototype.getSelectedIceCandidate=function(){var e=this;return new Promise(function(t,n){e.webRtcStats.getSelectedIceCandidateInfo().then(function(e){return t(e)}).catch(function(e){return n(e)})})},e.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},e.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},e.prototype.initWebRtcPeerSend=function(){var e=this;return new Promise(function(t,n){var i={audio:e.isSendAudio(),video:e.isSendVideo()},o={mediaStream:e.mediaStream,mediaConstraints:i,onicecandidate:e.connection.sendIceCandidate.bind(e.connection),iceServers:e.getIceServersConf(),simulcast:!1};e.webRtcPeer=e.displayMyRemote()?new r.WebRtcPeerSendrecv(o):new r.WebRtcPeerSendonly(o),e.webRtcPeer.generateOffer().then(function(r){!function(r){console.debug("Sending SDP offer to publish as "+e.streamId,r);var i="";e.isSendVideo()&&(i=e.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":e.isSendScreen()?"SCREEN":"CAMERA"),e.session.openvidu.sendRequest("publishVideo",{sdpOffer:r,doLoopback:e.displayMyRemote()||!1,hasAudio:e.isSendAudio(),hasVideo:e.isSendVideo(),audioActive:e.audioActive,videoActive:e.videoActive,typeOfVideo:i,frameRate:e.frameRate?e.frameRate:-1,videoDimensions:JSON.stringify(e.videoDimensions)},function(r,i){r?n(401===r.code?new u.OpenViduError(u.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(r)):(e.webRtcPeer.processAnswer(i.sdpAnswer).then(function(){e.streamId=i.id,e.isLocalStreamPublished=!0,e.publishedOnce=!0,e.displayMyRemote()&&e.remotePeerSuccessfullyEstablished(),e.ee.emitEvent("stream-created-by-publisher"),e.initWebRtcStats(),t()}).catch(function(e){n(e)}),console.info("'Publisher' successfully published to session"))})}(r)}).catch(function(e){n(new Error("(publish) SDP offer error: "+JSON.stringify(e)))})})},e.prototype.initWebRtcPeerReceive=function(){var e=this;return new Promise(function(t,n){var i={audio:e.inboundStreamOpts.hasAudio,video:e.inboundStreamOpts.hasVideo};console.debug("'Session.subscribe(Stream)' called. Constraints of generate SDP offer",i);var o={onicecandidate:e.connection.sendIceCandidate.bind(e.connection),mediaConstraints:i,iceServers:e.getIceServersConf(),simulcast:!1};e.webRtcPeer=new r.WebRtcPeerRecvonly(o),e.webRtcPeer.generateOffer().then(function(r){var i;i=r,console.debug("Sending SDP offer to subscribe to "+e.streamId,i),e.session.openvidu.sendRequest("receiveVideoFrom",{sender:e.streamId,sdpOffer:i},function(r,i){r?n(new Error("Error on recvVideoFrom: "+JSON.stringify(r))):e.webRtcPeer.processAnswer(i.sdpAnswer).then(function(){e.remotePeerSuccessfullyEstablished(),e.initWebRtcStats(),t()}).catch(function(e){n(e)})})}).catch(function(e){n(new Error("(subscribe) SDP offer error: "+JSON.stringify(e)))})})},e.prototype.remotePeerSuccessfullyEstablished=function(){this.mediaStream=this.webRtcPeer.pc.getRemoteStreams()[0],console.debug("Peer remote stream",this.mediaStream),this.mediaStream&&(this.ee.emitEvent("mediastream-updated"),!this.displayMyRemote()&&this.mediaStream.getAudioTracks()[0]&&this.session.speakingEventsEnabled&&this.enableSpeakingEvents())},e.prototype.initWebRtcStats=function(){this.webRtcStats=new i.WebRtcStats(this),this.webRtcStats.initWebRtcStats()},e.prototype.stopWebRtcStats=function(){this.webRtcStats&&this.webRtcStats.isEnabled()&&this.webRtcStats.stopWebRtcStats()},e.prototype.getIceServersConf=function(){return this.session.openvidu.advancedConfiguration.iceServers?"freeice"===this.session.openvidu.advancedConfiguration.iceServers?void 0:this.session.openvidu.advancedConfiguration.iceServers:this.session.openvidu.iceServers?this.session.openvidu.iceServers:void 0},e}()},"0ixB":function(e,t){var n=["stun:","turn:"];e.exports=function(e){var t,r,i=(e||{}).url||e,o={};return"string"==typeof i||i instanceof String?(i=i.trim(),(t=n[n.indexOf(i.slice(0,5))])?(r=(i=i.slice(5)).split("@"),o.username=e.username,o.credential=e.credential,r.length>1&&(i=r[1],r=r[0].split(":"),o.username=r[0],o.credential=(e||{}).credential||r[1]||""),o.url=t+i,o.urls=[o.url],o):e):e}},3:function(e,t,n){e.exports=n("zUnb")},"3QOI":function(e){e.exports=["stun.l.google.com:19302","stun1.l.google.com:19302","stun2.l.google.com:19302","stun3.l.google.com:19302","stun4.l.google.com:19302","stun.ekiga.net","stun.ideasip.com","stun.schlund.de","stun.stunprotocol.org:3478","stun.voiparound.com","stun.voipbuster.com","stun.voipstunt.com","stun.voxgratia.org","stun.services.mozilla.com"]},"3lFV":function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("HyLw");t.StreamManagerEvent=function(e){function t(t){return e.call(this,!1,t,"streamPlaying")||this}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},"5lRx":function(e,t){t.pack=function(e){throw new TypeError("Not yet implemented")},t.unpack=function(e){throw new TypeError("Not yet implemented")}},"7W0T":function(e,t,n){"use strict";t.__esModule=!0,function(e){e.AFTER="AFTER",e.APPEND="APPEND",e.BEFORE="BEFORE",e.PREPEND="PREPEND",e.REPLACE="REPLACE"}(t.VideoInsertMode||(t.VideoInsertMode={}))},"8HiN":function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("HyLw");t.StreamPropertyChangedEvent=function(e){function t(t,n,r,i,o,s){var a=e.call(this,!1,t,"streamPropertyChanged")||this;return a.stream=n,a.changedProperty=r,a.newValue=i,a.oldValue=o,a.reason=s,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},"8v+A":function(e,t,n){var r=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(e){r=!0}Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i});var i=n("Dfy+").EventEmitter,o=n("pRLG"),s=n("ZlF2"),a=n("I17Z"),u=5e3;function l(e){if(e){if(e instanceof Function)return{send:e};if(e.send instanceof Function)return e;if(e.postMessage instanceof Function)return e.send=e.postMessage,e;if(e.write instanceof Function)return e.send=e.write,e;if(void 0===e.onmessage&&!(e.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function c(e,t){r?(this.method=e,this.params=t):(Object.defineProperty(this,"method",{value:e,enumerable:!0}),Object.defineProperty(this,"params",{value:t,enumerable:!0}))}function d(e,t,n,s){var d=this;if(!e)throw new SyntaxError("Packer is not defined");if(!e.pack||!e.unpack)throw new SyntaxError("Packer is invalid");var p=function(e){if(!e)return{};for(var t in e){var n=e[t];"string"==typeof n&&(e[t]={response:n})}return e}(e.responseMethods);if(t instanceof Function){if(void 0!=n)throw new SyntaxError("There can't be parameters after onRequest");s=t,n=void 0,t=void 0}if(t&&t.send instanceof Function){if(n&&!(n instanceof Function))throw new SyntaxError("Only a function can be after transport");s=n,n=t,t=void 0}if(n instanceof Function){if(void 0!=s)throw new SyntaxError("There can't be parameters after onRequest");s=n,n=void 0}if(n&&n.send instanceof Function&&s&&!(s instanceof Function))throw new SyntaxError("Only a function can be after transport");t=t||{},i.call(this),s&&this.on("request",s),r?this.peerID=t.peerID:Object.defineProperty(this,"peerID",{value:t.peerID});var h=t.max_retries||0;function f(e){d.decode(e.data||e)}this.getTransport=function(){return n},this.setTransport=function(e){n&&(n.removeEventListener?n.removeEventListener("message",f):n.removeListener&&n.removeListener("data",f)),e&&(e.addEventListener?e.addEventListener("message",f):e.addListener&&e.addListener("data",f)),n=l(e)},r||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(n);var m=t.request_timeout||u,g=t.ping_request_timeout||m,y=t.response_timeout||u,v=t.duplicates_timeout||u,b=0,_=new a,w=new a,E=new a,S={};function C(e,t){var n=setTimeout(function(){E.remove(e,t)},v);E.set(n,e,t)}function x(t,n,i,o,s){c.call(this,t,n),this.getTransport=function(){return s},this.setTransport=function(e){s=l(e)},r||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var a=w.get(i,o);s||d.getTransport()||(r?this.duplicated=Boolean(a):Object.defineProperty(this,"duplicated",{value:Boolean(a)}));var u=p[t];this.pack=e.pack.bind(e,this,i),this.reply=function(t,n,r){if(t instanceof Function||t&&t.send instanceof Function){if(void 0!=n)throw new SyntaxError("There can't be parameters after callback");r=t,n=null,t=void 0}else if(n instanceof Function||n&&n.send instanceof Function){if(void 0!=r)throw new SyntaxError("There can't be parameters after callback");r=n,n=null}var s;return r=l(r),a&&clearTimeout(a.timeout),void 0!=o&&(t&&(t.dest=o),n&&(n.dest=o)),t||void 0!=n?(void 0!=d.peerID&&(t?t.from=d.peerID:n.from=d.peerID),s=e.pack(s=u?void 0==u.error&&t?{error:t}:{method:t?u.error:u.response,params:t||n}:{error:t,result:n},i)):s=a?a.message:e.pack({result:null},i),function(e,t,n){var r={message:e,timeout:setTimeout(function(){w.remove(t,n)},y)};w.set(r,t,n)}(s,i,o),(r=r||this.getTransport()||d.getTransport())?r.send(s):s}}function T(e){var t=S[e];if(t){delete S[e];var n=_.pop(t.id,t.dest);n&&(clearTimeout(n.timeout),C(t.id,t.dest))}}o(x,c),this.cancel=function(e){if(e)return T(e);for(var e in S)T(e)},this.close=function(){var e=this.getTransport();e&&e.close&&e.close(),this.cancel(),E.forEach(clearTimeout),w.forEach(function(e){clearTimeout(e.timeout)})},this.encode=function(t,n,r,i,o){if(n instanceof Function){if(void 0!=r)throw new SyntaxError("There can't be parameters after callback");o=n,i=void 0,r=void 0,n=void 0}else if(r instanceof Function){if(void 0!=i)throw new SyntaxError("There can't be parameters after callback");o=r,i=void 0,r=void 0}else if(i instanceof Function){if(void 0!=o)throw new SyntaxError("There can't be parameters after callback");o=i,i=void 0}void 0!=d.peerID&&((n=n||{}).from=d.peerID),void 0!=r&&((n=n||{}).dest=r);var s={method:t,params:n};if(o){var a=b++,u=0;function c(e,t){d.cancel(s),o(e,t)}var f={message:s=e.pack(s,a),callback:c,responseMethods:p[t]||{}},y=l(i);function v(e){return f.timeout=setTimeout(C,("ping"===t?g:m)*Math.pow(2,u++)),S[s]={id:a,dest:r},_.set(f,a,r),(e=e||y||d.getTransport())?e.send(s):s}function w(e){e=l(e),console.warn(u+" retry for request message:",s);var t=E.pop(a,r);return clearTimeout(t),v(e)}function C(){if(u0&&a.length>o){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",u.name,u.message)}}else a=s[t]=r,++e._eventsCount;return e}function d(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t1&&(t=arguments[1]),t instanceof Error)throw t;var u=new Error('Unhandled "error" event. ('+t+")");throw u.context=t,u}if(!(n=s[e]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=m(e,r),o=0;o=0;s--)if(r[s]===t||r[s].listener===t){a=r[s].listener,o=s;break}if(o<0)return this;0===o?r.shift():function(e,t){for(var n=o,r=n+1,i=e.length;r=0;o--)this.removeListener(e,t[o]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},FaRF:function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return i}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return s}),n.d(t,"__decorate",function(){return a}),n.d(t,"__param",function(){return u}),n.d(t,"__metadata",function(){return l}),n.d(t,"__awaiter",function(){return c}),n.d(t,"__generator",function(){return d}),n.d(t,"__exportStar",function(){return p}),n.d(t,"__values",function(){return h}),n.d(t,"__read",function(){return f}),n.d(t,"__spread",function(){return m}),n.d(t,"__await",function(){return g}),n.d(t,"__asyncGenerator",function(){return y}),n.d(t,"__asyncDelegator",function(){return v}),n.d(t,"__asyncValues",function(){return b}),n.d(t,"__makeTemplateObject",function(){return _}),n.d(t,"__importStar",function(){return w}),n.d(t,"__importDefault",function(){return E});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function u(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})}function d(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function m(){for(var e=[],t=0;t1||a(e,t)})})}function a(e,t){try{(n=i[e](t)).value instanceof g?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(e){c(o[0][3],e)}var n}function u(e){a("next",e)}function l(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function v(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:g(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}},FmsN:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},HyLw:function(e,t,n){"use strict";t.__esModule=!0,t.Event=function(){function e(e,t,n){this.hasBeenPrevented=!1,this.cancelable=e,this.target=t,this.type=n}return e.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},e.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},e}()},I17Z:function(e,t){function n(){var e={};this.forEach=function(t){for(var n in e){var r=e[n];for(var i in r)t(r[i])}},this.get=function(t,n){var r=e[n];if(void 0!=r)return r[t]},this.remove=function(t,n){var r=e[n];if(void 0!=r){for(var i in delete r[t],r)return!1;delete e[n]}},this.set=function(t,n,r){if(void 0==t)return this.remove(n,r);var i=e[r];void 0==i&&(e[r]=i={}),i[n]=t}}n.prototype.pop=function(e,t){var n=this.get(e,t);if(void 0!=n)return this.remove(e,t),n},e.exports=n},IWAk:function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("Vncp");t.Subscriber=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.element=i.targetElement,i.stream=t,i.properties=r,i}return r(t,e),t.prototype.subscribeToAudio=function(e){return this.stream.getMediaStream().getAudioTracks().forEach(function(t){t.enabled=e}),console.info("'Subscriber' has "+(e?"subscribed to":"unsubscribed from")+" its audio stream"),this},t.prototype.subscribeToVideo=function(e){return this.stream.getMediaStream().getVideoTracks().forEach(function(t){t.enabled=e}),console.info("'Subscriber' has "+(e?"subscribed to":"unsubscribed from")+" its video stream"),this},t}(i.StreamManager)},K1e4:function(e,t,n){var r,i,o=n("FmsN"),s=n("DEtd"),a=0,u=0;e.exports=function(e,t,n){var l=t&&n||0,c=t||[],d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){var h=o();null==d&&(d=r=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=i=16383&(h[6]<<8|h[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,g=f-a+(m-u)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||f>a)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=f,u=m,i=p;var y=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;c[l++]=y>>>24&255,c[l++]=y>>>16&255,c[l++]=y>>>8&255,c[l++]=255&y;var v=f/4294967296*1e4&268435455;c[l++]=v>>>8&255,c[l++]=255&v,c[l++]=v>>>24&15|16,c[l++]=v>>>16&255,c[l++]=p>>>8|128,c[l++]=255&p;for(var b=0;b<6;++b)c[l+b]=d[b];return t||s(c)}},KCZL:function(e,t){function n(){}e.exports=n,n.mixin=function(e){var t=e.prototype||e;t.isWildEmitter=!0,t.on=function(e,t,n){this.callbacks=this.callbacks||{};var r=3===arguments.length,i=r?arguments[2]:arguments[1];return i._groupName=r?arguments[1]:void 0,(this.callbacks[e]=this.callbacks[e]||[]).push(i),this},t.once=function(e,t,n){var r=this,i=3===arguments.length,o=i?arguments[2]:arguments[1];return this.on(e,i?arguments[1]:void 0,function t(){r.off(e,t),o.apply(this,arguments)}),this},t.releaseGroup=function(e){var t,n,r,i;for(t in this.callbacks=this.callbacks||{},this.callbacks)for(n=0,r=(i=this.callbacks[t]).length;nu&&(c=!1,b(),s.debug("Server did not respond to ping message #"+r+". Reconnecting... "),y.reconnectWs()))}))}else s.debug("Trying to send ping, but ping is not enabled");var r}function w(){d||(s.debug("Starting ping (if configured)"),d=!0,void 0!=e.heartbeat&&(t=setInterval(_,e.heartbeat),_()))}this.send=function(e,t,n){"ping"!==e&&s.debug("Request: method:"+e+" params:"+JSON.stringify(t));var r=Date.now();v.encode(e,t,function(i,o){if(i){try{s.error("ERROR:"+i.message+" in Request: method:"+e+" params:"+JSON.stringify(t)+" request:"+i.request),i.data&&s.error("ERROR DATA:"+JSON.stringify(i.data))}catch(e){}i.requestTime=r}n&&(void 0!=o&&"pong"!==o.value&&s.debug("Response: "+JSON.stringify(o)),n(i,o))})},this.close=function(){s.debug("Closing jsonRpcClient explicitly by client"),void 0!=t&&(s.debug("Clearing ping interval"),clearInterval(t)),d=!1,c=!1,e.sendCloseMessage?(s.debug("Sending close message"),this.send("closeSession",null,function(e,t){e&&s.error("Error sending close message: "+JSON.stringify(e)),y.close()})):y.close()},this.forceClose=function(e){y.forceClose(e)},this.reconnect=function(){y.reconnectWs()}}},Nb1D:function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("HyLw");t.SessionDisconnectedEvent=function(e){function t(t,n){var r=e.call(this,!0,t,"sessionDisconnected")||this;return r.reason=n,r}return r(t,e),t.prototype.callDefaultBehavior=function(){console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var e=this.target;for(var t in e.remoteConnections)e.remoteConnections[t].stream&&(e.remoteConnections[t].stream.disposeWebRtcPeer(),e.remoteConnections[t].stream.disposeMediaStream(),e.remoteConnections[t].stream.streamManager&&e.remoteConnections[t].stream.streamManager.removeAllVideos(),delete e.remoteStreamsCreated[e.remoteConnections[t].stream.streamId],e.remoteConnections[t].dispose()),delete e.remoteConnections[t]},t}(i.Event)},NwAM:function(e,t,n){var r=n("NRqn");t.JsonRpcClient=r},OCCK:function(e,t){function n(e,t,n){var r={audio:!1,video:{mandatory:{chromeMediaSource:e?"screen":"desktop",maxWidth:window.screen.width>1920?window.screen.width:1920,maxHeight:window.screen.height>1080?window.screen.height:1080},optional:[]}};return n&&(r.audio={mandatory:{chromeMediaSource:e?"screen":"desktop"},optional:[]}),t&&(r.video.mandatory.chromeMediaSourceId=t,r.audio&&r.audio.mandatory&&(r.audio.mandatory.chromeMediaSourceId=t)),r}function r(e){i?i.isLoaded?i.contentWindow.postMessage(e?e.forEach?{captureCustomSourceId:e}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){r(e)},100):o(function(){r(e)})}var i;function o(e){i?e():((i=document.createElement("iframe")).onload=function(){i.isLoaded=!0,e()},i.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",i.style.display="none",(document.body||document.documentElement).appendChild(i))}function s(){i?i.isLoaded?i.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(s,100):o(s)}window.getScreenId=function(e,t){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?e(null,"firefox",{video:{mozMediaSource:"window",mediaSource:"window"}}):(window.addEventListener("message",function t(r){r.data&&(r.data.chromeMediaSourceId&&("PermissionDeniedError"===r.data.chromeMediaSourceId?e("permission-denied"):e(null,r.data.chromeMediaSourceId,n(null,r.data.chromeMediaSourceId,r.data.canRequestAudioTrack)),window.removeEventListener("message",t)),r.data.chromeExtensionStatus&&(e(r.data.chromeExtensionStatus,null,n(r.data.chromeExtensionStatus)),window.removeEventListener("message",t)))}),t?setTimeout(function(){r(t)},100):setTimeout(r,100)):e({video:!0})},window.getScreenConstraints=function(e){o(function(){getScreenId(function(t,n,r){r||(r={video:!0}),e(t,r.video)})})},window.getChromeExtensionStatus=function(e){navigator.mozGetUserMedia?e("installed-enabled"):(window.addEventListener("message",function t(n){n.data&&n.data.chromeExtensionStatus&&(e(n.data.chromeExtensionStatus),window.removeEventListener("message",t))}),setTimeout(s,100))},t.getScreenId=getScreenId},OQ7p:function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("HyLw"),o=n("iZBl"),s=n("keth");t.StreamEvent=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n,r)||this;return s.stream=i,s.reason=o,s}return r(t,e),t.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof s.Session)console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof o.Publisher){console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var e=this.target.openvidu.publishers,t=0;t=0;--t)r[t].id===this.stream.streamId&&r.splice(t,1)}}},t}(i.Event)},PyKc:function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("HyLw");t.PublisherSpeakingEvent=function(e){function t(t,n,r,i){var o=e.call(this,!1,t,n)||this;return o.type=n,o.connection=r,o.streamId=i,o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},RckH:function(e,t,n){"use strict";global.WebSocket||global;var r=console,i=3e3;e.exports=function(e){var t,n,o=!1,s=e.uri,a=e.useSockJS,u=!1,l=!1;function c(e,t){try{r.debug("WebSocket connected to "+t)}catch(e){r.error(e)}}(n=a?new SockJS(s):new WebSocket(s)).onopen=function(){c(0,s),e.onconnected&&e.onconnected()},n.onerror=function(t){r.error("Could not connect to "+s+" (invoking onerror if defined)",t),e.onerror&&e.onerror(t)};var d=function(){3===n.readyState?o?r.debug("Connection closed by user"):(r.debug("Connection closed unexpectecly. Reconnecting..."),p(2e3,1)):r.debug("Close callback from previous websocket. Ignoring it")};function p(t,n){if(r.debug("reconnectToSameUri (attempt #"+n+", max="+t+")"),1===n){if(u)return void r.warn("Trying to reconnectToNewUri when reconnecting... Ignoring this reconnection.");u=!0,e.onreconnecting&&e.onreconnecting()}l?h(t,n,s):e.newWsUriOnReconnection?e.newWsUriOnReconnection(function(e,o){e?(r.debug(e),setTimeout(function(){p(t,n+1)},i)):h(t,n,o)}):h(t,n,s)}function h(o,l,h){var f;r.debug("Reconnection attempt #"+l),n.close(),s=h||s,(f=a?new SockJS(s):new WebSocket(s)).onopen=function(){r.debug("Reconnected after "+l+" attempts..."),c(0,s),u=!1,t(),e.onreconnected()&&e.onreconnected(),f.onclose=d},f.onerror=function(t){r.warn("Reconnection error: ",t),l===o?e.ondisconnect&&e.ondisconnect():setTimeout(function(){p(o,l+1)},i)},n=f}n.onclose=d,this.close=function(){o=!0,n.close()},this.forceClose=function(e){if(r.debug("Testing: Force WebSocket close"),e){r.debug("Testing: Change wsUri for "+e+" millis to simulate net failure");var t=s;s="wss://21.234.12.34.4:443/",l=!0,setTimeout(function(){r.debug("Testing: Recover good wsUri "+t),s=t,l=!1},e)}n.close()},this.reconnectWs=function(){r.debug("reconnectWs"),p(2e3,1)},this.send=function(e){n.send(e)},this.addEventListener=function(e,r){(t=function(){n.addEventListener(e,r)})()}}},ReYS:function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("swkC"),o=n("c652"),s=n("kPIN"),a=function(){function e(e){var t=this;this.configuration=e,this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],this.candidategatheringdone=!1,this.configuration.iceServers=this.configuration.iceServers&&this.configuration.iceServers.length>0?this.configuration.iceServers:i(),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.id=e.id?e.id:o.v4(),this.pc.onicecandidate=function(e){var n=e.candidate;n?(t.localCandidatesQueue.push({candidate:n.candidate}),t.candidategatheringdone=!1,t.configuration.onicecandidate(e.candidate)):t.candidategatheringdone||(t.candidategatheringdone=!0)},this.pc.onsignalingstatechange=function(){if("stable"===t.pc.signalingState)for(;t.iceCandidateList.length>0;)t.pc.addIceCandidate(t.iceCandidateList.shift())},this.start()}return e.prototype.start=function(){var e=this;return new Promise(function(t,n){"closed"===e.pc.signalingState&&n('The peer connection object is in "closed" state. This is most likely due to an invocation of the dispose method before accepting in the dialogue'),e.configuration.mediaStream&&e.pc.addStream(e.configuration.mediaStream),"sendonly"===e.configuration.mode&&"Chrome"===s.name&&"39"===s.version.toString().substring(0,2)&&(e.configuration.mode="sendrecv"),t()})},e.prototype.dispose=function(){var e=this;console.debug("Disposing WebRtcPeer");try{if(this.pc){if("closed"===this.pc.signalingState)return;this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.pc.getLocalStreams().forEach(function(t){e.streamStop(t)}),this.pc.close()}}catch(e){console.warn("Exception disposing webrtc peer "+e)}},e.prototype.generateOffer=function(){var e=this;return new Promise(function(t,n){var r,i=!0;e.configuration.mediaConstraints&&(r="boolean"!=typeof e.configuration.mediaConstraints.audio||e.configuration.mediaConstraints.audio,i="boolean"!=typeof e.configuration.mediaConstraints.video||e.configuration.mediaConstraints.video);var o={offerToReceiveAudio:+("sendonly"!==e.configuration.mode&&r),offerToReceiveVideo:+("sendonly"!==e.configuration.mode&&i)};console.debug("RTCPeerConnection constraints: "+JSON.stringify(o)),e.pc.createOffer(o).then(function(t){return console.debug("Created SDP offer"),e.pc.setLocalDescription(t)}).then(function(){var r=e.pc.localDescription;r?(console.debug("Local description set",r.sdp),t(r.sdp)):n("Local description is not defined")}).catch(function(e){return n(e)})})},e.prototype.processOffer=function(e){var t=this;return new Promise(function(n,r){var i={type:"offer",sdp:e};console.debug("SDP offer received, setting remote description"),"closed"===t.pc.signalingState&&r("PeerConnection is closed"),t.pc.setRemoteDescription(i).then(function(){return t.pc.createAnswer()}).then(function(e){return console.debug("Created SDP answer"),t.pc.setLocalDescription(e)}).then(function(){var e=t.pc.localDescription;e?(console.debug("Local description set",e.sdp),n(e.sdp)):r("Local description is not defined")}).catch(function(e){return r(e)})})},e.prototype.processAnswer=function(e){var t=this;return new Promise(function(n,r){var i={type:"answer",sdp:e};console.debug("SDP answer received, setting remote description"),"closed"===t.pc.signalingState&&r("RTCPeerConnection is closed"),t.pc.setRemoteDescription(i).then(function(){return n()}).catch(function(e){return r(e)})})},e.prototype.addIceCandidate=function(e){var t=this;return new Promise(function(n,r){switch(console.debug("Remote ICE candidate received",e),t.remoteCandidatesQueue.push(e),t.pc.signalingState){case"closed":r(new Error("PeerConnection object is closed"));break;case"stable":t.pc.remoteDescription&&t.pc.addIceCandidate(e).then(function(){return n()}).catch(function(e){return r(e)});break;default:t.iceCandidateList.push(e),n()}})},e.prototype.streamStop=function(e){e.getTracks().forEach(function(t){t.stop(),e.removeTrack(t)})},e}();t.WebRtcPeer=a,t.WebRtcPeerRecvonly=function(e){function t(t){return t.mode="recvonly",e.call(this,t)||this}return r(t,e),t}(a),t.WebRtcPeerSendonly=function(e){function t(t){return t.mode="sendonly",e.call(this,t)||this}return r(t,e),t}(a),t.WebRtcPeerSendrecv=function(e){function t(t){return t.mode="sendrecv",e.call(this,t)||this}return r(t,e),t}(a)},Vncp:function(e,t,n){"use strict";t.__esModule=!0;var r=n("3lFV"),i=n("ZOI4"),o=n("7W0T"),s=n("kaSr");t.StreamManager=function(){function e(e,t){var n=this;if(this.videos=[],this.lazyLaunchVideoElementCreatedEvent=!1,this.ee=new s,this.stream=e,this.stream.streamManager=this,this.remote=!this.stream.isLocal(),t){var o=void 0;"string"==typeof t?o=document.getElementById(t):t instanceof HTMLElement&&(o=t),o&&(this.firstVideoElement={targetElement:o,video:document.createElement("video"),id:""},this.targetElement=o,this.element=o)}this.canPlayListener=function(){n.stream.isLocal()?n.stream.displayMyRemote()?(console.info("Your own remote 'Stream' with id ["+n.stream.streamId+"] video is now playing"),n.ee.emitEvent("remoteVideoPlaying",[new i.VideoElementEvent(n.videos[0].video,n,"remoteVideoPlaying")])):(console.info("Your local 'Stream' with id ["+n.stream.streamId+"] video is now playing"),n.ee.emitEvent("videoPlaying",[new i.VideoElementEvent(n.videos[0].video,n,"videoPlaying")])):(console.info("Remote 'Stream' with id ["+n.stream.streamId+"] video is now playing"),n.ee.emitEvent("videoPlaying",[new i.VideoElementEvent(n.videos[0].video,n,"videoPlaying")])),n.ee.emitEvent("streamPlaying",[new r.StreamManagerEvent(n)])}}return e.prototype.on=function(e,t){var n=this;return this.ee.on(e,function(r){r?console.info("Event '"+e+"' triggered by '"+(n.remote?"Subscriber":"Publisher")+"'",r):console.info("Event '"+e+"' triggered by '"+(n.remote?"Subscriber":"Publisher")+"'"),t(r)}),"videoElementCreated"===e&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new i.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"!==e&&"videoPlaying"!==e||this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new r.StreamManagerEvent(this)]),this.ee.emitEvent("videoPlaying",[new i.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),this},e.prototype.once=function(e,t){return this.ee.once(e,function(n){n?console.info("Event '"+e+"' triggered once",n):console.info("Event '"+e+"' triggered once"),t(n)}),"videoElementCreated"===e&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new i.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"!==e&&"videoPlaying"!==e||this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new r.StreamManagerEvent(this)]),this.ee.emitEvent("videoPlaying",[new i.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),this},e.prototype.off=function(e,t){return t?this.ee.off(e,t):this.ee.removeAllListeners(e),this},e.prototype.addVideoElement=function(e){this.initializeVideoProperties(e);for(var t=0,n=this.videos;t=0;--t)this.stream.session.streamManagers[t]===this&&this.stream.session.streamManagers.splice(t,1);this.videos.forEach(function(t){t.video.removeEventListener("canplay",e.canPlayListener),t.targetElement&&(t.video.parentNode.removeChild(t.video),e.ee.emitEvent("videoElementDestroyed",[new i.VideoElementEvent(t.video,e,"videoElementDestroyed")])),t.video.srcObject=null,e.videos.filter(function(e){return!e.targetElement})})},e.prototype.disassociateVideo=function(e){for(var t=!1,n=0;n=0&&e.candidate.indexOf(p.portNumber)>=0&&e.candidate.indexOf(p.priority)>=0});p.raw=h[0]?h[0].candidate:"ERROR: Cannot find local candidate in list of sent ICE candidates"}else p="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";var f=l[s];f?(h=e.stream.getRemoteIceCandidateList().filter(function(e){return!!e.candidate&&e.candidate.indexOf(f.ipAddress)>=0&&e.candidate.indexOf(f.portNumber)>=0&&e.candidate.indexOf(f.priority)>=0}),f.raw=h[0]?h[0].candidate:"ERROR: Cannot find remote candidate in list of received ICE candidates"):f="ERROR: No active remote ICE candidate. Probably ICE-TCP is being used",t({googCandidatePair:a,localCandidate:p,remoteCandidate:f})}else n("Selected ICE candidate info only available for Chrome")},function(e){n(e)})})},e.prototype.sendStatsToHttpEndpoint=function(e){var t=this,n=function(n){var r=new XMLHttpRequest,i=e.webrtc.httpEndpoint;r.open("POST",i,!0),r.setRequestHeader("Content-type","application/json"),r.onreadystatechange=function(){4===r.readyState&&200===r.status&&console.log("WebRtc stats successfully sent to "+i+" for stream "+t.stream.streamId+" of connection "+t.stream.connection.connectionId)},r.send(n)};this.getStatsAgnostic(this.stream.getRTCPeerConnection(),function(i){if(-1!==r.name.indexOf("Firefox"))i.forEach(function(r){var i={};if("inbound-rtp"===r.type&&null!==r.nackCount&&!1===r.isRemote&&r.id.startsWith("inbound")&&r.remoteId.startsWith("inbound")){var o="webrtc_inbound_"+r.mediaType+"_"+r.ssrc,s={bytesReceived:(r.bytesReceived-t.stats.inbound[r.mediaType].bytesReceived)/t.statsInterval,jitter:1e3*r.jitter,packetsReceived:(r.packetsReceived-t.stats.inbound[r.mediaType].packetsReceived)/t.statsInterval,packetsLost:(r.packetsLost-t.stats.inbound[r.mediaType].packetsLost)/t.statsInterval},a={bytesReceived:"bytes",jitter:"ms",packetsReceived:"packets",packetsLost:"packets"};"video"===r.mediaType&&(s.framesDecoded=(r.framesDecoded-t.stats.inbound.video.framesDecoded)/t.statsInterval,s.nackCount=(r.nackCount-t.stats.inbound.video.nackCount)/t.statsInterval,a.framesDecoded="frames",a.nackCount="packets",t.stats.inbound.video.framesDecoded=r.framesDecoded,t.stats.inbound.video.nackCount=r.nackCount),t.stats.inbound[r.mediaType].bytesReceived=r.bytesReceived,t.stats.inbound[r.mediaType].packetsReceived=r.packetsReceived,t.stats.inbound[r.mediaType].packetsLost=r.packetsLost,(i={"@timestamp":new Date(r.timestamp).toISOString(),exec:e.exec,component:e.component,stream:"webRtc",type:o,stream_type:"composed_metrics",units:a})[o]=s,n(JSON.stringify(i))}else"outbound-rtp"===r.type&&!1===r.isRemote&&r.id.toLowerCase().includes("outbound")&&(o="webrtc_outbound_"+r.mediaType+"_"+r.ssrc,s={bytesSent:(r.bytesSent-t.stats.outbound[r.mediaType].bytesSent)/t.statsInterval,packetsSent:(r.packetsSent-t.stats.outbound[r.mediaType].packetsSent)/t.statsInterval},a={bytesSent:"bytes",packetsSent:"packets"},"video"===r.mediaType&&(s.framesEncoded=(r.framesEncoded-t.stats.outbound.video.framesEncoded)/t.statsInterval,a.framesEncoded="frames",t.stats.outbound.video.framesEncoded=r.framesEncoded),t.stats.outbound[r.mediaType].bytesSent=r.bytesSent,t.stats.outbound[r.mediaType].packetsSent=r.packetsSent,(i={"@timestamp":new Date(r.timestamp).toISOString(),exec:e.exec,component:e.component,stream:"webRtc",type:o,stream_type:"composed_metrics",units:a})[o]=s,n(JSON.stringify(i)))});else if(-1!==r.name.indexOf("Chrome")||-1!==r.name.indexOf("Opera"))for(var o=0,s=Object.keys(i);o1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=i||n?("desktop"==i&&(a.mandatory.chromeMediaSourceId=n),e(null,a)):t?function(e){if(!e)throw'"callback" parameter is mandatory.';if(n)return e(n);r=e,window.postMessage("audio-plus-tab","*")}(function(t,n){a.mandatory.chromeMediaSourceId=t,n&&(a.canRequestAudioTrack=!0),e("PermissionDeniedError"==t?t:null,a)}):s(function(t){a.mandatory.chromeMediaSourceId=t,e("PermissionDeniedError"==t?t:null,a)})}window.opera||navigator.userAgent.indexOf(" OPR/"),window,window.addEventListener("message",function(e){e.origin==window.location.origin&&function(e){if("PermissionDeniedError"==e){if(r)return r("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==e&&(i="desktop"),e.sourceId&&r&&r(n=e.sourceId,!0===e.canRequestAudioTrack)}(e.data)}),t.getScreenConstraints=a,t.getScreenConstraintsWithAudio=function(e){a(e,!0)},t.isChromeExtensionAvailable=function(e){if(e){if("desktop"==i)return e(!0);window.postMessage("are-you-there","*"),setTimeout(function(){e("screen"!=i)},2e3)}},t.getChromeExtensionStatus=function(e,t){if(o)return t("not-chrome");2!=arguments.length&&(t=e,e="lfcgfepafnobdloecchnfaclibenjold");var n=document.createElement("img");n.src="chrome-extension://"+e+"/icon.png",n.onload=function(){i="screen",window.postMessage("are-you-there","*"),setTimeout(function(){t("screen"==i?"installed-disabled":"installed-enabled")},2e3)},n.onerror=function(){t("not-installed")}},t.getSourceId=s},iZBl:function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("keth"),o=n("0fCr"),s=n("Vncp"),a=n("OQ7p"),u=n("8HiN"),l=n("ZOI4"),c=n("p571"),d=n("kPIN");t.Publisher=function(e){function t(t,n,r){var s=e.call(this,new o.Stream(r.session?r.session:new i.Session(r),{publisherProperties:n,mediaConstraints:{}}),t)||this;return s.accessAllowed=!1,s.isSubscribedToRemote=!1,s.accessDenied=!1,s.properties=n,s.openvidu=r,s.stream.ee.on("local-stream-destroyed",function(e){s.stream.isLocalStreamPublished=!1;var t=new a.StreamEvent(!0,s,"streamDestroyed",s.stream,e);s.emitEvent("streamDestroyed",[t]),t.callDefaultBehavior()}),s}return r(t,e),t.prototype.publishAudio=function(e){var t=this;this.stream.audioActive!==e&&(this.stream.getMediaStream().getAudioTracks().forEach(function(t){t.enabled=e}),this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"audioActive",newValue:e,reason:"publishAudio"},function(n,r){n?console.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t.session,t.stream,"audioActive",e,!e,"publishAudio")]),t.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t,t.stream,"audioActive",e,!e,"publishAudio")]))}),this.stream.audioActive=e,console.info("'Publisher' has "+(e?"published":"unpublished")+" its audio stream"))},t.prototype.publishVideo=function(e){var t=this;this.stream.videoActive!==e&&(this.stream.getMediaStream().getVideoTracks().forEach(function(t){t.enabled=e}),this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"videoActive",newValue:e,reason:"publishVideo"},function(n,r){n?console.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t.session,t.stream,"videoActive",e,!e,"publishVideo")]),t.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t,t.stream,"videoActive",e,!e,"publishVideo")]))}),this.stream.videoActive=e,console.info("'Publisher' has "+(e?"published":"unpublished")+" its video stream"))},t.prototype.subscribeToRemote=function(e){this.isSubscribedToRemote=e=void 0===e||e,this.stream.subscribeToMyRemote(e)},t.prototype.on=function(t,n){var r=this;return e.prototype.on.call(this,t,n),"streamCreated"===t&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new a.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.on("stream-created-by-publisher",function(){r.emitEvent("streamCreated",[new a.StreamEvent(!1,r,"streamCreated",r.stream,"")])})),"remoteVideoPlaying"===t&&this.stream.displayMyRemote()&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new l.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===t&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===t&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},t.prototype.once=function(t,n){var r=this;return e.prototype.once.call(this,t,n),"streamCreated"===t&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new a.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",function(){r.emitEvent("streamCreated",[new a.StreamEvent(!1,r,"streamCreated",r.stream,"")])})),"remoteVideoPlaying"===t&&this.stream.displayMyRemote()&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new l.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===t&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===t&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},t.prototype.initialize=function(){var e=this;return new Promise(function(t,n){var r=function(t){e.accessDenied=!0,e.accessAllowed=!1,n(t)},i=function(n){if(e.accessAllowed=!0,e.accessDenied=!1,e.openvidu.isMediaStreamTrack(e.properties.audioSource)&&(n.removeTrack(n.getAudioTracks()[0]),n.addTrack(e.properties.audioSource)),e.openvidu.isMediaStreamTrack(e.properties.videoSource)&&(n.removeTrack(n.getVideoTracks()[0]),n.addTrack(e.properties.videoSource)),n.getAudioTracks()[0]){var r=void 0!==e.stream.audioActive&&null!==e.stream.audioActive?e.stream.audioActive:!!e.stream.outboundStreamOpts.publisherProperties.publishAudio;n.getAudioTracks()[0].enabled=r}if(n.getVideoTracks()[0]&&(r=void 0!==e.stream.videoActive&&null!==e.stream.videoActive?e.stream.videoActive:!!e.stream.outboundStreamOpts.publisherProperties.publishVideo,n.getVideoTracks()[0].enabled=r),e.videoReference=document.createElement("video"),e.videoReference.srcObject=n,e.stream.setMediaStream(n),e.stream.displayMyRemote()||e.stream.updateMediaStreamInVideos(),e.firstVideoElement&&e.createVideoElement(e.firstVideoElement.targetElement,e.properties.insertMode),delete e.firstVideoElement,e.stream.isSendVideo())if(e.stream.isSendScreen())e.videoReference.onloadedmetadata=function(){e.stream.videoDimensions={width:e.videoReference.videoWidth,height:e.videoReference.videoHeight},e.screenShareResizeInterval=setInterval(function(){var t=n.getVideoTracks()[0].getSettings(),r="Chrome"===d.name?e.videoReference.videoWidth:t.width,i="Chrome"===d.name?e.videoReference.videoHeight:t.height;if(e.stream.isLocalStreamPublished&&(r!==e.stream.videoDimensions.width||i!==e.stream.videoDimensions.height)){var o={width:e.stream.videoDimensions.width,height:e.stream.videoDimensions.height};e.stream.videoDimensions={width:r||0,height:i||0},e.session.openvidu.sendRequest("streamPropertyChanged",{streamId:e.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(e.stream.videoDimensions),reason:"screenResized"},function(t,n){t?console.error("Error sending 'streamPropertyChanged' event",t):(e.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(e.session,e.stream,"videoDimensions",e.stream.videoDimensions,o,"screenResized")]),e.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(e,e.stream,"videoDimensions",e.stream.videoDimensions,o,"screenResized")]))})}},500),e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[])};else{var i=n.getVideoTracks()[0].getSettings(),o=i.width,s=i.height;e.stream.videoDimensions=-1!==d.name.toLowerCase().indexOf("mobile")&&window.innerHeight>window.innerWidth?{width:s||0,height:o||0}:{width:o||0,height:s||0},e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[])}else e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[]);t()};e.openvidu.generateMediaConstraints(e.properties).then(function(t){e.stream.setOutboundStreamOptions({mediaConstraints:t,publisherProperties:e.properties});var o={};if(e.stream.isSendVideo()||e.stream.isSendAudio()){var s=void 0===t.audio||t.audio;o.audio=!e.stream.isSendScreen()&&s,o.video=t.video;var a=Date.now();e.setPermissionDialogTimer(1250),navigator.mediaDevices.getUserMedia(o).then(function(n){e.clearPermissionDialogTimer(a,1250),e.stream.isSendScreen()&&e.stream.isSendAudio()?(o.audio=s,o.video=!1,a=Date.now(),e.setPermissionDialogTimer(1250),navigator.mediaDevices.getUserMedia(o).then(function(t){e.clearPermissionDialogTimer(a,1250),n.addTrack(t.getAudioTracks()[0]),i(n)}).catch(function(n){var i,o;switch(e.clearPermissionDialogTimer(a,1250),n.name.toLowerCase()){case"notfounderror":i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o=n.toString(),r(new c.OpenViduError(i,o));break;case"notallowederror":i=c.OpenViduErrorName.DEVICE_ACCESS_DENIED,o=n.toString(),r(new c.OpenViduError(i,o));break;case"overconstrainederror":"deviceid"===n.constraint.toLowerCase()?(i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o="Audio input device with deviceId '"+t.video.deviceId.exact+"' not found"):(i=c.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Audio input device doesn't support the value passed for constraint '"+n.constraint+"'"),r(new c.OpenViduError(i,o))}})):i(n)}).catch(function(n){var i,o;switch(e.clearPermissionDialogTimer(a,1250),n.name.toLowerCase()){case"notfounderror":navigator.mediaDevices.getUserMedia({audio:!1,video:t.video}).then(function(e){e.getVideoTracks().forEach(function(e){e.stop()}),i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o=n.toString(),r(new c.OpenViduError(i,o))}).catch(function(e){i=c.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o=n.toString(),r(new c.OpenViduError(i,o))});break;case"notallowederror":i=e.stream.isSendScreen()?c.OpenViduErrorName.SCREEN_CAPTURE_DENIED:c.OpenViduErrorName.DEVICE_ACCESS_DENIED,o=n.toString(),r(new c.OpenViduError(i,o));break;case"overconstrainederror":navigator.mediaDevices.getUserMedia({audio:!1,video:t.video}).then(function(e){e.getVideoTracks().forEach(function(e){e.stop()}),"deviceid"===n.constraint.toLowerCase()?(i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o="Audio input device with deviceId '"+t.audio.deviceId.exact+"' not found"):(i=c.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Audio input device doesn't support the value passed for constraint '"+n.constraint+"'"),r(new c.OpenViduError(i,o))}).catch(function(e){"deviceid"===n.constraint.toLowerCase()?(i=c.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o="Video input device with deviceId '"+t.video.deviceId.exact+"' not found"):(i=c.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Video input device doesn't support the value passed for constraint '"+n.constraint+"'"),r(new c.OpenViduError(i,o))})}})}else n(new c.OpenViduError(c.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time when calling 'OpenVidu.initPublisher'"))}).catch(function(e){r(e)})})},t.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},t.prototype.setPermissionDialogTimer=function(e){var t=this;this.permissionDialogTimeout=setTimeout(function(){t.emitEvent("accessDialogOpened",[])},e)},t.prototype.clearPermissionDialogTimer=function(e,t){clearTimeout(this.permissionDialogTimeout),Date.now()-e>t&&this.emitEvent("accessDialogClosed",[])},t}(s.StreamManager)},kPIN:function(e,t,n){(function(e){var r;(function(){"use strict";var i={function:!0,object:!0},o=i[typeof window]&&window||this,s=i[typeof t]&&t&&i[typeof e]&&e&&!e.nodeType&&e&&"object"==typeof global&&global;!s||s.global!==s&&s.window!==s&&s.self!==s||(o=s);var a=Math.pow(2,53)-1,u=/\bOpera/,l=Object.prototype,c=l.hasOwnProperty,d=l.toString;function p(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function h(e){return e=v(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:p(e)}function f(e,t){for(var n in e)c.call(e,n)&&t(e[n],n,e)}function m(e){return null==e?p(e):d.call(e).slice(8,-1)}function g(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function y(e,t){var n=null;return function(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=a)for(;++n3?"WebKit":/\bOpera\b/.test(V)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(j)&&"WebKit"||!j&&/\bMSIE\b/i.test(t)&&("Mac OS"==B?"Tasman":"Trident")||"WebKit"==j&&/\bPlayStation\b(?! Vita\b)/i.test(V)&&"NetFront")&&(j=[a]),"IE"==V&&(a=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(V+=" Mobile",B="Windows Phone "+(/\+$/.test(a)?a:a+".x"),N.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(V="IE Mobile",B="Windows Phone 8.x",N.unshift("desktop mode"),L||(L=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=V&&"Trident"==j&&(a=/\brv:([\d.]+)/.exec(t))&&(V&&N.push("identifying as "+V+(L?" "+L:"")),V="IE",L=a[1]),D){if(p="global",/^(?:boolean|number|string|undefined)$/.test(b=null!=(c=n)?typeof c[p]:"number")||"object"==b&&!c[p])m(a=n.runtime)==w?(V="Adobe AIR",B=a.flash.system.Capabilities.os):m(a=n.phantom)==C?(V="PhantomJS",L=(a=a.version||null)&&a.major+"."+a.minor+"."+a.patch):"number"==typeof k.documentMode&&(a=/\bTrident\/(\d+)/i.exec(t))?((a=+a[1]+4)!=(L=[L,k.documentMode])[1]&&(N.push("IE "+L[1]+" mode"),j&&(j[1]=""),L[1]=a),L="IE"==V?String(L[1].toFixed(1)):L[0]):"number"==typeof k.documentMode&&/^(?:Chrome|Firefox)\b/.test(V)&&(N.push("masking as "+V+" "+L),V="IE",L="11.0",j=["Trident"],B="Windows");else if(x&&(R=(a=x.lang.System).getProperty("os.arch"),B=B||a.getProperty("os.name")+" "+a.getProperty("os.version")),T){try{L=n.require("ringo/engine").version.join("."),V="RingoJS"}catch(e){(a=n.system)&&a.global.system==n.system&&(V="Narwhal",B||(B=a[0].os||null))}V||(V="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(a=n.process)&&("object"==typeof a.versions&&("string"==typeof a.versions.electron?(N.push("Node "+a.versions.node),V="Electron",L=a.versions.electron):"string"==typeof a.versions.nw&&(N.push("Chromium "+L,"Node "+a.versions.node),V="NW.js",L=a.versions.nw)),V||(V="Node.js",R=a.arch,B=a.platform,L=(L=/[\d.]+/.exec(a.version))?L[0]:null));B=B&&h(B)}if(L&&(a=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(L)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(D&&i.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(M=/b/i.test(a)?"beta":"alpha",L=L.replace(RegExp(a+"\\+?$"),"")+("beta"==M?I:O)+(/\d+\+?/.exec(a)||"")),"Fennec"==V||"Firefox"==V&&/\b(?:Android|Firefox OS)\b/.test(B))V="Firefox Mobile";else if("Maxthon"==V&&L)L=L.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(F))"Xbox 360"==F&&(B=null),"Xbox 360"==F&&/\bIEMobile\b/.test(t)&&N.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(V)&&(!V||F||/Browser|Mobi/.test(V))||"Windows CE"!=B&&!/Mobi/i.test(t))if("IE"==V&&D)try{null===n.external&&N.unshift("platform preview")}catch(e){N.unshift("embedded")}else(/\bBlackBerry\b/.test(F)||/\bBB10\b/.test(t))&&(a=(RegExp(F.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||L)?(B=((a=[a,/BB10/.test(t)])[1]?(F=null,z="BlackBerry"):"Device Software")+" "+a[0],L=null):this!=f&&"Wii"!=F&&(D&&A||/Opera/.test(V)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==V&&/\bOS X (?:\d+\.){2,}/.test(B)||"IE"==V&&(B&&!/^Win/.test(B)&&L>5.5||/\bWindows XP\b/.test(B)&&L>8||8==L&&!/\bTrident\b/.test(t)))&&!u.test(a=e.call(f,t.replace(u,"")+";"))&&a.name&&(a="ing as "+a.name+((a=a.version)?" "+a:""),u.test(V)?(/\bIE\b/.test(a)&&"Mac OS"==B&&(B=null),a="identify"+a):(a="mask"+a,V=P?h(P.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(a)&&(B=null),D||(L=null)),j=["Presto"],N.push(a));else V+=" Mobile";(a=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(a=[parseFloat(a.replace(/\.(\d)$/,".0$1")),a],"Safari"==V&&"+"==a[1].slice(-1)?(V="WebKit Nightly",M="alpha",L=a[1].slice(0,-1)):L!=a[1]&&L!=(a[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(L=null),a[1]=(/\bChrome\/([\d.]+)/i.exec(t)||0)[1],537.36==a[0]&&537.36==a[2]&&parseFloat(a[1])>=28&&"WebKit"==j&&(j=["Blink"]),D&&(_||a[1])?(j&&(j[1]="like Chrome"),a=a[1]||((a=a[0])<530?1:a<532?2:a<532.05?3:a<533?4:a<534.03?5:a<534.07?6:a<534.1?7:a<534.13?8:a<534.16?9:a<534.24?10:a<534.3?11:a<535.01?12:a<535.02?"13+":a<535.07?15:a<535.11?16:a<535.19?17:a<536.05?18:a<536.1?19:a<537.01?20:a<537.11?"21+":a<537.13?23:a<537.18?24:a<537.24?25:a<537.36?26:"Blink"!=j?"27":"28")):(j&&(j[1]="like Safari"),a=(a=a[0])<400?1:a<500?2:a<526?3:a<533?4:a<534?"4+":a<535?5:a<537?6:a<538?7:a<601?8:"8"),j&&(j[1]+=" "+(a+="number"==typeof a?".x":/[.+]/.test(a)?"":"+")),"Safari"==V&&(!L||parseInt(L)>45)&&(L=a)),"Opera"==V&&(a=/\bzbov|zvav$/.exec(B))?(V+=" ",N.unshift("desktop mode"),"zvav"==a?(V+="Mini",L=null):V+="Mobile",B=B.replace(RegExp(" *"+a+"$"),"")):"Safari"==V&&/\bChrome\b/.exec(j&&j[1])&&(N.unshift("desktop mode"),V="Chrome Mobile",L=null,/\bOS X\b/.test(B)?(z="Apple",B="iOS 4.3+"):B=null),L&&0==L.indexOf(a=/[\d.]+$/.exec(B))&&t.indexOf("/"+a+"-")>-1&&(B=v(B.replace(a,""))),j&&!/\b(?:Avant|Nook)\b/.test(V)&&(/Browser|Lunascape|Maxthon/.test(V)||"Safari"!=V&&/^iOS/.test(B)&&/\bSafari\b/.test(j[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(V)&&j[1])&&(a=j[j.length-1])&&N.push(a),N.length&&(N=["("+N.join("; ")+")"]),z&&F&&F.indexOf(z)<0&&N.push("on "+z),F&&N.push((/^on /.test(N[N.length-1])?"":"on ")+F),B&&(a=/ ([\d.+]+)$/.exec(B),l=a&&"/"==B.charAt(B.length-a[0].length-1),B={architecture:32,family:a&&!l?B.replace(a[0],""):B,version:a?a[1]:null,toString:function(){var e=this.version;return this.family+(e&&!l?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(a=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(R))&&!/\bi686\b/i.test(R)?(B&&(B.architecture=64,B.family=B.family.replace(RegExp(" *"+a),"")),V&&(/\bWOW64\b/i.test(t)||D&&/\w(?:86|32)$/.test(i.cpuClass||i.platform)&&!/\bWin64; x64\b/i.test(t))&&N.unshift("32-bit")):B&&/^OS X/.test(B.family)&&"Chrome"==V&&parseFloat(L)>=39&&(B.architecture=64),t||(t=null);var H={};return H.description=t,H.layout=j&&j[0],H.manufacturer=z,H.name=V,H.prerelease=M,H.product=F,H.ua=t,H.version=V&&L,H.os=B||{architecture:null,family:null,version:null,toString:function(){return"null"}},H.parse=e,H.toString=function(){return this.description||""},H.version&&N.unshift(L),H.name&&N.unshift(V),B&&V&&(B!=String(B).split(" ")[0]||B!=V.split(" ")[0]&&!F)&&N.push(F?"("+B+")":"on "+B),N.length&&(H.description=N.join(" ")),H}();o.platform=b,void 0===(r=(function(){return b}).call(t,n,t,e))||(e.exports=r)}).call(this)}).call(this,n("YuTi")(e))},kaSr:function(e,t,n){var r;!function(t){"use strict";function i(){}var o=i.prototype,s=t.EventEmitter;function a(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function u(e){return function(){return this[e].apply(this,arguments)}}o.getListeners=function(e){var t,n,r=this._getEvents();if(e instanceof RegExp)for(n in t={},r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n]);else t=r[e]||(r[e]=[]);return t},o.flattenListeners=function(e){var t,n=[];for(t=0;t0){var o=[];e.to.forEach(function(e){o.push(e.connectionId)}),i.to=o}else i.to=[];i.data=e.data?e.data:"",i.type=e.type?e.type:"",t.openvidu.sendRequest("sendMessage",{message:JSON.stringify(i)},function(e,t){e?r(e):n()})})},e.prototype.on=function(e,t){if(this.ee.on(e,function(n){n?console.info("Event '"+e+"' triggered by 'Session'",n):console.info("Event '"+e+"' triggered by 'Session'"),t(n)}),"publisherStartSpeaking"===e||"publisherStopSpeaking"===e)for(var n in this.speakingEventsEnabled=!0,this.remoteConnections){var r=this.remoteConnections[n].stream;r&&!r.speechEvent&&r.hasAudio&&r.enableSpeakingEvents()}return this},e.prototype.once=function(e,t){if(this.ee.once(e,function(n){n?console.info("Event '"+e+"' triggered by 'Session'",n):console.info("Event '"+e+"' triggered by 'Session'"),t(n)}),"publisherStartSpeaking"===e||"publisherStopSpeaking"===e)for(var n in this.speakingEventsEnabled=!0,this.remoteConnections){var r=this.remoteConnections[n].stream;r&&!r.speechEvent&&r.hasAudio&&r.enableOnceSpeakingEvents()}return this},e.prototype.off=function(e,t){if(t?this.ee.off(e,t):this.ee.removeAllListeners(e),"publisherStartSpeaking"===e||"publisherStopSpeaking"===e)for(var n in this.speakingEventsEnabled=!1,this.remoteConnections){var r=this.remoteConnections[n].stream;r&&r.speechEvent&&r.disableSpeakingEvents()}return this},e.prototype.onParticipantJoined=function(e){var t=this;this.getConnection(e.id,"").then(function(t){console.warn("Connection "+e.id+" already exists in connections list")}).catch(function(n){var i=new r.Connection(t,e);t.remoteConnections[e.id]=i,t.ee.emitEvent("connectionCreated",[new o.ConnectionEvent(!1,t,"connectionCreated",i,"")])})},e.prototype.onParticipantLeft=function(e){var t=this;this.getRemoteConnection(e.connectionId,"Remote connection "+e.connectionId+" unknown when 'onParticipantLeft'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(n){if(n.stream){var r=n.stream,i=new l.StreamEvent(!0,t,"streamDestroyed",r,e.reason);t.ee.emitEvent("streamDestroyed",[i]),i.callDefaultBehavior(),delete t.remoteStreamsCreated[r.streamId]}delete t.remoteConnections[n.connectionId],t.ee.emitEvent("connectionDestroyed",[new o.ConnectionEvent(!1,t,"connectionDestroyed",n,e.reason)])}).catch(function(e){console.error(e)})},e.prototype.onParticipantPublished=function(e){var t,n=this,i=function(e){n.remoteConnections[e.connectionId]=e,n.remoteStreamsCreated[e.stream.streamId]||n.ee.emitEvent("streamCreated",[new l.StreamEvent(!1,n,"streamCreated",e.stream,"")]),n.remoteStreamsCreated[e.stream.streamId]=!0};this.getRemoteConnection(e.id,"Remote connection '"+e.id+"' unknown when 'onParticipantPublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(n){t=n,e.metadata=n.data,t.options=e,t.initRemoteStreams(e.streams),i(t)}).catch(function(o){t=new r.Connection(n,e),i(t)})},e.prototype.onParticipantUnpublished=function(e){var t=this;e.connectionId===this.connection.connectionId?this.stopPublisherStream(e.reason):this.getRemoteConnection(e.connectionId,"Remote connection '"+e.connectionId+"' unknown when 'onParticipantUnpublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(n){var r=new l.StreamEvent(!0,t,"streamDestroyed",n.stream,e.reason);t.ee.emitEvent("streamDestroyed",[r]),r.callDefaultBehavior();var i=n.stream.streamId;delete t.remoteStreamsCreated[i],n.removeStream(i)}).catch(function(e){console.error(e)})},e.prototype.onParticipantEvicted=function(e){e.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,e.reason)},e.prototype.onNewMessage=function(e){var t=this;console.info("New signal: "+JSON.stringify(e)),this.getConnection(e.from,"Connection '"+e.from+"' unknow when 'onNewMessage'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))+". Existing local connection: "+this.connection.connectionId).then(function(n){t.ee.emitEvent("signal",[new u.SignalEvent(t,e.type,e.data,n)]),t.ee.emitEvent("signal:"+e.type,[new u.SignalEvent(t,e.type,e.data,n)])}).catch(function(e){console.error(e)})},e.prototype.onStreamPropertyChanged=function(e){var t=this;this.getRemoteConnection(e.connectionId,"Remote connection "+e.connectionId+" unknown when 'onStreamPropertyChanged'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(n){if(n.stream&&n.stream.streamId===e.streamId){var r=n.stream,i=void 0;switch(e.property){case"audioActive":i=r.audioActive,e.newValue="true"===e.newValue,r.audioActive=e.newValue;break;case"videoActive":i=r.videoActive,e.newValue="true"===e.newValue,r.videoActive=e.newValue;break;case"videoDimensions":i=r.videoDimensions,e.newValue=JSON.parse(JSON.parse(e.newValue)),r.videoDimensions=e.newValue}t.ee.emitEvent("streamPropertyChanged",[new c.StreamPropertyChangedEvent(t,r,e.property,e.newValue,i,e.reason)]),r.streamManager.emitEvent("streamPropertyChanged",[new c.StreamPropertyChangedEvent(r.streamManager,r,e.property,e.newValue,i,e.reason)])}else console.error("No stream with streamId '"+e.streamId+"' found for connection '"+e.connectionId+"' on 'streamPropertyChanged' event")}).catch(function(e){console.error(e)})},e.prototype.recvIceCandidate=function(e){var t={candidate:e.candidate,sdpMid:e.sdpMid,sdpMLineIndex:e.sdpMLineIndex,toJSON:function(){return{candidate:e.candidate}}};this.getConnection(e.endpointName,"Connection not found for endpoint "+e.endpointName+". Ice candidate will be ignored: "+t).then(function(n){var r=n.stream;r.getWebRtcPeer().addIceCandidate(t).catch(function(t){console.error("Error adding candidate for "+r.streamId+" stream of endpoint "+e.endpointName+": "+t)})}).catch(function(e){console.error(e)})},e.prototype.onSessionClosed=function(e){console.info("Session closed: "+JSON.stringify(e));var t=e.sessionId;void 0!==t?this.ee.emitEvent("session-closed",[{session:t}]):console.warn("Session undefined on session closed",e)},e.prototype.onLostConnection=function(){console.warn("Lost connection in Session "+this.sessionId),this.sessionId&&!this.connection.disposed&&this.leave(!0,"networkDisconnect")},e.prototype.onRecoveredConnection=function(){console.warn("Recovered connection in Session "+this.sessionId),this.ee.emitEvent("connectionRecovered",[])},e.prototype.onMediaError=function(e){console.error("Media error: "+JSON.stringify(e));var t=e.error;t?this.ee.emitEvent("error-media",[{error:t}]):console.warn("Received undefined media error. Params:",e)},e.prototype.onRecordingStarted=function(e){this.ee.emitEvent("recordingStarted",[new s.RecordingEvent(this,"recordingStarted",e.id,e.name)])},e.prototype.onRecordingStopped=function(e){this.ee.emitEvent("recordingStopped",[new s.RecordingEvent(this,"recordingStopped",e.id,e.name)])},e.prototype.emitEvent=function(e,t){this.ee.emitEvent(e,t)},e.prototype.leave=function(e,t){var n=this;if(e=!!e,console.info("Leaving Session (forced="+e+")"),this.connection){if(this.connection.disposed||e?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(e,t){e&&console.error(e),n.openvidu.closeWs()}),this.stopPublisherStream(t),!this.connection.disposed){var r=new a.SessionDisconnectedEvent(this,t);this.ee.emitEvent("sessionDisconnected",[r]),r.callDefaultBehavior()}}else console.warn("You were not connected to the session "+this.sessionId)},e.prototype.connectAux=function(e){var t=this;return new Promise(function(n,i){t.openvidu.startWs(function(s){if(s)i(s);else{var a={token:e||"",session:t.sessionId,metadata:t.options.metadata?t.options.metadata:"",secret:t.openvidu.getSecret(),recorder:t.openvidu.getRecorder()};t.openvidu.sendRequest("joinRoom",a,function(e,s){if(e)i(e);else{t.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==t.openvidu.role,forceUnpublish:"MODERATOR"===t.openvidu.role,forceDisconnect:"MODERATOR"===t.openvidu.role},t.connection=new r.Connection(t),t.connection.connectionId=s.id,t.connection.data=s.metadata;var a={connections:new Array,streams:new Array};s.value.forEach(function(e){var n=new r.Connection(t,e);t.remoteConnections[n.connectionId]=n,a.connections.push(n),n.stream&&(t.remoteStreamsCreated[n.stream.streamId]=!0,a.streams.push(n.stream))}),t.ee.emitEvent("connectionCreated",[new o.ConnectionEvent(!1,t,"connectionCreated",t.connection,"")]),a.connections.forEach(function(e){t.ee.emitEvent("connectionCreated",[new o.ConnectionEvent(!1,t,"connectionCreated",e,"")])}),a.streams.forEach(function(e){t.ee.emitEvent("streamCreated",[new l.StreamEvent(!1,t,"streamCreated",e,"")])}),n()}})}})})},e.prototype.stopPublisherStream=function(e){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[e]))},e.prototype.stringClientMetadata=function(e){return"string"!=typeof e?JSON.stringify(e):e},e.prototype.getConnection=function(e,t){var n=this;return new Promise(function(r,i){var o=n.remoteConnections[e];o?r(o):n.connection.connectionId===e?r(n.connection):i(new d.OpenViduError(d.OpenViduErrorName.GENERIC_ERROR,t))})},e.prototype.getRemoteConnection=function(e,t){var n=this;return new Promise(function(r,i){var o=n.remoteConnections[e];o?r(o):i(new d.OpenViduError(d.OpenViduErrorName.GENERIC_ERROR,t))})},e.prototype.processToken=function(e){var t=new URL(e);this.sessionId=t.searchParams.get("sessionId");var n=t.searchParams.get("secret"),r=t.searchParams.get("recorder"),i=t.searchParams.get("turnUsername"),o=t.searchParams.get("turnCredential"),s=t.searchParams.get("role");if(n&&(this.openvidu.secret=n),r&&(this.openvidu.recorder=!0),i&&o){var a="turn:"+t.hostname+":3478";this.openvidu.iceServers=[{urls:["stun:"+t.hostname+":3478"]},{urls:[a,a+"?transport=tcp"],username:i,credential:o}],console.log("TURN temp credentials ["+i+":"+o+"]")}s&&(this.openvidu.role=s),this.openvidu.wsUri="wss://"+t.host+"/openvidu"},e}()},p571:function(e,t,n){"use strict";t.__esModule=!0,function(e){e.BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",e.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",e.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",e.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",e.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",e.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",e.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",e.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",e.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",e.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",e.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",e.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",e.GENERIC_ERROR="GENERIC_ERROR"}(t.OpenViduErrorName||(t.OpenViduErrorName={})),t.OpenViduError=function(e,t){this.name=e,this.message=t}},pRLG:function(e,t){e.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},swkC:function(e,t,n){"use strict";var r=n("0ixB");e.exports=function(e){var t,i={stun:(e||{}).stun||n("3QOI"),turn:(e||{}).turn||n("dBhu")},o=(e||{}).turnCount||0;function s(e,t){for(var n,o=[],s=[].concat(i[e]);s.length&&o.lengthn&&t[r]<0&&(n=t[r]);return n}(u,a);n.emit("volume_change",e,d);var t=0;if(e>d&&!n.speaking){for(var r=n.speakingHistory.length-3;r=2&&(n.speaking=!0,n.emit("speaking"))}else if(ed)),g()}},c)};return g(),n}},yLV6:function(e,t,n){var r;!function(i,o,s,a){"use strict";var u,l=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),d="function",p=Math.round,h=Math.abs,f=Date.now;function m(e,t,n){return setTimeout(E(e,n),t)}function g(e,t,n){return!!Array.isArray(e)&&(y(e,n[t],n),!0)}function y(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==a)for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),e.apply(this,arguments)}}u="function"!=typeof Object.assign?function(e){if(e===a||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n-1}function k(e){return e.trim().split(/\s+/g)}function A(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;rn[t]}):r.sort()),r}function N(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=te(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,u=s?s.center:o.center,l=t.center=ne(r);t.timeStamp=f(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=se(u,l),t.distance=oe(u,l),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};t.eventType!==z&&o.eventType!==B||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=ie(t.deltaX,t.deltaY);var c,d,p=re(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=h(p.x)>h(p.y)?p.x:p.y,t.scale=s?(c=s.pointers,oe((d=r)[0],d[1],J)/oe(c[0],c[1],J)):1,t.rotation=s?function(e,t){return se(r[1],r[0],J)+se(e[1],e[0],J)}(s.pointers):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,s=e.lastInterval||t,u=t.timeStamp-s.timeStamp;if(t.eventType!=U&&(u>F||s.velocity===a)){var l=t.deltaX-s.deltaX,c=t.deltaY-s.deltaY,d=re(u,l,c);r=d.x,i=d.y,n=h(d.x)>h(d.y)?d.x:d.y,o=ie(l,c),e.lastInterval=t}else n=s.velocity,r=s.velocityX,i=s.velocityY,o=s.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var m=e.element;O(t.srcEvent.target,m)&&(m=t.srcEvent.target),t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function te(e){for(var t=[],n=0;n=h(t)?e<0?G:W:t<0?q:Z}function oe(e,t,n){n||(n=X);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function se(e,t,n){return n||(n=X),180*Math.atan2(t[n[1]]-e[n[1]],t[n[0]]-e[n[0]])/Math.PI}$.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(D(this.element),this.evWin,this.domHandler)}};var ae={mousedown:z,mousemove:2,mouseup:B},ue="mousedown",le="mousemove mouseup";function ce(){this.evEl=ue,this.evWin=le,this.pressed=!1,$.apply(this,arguments)}w(ce,$,{handler:function(e){var t=ae[e.type];t&z&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=B),this.pressed&&(t&B&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var de={pointerdown:z,pointermove:2,pointerup:B,pointercancel:U,pointerout:U},pe={2:"touch",3:"pen",4:"mouse",5:"kinect"},he="pointerdown",fe="pointermove pointerup pointercancel";function me(){this.evEl=he,this.evWin=fe,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(he="MSPointerDown",fe="MSPointerMove MSPointerUp MSPointerCancel"),w(me,$,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=de[r],o=pe[e.pointerType]||e.pointerType,s="touch"==o,a=A(t,e.pointerId,"pointerId");i&z&&(0===e.button||s)?a<0&&(t.push(e),a=t.length-1):i&(B|U)&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(a,1))}});var ge={touchstart:z,touchmove:2,touchend:B,touchcancel:U},ye="touchstart",ve="touchstart touchmove touchend touchcancel";function be(){this.evTarget=ye,this.evWin=ve,this.started=!1,$.apply(this,arguments)}w(be,$,{handler:function(e){var t=ge[e.type];if(t===z&&(this.started=!0),this.started){var n=(function(e,t){var n=P(e.touches),r=P(e.changedTouches);return t&(B|U)&&(n=R(n.concat(r),"identifier",!0)),[n,r]}).call(this,e,t);t&(B|U)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var _e={touchstart:z,touchmove:2,touchend:B,touchcancel:U},we="touchstart touchmove touchend touchcancel";function Ee(){this.evTarget=we,this.targetIds={},$.apply(this,arguments)}w(Ee,$,{handler:function(e){var t=_e[e.type],n=(function(e,t){var n=P(e.touches),r=this.targetIds;if(t&(2|z)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,s=P(e.changedTouches),a=[],u=this.target;if(o=n.filter(function(e){return O(e.target,u)}),t===z)for(i=0;i-1&&r.splice(e,1)},Se)}}w(Ce,$,{handler:function(e,t,n){var r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)(function(e,t){e&z?(this.primaryTouch=t.changedPointers[0].identifier,xe.call(this,t)):e&(B|U)&&xe.call(this,t)}).call(this,t,n);else if(r&&(function(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-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){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n=Ne&&r(t.options.event+je(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;et.threshold&&i&t.direction},attrTest:function(e){return ze.prototype.attrTest.call(this,e)&&(this.state&Pe||!(this.state&Pe)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ve(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Ue,ze,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Pe)},emit:function(e){1!==e.scale&&(e.additionalEvent=this.options.event+(e.scale<1?"in":"out")),this._super.emit.call(this,e)}}),w(He,Le,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distancet.time;if(this._input=e,!r||!n||e.eventType&(B|U)&&!i)this.reset();else if(e.eventType&z)this.reset(),this._timer=m(function(){this.state=Me,this.tryEmit()},t.time,this);else if(e.eventType&B)return Me;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===Me&&(e&&e.eventType&B?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),w(Ge,ze,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Pe)}}),w(We,ze,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Q|Y,pointers:1},getTouchAction:function(){return Be.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Q|Y)?t=e.overallVelocity:n&Q?t=e.overallVelocityX:n&Y&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&h(t)>this.options.velocity&&e.eventType&B},emit:function(e){var t=Ve(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(qe,Le,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function u(){for(var e=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(H);function J(e){return e}function ee(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Y(J,e)}function te(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof A?e[0]:ee(n)(Z(e,r))}var ne=function(e){function t(){var n=e.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,t.prototype),n}return i(t,e),t}(Error),re=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return i(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(w),ie=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return i(t,e),t}(C),oe=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype[S]=function(){return new ie(this)},t.prototype.lift=function(e){var t=new se(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new ne;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(C),ce=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new w).add(this.source.subscribe(new pe(this.getSubject(),this))),e.closed?(this._connection=null,e=w.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return ae()(this)},t}(A).prototype,de={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ce._subscribe},_isComplete:{value:ce._isComplete,writable:!0},getSubject:{value:ce.getSubject},connect:{value:ce.connect},refCount:{value:ce.refCount}},pe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return i(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(ie);function he(){return new oe}function fe(){return function(e){return ae()((t=he,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,de);return r.source=e,r.subjectFactory=n,r})(e));var t}}function me(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var ge=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==t?me({providedIn:t.providedIn||"root",factory:t.factory}):void 0}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),ye="__parameters__";function ve(e,t,n){var r=function(e){return function(){for(var t=[],n=0;n ");else if("object"==typeof t){var i=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];i.push(o+":"+("string"==typeof s?JSON.stringify(s):ke(s)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(Qe,"\n ")}function $e(e,t){return new Error(Je(e,t))}var et=void 0;function tt(e){var t=et;return et=e,t}function nt(e,t){if(void 0===t&&(t=0),void 0===et)throw new Error("inject() must be called from an injection context");if(null===et){var n=e.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;throw new Error("Injector: NOT_FOUND ["+ke(e)+"]")}return et.get(e,8&t?null:void 0,t)}String;var rt=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),it=new function(e){this.full="6.0.9",this.major="6.0.9".split(".")[0],this.minor="6.0.9".split(".")[1],this.patch="6.0.9".split(".").slice(2).join(".")}("6.0.9"),ot="ngDebugContext",st="ngOriginalError",at="ngErrorLogger";function ut(e){return e[ot]}function lt(e){return e[st]}function ct(e){for(var t=[],n=1;n0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),Jt=function(){function e(){this._applications=new Map,$t.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),$t.findTestabilityInTree(this,e,t)},e.ctorParameters=function(){return[]},e}(),$t=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),en=!0,tn=!1,nn=new ge("AllowMultipleToken");function rn(){return tn=!0,en}var on=function(e,t){this.name=e,this.token=t};function sn(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,i=new ge(r);return function(t){void 0===t&&(t=[]);var o=an();if(!o||o.injector.get(nn,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var s=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(Yt&&!Yt.destroyed&&!Yt.injector.get(nn,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Yt=e.get(un);var t=e.get(_t,null);t&&t.forEach(function(e){return e()})}(ze.create({providers:s,name:r}))}return function(e){var t=an();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function an(){return Yt&&!Yt.destroyed?Yt:null}var un=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,i="noop"===(n=t?t.ngZone:void 0)?new Kt:("zone.js"===n?void 0:n)||new Ht({enableLongStackTrace:rn()}),o=[{provide:Ht,useValue:i}];return i.run(function(){var t=ze.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),s=n.injector.get(dt,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return dn(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(e){s.handleError(e)}})}),function(e,t,i){try{var o=((s=n.injector.get(gt)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return ht(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}var s}(s,i)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=this.injector.get(Tt),i=ln({},t);return r.createCompiler([i]).compileModuleAsync(e).then(function(e){return n.bootstrapModuleFactory(e,i)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(cn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+ke(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function ln(e,t){return Array.isArray(t)?t.reduce(ln,e):o({},e,t)}var cn=function(){function e(e,t,n,r,i,o){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=rn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new A(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),u=new A(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Ht.assertNotInAngularZone(),Oe(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Ht.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=te(a,u.pipe(fe()))}return e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Ot?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof Dt?null:this._injector.get(Lt),o=n.create(ze.NULL,[],t||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var s=o.injector.get(Xt,null);return s&&o.injector.get(Jt).registerApplication(o.location.nativeElement,s),this._loadComponent(o),rn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Bt(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;dn(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Et,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),dn(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=zt("ApplicationRef#tick()"),e}();function dn(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var pn=function(){},hn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),fn=function(){},mn=function(e){this.nativeElement=e},gn=function(){},yn=function(){function e(){this.dirty=!0,this._results=[],this.changes=new Ut,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[Te()]=function(){return this._results[Te()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),vn=function(){},bn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},_n=function(){function e(e,t){this._compiler=e,this._config=t||bn}return e.prototype.load=function(e){return this._compiler instanceof xt?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,r=a(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("crnd")(i).then(function(e){return e[o]}).then(function(e){return wn(e,i,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=a(e.split("#"),2),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[i+o]}).then(function(e){return wn(e,r,i)})},e}();function wn(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var En=function(){},Sn=function(){},Cn=function(){},xn=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Tn?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),Tn=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return i(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,u([i+1,0],t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return function e(t,n,r){t.childNodes.forEach(function(t){t instanceof Tn&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof Tn&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof Tn&&e(t,n,r)})}(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(xn),On=new Map;function In(e){return On.get(e)||null}function kn(e){On.set(e.nativeNode,e)}function An(e,t){var n=Nn(e),r=Nn(t);return n&&r?function(e,t,n){for(var r=e[Te()](),i=t[Te()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(e,t,An):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Ie(e,t)}var Pn=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),Rn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function Nn(e){return!!Mn(e)&&(Array.isArray(e)||!(e instanceof Map)&&Te()in e)}function Mn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var Dn=function(){function e(){}return e.prototype.supports=function(e){return Nn(e)},e.prototype.create=function(e){return new jn(e)},e}(),Ln=function(e,t){return t},jn=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Ln}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0")}else this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();hr.hasOwnProperty(t)&&!lr.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(_r(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),vr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,br=/([^\#-~ |!])/g;function _r(e){return e.replace(/&/g,"&").replace(vr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(br,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function wr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Er=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Sr=/^url\(([^)]+)\)$/,Cr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),xr=function(){};function Tr(e,t,n){var r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function Or(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Ir(e,t){return e.nodes[t]}function kr(e,t){return e.nodes[t]}function Ar(e,t){return e.nodes[t]}function Pr(e,t){return e.nodes[t]}function Rr(e,t){return e.nodes[t]}var Nr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Mr(e,t,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return Dr(n,t),n}(i,e)}function Dr(e,t){e[ot]=t,e[at]=t.logError.bind(t)}function Lr(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}var jr=function(){},Vr=new Map;function Fr(e){var t=Vr.get(e);return t||(t=ke(e)+"_"+Vr.size,Vr.set(e,t)),t}var zr="$$undefined",Br="$$empty";function Ur(e){return{id:zr,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var Hr=0;function Gr(e,t,n,r){return!(!(2&e.state)&&Ie(e.oldValues[t.bindingIndex+n],r))}function Wr(e,t,n,r){return!!Gr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function qr(e,t,n,r){var i=e.oldValues[t.bindingIndex+n];if(1&e.state||!An(i,r)){var o=t.bindings[n].name;throw Mr(Nr.createDebugContext(e,t.nodeIndex),o+": "+i,o+": "+r,0!=(1&e.state))}}function Zr(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Qr(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Yr(e,t,n,r){try{return Zr(33554432&e.def.nodes[t].flags?kr(e,t).componentView:e),Nr.handleEvent(e,t,n,r)}catch(t){e.root.errorHandler.handleError(t)}}function Kr(e){return e.parent?kr(e.parent,e.parentNodeDef.nodeIndex):null}function Xr(e){return e.parent?e.parentNodeDef.parent:null}function Jr(e,t){switch(201347067&t.flags){case 1:return kr(e,t.nodeIndex).renderElement;case 2:return Ir(e,t.nodeIndex).renderText}}function $r(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function ei(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function ti(e){return 1<-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var l=e._providers.length;return e._def.providersByKey[t.tokenKey]={flags:5120,value:t.token.ngInjectableDef.factory,deps:[],index:l,token:t.token},e._providers[l]=wi,e._providers[l]=Oi(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{tt(o)}}function Oi(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(Ti(e,n[0]));case 2:return new t(Ti(e,n[0]),Ti(e,n[1]));case 3:return new t(Ti(e,n[0]),Ti(e,n[1]),Ti(e,n[2]));default:for(var i=new Array(r),o=0;o=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Ri(n,t),Nr.dirtyParentQueries(r),Ai(r),r}function ki(e,t,n){var r=t?Jr(t,t.def.lastRenderRootNode):e.renderElement;ai(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Ai(e){ai(e,3,null,null,void 0)}function Pi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ri(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Ni=new Object;function Mi(e,t,n,r,i,o){return new Di(e,t,n,r,i,o)}var Di=function(e){function t(t,n,r,i,o,s){var a=e.call(this)||this;return a.selector=t,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return i(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=si(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=Nr.createRootView(e,t||[],n,i,r,Ni),a=Ar(s,o).instance;return n&&s.renderer.setAttribute(kr(s,0).renderElement,"ng-version",it.full),new Li(s,new zi(s),a)},t}(Ot),Li=function(e){function t(t,n,r){var i=e.call(this)||this;return i._view=t,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return i(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new mn(kr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Gi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(function(){});function ji(e,t,n){return new Vi(e,t,n)}var Vi=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new mn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Gi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Xr(e),e=e.parent;return e?new Gi(e,t):new Gi(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Ii(this._data,e);Nr.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new zi(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof Dt||(i=o.get(Lt));var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,s=e;return i=s._view,o=(n=this._data).viewContainer._embeddedViews,null!==(r=t)&&void 0!==r||(r=o.length),i.viewContainerParent=this._view,Pi(o,r,i),function(e,t){var n=Kr(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,i),Nr.dirtyParentQueries(i),ki(n,r>0?o[r-1]:null,i),s.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,s,a=this._embeddedViews.indexOf(e._view);return i=t,s=(o=(n=this._data).viewContainer._embeddedViews)[r=a],Ri(o,r),null==i&&(i=o.length),Pi(o,i,s),Nr.dirtyParentQueries(s),Ai(s),ki(n,i>0?o[i-1]:null,s),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Ii(this._data,e);t&&Nr.destroyView(t)},e.prototype.detach=function(e){var t=Ii(this._data,e);return t?new zi(t):null},e}();function Fi(e){return new zi(e)}var zi=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return ai(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Zr(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Nr.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Nr.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Nr.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Ai(this._view),Nr.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Bi(e,t){return new Ui(e,t)}var Ui=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return i(t,e),t.prototype.createEmbeddedView=function(e){return new zi(Nr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new mn(kr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(En);function Hi(e,t){return new Gi(e,t)}var Gi=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=ze.THROW_IF_NOT_FOUND),Nr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Fr(e)},t)},e}();function Wi(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=kr(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Ir(e,n.nodeIndex).renderText;if(20240&n.flags)return Ar(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function qi(e){return new Zi(e.renderer)}var Zi=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=a(hi(t),2),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return ho(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(mo(e,t,n,i[0]));case 2:return r(mo(e,t,n,i[0]),mo(e,t,n,i[1]));case 3:return r(mo(e,t,n,i[0]),mo(e,t,n,i[1]),mo(e,t,n,i[2]));default:for(var s=Array(o),a=0;a0)l=m,Ro(m)||(c=m);else for(;l&&f===l.nodeIndex+l.childCount;){var v=l.parent;v&&(v.childFlags|=l.childFlags,v.childMatchedQueries|=l.childMatchedQueries),c=(l=v)&&Ro(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||jr,updateRenderer:r||jr,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:h}}function Ro(e){return 0!=(1&e.flags)&&null===e.element.name}function No(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function Mo(e,t,n,r){var i=jo(e.root,e.renderer,e,t,n);return Vo(i,e.component,r),Fo(i),i}function Do(e,t,n){var r=jo(e,e.renderer,null,null,t);return Vo(r,n,n),Fo(r),r}function Lo(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,jo(e.root,i,e,t.element.componentProvider,n)}function jo(e,t,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function Vo(e,t,n){e.component=t,e.context=n}function Fo(e){var t;$r(e)&&(t=kr(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i0&&_i(e,t,0,n)&&(h=!0),p>1&&_i(e,t,1,r)&&(h=!0),p>2&&_i(e,t,2,i)&&(h=!0),p>3&&_i(e,t,3,o)&&(h=!0),p>4&&_i(e,t,4,s)&&(h=!0),p>5&&_i(e,t,5,a)&&(h=!0),p>6&&_i(e,t,6,u)&&(h=!0),p>7&&_i(e,t,7,l)&&(h=!0),p>8&&_i(e,t,8,c)&&(h=!0),p>9&&_i(e,t,9,d)&&(h=!0),h}(e,t,n,r,i,o,s,a,u,l,c,d);case 2:return function(e,t,n,r,i,o,s,a,u,l,c,d){var p=!1,h=t.bindings,f=h.length;if(f>0&&Wr(e,t,0,n)&&(p=!0),f>1&&Wr(e,t,1,r)&&(p=!0),f>2&&Wr(e,t,2,i)&&(p=!0),f>3&&Wr(e,t,3,o)&&(p=!0),f>4&&Wr(e,t,4,s)&&(p=!0),f>5&&Wr(e,t,5,a)&&(p=!0),f>6&&Wr(e,t,6,u)&&(p=!0),f>7&&Wr(e,t,7,l)&&(p=!0),f>8&&Wr(e,t,8,c)&&(p=!0),f>9&&Wr(e,t,9,d)&&(p=!0),p){var m=t.text.prefix;f>0&&(m+=Ao(n,h[0])),f>1&&(m+=Ao(r,h[1])),f>2&&(m+=Ao(i,h[2])),f>3&&(m+=Ao(o,h[3])),f>4&&(m+=Ao(s,h[4])),f>5&&(m+=Ao(a,h[5])),f>6&&(m+=Ao(u,h[6])),f>7&&(m+=Ao(l,h[7])),f>8&&(m+=Ao(c,h[8])),f>9&&(m+=Ao(d,h[9]));var g=Ir(e,t.nodeIndex).renderText;e.renderer.setValue(g,m)}return p}(e,t,n,r,i,o,s,a,u,l,c,d);case 16384:return function(e,t,n,r,i,o,s,a,u,l,c,d){var p=Ar(e,t.nodeIndex),h=p.instance,f=!1,m=void 0,g=t.bindings.length;return g>0&&Gr(e,t,0,n)&&(f=!0,m=yo(e,p,t,0,n,m)),g>1&&Gr(e,t,1,r)&&(f=!0,m=yo(e,p,t,1,r,m)),g>2&&Gr(e,t,2,i)&&(f=!0,m=yo(e,p,t,2,i,m)),g>3&&Gr(e,t,3,o)&&(f=!0,m=yo(e,p,t,3,o,m)),g>4&&Gr(e,t,4,s)&&(f=!0,m=yo(e,p,t,4,s,m)),g>5&&Gr(e,t,5,a)&&(f=!0,m=yo(e,p,t,5,a,m)),g>6&&Gr(e,t,6,u)&&(f=!0,m=yo(e,p,t,6,u,m)),g>7&&Gr(e,t,7,l)&&(f=!0,m=yo(e,p,t,7,l,m)),g>8&&Gr(e,t,8,c)&&(f=!0,m=yo(e,p,t,8,c,m)),g>9&&Gr(e,t,9,d)&&(f=!0,m=yo(e,p,t,9,d,m)),m&&h.ngOnChanges(m),65536&t.flags&&Or(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),f}(e,t,n,r,i,o,s,a,u,l,c,d);case 32:case 64:case 128:return function(e,t,n,r,i,o,s,a,u,l,c,d){var p=t.bindings,h=!1,f=p.length;if(f>0&&Wr(e,t,0,n)&&(h=!0),f>1&&Wr(e,t,1,r)&&(h=!0),f>2&&Wr(e,t,2,i)&&(h=!0),f>3&&Wr(e,t,3,o)&&(h=!0),f>4&&Wr(e,t,4,s)&&(h=!0),f>5&&Wr(e,t,5,a)&&(h=!0),f>6&&Wr(e,t,6,u)&&(h=!0),f>7&&Wr(e,t,7,l)&&(h=!0),f>8&&Wr(e,t,8,c)&&(h=!0),f>9&&Wr(e,t,9,d)&&(h=!0),h){var m=Pr(e,t.nodeIndex),g=void 0;switch(201347067&t.flags){case 32:g=new Array(p.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=i),f>3&&(g[3]=o),f>4&&(g[4]=s),f>5&&(g[5]=a),f>6&&(g[6]=u),f>7&&(g[7]=l),f>8&&(g[8]=c),f>9&&(g[9]=d);break;case 64:g={},f>0&&(g[p[0].name]=n),f>1&&(g[p[1].name]=r),f>2&&(g[p[2].name]=i),f>3&&(g[p[3].name]=o),f>4&&(g[p[4].name]=s),f>5&&(g[p[5].name]=a),f>6&&(g[p[6].name]=u),f>7&&(g[p[7].name]=l),f>8&&(g[p[8].name]=c),f>9&&(g[p[9].name]=d);break;case 128:var y=n;switch(f){case 1:g=y.transform(n);break;case 2:g=y.transform(r);break;case 3:g=y.transform(r,i);break;case 4:g=y.transform(r,i,o);break;case 5:g=y.transform(r,i,o,s);break;case 6:g=y.transform(r,i,o,s,a);break;case 7:g=y.transform(r,i,o,s,a,u);break;case 8:g=y.transform(r,i,o,s,a,u,l);break;case 9:g=y.transform(r,i,o,s,a,u,l,c);break;case 10:g=y.transform(r,i,o,s,a,u,l,c,d)}}m.value=g}return h}(e,t,n,r,i,o,s,a,u,l,c,d);default:throw"unreachable"}}(e,t,r,i,o,s,a,l,c,d,p,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&qr(e,t,0,n),p>1&&qr(e,t,1,r),p>2&&qr(e,t,2,i),p>3&&qr(e,t,3,o),p>4&&qr(e,t,4,s),p>5&&qr(e,t,5,a),p>6&&qr(e,t,6,u),p>7&&qr(e,t,7,l),p>8&&qr(e,t,8,c),p>9&&qr(e,t,9,d)}(e,t,r,i,o,s,a,u,l,c,d,p):function(e,t,n){for(var r=0;r0){var o=new Set(e.modules);as.forEach(function(t,r){if(o.has(r.ngInjectableDef.providedIn)){var i={token:r,flags:t.flags|(n?4096:0),deps:ri(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[Fr(r)]=i}})}}(e=e.factory(function(){return jr})),e):e}(r))}var ss=new Map,as=new Map,us=new Map;function ls(e){ss.set(e.token,e),"function"==typeof e.token&&e.token.ngInjectableDef&&"function"==typeof e.token.ngInjectableDef.providedIn&&as.set(e.token,e)}function cs(e,t){var n=si(si(t.viewDefFactory).nodes[0].element.componentView);us.set(e,n)}function ds(){ss.clear(),as.clear(),us.clear()}function ps(e){if(0===ss.size)return e;var t=function(e){for(var t=[],n=null,r=0;r=Qs.length?Qs[a]=null:f.tNode=Qs[a],Zs?(Ys=null,qs.view!==ra&&2!==qs.type||(ngDevMode&&zs(qs.child,"previousOrParentNode's child should not have been set."),qs.child=f)):qs&&(ngDevMode&&zs(qs.next,"previousOrParentNode's next property should not have been set "+a+"."),qs.next=f,qs.dynamicLContainerNode&&(qs.dynamicLContainerNode.next=f))),qs=f,Zs=!0,e=f,y=1),s=oa(e.data,e),t(y,n),aa(),da()}finally{sa(s),Zs=m,qs=g}return e}function da(){for(var e=ra.child;null!==e;e=e.next)if(0!==e.dynamicViewCount&&e.views)for(var t=e,n=0;n"}(r))),ngDevMode&&Bs(i.data,"Component's host node should have an LView attached.");var o,s=i.data;8==(8&s.flags)&&6&s.flags&&(ngDevMode&&ma(e,Js),fa(s,i,ra.tView.directives[e],(o=Js[e],Array.isArray(o)?o[0]:o)))}function ha(e){var t=ga(e);ngDevMode&&Bs(t.data,"Component host node should be attached to an LView"),fa(t.data,t,t.view.tView.directives[t.tNode.flags>>13],e)}function fa(e,t,n,r){var i=oa(e,t),o=n.template;try{o(1&e.flags?3:2,r),aa(),da()}finally{sa(i)}}function ma(e,t){null==t&&(t=Xs),e>=(t?t.length:0)&&Us("index expected to be a valid data index")}function ga(e){ngDevMode&&Bs(e,"expecting component got null");var t=e[ea];return ngDevMode&&Bs(e,"object is not a component"),t}i(function(e,t,n){var r=$s.call(this,e.data,n)||this;return r._lViewNode=e,r},$s=function(){function e(e,t){this._view=e,this.context=t}return e.prototype._setComponentContext=function(e,t){this._view=e,this.context=t},e.prototype.destroy=function(){},e.prototype.onDestroy=function(e){},e.prototype.markForCheck=function(){!function(e){for(var t=e;null!=t.parent;)t.flags|=4,t=t.parent;var n,r;t.flags|=4,ngDevMode&&Bs(t.context,"rootContext"),(n=t.context).clean==ta&&(n.clean=new Promise(function(e){return r=e}),n.scheduler(function(){var e,t;t=ga((e=function(e){ngDevMode&&Bs(e,"component");for(var t=ga(e).view;t.parent;)t=t.parent;return t}(n.component)).context.component),ngDevMode&&Bs(t.data,"Component host node should be attached to an LView"),function(n,r,i,o){var s=oa(e,t);try{Ws.begin&&Ws.begin(),la(),ua(na),pa(0,0)}finally{Ws.end&&Ws.end(),sa(s)}}(),r(null),n.clean=ta}))}(this._view)},e.prototype.detach=function(){this._view.flags&=-9},e.prototype.reattach=function(){this._view.flags|=8},e.prototype.detectChanges=function(){ha(this.context)},e.prototype.checkNoChanges=function(){!function(e){ia=!0;try{ha(e)}finally{ia=!1}}(this.context)},e}()),n("yLV6");var ya=function(){},va=function(){},ba=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ne;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(oe),_a=new A(function(e){return e.complete()});function wa(e){return e?function(e){return new A(function(t){return e.schedule(function(){return t.complete()})})}(e):_a}function Ea(e){var t=new A(function(t){t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function Sa(){for(var e=[],t=0;t=2;return function(r){return r.pipe(e?xa(function(t,n){return e(t,n,r)}):J,ka(1),n?Ra(t):Va(function(){return new Ca}))}}function Ba(e,t){return Y(e,t,1)}function Ua(e){return function(t){return 0===e?wa():t.lift(new Ha(e))}}var Ha=function(){function e(e){if(this.total=e,this.total<0)throw new Ia}return e.prototype.call=function(e,t){return t.subscribe(new Ga(e,this.total))},e}(),Ga=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return i(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(e?xa(function(t,n){return e(t,n,r)}):J,Ua(1),n?Ra(t):Va(function(){return new Ca}))}}function qa(e,t){return function(n){return n.lift(new Za(e,t,n))}}var Za=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new Qa(e,this.predicate,this.thisArg,this.source))},e}(),Qa=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return i(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(C);function Ya(e){return function(t){var n=new Ka(e),r=t.lift(n);return n.caught=r}}var Ka=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new Xa(e,this.selector,this.caught))},e}(),Xa=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return i(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(U(this,n))}},t}(H);function Ja(){return ee(1)}function $a(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new eu(e,t,n))}}var eu=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new tu(e,this.accumulator,this.seed,this.hasSeed))},e}(),tu=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return i(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(C),nu=function(){},ru=new ge("Location Initialized"),iu=function(){},ou=new ge("appBaseHref"),su=function(){function e(t){var n=this;this._subject=new Ut,this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(au(r)),this._platformStrategy.onPopState(function(e){n._subject.emit({url:n.path(!0),pop:!0,state:e.state,type:e.type})})}return e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},e.prototype.normalize=function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,au(t)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",e,t)},e.prototype.replaceState=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",e,t)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)},e}();function au(e){return e.replace(/\/index.html$/,"")}var uu=function(e){function t(t,n){var r=e.call(this)||this;return r._platformLocation=t,r._baseHref="",null!=n&&(r._baseHref=n),r}return i(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=su.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+su.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+su.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(iu),lu=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return i(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return su.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+su.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+su.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+su.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(iu),cu=void 0,du=["en",[["a","p"],["AM","PM"],cu],[["AM","PM"],cu,cu],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],cu,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],cu,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",cu,"{1} 'at' {0}",cu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],pu={},hu=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),fu=new ge("UseV4Plurals"),mu=function(){},gu=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return i(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=pu[t];if(n)return n;var r=t.split("-")[0];if(n=pu[r])return n;if("en"===r)return du;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[18]}(t||this.locale)(e)){case hu.Zero:return"zero";case hu.One:return"one";case hu.Two:return"two";case hu.Few:return"few";case hu.Many:return"many";default:return"other"}},t}(mu),yu=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Nn(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+ke(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))},e.prototype._removeClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},e}(),vu=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),bu=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){rn()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("ngForOf"in e){var t=e.ngForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((n=t).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.ngForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new vu(null,t.ngForOf,-1,-1),i),s=new _u(e,o);n.push(s)}else null==i?t._viewContainer.remove(r):(o=t._viewContainer.get(r),t._viewContainer.move(o,i),s=new _u(e,o),n.push(s))});for(var r=0;r0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;s||(s=e[o]=[]);var u=Tl(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:i});else{for(var l=!1,c=0;c-1},t}(ol),Nl=["alt","control","meta","shift"],Ml={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Dl=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Vu().onAndCancel(e,i.domEventName,o)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=t._normalizeKey(n.pop()),o="";if(Nl.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},t.getEventFullKey=function(e){var t="",n=Vu().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Nl.forEach(function(r){r!=n&&(0,Ml[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(i){t.getEventFullKey(i)===e&&r.runGuarded(function(){return n(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(ol),Ll=function(){},jl=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return i(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case Cr.NONE:return t;case Cr.HTML:return t instanceof Fl?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{ur=ur||new nr(e);var r=t?String(t):"";n=ur.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ur.getInertBodyElement(r)}while(r!==o);var s=new yr,a=s.sanitizeChildren(wr(n)||n);return rn()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}finally{if(n)for(var u=wr(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(t)));case Cr.STYLE:return t instanceof zl?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(Sr);return t&&or(t[1])===t[1]||e.match(Er)&&function(e){for(var t=!0,n=!0,r=0;re.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function Ec(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Sc(e){return e.pipe(ee(),qa(function(e){return!0===e}))}function Cc(e){return ft(e)?e:ht(e)?Q(Promise.resolve(e)):Sa(e)}function xc(e,t,n){return n?function(e,t){return bc(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!kc(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!kc(s=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!kc(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!e(n.children[o],r.children[o]))return!1}return!0}var s=i.slice(0,n.segments.length),a=i.slice(n.segments.length);return!!kc(n.segments,s)&&!!n.children[cc]&&t(n.children[cc],r,a)}(t,n,n.segments)}(e.root,t.root)}var Tc=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=pc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Nc.serialize(this)},e}(),Oc=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,Ec(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Mc(this)},e}(),Ic=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=pc(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return zc(this)},e}();function kc(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function Ac(e,t){var n=[];return Ec(e.children,function(e,r){r===cc&&(n=n.concat(t(e,r)))}),Ec(e.children,function(e,r){r!==cc&&(n=n.concat(t(e,r)))}),n}var Pc=function(){},Rc=function(){function e(){}return e.prototype.parse=function(e){var t=new Wc(e);return new Tc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return"/"+function e(t,n){if(!t.hasChildren())return Mc(t);if(n){var r=t.children[cc]?e(t.children[cc],!1):"",i=[];return Ec(t.children,function(t,n){n!==cc&&i.push(n+":"+e(t,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=Ac(t,function(n,r){return r===cc?[e(t.children[cc],!1)]:[r+":"+e(n,!1)]});return Mc(t)+"/("+o.join("//")+")"}(e.root,!0)+(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return Lc(e)+"="+Lc(t)}).join("&"):Lc(e)+"="+Lc(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),Nc=new Rc;function Mc(e){return e.segments.map(function(e){return zc(e)}).join("/")}function Dc(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lc(e){return Dc(e).replace(/%3B/gi,";")}function jc(e){return Dc(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vc(e){return decodeURIComponent(e)}function Fc(e){return Vc(e.replace(/\+/g,"%20"))}function zc(e){return""+jc(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+jc(e)+"="+jc(t[e])}).join(""));var t}var Bc=/^[^\/()?;=#]+/;function Uc(e){var t=e.match(Bc);return t?t[0]:""}var Hc=/^[^=?&#]+/,Gc=/^[^?&#]+/,Wc=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oc([],{}):new Oc([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[cc]=new Oc(e,t)),n},e.prototype.parseSegment=function(){var e=Uc(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new Ic(Vc(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=Uc(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=Uc(this.remaining);r&&this.capture(n=r)}e[Vc(t)]=Vc(n)}},e.prototype.parseQueryParam=function(e){var t,n=(t=this.remaining.match(Hc))?t[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Gc);return t?t[0]:""}(this.remaining);i&&this.capture(r=i)}var o=Fc(n),s=Fc(r);if(e.hasOwnProperty(o)){var a=e[o];Array.isArray(a)||(e[o]=a=[a]),a.push(s)}else e[o]=s}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Uc(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=cc);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[cc]:new Oc([],o),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),qc=function(e){this.segmentGroup=e||null},Zc=function(e){this.urlTree=e};function Qc(e){return new A(function(t){return t.error(new qc(e))})}function Yc(e){return new A(function(t){return t.error(new Zc(e))})}function Kc(e){return new A(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}var Xc=function(){function e(e,t,n,r,i){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(Lt)}return e.prototype.apply=function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,cc).pipe(G(function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Ya(function(t){if(t instanceof Zc)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof qc)throw e.noMatchError(t);throw t}))},e.prototype.match=function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,cc).pipe(G(function(n){return t.createUrlTree(n,e.queryParams,e.fragment)})).pipe(Ya(function(e){if(e instanceof qc)throw t.noMatchError(e);throw e}))},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,n){var r,i=e.segments.length>0?new Oc([],((r={})[cc]=e,r)):e;return new Tc(i,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(G(function(e){return new Oc([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)},e.prototype.expandChildren=function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Sa({});var o=[],s=[],a={};return Ec(n,function(n,i){var u,l,c=(u=i,l=n,r.expandSegmentGroup(e,t,l,u)).pipe(G(function(e){return a[i]=e}));i===cc?o.push(c):s.push(c)}),Sa.apply(null,o.concat(s)).pipe(Ja(),Wa(),G(function(){return a}))}(n.children)},e.prototype.expandSegment=function(e,t,n,r,i,o){var s=this;return Sa.apply(void 0,u(n)).pipe(G(function(a){return s.expandSegmentAgainstRoute(e,t,n,a,r,i,o).pipe(Ya(function(e){if(e instanceof qc)return Sa(null);throw e}))}),Ja(),za(function(e){return!!e}),Ya(function(e,n){if(e instanceof Ca||"EmptyError"===e.name){if(s.noLeftoversInUrl(t,r,i))return Sa(new Oc([],{}));throw new qc(t)}throw e}))},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,r,i,o,s){return td(r)!==o?Qc(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):Qc(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Yc(o):this.lineralizeSegments(n,o).pipe(Y(function(n){var o=new Oc(n,{});return i.expandSegment(e,o,t,n,r,!1)}))},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){var s=this,a=Jc(t,r,i),u=a.consumedSegments,l=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return Qc(t);var d=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?Yc(d):this.lineralizeSegments(r,d).pipe(Y(function(r){return s.expandSegment(e,t,n,r.concat(i.slice(l)),o,!1)}))},e.prototype.matchSegmentAgainstRoute=function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(G(function(e){return n._loadedConfig=e,new Oc(r,{})})):Sa(new Oc(r,{}));var a=Jc(t,n,r),u=a.consumedSegments,l=a.lastChild;if(!a.matched)return Qc(t);var c=r.slice(l);return this.getChildConfig(e,n).pipe(Y(function(e){var n=e.module,r=e.routes,a=function(e,t,n,r){return n.length>0&&function(e,t,n){return r.some(function(n){return ed(e,t,n)&&td(n)!==cc})}(e,n)?{segmentGroup:$c(new Oc(t,function(e,t){var n,r,i={};i[cc]=t;try{for(var o=s(e),a=o.next();!a.done;a=o.next()){var u=a.value;""===u.path&&td(u)!==cc&&(i[td(u)]=new Oc([],{}))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}(r,new Oc(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return r.some(function(n){return ed(e,t,n)})}(e,n)?{segmentGroup:$c(new Oc(e.segments,function(e,t,n,r){var i,a,u={};try{for(var l=s(n),c=l.next();!c.done;c=l.next()){var d=c.value;ed(e,t,d)&&!r[td(d)]&&(u[td(d)]=new Oc([],{}))}}catch(e){i={error:e}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return o({},r,u)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,u,c,r),l=a.segmentGroup,d=a.slicedSegments;return 0===d.length&&l.hasChildren()?i.expandChildren(n,r,l).pipe(G(function(e){return new Oc(u,e)})):0===r.length&&0===d.length?Sa(new Oc(u,{})):i.expandSegment(n,l,r,d,cc,!0).pipe(G(function(e){return new Oc(u.concat(e.segments),e.children)}))}))},e.prototype.getChildConfig=function(e,t){var n=this;return t.children?Sa(new fc(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Sa(t._loadedConfig):function(e,t){var n=t.canLoad;return n&&0!==n.length?Sc(Q(n).pipe(G(function(n){var r=e.get(n);return Cc(r.canLoad?r.canLoad(t):r(t))}))):Sa(!0)}(e.injector,t).pipe(Y(function(r){return r?n.configLoader.load(e.injector,t).pipe(G(function(e){return t._loadedConfig=e,e})):function(e){return new A(function(t){return t.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(t)})):Sa(new fc([],e))},e.prototype.lineralizeSegments=function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Sa(n);if(r.numberOfChildren>1||!r.children[cc])return Kc(e.redirectTo);r=r.children[cc]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new Tc(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return Ec(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),s={};return Ec(t.children,function(t,o){s[o]=i.createSegmentGroup(e,t,n,r)}),new Oc(o,s)},e.prototype.createSegments=function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return r},e.prototype.findOrReturn=function(e,t){var n,r,i=0;try{for(var o=s(t),a=o.next();!a.done;a=o.next()){var u=a.value;if(u.path===e.path)return t.splice(i),u;i++}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e},e}();function Jc(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||hc)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function $c(e){if(1===e.numberOfChildren&&e.children[cc]){var t=e.children[cc];return new Oc(e.segments.concat(t.segments),t.children)}return e}function ed(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function td(e){return e.outlet||cc}var nd=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=rd(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=rd(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=id(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return id(e,this._root).map(function(e){return e.value})},e}();function rd(e,t){if(e===t.value)return t;try{for(var n=s(t.children),r=n.next();!r.done;r=n.next()){var i=rd(e,r.value);if(i)return i}}catch(e){o={error:e}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}}return null;var o,a}function id(e,t){if(e===t.value)return[t];try{for(var n=s(t.children),r=n.next();!r.done;r=n.next()){var i=id(e,r.value);if(i.length)return i.unshift(t),i}}catch(e){o={error:e}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}}return[];var o,a}var od=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}();function sd(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var ad=function(e){function t(t,n){var r=e.call(this,t)||this;return r.snapshot=n,hd(r,t),r}return i(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(nd);function ud(e,t){var n=function(e,t){var n=new dd([],{},{},"",{},cc,t,null,e.root,-1,{});return new pd("",new od(n,[]))}(e,t),r=new ba([new Ic("",{})]),i=new ba({}),o=new ba({}),s=new ba({}),a=new ba(""),u=new ld(r,i,s,a,o,cc,t,n.root);return u.snapshot=n.root,new ad(new od(u,[]),n)}var ld=function(){function e(e,t,n,r,i,o,s,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(G(function(e){return pc(e)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(G(function(e){return pc(e)}))),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}();function cd(e,t){void 0===t&&(t="emptyOnly");var n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],s=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(s.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:o({},e.params,t.params),data:o({},e.data,t.data),resolve:o({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var dd=function(){function e(e,t,n,r,i,o,s,a,u,l,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=pc(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=pc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),pd=function(e){function t(t,n){var r=e.call(this,n)||this;return r.url=t,hd(r,n),r}return i(t,e),t.prototype.toString=function(){return fd(this._root)},t}(nd);function hd(e,t){t.value._routerState=e,t.children.forEach(function(t){return hd(e,t)})}function fd(e){var t=e.children.length>0?" { "+e.children.map(fd).join(", ")+" } ":"";return""+e.value+t}function md(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,bc(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),bc(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&yd(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(r&&r!==wc(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),_d=function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n};function wd(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[cc]:""+e}function Ed(e,t,n){if(e||(e=new Oc([],{})),0===e.segments.length&&e.hasChildren())return Sd(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var s=e.segments[i],a=wd(n[r]),u=r0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Od(a,u,s))return o;r+=2}else{if(!Od(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?function(n){return I($a(e,t),Ua(1),Ra(t))(n)}:function(t){return I($a(function(t,n,r){return e(t,n,r+1)}),Ua(1))(t)}}(function(e,t){return e})):Sa(null)},e.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},e.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},e.prototype.setupChildRouteGuards=function(e,t,n,r){var i=this,o=sd(t);e.children.forEach(function(e){i.setupRouteGuards(e,o[e.value.outlet],n,r.concat([e.value])),delete o[e.value.outlet]}),Ec(o,function(e,t){return i.deactivateRouteAndItsChildren(e,n.getContext(t))})},e.prototype.setupRouteGuards=function(e,t,n,r){var i=e.value,o=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){var a=this.shouldRunGuardsAndResolvers(o,i,i.routeConfig.runGuardsAndResolvers);a?this.canActivateChecks.push(new Id(r)):(i.data=o.data,i._resolvedData=o._resolvedData),this.setupChildRouteGuards(e,t,i.component?s?s.children:null:n,r),a&&this.canDeactivateChecks.push(new kd(s.outlet.component,o))}else o&&this.deactivateRouteAndItsChildren(t,s),this.canActivateChecks.push(new Id(r)),this.setupChildRouteGuards(e,null,i.component?s?s.children:null:n,r)},e.prototype.shouldRunGuardsAndResolvers=function(e,t,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!gd(e,t)||!bc(e.queryParams,t.queryParams);case"paramsChange":default:return!gd(e,t)}},e.prototype.deactivateRouteAndItsChildren=function(e,t){var n=this,r=sd(e),i=e.value;Ec(r,function(e,r){n.deactivateRouteAndItsChildren(e,i.component?t?t.children.getContext(r):null:t)}),this.canDeactivateChecks.push(new kd(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))},e.prototype.runCanDeactivateChecks=function(){var e=this;return Q(this.canDeactivateChecks).pipe(Y(function(t){return e.runCanDeactivate(t.component,t.route)}),qa(function(e){return!0===e}))},e.prototype.runCanActivateChecks=function(){var e=this;return Q(this.canActivateChecks).pipe(Ba(function(t){return Sc(Q([e.fireChildActivationStart(t.route.parent),e.fireActivationStart(t.route),e.runCanActivateChild(t.path),e.runCanActivate(t.route)]))}),qa(function(e){return!0===e}))},e.prototype.fireActivationStart=function(e){return null!==e&&this.forwardEvent&&this.forwardEvent(new ac(e)),Sa(!0)},e.prototype.fireChildActivationStart=function(e){return null!==e&&this.forwardEvent&&this.forwardEvent(new oc(e)),Sa(!0)},e.prototype.runCanActivate=function(e){var t=this,n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Sc(Q(n).pipe(G(function(n){var r=t.getToken(n,e);return Cc(r.canActivate?r.canActivate(e,t.future):r(e,t.future)).pipe(za())}))):Sa(!0)},e.prototype.runCanActivateChild=function(e){var t=this,n=e[e.length-1];return Sc(Q(e.slice(0,e.length-1).reverse().map(function(e){return t.extractCanActivateChild(e)}).filter(function(e){return null!==e})).pipe(G(function(e){return Sc(Q(e.guards).pipe(G(function(r){var i=t.getToken(r,e.node);return Cc(i.canActivateChild?i.canActivateChild(n,t.future):i(n,t.future)).pipe(za())})))})))},e.prototype.extractCanActivateChild=function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null},e.prototype.runCanDeactivate=function(e,t){var n=this,r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return r&&0!==r.length?Q(r).pipe(Y(function(r){var i=n.getToken(r,t);return Cc(i.canDeactivate?i.canDeactivate(e,t,n.curr,n.future):i(e,t,n.curr,n.future)).pipe(za())})).pipe(qa(function(e){return!0===e})):Sa(!0)},e.prototype.runResolve=function(e,t){return this.resolveNode(e._resolve,e).pipe(G(function(n){return e._resolvedData=n,e.data=o({},e.data,cd(e,t).resolve),null}))},e.prototype.resolveNode=function(e,t){var n=this,r=Object.keys(e);if(0===r.length)return Sa({});if(1===r.length){var i=r[0];return this.getResolver(e[i],t).pipe(G(function(e){return(t={})[i]=e,t;var t}))}var o={};return Q(r).pipe(Y(function(r){return n.getResolver(e[r],t).pipe(G(function(e){return o[r]=e,e}))})).pipe(Wa(),G(function(){return o}))},e.prototype.getResolver=function(e,t){var n=this.getToken(e,t);return Cc(n.resolve?n.resolve(t,this.future):n(t,this.future))},e.prototype.getToken=function(e,t){var n=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(n?n.module.injector:this.moduleInjector).get(e)},e}(),Pd=function(){},Rd=function(){function e(e,t,n,r,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i}return e.prototype.recognize=function(){try{var e=Dd(this.urlTree.root,[],[],this.config).segmentGroup,t=this.processSegmentGroup(this.config,e,cc),n=new dd([],Object.freeze({}),Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,{},cc,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new od(n,t),i=new pd(this.url,r);return this.inheritParamsAndData(i._root),Sa(i)}catch(e){return new A(function(t){return t.error(e)})}},e.prototype.inheritParamsAndData=function(e){var t=this,n=e.value,r=cd(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})},e.prototype.processSegmentGroup=function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)},e.prototype.processChildren=function(e,t){var n,r=this,i=Ac(t,function(t,n){return r.processSegmentGroup(e,t,n)});return n={},i.forEach(function(e){var t=n[e.value.outlet];if(t){var r=t.url.map(function(e){return e.toString()}).join("/"),i=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[e.value.outlet]=e.value}),i.sort(function(e,t){return e.value.outlet===cc?-1:t.value.outlet===cc?1:e.value.outlet.localeCompare(t.value.outlet)}),i},e.prototype.processSegment=function(e,t,n,r){try{for(var i=s(e),o=i.next();!o.done;o=i.next()){var a=o.value;try{return this.processSegmentAgainstRoute(a,t,n,r)}catch(e){if(!(e instanceof Pd))throw e}}}catch(e){u={error:e}}finally{try{o&&!o.done&&(l=i.return)&&l.call(i)}finally{if(u)throw u.error}}if(this.noLeftoversInUrl(t,n,r))return[];throw new Pd;var u,l},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.processSegmentAgainstRoute=function(e,t,n,r){if(e.redirectTo)throw new Pd;if((e.outlet||cc)!==r)throw new Pd;var i,s=[],a=[];if("**"===e.path){var u=n.length>0?wc(n).parameters:{};i=new dd(n,u,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,Vd(e),r,e.component,e,Nd(t),Md(t)+n.length,Fd(e))}else{var l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Pd;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||hc)(n,e,t);if(!r)throw new Pd;var i={};Ec(r.posParams,function(e,t){i[t]=e.path});var s=r.consumed.length>0?o({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(t,e,n);s=l.consumedSegments,a=n.slice(l.lastChild),i=new dd(s,l.parameters,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,Vd(e),r,e.component,e,Nd(t),Md(t)+s.length,Fd(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),d=Dd(t,s,a,c),p=d.segmentGroup,h=d.slicedSegments;if(0===h.length&&p.hasChildren()){var f=this.processChildren(c,p);return[new od(i,f)]}if(0===c.length&&0===h.length)return[new od(i,[])];var m=this.processSegment(c,p,h,cc);return[new od(i,m)]},e}();function Nd(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Md(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Dd(e,t,n,r){if(n.length>0&&function(e,t,n){return r.some(function(n){return Ld(e,t,n)&&jd(n)!==cc})}(e,n)){var i=new Oc(t,function(e,t,n,r){var i,o,a={};a[cc]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;try{for(var u=s(n),l=u.next();!l.done;l=u.next()){var c=l.value;if(""===c.path&&jd(c)!==cc){var d=new Oc([],{});d._sourceSegment=e,d._segmentIndexShift=t.length,a[jd(c)]=d}}}catch(e){i={error:e}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return a}(e,t,r,new Oc(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return r.some(function(n){return Ld(e,t,n)})}(e,n)){var a=new Oc(e.segments,function(e,t,n,r){var i,a,u={};try{for(var l=s(n),c=l.next();!c.done;c=l.next()){var d=c.value;if(Ld(e,t,d)&&!r[jd(d)]){var p=new Oc([],{});p._sourceSegment=e,p._segmentIndexShift=e.segments.length,u[jd(d)]=p}}}catch(e){i={error:e}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return o({},r,u)}(e,n,r,e.children));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var u=new Oc(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function Ld(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function jd(e){return e.outlet||cc}function Vd(e){return e.data||{}}function Fd(e){return e.resolve||{}}var zd=function(){},Bd=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),Ud=new ge("ROUTES"),Hd=function(){function e(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}return e.prototype.load=function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(G(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new fc(_c(i.injector.get(Ud)).map(vc),i)}))},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?Q(this.loader.load(e)):Cc(e()).pipe(Y(function(e){return e instanceof jt?Sa(e):Q(t.compiler.compileModuleAsync(e))}))},e}(),Gd=function(){},Wd=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function qd(e){throw e}function Zd(e,t,n){return t.parse("/")}function Qd(e){return Sa(null)}var Yd=function(){function e(e,t,n,r,i,o,s,a){var u=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.navigations=new ba(null),this.navigationId=0,this.events=new oe,this.errorHandler=qd,this.malformedUriErrorHandler=Zd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Qd,afterPreactivation:Qd},this.urlHandlingStrategy=new Wd,this.routeReuseStrategy=new Bd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=i.get(Lt),this.resetConfig(a),this.currentUrlTree=new Tc(new Oc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Hd(o,s,function(e){return u.triggerEvent(new rc(e))},function(e){return u.triggerEvent(new ic(e))}),this.routerState=ud(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.parseUrl(t.url),r="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?{navigationId:t.state.navigationId}:null;setTimeout(function(){e.scheduleNavigation(n,r,i,{replaceUrl:!0})},0)}))},Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),e.prototype.triggerEvent=function(e){this.events.next(e)},e.prototype.resetConfig=function(e){mc(e),this.config=e.map(vc),this.navigated=!1,this.lastSuccessfulId=-1},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){void 0===t&&(t={});var n=t.relativeTo,r=t.queryParams,i=t.fragment,s=t.preserveQueryParams,a=t.queryParamsHandling,l=t.preserveFragment;rn()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,d=l?this.currentUrlTree.fragment:i,p=null;if(a)switch(a){case"merge":p=o({},this.currentUrlTree.queryParams,r);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=r||null}else p=s?this.currentUrlTree.queryParams:r||null;return null!==p&&(p=this.removeEmptyProps(p)),function(e,t,n,r,i){if(0===n.length)return vd(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new bd(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return Ec(r.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),u(e,[{outlets:o}])}if(r.segmentPath)return u(e,[r.segmentPath])}return"string"!=typeof r?u(e,[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):u(e,[r])},[]);return new bd(n,t,r)}(n);if(o.toRoot())return vd(t.root,new Oc([],{}),t,r,i);var s=function(e,n,r){if(e.isAbsolute)return new _d(t.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new _d(r.snapshot._urlSegment,!0,0);var i=yd(e.commands[0])?0:1;return function(t,n,o){for(var s=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+i,u=e.numberOfDoubleDots;u>a;){if(u-=a,!(s=s.parent))throw new Error("Invalid number of '../'");a=s.segments.length}return new _d(s,!1,a-u)}()}(o,0,e),a=s.processChildren?Sd(s.segmentGroup,s.index,o.commands):Ed(s.segmentGroup,s.index,o.commands);return vd(s.segmentGroup,a,t,r,i)}(c,this.currentUrlTree,e,p,d)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1});var n=e instanceof Tc?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t0?Z(e,n):wa(n):Ea(e[0]),t)}}var Kp,Xp=new Set,Jp=function(){function e(e){this.platform=e,this._matchMedia=this.platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$p}return e.prototype.matchMedia=function(e){return this.platform.WEBKIT&&function(e){if(!Xp.has(e))try{Kp||((Kp=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Kp)),Kp.sheet&&(Kp.sheet.insertRule("@media "+e+" {.fx-query-test{ }}",0),Xp.add(e))}catch(e){console.error(e)}}(e),this._matchMedia(e)},e.ngInjectableDef=me({factory:function(){return new e(nt(Vp))},token:e,providedIn:"root"}),e}();function $p(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var eh=function(){function e(e,t){this.mediaMatcher=e,this.zone=t,this._queries=new Map,this._destroySubject=new oe}return e.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},e.prototype.isMatched=function(e){var t=this;return th(Rp(e)).some(function(e){return t._registerQuery(e).mql.matches})},e.prototype.observe=function(e){var t=this;return function(){for(var e=[],t=0;t1?Array.prototype.slice.call(arguments):e)},r,n)})}Object;var ih=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return i(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(w)),oh=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=Date.now?Date.now:function(){return+new Date},e}(),sh=function(e){function t(n,r){void 0===r&&(r=oh.now);var i=e.call(this,n,function(){return t.delegate&&t.delegate!==i?t.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(oh),ah=new sh(ih),uh=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new lh(e,this.durationSelector))},e}(),lh=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return i(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=b(this.durationSelector)(e);if(t===y)this.destination.error(y.e);else{var n=U(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(e,t,n,r){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(H);function ch(e){return!f(e)&&e-parseFloat(e)+1>=0}function dh(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function ph(e,t){return void 0===t&&(t=ah),n=function(){return function(e,t,n){void 0===e&&(e=0);var r=-1;return ch(t)?r=Number(t)<1?1:Number(t):R(t)&&(n=t),R(n)||(n=ah),new A(function(t){var i=ch(e)?e:+e-n.now();return n.schedule(dh,i,{index:0,period:r,subscriber:t})})}(e,t)},function(e){return e.lift(new uh(n))};var n}var hh=function(){function e(e,t){this._ngZone=e,this._platform=t,this._scrolled=new oe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return e.prototype.register=function(e){var t=this,n=e.elementScrolled().subscribe(function(){return t._scrolled.next(e)});this.scrollContainers.set(e,n)},e.prototype.deregister=function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))},e.prototype.scrolled=function(e){var t=this;return void 0===e&&(e=20),this._platform.isBrowser?A.create(function(n){t._globalSubscription||t._addGlobalListener();var r=e>0?t._scrolled.pipe(ph(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){r.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):Sa()},e.prototype.ngOnDestroy=function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()},e.prototype.ancestorScrolled=function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(xa(function(e){return!e||n.indexOf(e)>-1}))},e.prototype.getAncestorScrollContainers=function(e){var t=this,n=[];return this.scrollContainers.forEach(function(r,i){t._scrollableContainsElement(i,e)&&n.push(i)}),n},e.prototype._scrollableContainsElement=function(e,t){var n=t.nativeElement,r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},e.prototype._addGlobalListener=function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return rh(window.document,"scroll").subscribe(function(){return e._scrolled.next()})})},e.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},e.ngInjectableDef=me({factory:function(){return new e(nt(Ht),nt(Vp))},token:e,providedIn:"root"}),e}(),fh=function(){function e(e,t){var n=this;this._platform=e,this._change=e.isBrowser?t.runOutsideAngular(function(){return te(rh(window,"resize"),rh(window,"orientationchange"))}):Sa(),this._invalidateCache=this.change().subscribe(function(){return n._updateViewportSize()})}return e.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},e.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e},e.prototype.getViewportRect=function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,r=t.height;return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}},e.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=document.documentElement.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},e.prototype.change=function(e){return void 0===e&&(e=20),e>0?this._change.pipe(ph(e)):this._change},e.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},e.ngInjectableDef=me({factory:function(){return new e(nt(Vp),nt(Ht))},token:e,providedIn:"root"}),e}(),mh=function(){};function gh(){throw Error("Host already has a portal attached")}var yh=function(){function e(){}return e.prototype.attach=function(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&gh(),this._attachedHost=e,e.attach(this)},e.prototype.detach=function(){var e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())},Object.defineProperty(e.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),e.prototype.setAttachedHost=function(e){this._attachedHost=e},e}(),vh=function(e){function t(t,n,r){var i=e.call(this)||this;return i.component=t,i.viewContainerRef=n,i.injector=r,i}return i(t,e),t}(yh),bh=function(e){function t(t,n,r){var i=e.call(this)||this;return i.templateRef=t,i.viewContainerRef=n,i.context=r,i}return i(t,e),Object.defineProperty(t.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),t.prototype.attach=function(t,n){return void 0===n&&(n=this.context),this.context=n,e.prototype.attach.call(this,t)},t.prototype.detach=function(){return this.context=void 0,e.prototype.detach.call(this)},t}(yh),_h=function(){function e(){this._isDisposed=!1}return e.prototype.hasAttached=function(){return!!this._attachedPortal},e.prototype.attach=function(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&gh(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof vh?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof bh?(this._attachedPortal=e,this.attachTemplatePortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},e.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},e.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},e.prototype.setDisposeFn=function(e){this._disposeFn=e},e.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},e}(),wh=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.outletElement=t,o._componentFactoryResolver=n,o._appRef=r,o._defaultInjector=i,o}return i(t,e),t.prototype.attachComponentPortal=function(e){var t,n=this,r=this._componentFactoryResolver.resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(r,e.viewContainerRef.length,e.injector||e.viewContainerRef.parentInjector),this.setDisposeFn(function(){return t.destroy()})):(t=r.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t},t.prototype.attachTemplatePortal=function(e){var t=this,n=e.viewContainerRef,r=n.createEmbeddedView(e.templateRef,e.context);return r.detectChanges(),r.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),this.setDisposeFn(function(){var e=n.indexOf(r);-1!==e&&n.remove(e)}),r},t.prototype.dispose=function(){e.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},t.prototype._getComponentRootNode=function(e){return e.hostView.rootNodes[0]},t}(_h),Eh=function(e){function t(t,n){var r=e.call(this)||this;return r._componentFactoryResolver=t,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new Ut,r}return i(t,e),Object.defineProperty(t.prototype,"portal",{get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&e.prototype.detach.call(this),t&&e.prototype.attach.call(this,t),this._attachedPortal=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0},t.prototype.ngOnDestroy=function(){e.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},t.prototype.attachComponentPortal=function(t){t.setAttachedHost(this);var n=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,r=this._componentFactoryResolver.resolveComponentFactory(t.component),i=n.createComponent(r,n.length,t.injector||n.parentInjector);return e.prototype.setDisposeFn.call(this,function(){return i.destroy()}),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i},t.prototype.attachTemplatePortal=function(t){var n=this;t.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return e.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r},t}(_h),Sh=function(){},Ch=function(){function e(e,t){this._parentInjector=e,this._customTokens=t}return e.prototype.get=function(e,t){var n=this._customTokens.get(e);return void 0!==n?n:this._parentInjector.get(e,t)},e}(),xh=function(){function e(){}return e.prototype.enable=function(){},e.prototype.disable=function(){},e.prototype.attach=function(){},e}(),Th=function(){return function(e){var t=this;this.scrollStrategy=new xh,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",e&&Object.keys(e).filter(function(t){return void 0!==e[t]}).forEach(function(n){return t[n]=e[n]})}}();function Oh(e,t){if("top"!==t&&"bottom"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid "+e+' "'+t+'". Expected "top", "bottom" or "center".')}function Ih(e,t){if("start"!==t&&"end"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid "+e+' "'+t+'". Expected "start", "end" or "center".')}var kh=function(){function e(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}return e.prototype.attach=function(){},e.prototype.enable=function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Np(-this._previousScrollPosition.left),e.style.top=Np(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},e.prototype.disable=function(){if(this._isEnabled){var e=this._document.documentElement,t=this._document.body,n=e.style.scrollBehavior||"",r=t.style.scrollBehavior||"";this._isEnabled=!1,e.style.left=this._previousHTMLStyles.left,e.style.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),e.style.scrollBehavior=t.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.style.scrollBehavior=n,t.style.scrollBehavior=r}},e.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width},e}();function Ah(){return Error("Scroll strategy has already been attached.")}var Ph=function(){function e(e,t,n,r){var i=this;this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){i.disable(),i._overlayRef.hasAttached()&&i._ngZone.run(function(){return i._overlayRef.detach()})}}return e.prototype.attach=function(e){if(this._overlayRef)throw Ah();this._overlayRef=e},e.prototype.enable=function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}},e.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},e}();function Rh(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function Nh(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var Mh=function(){function e(e,t,n,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=r,this._scrollSubscription=null}return e.prototype.attach=function(e){if(this._overlayRef)throw Ah();this._overlayRef=e},e.prototype.enable=function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),r=n.width,i=n.height;Rh(t,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))},e.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},e}(),Dh=function(){function e(e,t,n,r){var i=this;this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=function(){return new xh},this.close=function(e){return new Ph(i._scrollDispatcher,i._ngZone,i._viewportRuler,e)},this.block=function(){return new kh(i._viewportRuler,i._document)},this.reposition=function(e){return new Mh(i._scrollDispatcher,i._viewportRuler,i._ngZone,e)},this._document=r}return e.ngInjectableDef=me({factory:function(){return new e(nt(hh),nt(fh),nt(Ht),nt(Ru))},token:e,providedIn:"root"}),e}(),Lh=function(){function e(e){var t=this;this._attachedOverlays=[],this._keydownListener=function(e){for(var n=t._attachedOverlays,r=n.length-1;r>-1;r--)if(n[r]._keydownEventSubscriptions>0){n[r]._keydownEvents.next(e);break}},this._document=e}return e.prototype.ngOnDestroy=function(){this._detach()},e.prototype.add=function(e){this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener,!0),this._isAttached=!0),this._attachedOverlays.push(e)},e.prototype.remove=function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()},e.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener,!0),this._isAttached=!1)},e.ngInjectableDef=me({factory:function(){return new e(nt(Ru))},token:e,providedIn:"root"}),e}(),jh=function(){function e(e){this._document=e}return e.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},e.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},e.prototype._createContainer=function(){var e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),this._document.body.appendChild(e),this._containerElement=e},e.ngInjectableDef=me({factory:function(){return new e(nt(Ru))},token:e,providedIn:"root"}),e}(),Vh=function(){function e(e,t,n,r,i,o,s){var a=this;this._portalOutlet=e,this._host=t,this._pane=n,this._config=r,this._ngZone=i,this._keyboardDispatcher=o,this._document=s,this._backdropElement=null,this._backdropClick=new oe,this._attachments=new oe,this._detachments=new oe,this._keydownEventsObservable=A.create(function(e){var t=a._keydownEvents.subscribe(e);return a._keydownEventSubscriptions++,function(){t.unsubscribe(),a._keydownEventSubscriptions--}}),this._keydownEvents=new oe,this._keydownEventSubscriptions=0,r.scrollStrategy&&r.scrollStrategy.attach(this)}return Object.defineProperty(e.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostElement",{get:function(){return this._host},enumerable:!0,configurable:!0}),e.prototype.attach=function(e){var t=this,n=this._portalOutlet.attach(e);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(ka(1)).subscribe(function(){t.hasAttached()&&t.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),n},e.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._config.positionStrategy&&this._config.positionStrategy.detach&&this._config.positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),e}},e.prototype.dispose=function(){var e=this.hasAttached();this._config.positionStrategy&&this._config.positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._pane=null,e&&this._detachments.next(),this._detachments.complete()},e.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},e.prototype.backdropClick=function(){return this._backdropClick.asObservable()},e.prototype.attachments=function(){return this._attachments.asObservable()},e.prototype.detachments=function(){return this._detachments.asObservable()},e.prototype.keydownEvents=function(){return this._keydownEventsObservable},e.prototype.getConfig=function(){return this._config},e.prototype.updatePosition=function(){this._config.positionStrategy&&this._config.positionStrategy.apply()},e.prototype.updateSize=function(e){this._config=o({},this._config,e),this._updateElementSize()},e.prototype.setDirection=function(e){this._config=o({},this._config,{direction:e}),this._updateElementDirection()},e.prototype.getDirection=function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"},e.prototype._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())},e.prototype._updateElementSize=function(){var e=this._pane.style;e.width=Np(this._config.width),e.height=Np(this._config.height),e.minWidth=Np(this._config.minWidth),e.minHeight=Np(this._config.minHeight),e.maxWidth=Np(this._config.maxWidth),e.maxHeight=Np(this._config.maxHeight)},e.prototype._togglePointerEvents=function(e){this._pane.style.pointerEvents=e?"auto":"none"},e.prototype._attachBackdrop=function(){var e=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",function(t){return e._backdropClick.next(t)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},e.prototype._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)},e.prototype.detachBackdrop=function(){var e=this,t=this._backdropElement;if(t){var n,r=function(){t&&t.parentNode&&t.parentNode.removeChild(t),e._backdropElement==t&&(e._backdropElement=null),clearTimeout(n)};t.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),this._ngZone.runOutsideAngular(function(){t.addEventListener("transitionend",r)}),t.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(r,500)})}},e.prototype._toggleClasses=function(e,t,n){var r=e.classList;Rp(t).forEach(function(e){n?r.add(e):r.remove(e)})},e}(),Fh=function(){function e(e,t,n,r){var i=this;this._viewportRuler=t,this._document=n,this._platform=r,this._isInitialRender=!0,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this.scrollables=[],this._preferredPositions=[],this._positionChanges=new oe,this._resizeSubscription=w.EMPTY,this._offsetX=0,this._offsetY=0,this._positionChangeSubscriptions=0,this.positionChanges=A.create(function(e){var t=i._positionChanges.subscribe(e);return i._positionChangeSubscriptions++,function(){t.unsubscribe(),i._positionChangeSubscriptions--}}),this.setOrigin(e)}return Object.defineProperty(e.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),e.prototype.attach=function(e){var t=this;if(this._overlayRef&&e!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){return t.apply()})},e.prototype.apply=function(){if(!(this._isDisposed||this._platform&&!this._platform.isBrowser))if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect();for(var e,t=this._originRect,n=this._overlayRect,r=this._viewportRect,i=[],o=0,s=this._preferredPositions;op&&(p=g,d=m)}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}},e.prototype.detach=function(){this._resizeSubscription.unsubscribe()},e.prototype.dispose=function(){this._isDisposed||(this.detach(),this._boundingBox=null,this._positionChanges.complete(),this._isDisposed=!0)},e.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}},e.prototype.withScrollableContainers=function(e){this.scrollables=e},e.prototype.withPositions=function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},e.prototype.withViewportMargin=function(e){return this._viewportMargin=e,this},e.prototype.withFlexibleDimensions=function(e){return void 0===e&&(e=!0),this._hasFlexibleDimensions=e,this},e.prototype.withGrowAfterOpen=function(e){return void 0===e&&(e=!0),this._growAfterOpen=e,this},e.prototype.withPush=function(e){return void 0===e&&(e=!0),this._canPush=e,this},e.prototype.withLockedPosition=function(e){return void 0===e&&(e=!0),this._positionLocked=e,this},e.prototype.setOrigin=function(e){return this._origin=e instanceof mn?e.nativeElement:e,this},e.prototype.withDefaultOffsetX=function(e){return this._offsetX=e,this},e.prototype.withDefaultOffsetY=function(e){return this._offsetY=e,this},e.prototype.withTransformOriginOn=function(e){return this._transformOriginSelector=e,this},e.prototype._getOriginPoint=function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var r=this._isRtl()?e.right:e.left,i=this._isRtl()?e.left:e.right;n="start"==t.originX?r:i}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}},e.prototype._getOverlayPoint=function(e,t,n){var r;return r="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,{x:e.x+r,y:e.y+("center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height)}},e.prototype._getOverlayFit=function(e,t,n,r){var i=e.x,o=e.y,s=this._getOffset(r,"x"),a=this._getOffset(r,"y");s&&(i+=s),a&&(o+=a);var u=0-o,l=o+t.height-n.height,c=this._subtractOverflows(t.width,0-i,i+t.width-n.width),d=this._subtractOverflows(t.height,u,l),p=c*d;return{visibleArea:p,isCompletelyWithinViewport:t.width*t.height===p,fitsInViewportVertically:d===t.height,fitsInViewportHorizontally:c==t.width}},e.prototype._canFitWithFlexibleDimensions=function(e,t,n){if(this._hasFlexibleDimensions){var r=n.bottom-t.y,i=n.right-t.x,o=this._overlayRef.getConfig().minHeight,s=this._overlayRef.getConfig().minWidth;return(e.fitsInViewportVertically||null!=o&&o<=r)&&(e.fitsInViewportHorizontally||null!=s&&s<=i)}},e.prototype._pushOverlayOnScreen=function(e,t){var n=this._viewportRect,r=Math.max(e.x+t.width-n.right,0),i=Math.max(e.y+t.height-n.bottom,0),o=Math.max(n.top-e.y,0),s=Math.max(n.left-e.x,0);return{x:e.x+(t.width<=n.width?s||-r:n.left-e.x),y:e.y+(t.height<=n.height?o||-i:n.top-e.y)}},e.prototype._applyPosition=function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),this._lastPosition=e,this._positionChangeSubscriptions>0){var n=new function(e,t){this.connectionPair=e,this.scrollableViewProperties=t}(e,this._getScrollVisibility());this._positionChanges.next(n)}this._isInitialRender=!1},e.prototype._setTransformOrigin=function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),r=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var i=0;id&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-d/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)a=u.right-e.x+this._viewportMargin,o=e.x-u.left;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)s=e.x,o=u.right-e.x;else{c=Math.min(u.right-e.x,e.x-u.top);var p=this._lastBoundingBoxSize.width;s=e.x-c,(o=2*c)>p&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.x-p/2)}return{top:r,left:s,bottom:i,right:a,width:o,height:n}},e.prototype._setBoundingBoxStyles=function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right="",r.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Np(n.height),r.top=Np(n.top),r.bottom=Np(n.bottom),r.width=Np(n.width),r.left=Np(n.left),r.right=Np(n.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=Np(i)),o&&(r.maxWidth=Np(o))}this._lastBoundingBoxSize=n,zh(this._boundingBox.style,r)},e.prototype._resetBoundingBoxStyles=function(){zh(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},e.prototype._resetOverlayElementStyles=function(){zh(this._pane.style,{top:"",left:"",bottom:"",right:"",position:""})},e.prototype._setOverlayElementStyles=function(e,t){var n={};this._hasExactPosition()?(zh(n,this._getExactOverlayY(t,e)),zh(n,this._getExactOverlayX(t,e))):n.position="static";var r="",i=this._getOffset(t,"x"),o=this._getOffset(t,"y");i&&(r+="translateX("+i+"px) "),o&&(r+="translateY("+o+"px)"),n.transform=r.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),zh(this._pane.style,n)},e.prototype._getExactOverlayY=function(e,t){var n={top:null,bottom:null},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect)),"bottom"===e.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=Np(r.y),n},e.prototype._getExactOverlayX=function(e,t){var n={left:null,right:null},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect)),"right"==(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":n.left=Np(r.x),n},e.prototype._getScrollVisibility=function(){var e=this._origin.getBoundingClientRect(),t=this._pane.getBoundingClientRect(),n=this.scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Nh(e,n),isOriginOutsideView:Rh(e,n),isOverlayClipped:Nh(t,n),isOverlayOutsideView:Rh(t,n)}},e.prototype._subtractOverflows=function(e){for(var t=[],n=1;n=0},e.prototype.isFocusable=function(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||_f(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)},e.ngInjectableDef=me({factory:function(){return new e(nt(Vp))},token:e,providedIn:"root"}),e}();function _f(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function wf(e){if(!_f(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var Ef=function(){function e(e,t,n,r,i){void 0===i&&(i=!1),this._element=e,this._checker=t,this._ngZone=n,this._document=r,this._hasAttached=!1,this._enabled=!0,i||this.attachAnchors()}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._startAnchor.tabIndex=this._endAnchor.tabIndex=this._enabled?0:-1)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentNode.removeChild(this._endAnchor),this._startAnchor=this._endAnchor=null},e.prototype.attachAnchors=function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",function(){return e.focusLastTabbableElement()})),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",function(){return e.focusFirstTabbableElement()}))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},e.prototype.focusInitialElementWhenReady=function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})},e.prototype.focusFirstTabbableElementWhenReady=function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})},e.prototype.focusLastTabbableElementWhenReady=function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})},e.prototype._getRegionBoundary=function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-"+e+"], [cdkFocusRegion"+e+"], [cdk-focus-"+e+"]"),n=0;n=0;n--){var r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null},e.prototype._createAnchor=function(){var e=this._document.createElement("div");return e.tabIndex=this._enabled?0:-1,e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e},e.prototype._executeOnStable=function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(ka(1)).subscribe(e)},e}(),Sf=function(){function e(e,t,n){this._checker=e,this._ngZone=t,this._document=n}return e.prototype.create=function(e,t){return void 0===t&&(t=!1),new Ef(e,this._checker,this._ngZone,this._document,t)},e.ngInjectableDef=me({factory:function(){return new e(nt(bf),nt(Ht),nt(Ru))},token:e,providedIn:"root"}),e}(),Cf=function(){function e(e,t){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return e.prototype.monitor=function(e,t){var n=this;if(void 0===t&&(t=!1),!this._platform.isBrowser)return Sa(null);if(this._elementInfo.has(e)){var r=this._elementInfo.get(e);return r.checkChildren=t,r.subject.asObservable()}var i={unlisten:function(){},checkChildren:t,subject:new oe};this._elementInfo.set(e,i),this._incrementMonitoredElementCount();var o=function(t){return n._onFocus(t,e)},s=function(t){return n._onBlur(t,e)};return this._ngZone.runOutsideAngular(function(){e.addEventListener("focus",o,!0),e.addEventListener("blur",s,!0)}),i.unlisten=function(){e.removeEventListener("focus",o,!0),e.removeEventListener("blur",s,!0)},i.subject.asObservable()},e.prototype.stopMonitoring=function(e){var t=this._elementInfo.get(e);t&&(t.unlisten(),t.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())},e.prototype.focusVia=function(e,t,n){this._setOriginForCurrentEventQueue(t),"function"==typeof e.focus&&e.focus(n)},e.prototype.ngOnDestroy=function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})},e.prototype._registerGlobalListeners=function(){var e=this;if(this._platform.isBrowser){var t=function(){e._lastTouchTarget=null,e._setOriginForCurrentEventQueue("keyboard")},n=function(){e._lastTouchTarget||e._setOriginForCurrentEventQueue("mouse")},r=function(t){null!=e._touchTimeoutId&&clearTimeout(e._touchTimeoutId),e._lastTouchTarget=t.target,e._touchTimeoutId=setTimeout(function(){return e._lastTouchTarget=null},650)},i=function(){e._windowFocused=!0,e._windowFocusTimeoutId=setTimeout(function(){return e._windowFocused=!1})};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",t,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",r,!Fp()||{passive:!0,capture:!0}),window.addEventListener("focus",i)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",t,!0),document.removeEventListener("mousedown",n,!0),document.removeEventListener("touchstart",r,!Fp()||{passive:!0,capture:!0}),window.removeEventListener("focus",i),clearTimeout(e._windowFocusTimeoutId),clearTimeout(e._touchTimeoutId),clearTimeout(e._originTimeoutId)}}},e.prototype._toggleClass=function(e,t,n){n?e.classList.add(t):e.classList.remove(t)},e.prototype._setClasses=function(e,t){this._elementInfo.get(e)&&(this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t))},e.prototype._setOriginForCurrentEventQueue=function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,t._originTimeoutId=setTimeout(function(){return t._origin=null})})},e.prototype._wasCausedByTouch=function(e){var t=e.target;return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))},e.prototype._onFocus=function(e,t){var n=this._elementInfo.get(t);if(n&&(n.checkChildren||t===e.target)){var r=this._origin;r||(r=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"),this._setClasses(t,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}},e.prototype._onBlur=function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))},e.prototype._emitOrigin=function(e,t){this._ngZone.run(function(){return e.next(t)})},e.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},e.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},e.ngInjectableDef=me({factory:function(){return new e(nt(Ht),nt(Vp))},token:e,providedIn:"root"}),e}(),xf=function(){},Tf=new ge("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Of=function(){function e(e){this._sanityChecksEnabled=e,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._hasDoneGlobalChecks=!0)}return e.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&rn()&&!this._isTestEnv()},e.prototype._isTestEnv=function(){return this._window&&(this._window.__karma__||this._window.jasmine)},e.prototype._checkDoctypeIsDefined=function(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},e.prototype._checkThemeIsPresent=function(){if(this._document&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}},e.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(this._areChecksEnabled()&&!this._window.Hammer&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},e}();function If(e){return function(e){function t(){for(var t=[],n=0;n visible",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0.0, 0.0, 0.2, 1)"},options:null},{type:1,expr:"* => hidden",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0.4, 0.0, 1, 1)"},options:null}],options:{}}]}});function qf(e){return Po(2,[(e()(),gi(0,0,null,null,3,"div",[["class","mat-tooltip"]],[[2,"mat-tooltip-handset",null],[24,"@state",0]],[[null,"@state.start"],[null,"@state.done"]],function(e,t,n){var r=!0,i=e.component;return"@state.start"===t&&(r=!1!==i._animationStart()&&r),"@state.done"===t&&(r=!1!==i._animationDone(n)&&r),r},null,null)),io(1,278528,null,0,yu,[Wn,qn,mn,fn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t=131072,n=Au,r=[Cn],so(-1,t|=16,null,0,n,n,r)),(e()(),Io(3,null,["",""]))],function(e,t){e(t,1,0,"mat-tooltip",t.component.tooltipClass)},function(e,t){var n=t.component;e(t,0,0,function(e,t,n,r){if(Pn.isWrapped(r)){r=Pn.unwrap(r);var i=e.def.nodes[0].bindingIndex+0,o=Pn.unwrap(e.oldValues[i]);e.oldValues[i]=new Pn(o)}return r}(t,0,0,Wi(t,2).transform(n._isHandset)).matches,n._visibility),e(t,3,0,n.message)});var t,n,r}var Zf=Mi("mat-tooltip-component",tf,function(e){return Po(0,[(e()(),gi(0,0,null,null,1,"mat-tooltip-component",[["aria-hidden","true"]],[[4,"zoom",null]],[["body","click"]],function(e,t,n){var r=!0;return"body:click"===t&&(r=!1!==Wi(e,1)._handleBodyInteraction()&&r),r},qf,Wf)),io(1,49152,null,0,tf,[Cn,eh],null,null)],null,function(e,t){e(t,0,0,"visible"===Wi(t,1)._visibility?1:null)})},{},{},[]),Qf=function(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabel=null,this.autoFocus=!0,this.closeOnNavigation=!0};function Yf(){throw Error("Attempting to attach dialog content after content is already attached")}var Kf=function(e){function t(t,n,r,i,o){var s=e.call(this)||this;return s._elementRef=t,s._focusTrapFactory=n,s._changeDetectorRef=r,s._document=i,s._config=o,s._elementFocusedBeforeDialogWasOpened=null,s._state="enter",s._animationStateChanged=new Ut,s._ariaLabelledBy=null,s}return i(t,e),t.prototype.attachComponentPortal=function(e){return this._portalOutlet.hasAttached()&&Yf(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)},t.prototype.attachTemplatePortal=function(e){return this._portalOutlet.hasAttached()&&Yf(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)},t.prototype._trapFocus=function(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._config.autoFocus&&this._focusTrap.focusInitialElementWhenReady()},t.prototype._restoreFocus=function(){var e=this._elementFocusedBeforeDialogWasOpened;e&&"function"==typeof e.focus&&e.focus(),this._focusTrap&&this._focusTrap.destroy()},t.prototype._savePreviouslyFocusedElement=function(){var e=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return e._elementRef.nativeElement.focus()}))},t.prototype._onAnimationDone=function(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)},t.prototype._onAnimationStart=function(e){this._animationStateChanged.emit(e)},t.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},t}(_h),Xf=0,Jf=function(){function e(e,t,n,r){void 0===r&&(r="mat-dialog-"+Xf++);var i=this;this._overlayRef=e,this._containerInstance=t,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpen=new oe,this._afterClosed=new oe,this._beforeClose=new oe,this._locationChanges=w.EMPTY,t._id=r,t._animationStateChanged.pipe(xa(function(e){return"done"===e.phaseName&&"enter"===e.toState}),ka(1)).subscribe(function(){i._afterOpen.next(),i._afterOpen.complete()}),t._animationStateChanged.pipe(xa(function(e){return"done"===e.phaseName&&"exit"===e.toState}),ka(1)).subscribe(function(){return i._overlayRef.dispose()}),e.detachments().subscribe(function(){i._beforeClose.next(i._result),i._beforeClose.complete(),i._locationChanges.unsubscribe(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),e.keydownEvents().pipe(xa(function(e){return e.keyCode===Lp&&!i.disableClose})).subscribe(function(){return i.close()}),n&&(this._locationChanges=n.subscribe(function(){i._containerInstance._config.closeOnNavigation&&i.close()}))}return e.prototype.close=function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(xa(function(e){return"start"===e.phaseName}),ka(1)).subscribe(function(){t._beforeClose.next(e),t._beforeClose.complete(),t._overlayRef.detachBackdrop()}),this._containerInstance._startExitAnimation()},e.prototype.afterOpen=function(){return this._afterOpen.asObservable()},e.prototype.afterClosed=function(){return this._afterClosed.asObservable()},e.prototype.beforeClose=function(){return this._beforeClose.asObservable()},e.prototype.backdropClick=function(){return this._overlayRef.backdropClick()},e.prototype.keydownEvents=function(){return this._overlayRef.keydownEvents()},e.prototype.updatePosition=function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this},e.prototype.updateSize=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this},e.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},e}(),$f=new ge("MatDialogData"),em=new ge("mat-dialog-default-options"),tm=new ge("mat-dialog-scroll-strategy");function nm(e){return function(){return e.scrollStrategies.block()}}var rm=function(){function e(e,t,n,r,i,o,s){var a,u=this;this._overlay=e,this._injector=t,this._location=n,this._defaultOptions=r,this._scrollStrategy=i,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new oe,this._afterOpenAtThisLevel=new oe,this._ariaHiddenElements=new Map,this.afterAllClosed=(a=function(){return u.openDialogs.length?u._afterAllClosed:u._afterAllClosed.pipe(Yp(void 0))},new A(function(e){var t;try{t=a()}catch(t){return void e.error(t)}return(t?Q(t):wa()).subscribe(e)}))}return Object.defineProperty(e.prototype,"openDialogs",{get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"afterOpen",{get:function(){return this._parentDialog?this._parentDialog.afterOpen:this._afterOpenAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_afterAllClosed",{get:function(){var e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),e.prototype.open=function(e,t){var n=this;if((t=function(e,t){return o({},t,e)}(t,this._defaultOptions||new Qf)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'+t.id+'" exists already. The dialog id must be unique.');var r=this._createOverlay(t),i=this._attachDialogContainer(r,t),s=this._attachDialogContent(e,i,r,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(function(){return n._removeOpenDialog(s)}),this.afterOpen.next(s),s},e.prototype.closeAll=function(){for(var e=this.openDialogs.length;e--;)this.openDialogs[e].close()},e.prototype.getDialogById=function(e){return this.openDialogs.find(function(t){return t.id===e})},e.prototype._createOverlay=function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)},e.prototype._getOverlayConfig=function(e){var t=new Th({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight});return e.backdropClass&&(t.backdropClass=e.backdropClass),t},e.prototype._attachDialogContainer=function(e,t){var n=new Ch(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[Qf,t]])),r=new vh(Kf,t.viewContainerRef,n);return e.attach(r).instance},e.prototype._attachDialogContent=function(e,t,n,r){var i=new Jf(n,t,this._location,r.id);if(r.hasBackdrop&&n.backdropClick().subscribe(function(){i.disableClose||i.close()}),e instanceof En)t.attachTemplatePortal(new bh(e,null,{$implicit:r.data,dialogRef:i}));else{var o=this._createInjector(r,i,t),s=t.attachComponentPortal(new vh(e,void 0,o));i.componentInstance=s.instance}return i.updateSize(r.width,r.height).updatePosition(r.position),i},e.prototype._createInjector=function(e,t,n){var r=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=new WeakMap([[Kf,n],[$f,e.data],[Jf,t]]);return!e.direction||r&&r.get(pf,null)||i.set(pf,{value:e.direction,change:Sa()}),new Ch(r||this._injector,i)},e.prototype._removeOpenDialog=function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},e.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var r=t[n];r===e||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}},e}(),im=0,om=function(){function e(e,t,n){this.dialogRef=e,this._elementRef=t,this._dialog=n,this.ariaLabel="Close dialog"}return e.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=lm(this._elementRef,this._dialog.openDialogs))},e.prototype.ngOnChanges=function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)},e}(),sm=function(){function e(e,t,n){this._dialogRef=e,this._elementRef=t,this._dialog=n,this.id="mat-dialog-title-"+im++}return e.prototype.ngOnInit=function(){var e=this;this._dialogRef||(this._dialogRef=lm(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})},e}(),am=function(){},um=function(){};function lm(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var cm=function(){},dm=Ur({encapsulation:2,styles:[".mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);display:block;padding:24px;border-radius:2px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}@media screen and (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:12px 0;display:flex;flex-wrap:wrap;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button+.mat-button,.mat-dialog-actions .mat-button+.mat-raised-button,.mat-dialog-actions .mat-raised-button+.mat-button,.mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-button+.mat-raised-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"slideDialog",definitions:[{type:0,name:"enter",styles:{type:6,styles:{transform:"none",opacity:1},offset:null},options:void 0},{type:0,name:"void",styles:{type:6,styles:{transform:"translate3d(0, 25%, 0) scale(0.9)",opacity:0},offset:null},options:void 0},{type:0,name:"exit",styles:{type:6,styles:{transform:"translate3d(0, 25%, 0)",opacity:0},offset:null},options:void 0},{type:1,expr:"* => *",animation:{type:4,styles:null,timings:"400ms cubic-bezier(0.25, 0.8, 0.25, 1)"},options:null}],options:{}}]}});function pm(e){return Po(0,[(e()(),mi(0,null,null,0))],null,null)}function hm(e){return Po(0,[wo(402653184,1,{_portalOutlet:0}),(e()(),mi(16777216,null,null,1,null,pm)),io(2,212992,[[1,4]],0,Eh,[Nt,Sn],{portal:[0,"portal"]},null)],function(e,t){e(t,2,0,"")},null)}var fm=Mi("mat-dialog-container",Kf,function(e){return Po(0,[(e()(),gi(0,0,null,null,1,"mat-dialog-container",[["aria-modal","true"],["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@slideDialog",0]],[["component","@slideDialog.start"],["component","@slideDialog.done"]],function(e,t,n){var r=!0;return"component:@slideDialog.start"===t&&(r=!1!==Wi(e,1)._onAnimationStart(n)&&r),"component:@slideDialog.done"===t&&(r=!1!==Wi(e,1)._onAnimationDone(n)&&r),r},hm,dm)),io(1,49152,null,0,Kf,[mn,Sf,Cn,[2,Ru],Qf],null,null)],null,function(e,t){e(t,0,0,Wi(t,1)._id,Wi(t,1)._config.role,Wi(t,1)._config.ariaLabel?null:Wi(t,1)._ariaLabelledBy,Wi(t,1)._config.ariaLabel,Wi(t,1)._config.ariaDescribedBy||null,Wi(t,1)._state)})},{},{},[]),mm=new ge("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}}),gm=[{alias:"xs",mediaQuery:"(min-width: 0px) and (max-width: 599px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"(min-width: 600px)"},{alias:"lt-sm",overlapping:!0,mediaQuery:"(max-width: 599px)"},{alias:"sm",mediaQuery:"(min-width: 600px) and (max-width: 959px)"},{alias:"gt-sm",overlapping:!0,mediaQuery:"(min-width: 960px)"},{alias:"lt-md",overlapping:!0,mediaQuery:"(max-width: 959px)"},{alias:"md",mediaQuery:"(min-width: 960px) and (max-width: 1279px)"},{alias:"gt-md",overlapping:!0,mediaQuery:"(min-width: 1280px)"},{alias:"lt-lg",overlapping:!0,mediaQuery:"(max-width: 1279px)"},{alias:"lg",mediaQuery:"(min-width: 1280px) and (max-width: 1919px)"},{alias:"gt-lg",overlapping:!0,mediaQuery:"(min-width: 1920px)"},{alias:"lt-xl",overlapping:!0,mediaQuery:"(max-width: 1920px)"},{alias:"xl",mediaQuery:"(min-width: 1920px) and (max-width: 5000px)"}],ym="(orientation: landscape) and (min-width: 960px) and (max-width: 1279px)",vm="(orientation: portrait) and (min-width: 600px) and (max-width: 839px)",bm="(orientation: portrait) and (min-width: 840px)",_m="(orientation: landscape) and (min-width: 1280px)",wm={HANDSET:"(orientation: portrait) and (max-width: 599px), (orientation: landscape) and (max-width: 959px)",TABLET:vm+" , "+ym,WEB:bm+", "+_m+" ",HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599px)",TABLET_PORTRAIT:vm+" ",WEB_PORTRAIT:""+bm,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959px)]",TABLET_LANDSCAPE:""+ym,WEB_LANDSCAPE:""+_m},Em=[{alias:"handset",mediaQuery:wm.HANDSET},{alias:"handset.landscape",mediaQuery:wm.HANDSET_LANDSCAPE},{alias:"handset.portrait",mediaQuery:wm.HANDSET_PORTRAIT},{alias:"tablet",mediaQuery:wm.TABLET},{alias:"tablet.landscape",mediaQuery:wm.TABLET},{alias:"tablet.portrait",mediaQuery:wm.TABLET_PORTRAIT},{alias:"web",mediaQuery:wm.WEB,overlapping:!0},{alias:"web.landscape",mediaQuery:wm.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",mediaQuery:wm.WEB_PORTRAIT,overlapping:!0}];function Sm(e){for(var t=[],n=1;n0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}var Tm={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0},Om=new ge("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return Tm}}),Im=new ge("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=nt(mm),t=nt(Om),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e,t){void 0===t&&(t=[]);var n,r={};return e.forEach(function(e){r[e.alias]=e}),t.forEach(function(e){r[e.alias]?Sm(r[e.alias],e):r[e.alias]=e}),(n=Object.keys(r).map(function(e){return r[e]})).forEach(function(e){e.suffix||(e.suffix=e.alias.replace(Cm,"|").split("|").map(xm).join(""),e.overlapping=!!e.overlapping)}),n}((t.disableDefaultBps?[]:gm).concat(t.addOrientationBps?Em:[]),n)}}),km=function(){function e(e){this._registry=e}return Object.defineProperty(e.prototype,"items",{get:function(){return this._registry.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortedItems",{get:function(){var e=this._registry.filter(function(e){return!0===e.overlapping}),t=this._registry.filter(function(e){return!0!==e.overlapping});return e.concat(t)},enumerable:!0,configurable:!0}),e.prototype.findByAlias=function(e){return this._registry.find(function(t){return t.alias==e})||null},e.prototype.findByQuery=function(e){return this._registry.find(function(t){return t.mediaQuery==e})||null},Object.defineProperty(e.prototype,"overlappings",{get:function(){return this._registry.filter(function(e){return 1==e.overlapping})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aliases",{get:function(){return this._registry.map(function(e){return e.alias})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"suffixes",{get:function(){return this._registry.map(function(e){return e.suffix?e.suffix:""})},enumerable:!0,configurable:!0}),e.ngInjectableDef=me({factory:function(){return new e(nt(Im))},token:e,providedIn:"root"}),e}(),Am=function(){function e(e,t,n,r){void 0===e&&(e=!1),void 0===t&&(t="all"),void 0===n&&(n=""),void 0===r&&(r=""),this.matches=e,this.mediaQuery=t,this.mqAlias=n,this.suffix=r}return e.prototype.clone=function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)},e}(),Pm=function(){function e(e,t,n){this._zone=e,this._platformId=t,this._document=n,this._registry=new Map,this._source=new ba(new Am(!0)),this._observable$=this._source.asObservable()}return e.prototype.isActive=function(e){var t=this._registry.get(e);return!!t&&t.matches},e.prototype.observe=function(e){return e&&this.registerQuery(e),this._observable$.pipe(xa(function(t){return!e||t.mediaQuery===e}))},e.prototype.registerQuery=function(e){var t=this,n=function(e){return void 0===e?[]:"string"==typeof e?[e]:(t={},e.filter(function(e){return!t.hasOwnProperty(e)&&(t[e]=!0)}));var t}(e);n.length>0&&(this._prepareQueryCSS(n,this._document),n.forEach(function(e){var n=t._registry.get(e),r=function(n){t._zone.run(function(){var r=new Am(n.matches,e);t._source.next(r)})};n||((n=t._buildMQL(e)).addListener(r),t._registry.set(e,n)),n.matches&&r(n)}))},e.prototype._buildMQL=function(e){return Du(this._platformId)&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}},e.prototype._prepareQueryCSS=function(e,t){var n=e.filter(function(e){return!Rm[e]});if(n.length>0){var r=n.join(", ");try{var i=t.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(t.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+r+" {.fx-query-test{ }}\n")),t.head.appendChild(i),n.forEach(function(e){return Rm[e]=i})}catch(e){console.error(e)}}},e.ngInjectableDef=me({factory:function(){return new e(nt(Ht),nt(wt),nt(Ru))},token:e,providedIn:"root"}),e}(),Rm={};function Nm(e,t){return Sm(e,t?{mqAlias:t.alias,suffix:t.suffix}:{})}var Mm=function(){},Dm=function(){function e(e,t){this.breakpoints=e,this.mediaWatcher=t,this.filterOverlaps=!0,this._registerBreakPoints(),this.observable$=this._buildObservable()}return e.prototype.isActive=function(e){var t=this._toMediaQuery(e);return this.mediaWatcher.isActive(t)},e.prototype.subscribe=function(e,t,n){return this.observable$.subscribe(e,t,n)},e.prototype.asObservable=function(){return this.observable$},e.prototype._registerBreakPoints=function(){var e=this.breakpoints.sortedItems.map(function(e){return e.mediaQuery});this.mediaWatcher.registerQuery(e)},e.prototype._buildObservable=function(){var e=this,t=this;return this.mediaWatcher.observe().pipe(xa(function(e){return!0===e.matches}),xa(function(n){var r=e.breakpoints.findByQuery(n.mediaQuery);return!r||!(t.filterOverlaps&&r.overlapping)}),G(function(t){return Nm(t,e._findByQuery(t.mediaQuery))}))},e.prototype._findByAlias=function(e){return this.breakpoints.findByAlias(e)},e.prototype._findByQuery=function(e){return this.breakpoints.findByQuery(e)},e.prototype._toMediaQuery=function(e){var t=this._findByAlias(e)||this._findByQuery(e);return t?t.mediaQuery:e},e.ngInjectableDef=me({factory:function(){return new e(nt(km),nt(Pm))},token:e,providedIn:"root"}),e}(),Lm=function(){},jm=function(){function e(){this.stylesheet=new Map}return e.prototype.addStyleToElement=function(e,t,n){var r=this.stylesheet.get(e);r?r.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))},e.prototype.clearStyles=function(){this.stylesheet.clear()},e.prototype.getStyleForElement=function(e,t){var n=this.stylesheet.get(e),r="";if(n){var i=n.get(t);"number"!=typeof i&&"string"!=typeof i||(r=i+"")}return r},e.ngInjectableDef=me({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Vm=new ge("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),Fm=["row","column","row-reverse","column-reverse"],zm=function(){function e(e,t,n){this._options=e,this._mediaMonitor=t,this._onMediaChanges=n,this._subscribers=[],this._registryMap=this._buildRegistryMap(),this._subscribers=this._configureChangeObservers()}return Object.defineProperty(e.prototype,"registryFromLargest",{get:function(){return this._registryMap.slice().reverse()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mediaMonitor",{get:function(){return this._mediaMonitor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedInputKey",{get:function(){return this._activatedInputKey||this._options.baseKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedInput",{get:function(){var e=this.activatedInputKey;return this.hasKeyValue(e)?this._lookupKeyValue(e):this._options.defaultValue},enumerable:!0,configurable:!0}),e.prototype.hasKeyValue=function(e){return void 0!==this._options.inputKeys[e]},e.prototype.destroy=function(){this._subscribers.forEach(function(e){e.unsubscribe()}),this._subscribers=[]},e.prototype._configureChangeObservers=function(){var e=this,t=[];return this._registryMap.forEach(function(n){e._keyInUse(n.key)&&t.push(e.mediaMonitor.observe(n.alias).pipe(G(function(t){return(t=t.clone()).property=e._options.baseKey,t})).subscribe(function(t){e._onMonitorEvents(t)}))}),t},e.prototype._buildRegistryMap=function(){var e=this;return this.mediaMonitor.breakpoints.map(function(t){return Sm({},t,{baseKey:e._options.baseKey,key:e._options.baseKey+t.suffix})}).filter(function(t){return e._keyInUse(t.key)})},e.prototype._onMonitorEvents=function(e){e.property==this._options.baseKey&&(e.value=this._calculateActivatedValue(e),this._onMediaChanges(e))},e.prototype._keyInUse=function(e){return void 0!==this._lookupKeyValue(e)},e.prototype._calculateActivatedValue=function(e){var t=this._options.baseKey+e.suffix,n=this._activatedInputKey;return this._activatedInputKey=this._validateInputKey(n=e.matches?t:n==t?"":n),this.activatedInput},e.prototype._validateInputKey=function(e){var t=this,n=function(e){return!t._keyInUse(e)};return n(e)&&this.mediaMonitor.activeOverlaps.some(function(r){var i=t._options.baseKey+r.suffix;return!n(i)&&(e=i,!0)}),e},e.prototype._lookupKeyValue=function(e){return this._options.inputKeys[e]},e}(),Bm=function(){function e(e,t,n){this._mediaMonitor=e,this._elementRef=t,this._styler=n,this._inputMap={},this._hasInitialized=!1}return Object.defineProperty(e.prototype,"hasMediaQueryListener",{get:function(){return!!this._mqActivation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedValue",{get:function(){return this._mqActivation?this._mqActivation.activatedInput:void 0},set:function(e){var t,n="baseKey";this._mqActivation&&(t=this._inputMap[n=this._mqActivation.activatedInputKey],this._inputMap[n]=e);var r,i=new Rn(t,e,!1);this.ngOnChanges(((r={})[n]=i,r))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return this._elementRef.nativeElement.parentNode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nativeElement",{get:function(){return this._elementRef.nativeElement},enumerable:!0,configurable:!0}),e.prototype._queryInput=function(e){return this._inputMap[e]},e.prototype.ngOnInit=function(){this._display=this._getDisplayStyle(),this._hasInitialized=!0},e.prototype.ngOnChanges=function(e){throw new Error("BaseDirective::ngOnChanges should be overridden in subclass: "+e)},e.prototype.ngOnDestroy=function(){this._mqActivation&&this._mqActivation.destroy(),delete this._mediaMonitor},e.prototype._getDefaultVal=function(e,t){var n=this._queryInput(e);return void 0!==n&&null!==n&&""!==n?n:t},e.prototype._getDisplayStyle=function(e){return void 0===e&&(e=this.nativeElement),this._styler.lookupStyle(e,"display")},e.prototype._getAttributeValue=function(e,t){return void 0===t&&(t=this.nativeElement),this._styler.lookupAttributeValue(t,e)},e.prototype._getFlexFlowDirection=function(e,t){void 0===t&&(t=!1);var n,r="row";if(e&&(r=(n=this._styler.getFlowDirection(e))[0],!n[1]&&t)){var i=function(e){var t,n,r=function(e){var t=(e=e?e.toLowerCase():"").split(" "),n=t[0],r=t[1],i=t[2];return Fm.find(function(e){return e===n})||(n=Fm[0]),"inline"===r&&(r="inline"!==i?i:"",i="inline"),[n,function(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}(r),!!i]}(e);return n=r[2],void 0===(t=r[1])&&(t=null),void 0===n&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":r[0],"flex-wrap":t||null}}(r);this._styler.applyStyleToElements(i,[e])}return r.trim()||"row"},e.prototype._applyStyleToElement=function(e,t,n){void 0===n&&(n=this.nativeElement),this._styler.applyStyleToElement(n,e,t)},e.prototype._applyStyleToElements=function(e,t){this._styler.applyStyleToElements(e,t)},e.prototype._cacheInput=function(e,t){if("object"==typeof t)for(var n in t)this._inputMap[n]=t[n];else e&&(this._inputMap[e]=t)},e.prototype._listenForMediaQueryChanges=function(e,t,n){if(!this._mqActivation){var r=new function(e,t,n){this.baseKey=e,this.defaultValue=t,this.inputKeys=n}(e,t,this._inputMap);this._mqActivation=new zm(r,this._mediaMonitor,function(e){return n(e)})}return this._mqActivation},Object.defineProperty(e.prototype,"childrenNodes",{get:function(){for(var e=this.nativeElement.children,t=[],n=e.length;n--;)t[n]=e[n];return t},enumerable:!0,configurable:!0}),e.prototype.hasResponsiveAPI=function(e){return Object.keys(this._inputMap).length-(this._inputMap[e]?1:0)>0},e.prototype.hasKeyValue=function(e){return this._mqActivation.hasKeyValue(e)},Object.defineProperty(e.prototype,"hasInitialized",{get:function(){return this._hasInitialized},enumerable:!0,configurable:!0}),e}(),Um=function(){function e(e,t){this._breakpoints=e,this._matchMedia=t,this._registerBreakpoints()}return Object.defineProperty(e.prototype,"breakpoints",{get:function(){return this._breakpoints.items.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeOverlaps",{get:function(){var e=this;return this._breakpoints.overlappings.reverse().filter(function(t){return e._matchMedia.isActive(t.mediaQuery)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){var e=this,t=null;this.breakpoints.reverse().forEach(function(n){""!==n.alias&&!t&&e._matchMedia.isActive(n.mediaQuery)&&(t=n)});var n=this.breakpoints[0];return t||(this._matchMedia.isActive(n.mediaQuery)?n:null)},enumerable:!0,configurable:!0}),e.prototype.isActive=function(e){var t=this._breakpoints.findByAlias(e)||this._breakpoints.findByQuery(e);return this._matchMedia.isActive(t?t.mediaQuery:e)},e.prototype.observe=function(e){var t=this._breakpoints.findByAlias(e||"")||this._breakpoints.findByQuery(e||"");return this._matchMedia.observe(t?t.mediaQuery:e).pipe(G(function(e){return Nm(e,t)}),xa(function(e){return!t||""!==e.mqAlias}))},e.prototype._registerBreakpoints=function(){var e=this._breakpoints.sortedItems.map(function(e){return e.mediaQuery});this._matchMedia.registerQuery(e)},e.ngInjectableDef=me({factory:function(){return new e(nt(km),nt(Pm))},token:e,providedIn:"root"}),e}();function Hm(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=n;break;case"flex-direction":e["-webkit-flex-direction"]=n=n||"row",e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(n)?"0":n}}return e}var Gm=function(){function e(e,t,n,r){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=n,this.layoutConfig=r}return e.prototype.applyStyleToElement=function(e,t,n){var r={};"string"==typeof t&&(r[t]=n,t=r),r=this.layoutConfig.disableVendorPrefixes?t:Hm(t),this._applyMultiValueStyleToElement(r,e)},e.prototype.applyStyleToElements=function(e,t){var n=this;void 0===t&&(t=[]);var r=this.layoutConfig.disableVendorPrefixes?e:Hm(e);t.forEach(function(e){n._applyMultiValueStyleToElement(r,e)})},e.prototype.getFlowDirection=function(e){var t=this.lookupStyle(e,"flex-direction");t===Wm&&(t="");var n=this.lookupInlineStyle(e,"flex-direction")||Lu(this._platformId)&&this._serverModuleLoaded?t:"";return[t||"row",n]},e.prototype.lookupAttributeValue=function(e,t){return e.getAttribute(t)||""},e.prototype.lookupInlineStyle=function(e,t){return Du(this._platformId)?e.style[t]:this._getServerStyle(e,t)},e.prototype.lookupStyle=function(e,t,n){void 0===n&&(n=!1);var r="";return e&&((r=this.lookupInlineStyle(e,t))||(Du(this._platformId)?n||(r=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(e,t)))),r?r.trim():Wm},e.prototype._applyMultiValueStyleToElement=function(e,t){var n=this;Object.keys(e).sort().forEach(function(r){var i=Array.isArray(e[r])?e[r]:[e[r]];i.sort();for(var o=0,s=i;o0){var s=o.indexOf(":");if(-1===s)throw new Error("Invalid CSS style: "+o);t[o.substr(0,s).trim()]=o.substr(s+1).trim()}}return t},e.prototype._writeStyleAttribute=function(e,t){var n="";for(var r in t)t[r]&&(n+=r+":"+t[r]+";");e.setAttribute("style",n)},e.ngInjectableDef=me({factory:function(){return new e(nt(jm,8),nt(Vm,8),nt(wt),nt(Om))},token:e,providedIn:"root"}),e}(),Wm="block";function qm(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var Zm=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(ih),Qm=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(sh))(Zm);function Ym(e,t){return new A(t?function(n){return t.schedule(Km,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function Km(e){e.subscriber.error(e.error)}var Xm=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Sa(this.value);case"E":return Ym(this.error);case"C":return wa()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),Jm=function(e){function t(t,n,r){void 0===r&&(r=0);var i=e.call(this,t)||this;return i.scheduler=n,i.delay=r,i}return i(t,e),t.dispatch=function(e){e.notification.observe(e.destination),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new $m(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(Xm.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(Xm.createError(e))},t.prototype._complete=function(){this.scheduleMessage(Xm.createComplete())},t}(C),$m=function(e,t){this.notification=e,this.destination=t},eg=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return i(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new tg(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new ne;if(this.isStopped||this.hasError?t=w.EMPTY:(this.observers.push(e),t=new re(this,e)),i&&e.add(e=new Jm(e,i)),n)for(var s=0;st&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},t}(oe),tg=function(e,t){this.time=e,this.value=t},ng="inline",rg=["row","column","row-reverse","column-reverse"];function ig(e){var t=(e=e?e.toLowerCase():"").split(" "),n=t[0],r=t[1],i=t[2];return rg.find(function(e){return e===n})||(n=rg[0]),r===ng&&(r=i!==ng?i:"",i=ng),[n,function(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}(r),!!i]}function og(e){return ig(e)[0].indexOf("row")>-1}var sg=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i._announcer=new eg(1),i.layout$=i._announcer.asObservable(),i}return i(t,e),Object.defineProperty(t.prototype,"layout",{set:function(e){this._cacheInput("layout",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutXs",{set:function(e){this._cacheInput("layoutXs",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutSm",{set:function(e){this._cacheInput("layoutSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutMd",{set:function(e){this._cacheInput("layoutMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutLg",{set:function(e){this._cacheInput("layoutLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutXl",{set:function(e){this._cacheInput("layoutXl",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutGtXs",{set:function(e){this._cacheInput("layoutGtXs",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutGtSm",{set:function(e){this._cacheInput("layoutGtSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutGtMd",{set:function(e){this._cacheInput("layoutGtMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutGtLg",{set:function(e){this._cacheInput("layoutGtLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutLtSm",{set:function(e){this._cacheInput("layoutLtSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutLtMd",{set:function(e){this._cacheInput("layoutLtMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutLtLg",{set:function(e){this._cacheInput("layoutLtLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutLtXl",{set:function(e){this._cacheInput("layoutLtXl",e)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){(null!=e.layout||this._mqActivation)&&this._updateWithDirection()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("layout","row",function(e){t._updateWithDirection(e.value)}),this._updateWithDirection()},t.prototype._updateWithDirection=function(e){e=e||this._queryInput("layout")||"row",this._mqActivation&&(e=this._mqActivation.activatedInput);var t=function(e){var t=ig(e);return function(e,n,r){return void 0===n&&(n=null),void 0===r&&(r=!1),{display:r?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t[0],"flex-wrap":n||null}}(0,t[1],t[2])}(e||"");this._applyStyleToElement(t),this._announcer.next({direction:t["flex-direction"],wrap:!!t["flex-wrap"]&&"nowrap"!==t["flex-wrap"]})},t}(Bm),ag=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,n,s)||this;return a._zone=i,a._directionality=o,a._layout="row",r&&(a._layoutWatcher=r.layout$.subscribe(a._onLayoutChange.bind(a))),a._directionWatcher=a._directionality.change.subscribe(a._updateWithValue.bind(a)),a}return i(t,e),Object.defineProperty(t.prototype,"gap",{set:function(e){this._cacheInput("gap",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapXs",{set:function(e){this._cacheInput("gapXs",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapSm",{set:function(e){this._cacheInput("gapSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapMd",{set:function(e){this._cacheInput("gapMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapLg",{set:function(e){this._cacheInput("gapLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapXl",{set:function(e){this._cacheInput("gapXl",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapGtXs",{set:function(e){this._cacheInput("gapGtXs",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapGtSm",{set:function(e){this._cacheInput("gapGtSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapGtMd",{set:function(e){this._cacheInput("gapGtMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapGtLg",{set:function(e){this._cacheInput("gapGtLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapLtSm",{set:function(e){this._cacheInput("gapLtSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapLtMd",{set:function(e){this._cacheInput("gapLtMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapLtLg",{set:function(e){this._cacheInput("gapLtLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapLtXl",{set:function(e){this._cacheInput("gapLtXl",e)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){(null!=e.gap||this._mqActivation)&&this._updateWithValue()},t.prototype.ngAfterContentInit=function(){var e=this;this._watchContentChanges(),this._listenForMediaQueryChanges("gap","0",function(t){e._updateWithValue(t.value)}),this._updateWithValue()},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this._layoutWatcher&&this._layoutWatcher.unsubscribe(),this._observer&&this._observer.disconnect(),this._directionWatcher&&this._directionWatcher.unsubscribe()},t.prototype._watchContentChanges=function(){var e=this;this._zone.runOutsideAngular(function(){"undefined"!=typeof MutationObserver&&(e._observer=new MutationObserver(function(t){t.some(function(e){return e.addedNodes&&e.addedNodes.length>0||e.removedNodes&&e.removedNodes.length>0})&&e._updateWithValue()}),e._observer.observe(e.nativeElement,{childList:!0}))})},t.prototype._onLayoutChange=function(e){var t=this;this._layout=(e.direction||"").toLowerCase(),rg.find(function(e){return e===t._layout})||(this._layout="row"),this._updateWithValue()},t.prototype._updateWithValue=function(e){var t=this,n=e||this._queryInput("gap")||"0";this._mqActivation&&(n=this._mqActivation.activatedInput);var r=this.childrenNodes.filter(function(e){return 1===e.nodeType&&"none"!=t._getDisplayStyle(e)}).sort(function(e,n){var r=+t._styler.lookupStyle(e,"order"),i=+t._styler.lookupStyle(n,"order");return isNaN(r)||isNaN(i)||r===i?0:r>i?1:-1});if(r.length>0)if(n.endsWith(ug))n=n.substring(0,n.indexOf(ug)),this._applyStyleToElements(this._buildGridPadding(n),r),this._applyStyleToElement(this._buildGridMargin(n));else{var i=r.pop();this._applyStyleToElements(this._buildCSS(n),r),this._applyStyleToElements(this._buildCSS(),[i])}},t.prototype._buildGridPadding=function(e){var t="0px",n="0px";return"rtl"===this._directionality.value?n=e:t=e,{padding:"0px "+t+" "+e+" "+n}},t.prototype._buildGridMargin=function(e){var t="0px",n="0px";return"rtl"===this._directionality.value?n="-"+e:t="-"+e,{margin:"0px "+t+" -"+e+" "+n}},t.prototype._buildCSS=function(e){void 0===e&&(e=null);var t,n={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};switch(this._layout){case"column":t="margin-bottom";break;case"column-reverse":t="margin-top";break;case"row":t="rtl"===this._directionality.value?"margin-left":"margin-right";break;case"row-reverse":t="rtl"===this._directionality.value?"margin-right":"margin-left";break;default:t="rtl"===this._directionality.value?"margin-left":"margin-right"}return n[t]=e,n},t}(Bm),ug=" grid";function lg(e){for(var t=[],n=1;n0)r[2]=qm(e.substring(i).trim()),2==(o=e.substr(0,i).trim().split(" ")).length&&(r[0]=o[0],r[1]=o[1]);else if(0==i)r[2]=qm(e.trim());else{var o;r=3===(o=e.split(" ")).length?o:[t,n,e]}return r}(String(t).replace(";",""),this._queryInput("grow"),this._queryInput("shrink"));this._applyStyleToElement(this._validateValue.apply(this,n))},t.prototype._validateValue=function(e,t,n){var r=this._getFlexFlowDirection(this.parentElement,this.layoutConfig.addFlexToParent).indexOf("column")>-1?"column":"row",i=og(r)?"max-width":"max-height",o=og(r)?"min-width":"min-height",s=String(n).indexOf("calc")>-1,a=s||"auto"==n,u=String(n).indexOf("%")>-1&&!s,l=String(n).indexOf("px")>-1||String(n).indexOf("em")>-1||String(n).indexOf("vw")>-1||String(n).indexOf("vh")>-1,c=String(n).indexOf("px")>-1||a,d=s||l;e="0"==e?0:e,t="0"==t?0:t;var p=!e&&!t,h={},f={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(n||""){case"":n="row"===r?"0%":this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":e=0,n="auto";break;case"grow":n="100%";break;case"noshrink":t=0,n="auto";break;case"auto":break;case"none":e=0,t=0,n="auto";break;default:d||u||isNaN(n)||(n+="%"),"0%"===n&&(d=!0),"0px"===n&&(n="0%"),h=lg(f,s?{"flex-grow":e,"flex-shrink":t,"flex-basis":d?n:"100%"}:{flex:e+" "+t+" "+(d?n:"100%")})}return h.flex||h["flex-grow"]||(h=lg(f,s?{"flex-grow":e,"flex-shrink":t,"flex-basis":n}:{flex:e+" "+t+" "+n})),"0%"!==n&&"0px"!==n&&"0.000000001px"!==n&&"auto"!==n&&(h[o]=p||c&&e?n:null,h[i]=p||!a&&t?n:null),h[o]||h[i]?this._layout&&this._layout.wrap&&(h[s?"flex-basis":"flex"]=h[i]?s?h[i]:e+" "+t+" "+h[i]:s?h[o]:e+" "+t+" "+h[o]):h=lg(f,s?{"flex-grow":e,"flex-shrink":t,"flex-basis":n}:{flex:e+" "+t+" "+n}),lg(h,{"box-sizing":"border-box"})},t}(Bm),dg=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return i(t,e),Object.defineProperty(t.prototype,"order",{set:function(e){this._cacheInput("order",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderXs",{set:function(e){this._cacheInput("orderXs",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderSm",{set:function(e){this._cacheInput("orderSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderMd",{set:function(e){this._cacheInput("orderMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderLg",{set:function(e){this._cacheInput("orderLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderXl",{set:function(e){this._cacheInput("orderXl",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderGtXs",{set:function(e){this._cacheInput("orderGtXs",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderGtSm",{set:function(e){this._cacheInput("orderGtSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderGtMd",{set:function(e){this._cacheInput("orderGtMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderGtLg",{set:function(e){this._cacheInput("orderGtLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderLtSm",{set:function(e){this._cacheInput("orderLtSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderLtMd",{set:function(e){this._cacheInput("orderLtMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderLtLg",{set:function(e){this._cacheInput("orderLtLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderLtXl",{set:function(e){this._cacheInput("orderLtXl",e)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){(null!=e.order||this._mqActivation)&&this._updateWithValue()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("order","0",function(e){t._updateWithValue(e.value)}),this._updateWithValue()},t.prototype._updateWithValue=function(e){e=e||this._queryInput("order")||"0",this._mqActivation&&(e=this._mqActivation.activatedInput),this._applyStyleToElement(this._buildCSS(e))},t.prototype._buildCSS=function(e){return e=parseInt(e,10),{order:isNaN(e)?0:e}},t}(Bm),pg=function(){},hg=function(){},fg=function(){},mg=function(){},gg=function(){},yg=Ur({encapsulation:2,styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:block;position:relative;padding:24px;border-radius:2px}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}.mat-card.mat-card-flat{box-shadow:none}@media screen and (-ms-high-contrast:active){.mat-card{outline:solid 1px}}.mat-card-actions,.mat-card-content,.mat-card-subtitle,.mat-card-title{display:block;margin-bottom:16px}.mat-card-actions{margin-left:-16px;margin-right:-16px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 48px);margin:0 -24px 16px -24px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-footer{display:block;margin:0 -24px -24px -24px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button{margin:0 4px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header-text{margin:0 8px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0}.mat-card-lg-image,.mat-card-md-image,.mat-card-sm-image{margin:-8px 0}.mat-card-title-group{display:flex;justify-content:space-between;margin:0 -8px}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}@media (max-width:599px){.mat-card{padding:24px 16px}.mat-card-actions{margin-left:-8px;margin-right:-8px}.mat-card-image{width:calc(100% + 32px);margin:16px -16px}.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}.mat-card-header{margin:-8px 0 0 0}.mat-card-footer{margin-left:-16px;margin-right:-16px}}.mat-card-content>:first-child,.mat-card>:first-child{margin-top:0}.mat-card-content>:last-child:not(.mat-card-footer),.mat-card>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-24px}.mat-card>.mat-card-actions:last-child{margin-bottom:-16px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child{margin-left:0;margin-right:0}.mat-card-subtitle:not(:first-child),.mat-card-title:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],data:{}});function vg(e){return Po(2,[To(null,0),To(null,1)],null,null)}function bg(){for(var e,t=[],n=0;ne?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return Sg(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return Sg(e.value)?null:xg.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(Sg(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(Sg(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(Og);return 0==t.length?null:function(e){return kg(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(Og);return 0==t.length?null:function(e){return bg(function(e,n){return t.map(function(t){return t(e)})}(e).map(Ig)).pipe(G(kg))}},e}();function Og(e){return null!=e}function Ig(e){var t=ht(e)?Q(e):e;if(!ft(t))throw new Error("Expected validator to return Promise or Observable.");return t}function kg(e){var t=e.reduce(function(e,t){return null!=t?o({},e,t):e},{});return 0===Object.keys(t).length?null:t}var Ag=new ge("NgValueAccessor"),Pg=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),Rg=new ge("CompositionEventMode"),Ng=function(){function e(e,t,n){var r;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Vu()?Vu().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function Mg(e){return e.validate?function(t){return e.validate(t)}:e}function Dg(e){return e.validate?function(t){return e.validate(t)}:e}var Lg=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function jg(){throw new Error("unimplemented")}var Vg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return i(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return jg()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return jg()},enumerable:!0,configurable:!0}),t}(wg),Fg=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),zg=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(Vg),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e}(),Bg=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),Ug='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Hg='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Gg='\n
\n
\n \n
\n
',Wg=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Ug)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+Hg+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Gg)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Ug)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Hg)},e.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e.ngModelWarning=function(e){console.warn("\n It looks like you're using ngModel on the same form field as "+e+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===e?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},e}();function qg(e,t){return u(t.path,[e])}function Zg(e,t){e||Xg(t,"Cannot find control with"),t.valueAccessor||Xg(t,"No value accessor for form control with"),e.validator=Tg.compose([e.validator,t.validator]),e.asyncValidator=Tg.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Qg(e,t)})}(e,t),function(e,t){e.registerOnChange(function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Qg(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function Qg(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Yg(e,t){null==e&&Xg(t,"Cannot find control with"),e.validator=Tg.compose([e.validator,t.validator]),e.asyncValidator=Tg.composeAsync([e.asyncValidator,t.asyncValidator])}function Kg(e){return Xg(e,"There is no FormControl instance attached to form control element with")}function Xg(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function Jg(e){return null!=e?Tg.compose(e.map(Mg)):null}function $g(e){return null!=e?Tg.composeAsync(e.map(Dg)):null}var ey=[Pg,Bg,Lg,function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Ie}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){try{for(var t=s(Array.from(this._optionMap.keys())),n=t.next();!n.done;n=t.next()){var r=n.value;if(this._compareWith(this._optionMap.get(r),e))return r}}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=t.return)&&o.call(t)}finally{if(i)throw i.error}}return null;var i,o},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},e}(),function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Ie}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o-1&&e.splice(n,1)}var ry=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return qg(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Jg(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return $g(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(Eg),iy=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),oy=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t}(iy),sy=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t}(iy);function ay(e){var t=ly(e)?e.validators:e;return Array.isArray(t)?Jg(t):t||null}function uy(e,t){var n=ly(t)?t.asyncValidators:e;return Array.isArray(n)?$g(n):n||null}function ly(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var cy=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=ay(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=uy(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(o({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(t){t.enable(o({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=Ig(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof py?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof hy&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new Ut,this.statusChanges=new Ut},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){ly(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),dy=function(e){function t(t,n,r){void 0===t&&(t=null);var i=e.call(this,ay(n),uy(r,n))||this;return i._onChange=[],i._applyFormState(t),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return i(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(cy),py=function(e){function t(t,n,r){var i=e.call(this,ay(n),uy(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof dy?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(r,i){n=n||t.contains(i)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){try{for(var e=s(Object.keys(this.controls)),t=e.next();!t.done;t=e.next())if(this.controls[t.value].enabled)return!1}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return Object.keys(this.controls).length>0||this.disabled;var n,r},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(cy),hy=function(e){function t(t,n,r){var i=e.call(this,ay(n),uy(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof dy?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){try{for(var e=s(this.controls),t=e.next();!t.done;t=e.next())if(t.value.enabled)return!1}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return this.controls.length>0||this.disabled;var n,r},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(cy),fy=Promise.resolve(null),my=function(e){function t(t,n){var r=e.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Ut,r.form=new py({},Jg(t),$g(n)),r}return i(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Zg(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ny(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path),r=new py({});Yg(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;fy.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,ty(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(Eg),gy=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+Ug+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+Hg+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Gg)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+Hg+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Gg)},e}(),yy=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return i(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof my||gy.modelGroupParentException()},t}(ry),vy=Promise.resolve(null),by=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.control=new dy,o._registered=!1,o.update=new Ut,o._parent=t,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||Xg(e,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return t.forEach(function(t){var o;t.constructor===Ng?n=t:(o=t,ey.some(function(e){return o.constructor===e})?(r&&Xg(e,"More than one built-in value accessor matches form control with"),r=t):(i&&Xg(e,"More than one custom value accessor matches form control with"),i=t))}),i||r||n||(Xg(e,"No valid value accessor for form control with"),null)}(o,i),o}return i(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Ie(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?qg(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Jg(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return $g(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){Zg(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof yy)&&this._parent instanceof ry?gy.formGroupNameException():this._parent instanceof yy||this._parent instanceof my||gy.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||gy.missingNameException()},t.prototype._updateValue=function(e){var t=this;vy.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;vy.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}(Vg),_y=function(e){function t(t,n){var r=e.call(this)||this;return r._validators=t,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Ut,r}return i(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return Zg(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){ny(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);Yg(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);Yg(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,ty(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange(function(){return Kg(t)}),t.valueAccessor.registerOnTouched(function(){return Kg(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&Zg(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=Jg(this._validators);this.form.validator=Tg.compose([this.form.validator,e]);var t=$g(this._asyncValidators);this.form.asyncValidator=Tg.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||Wg.missingFormException()},t}(Eg),wy=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?Tg.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),Ey=function(){},Sy=function(){},Cy=function(){},xy=0,Ty=function(e){function t(t,n,r,i,o,s,a){var u=e.call(this,t)||this;return u._focusMonitor=r,u._changeDetectorRef=i,u._ngZone=s,u._animationMode=a,u.onChange=function(e){},u.onTouched=function(){},u._uniqueId="mat-slide-toggle-"+ ++xy,u._required=!1,u._checked=!1,u._dragging=!1,u.name=null,u.id=u._uniqueId,u.labelPosition="after",u.ariaLabel=null,u.ariaLabelledby=null,u.change=new Ut,u.tabIndex=parseInt(o)||0,u}return i(t,e),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=Pp(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._checked=Pp(e),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var e=this;this._focusMonitor.monitor(this._inputElement.nativeElement).subscribe(function(t){return e._onInputFocusChange(t)})},t.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._inputElement.nativeElement)},t.prototype._onChangeEvent=function(e){e.stopPropagation(),this._dragging?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())},t.prototype._onInputClick=function(e){e.stopPropagation()},t.prototype.writeValue=function(e){this.checked=!!e},t.prototype.registerOnChange=function(e){this.onChange=e},t.prototype.registerOnTouched=function(e){this.onTouched=e},t.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},t.prototype.focus=function(){this._focusMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},t.prototype.toggle=function(){this.checked=!this.checked,this.onChange(this.checked)},t.prototype._onInputFocusChange=function(e){this._focusRipple||"keyboard"!==e?e||(this.onTouched(),this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)):this._focusRipple=this._ripple.launch(0,0,{persistent:!0})},t.prototype._emitChangeEvent=function(){this.onChange(this.checked),this.change.emit(new function(e,t){this.source=e,this.checked=t}(this,this.checked))},t.prototype._getDragPercentage=function(e){var t=e/this._thumbBarWidth*100;return this._previousChecked&&(t+=100),Math.max(0,Math.min(t,100))},t.prototype._onDragStart=function(){if(!this.disabled&&!this._dragging){var e=this._thumbEl.nativeElement;this._thumbBarWidth=this._thumbBarEl.nativeElement.clientWidth-e.clientWidth,e.classList.add("mat-dragging"),this._previousChecked=this.checked,this._dragging=!0}},t.prototype._onDrag=function(e){this._dragging&&(this._dragPercentage=this._getDragPercentage(e.deltaX),this._thumbEl.nativeElement.style.transform="translate3d("+this._dragPercentage/100*this._thumbBarWidth+"px, 0, 0)")},t.prototype._onDragEnd=function(){var e=this;if(this._dragging){var t=this._dragPercentage>50;t!==this.checked&&(this.checked=t,this._emitChangeEvent()),this._ngZone.runOutsideAngular(function(){return setTimeout(function(){e._dragging&&(e._dragging=!1,e._thumbEl.nativeElement.classList.remove("mat-dragging"),e._thumbEl.nativeElement.style.transform="")})})}},t.prototype._onLabelTextChange=function(){this._changeDetectorRef.markForCheck()},t}(function(e,t){return void 0===t&&(t=0),function(e){function n(){for(var n=[],r=0;r *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var o=i[1],s=i[2],a=i[3];t.push(wv(o,a)),"<"!=s[0]||o==vv&&a==vv||t.push(wv(a,o))}(e,i,r)}):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Ov(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return gv(n,e,t)}),options:Ov(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map(function(e){t.currentTime=r;var o=gv(n,e,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:3,steps:o,options:Ov(e.options)}},e.prototype.visitAnimate=function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Iv(ev(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=Iv(0,0,"");return i.dynamic=!0,i.strValue=r,i}return Iv((n=n||ev(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:Tp({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,s=!1;if(!o){s=!0;var a={};r.easing&&(a.easing=r.easing),o=Tp(a)}t.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,t);u.isEmptyStep=s,n=u}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==Cp?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(Tv(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,u,l=t.collectedStyles[t.currentQuerySelector],c=l[r],d=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(t.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),d=!1),o=c.startTime),d&&(l[r]={startTime:o,endTime:i}),t.options&&(s=t.errors,a=t.options.params||{},(u=lv(e[r])).length&&u.forEach(function(e){a.hasOwnProperty(e)||s.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],s=!1,a=!1,u=0,l=e.steps.map(function(e){var r=n._makeStyleAst(e,t),l=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(Tv(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(Tv(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=l&&(i++,c=r.offset=l),a=a||c<0||c>1,s=s||c0&&i0?i==p?1:d*i:o[i],a=s*m;t.currentTime=h+f.delay+a,f.duration=a,n._validateStyleAst(e,t),e.offset=s,r.styles.push(e)}),r},e.prototype.visitReference=function(e,t){return{type:8,animation:gv(this,av(e.animation),t),options:Ov(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:Ov(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ov(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=a(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Ev,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=i[0],s=i[1];t.currentQuerySelector=n.length?n+" "+o:o,My(t.collectedStyles,t.currentQuerySelector,{});var u=gv(this,av(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:u,originalSelector:e.selector,options:Ov(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:ev(e.timings,t.errors,!0);return{type:12,animation:gv(this,av(e.animation),t),timings:n,options:null}},e}(),xv=function(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Tv(e){return!Array.isArray(e)&&"object"==typeof e}function Ov(e){var t;return e?(e=tv(e)).params&&(e.params=(t=e.params)?tv(t):null):e={},e}function Iv(e,t,n){return{duration:e,delay:t,easing:n}}function kv(e,t,n,r,i,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var Av=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,u(t))},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),Pv=new RegExp(":enter","g"),Rv=new RegExp(":leave","g");function Nv(e,t,n,r,i,o,s,a,u,l){return void 0===o&&(o={}),void 0===s&&(s={}),void 0===l&&(l=[]),(new Mv).buildKeyframes(e,t,n,r,i,o,s,a,u,l)}var Mv=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,r,i,o,s,a,u,l){void 0===l&&(l=[]),u=u||new Av;var c=new Lv(e,t,u,r,i,l,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),gv(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(s).length){var p=d[d.length-1];p.allowOnlyTimelineStyles()||p.setStyles([s],null,c.errors,a)}return d.length?d.map(function(e){return e.buildKeyframes()}):[kv(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?Jy(n.duration):null,o=null!=n.delay?Jy(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),gv(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Dv);var s=Jy(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(function(e){return gv(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?Jy(e.options.delay):0;e.steps.forEach(function(s){var a=t.createSubContext(e.options);o&&a.delayNextStep(o),gv(n,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return ev(t.params?cv(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?Jy(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Dv);var s=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;var u=null;a.forEach(function(r,i){t.currentQueryIndex=i;var a=t.createSubContext(e.options,r);o&&a.delayNextStep(o),r===t.element&&(u=a.currentTimeline),gv(n,e.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),s=o*(t.currentQueryTotal-1),a=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=t.currentTimeline;a&&u.delayNextStep(a);var l=u.currentTime;gv(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},e}(),Dv={},Lv=function(){function e(e,t,n,r,i,o,s,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Dv,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new jv(this._driver,t,0),s.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=Jy(r.duration)),null!=r.delay&&(i.delay=Jy(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(e){t&&s.hasOwnProperty(e)||(s[e]=cv(o[e],s,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,r){void 0===t&&(t=null);var i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=Dv,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new Vv(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,r,i,o){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(Pv,"."+this._enterClassName)).replace(Rv,"."+this._leaveClassName);var a=this._driver.query(this.element,e,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,u(a))}return i||0!=s.length||o.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),s},e}(),jv=function(){function e(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||Cp,t._currentKeyframe[e]=Cp}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},s=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=Cp}):nv(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=cv(s[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:Cp),i._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,s){var a=nv(o,!0);Object.keys(a).forEach(function(e){var r=a[e];r==Ap?t.add(e):r==Cp&&n.add(e)}),r||(a.offset=s/e.duration),i.push(a)});var o=t.size?dv(t.values()):[],s=n.size?dv(n.values()):[];if(r){var a=i[0],u=tv(a);a.offset=0,u.offset=1,i=[a,u]}return kv(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)},e}(),Vv=function(e){function t(t,n,r,i,o,s,a){void 0===a&&(a=!1);var u=e.call(this,t,n,s.delay)||this;return u.element=n,u.keyframes=r,u.preStyleProps=i,u.postStyleProps=o,u._stretchStartingKeyframe=a,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return i(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,u=nv(e[0],!1);u.offset=0,o.push(u);var l=nv(e[0],!1);l.offset=Fv(a),o.push(l);for(var c=e.length-1,d=1;d<=c;d++){var p=nv(e[d],!1);p.offset=Fv((n+p.offset*r)/s),o.push(p)}r=s,n=0,i="",e=o}return kv(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)},t}(jv);function Fv(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var zv=function(){},Bv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.normalizePropertyName=function(e,t){return hv(e)},t.prototype.normalizeStyleValue=function(e,t,n,r){var i="",o=n.toString().trim();if(Uv[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return o+i},t}(zv),Uv=function(e){var t={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(e){return t[e]=!0}),t}();function Hv(e,t,n,r,i,o,s,a,u,l,c,d,p){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:d,errors:p}}var Gv={},Wv=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)},e.prototype.buildStyles=function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o},e.prototype.build=function(e,t,n,r,i,s,a,u,l,c){var d=[],p=this.ast.options&&this.ast.options.params||Gv,h=this.buildStyles(n,a&&a.params||Gv,d),f=u&&u.params||Gv,m=this.buildStyles(r,f,d),g=new Set,y=new Map,v=new Map,b="void"===r,_={params:o({},p,f)},w=c?[]:Nv(e,t,this.ast.animation,i,s,h,m,_,l,d),E=0;if(w.forEach(function(e){E=Math.max(e.duration+e.delay,E)}),d.length)return Hv(t,this._triggerName,n,r,b,h,m,[],[],y,v,E,d);w.forEach(function(e){var n=e.element,r=My(y,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=My(v,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&g.add(n)});var S=dv(g.values());return Hv(t,this._triggerName,n,r,b,h,m,w,S,y,v,E)},e}(),qv=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=tv(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var o=i[e];o.length>1&&(o=cv(o,r,t)),n[e]=o})}}),n},e}(),Zv=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new qv(e.style,e.options&&e.options.params||{})}),Qv(this.states,"true","1"),Qv(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new Wv(e,t,n.states))}),this.fallbackTransition=new Wv(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function Qv(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Yv=new Av,Kv=function(){function e(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],r=Sv(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r},e.prototype._buildPlayer=function(e,t,n){var r=e.element,i=Ay(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)},e.prototype.create=function(e,t,n){var r=this;void 0===n&&(n={});var i,o=[],s=this._animations[e],a=new Map;if(s?(i=Nv(this._driver,t,s,"ng-enter","ng-leave",{},{},n,Yv,o)).forEach(function(e){var t=My(a,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));a.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,Cp)})});var u=ky(i.map(function(e){var t=a.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return r.destroy(e)}),this.players.push(u),u},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,r){var i=Ny(t,"","","");return Py(this._getPlayer(e),n,i,r),function(){}},e.prototype.command=function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])},e}(),Xv=[],Jv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$v={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},eb="__ng_removed",tb=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var r=tv(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),nb=new tb("void"),rb=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,db(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var s=My(this._elementListeners,e,[]),a={name:t,phase:n,callback:r};s.push(a);var u=My(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(db(e,"ng-trigger"),db(e,"ng-trigger-"+t),u[t]=nb),function(){o._engine.afterFlush(function(){var e=s.indexOf(a);e>=0&&s.splice(e,1),o._triggers[t]||delete u[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(t),s=new ob(this.id,t,e),a=this._engine.statesByElement.get(e);a||(db(e,"ng-trigger"),db(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,a={}));var u=a[t],l=new tb(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a[t]=l,u||(u=nb),"void"===l.value||u.value!==l.value){var c=My(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=o.matchTransition(u.value,l.value,e,l.params),p=!1;if(!d){if(!r)return;d=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:u,toState:l,player:s,isFallbackTransition:p}),p||(db(e,"ng-animate-queued"),s.onStart(function(){pb(e,"ng-animate-queued")})),s.onDone(function(){var t=i.players.indexOf(s);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){var s=this._fetchNamespace(e);s&&s.insertNode(t,n)}r&&this.collectEnterElement(t)}},e.prototype.collectEnterElement=function(e){this.collectedEnterElements.push(e)},e.prototype.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),db(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),pb(e,"ng-animate-disabled"))},e.prototype.removeNode=function(e,t,n){if(sb(t)){var r=e?this._fetchNamespace(e):null;r?r.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n)}else this._onRemovalComplete(t,n)},e.prototype.markElementAsRemoved=function(e,t,n,r){this.collectedLeaveElements.push(t),t[eb]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},e.prototype.listen=function(e,t,n,r,i){return sb(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}},e.prototype._buildInstruction=function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)},e.prototype.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})},e.prototype.destroyActiveAnimationsForElement=function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})},e.prototype.finishActiveQueriedAnimationOnElement=function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})},e.prototype.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return ky(e.players).onDone(function(){return t()});t()})},e.prototype.processLeaveNode=function(e){var t=this,n=e[eb];if(n&&n.setForRemoval){if(e[eb]=Jv,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(n){t.markElementAsDisabled(e,!1)})},e.prototype.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(C.push(t),n.collectedEnterElements.length){var s=o[eb];if(s&&s.setForMove)return void t.destroy()}var u=!h||!n.driver.containsElement(h,o),p=E.get(o),f=g.get(o),m=n._buildInstruction(e,r,f,p,u);if(m.errors&&m.errors.length)x.push(m);else{if(u)return t.onStart(function(){return sv(o,m.fromStyles)}),t.onDestroy(function(){return ov(o,m.toStyles)}),void i.push(t);if(e.isFallbackTransition)return t.onStart(function(){return sv(o,m.fromStyles)}),t.onDestroy(function(){return ov(o,m.toStyles)}),void i.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(o,m.timelines),a.push({instruction:m,player:t,element:o}),m.queriedElements.forEach(function(e){return My(l,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=c.get(t);r||c.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=d.get(t);r||d.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}});if(x.length){var O=[];x.forEach(function(e){O.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return O.push("- "+e+"\n")})}),C.forEach(function(e){return e.destroy()}),this.reportError(O)}var I=new Map,k=new Map;a.forEach(function(e){var t=e.element;r.has(t)&&(k.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,I))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){My(I,t,[]).push(e),e.destroy()})});var A=v.filter(function(e){return fb(e,c,d)}),P=new Map;ub(P,this.driver,_,d,Cp).forEach(function(e){fb(e,c,d)&&A.push(e)});var R=new Map;m.forEach(function(e,t){ub(R,n.driver,new Set(e),c,Ap)}),A.forEach(function(e){var t=P.get(e),n=R.get(e);P.set(e,o({},t,n))});var N=[],M=[],D={};a.forEach(function(e){var t=e.element,o=e.player,a=e.instruction;if(r.has(t)){if(p.has(t))return o.onDestroy(function(){return ov(t,a.toStyles)}),o.disabled=!0,o.overrideTotalTime(a.totalTime),void i.push(o);var u=D;if(k.size>1){for(var l=t,c=[];l=l.parentNode;){var d=k.get(l);if(d){u=d;break}c.push(l)}c.forEach(function(e){return k.set(e,u)})}var h=n._buildAnimation(o.namespaceId,a,I,s,R,P);if(o.setRealPlayer(h),u===D)N.push(o);else{var f=n.playersByElement.get(u);f&&f.length&&(o.parentPlayer=ky(f)),i.push(o)}}else sv(t,a.fromStyles),o.onDestroy(function(){return ov(t,a.toStyles)}),M.push(o),p.has(t)&&i.push(o)}),M.forEach(function(e){var t=s.get(e.element);if(t&&t.length){var n=ky(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var L=0;L0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Ip(e.duration,e.delay)},e}(),ob=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Ip,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return Py(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.overrideTotalTime=function(e){this.totalTime=e},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){My(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function sb(e){return e&&1===e.nodeType}function ab(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function ub(e,t,n,r,i){var o=[];n.forEach(function(e){return o.push(ab(e))});var s=[];r.forEach(function(n,r){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r[eb]=$v,s.push(r))}),e.set(r,o)});var a=0;return n.forEach(function(e){return ab(e,o[a++])}),s}function lb(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var s=t.parentNode;return o=n.has(s)?s:r.has(s)?1:e(s),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}var cb="$$classes";function db(e,t){if(e.classList)e.classList.add(t);else{var n=e[cb];n||(n=e[cb]={}),n[t]=!0}}function pb(e,t){if(e.classList)e.classList.remove(t);else{var n=e[cb];n&&delete n[t]}}function hb(e,t,n){ky(n).onDone(function(){return e.processLeaveNode(t)})}function fb(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach(function(e){return i.add(e)}):t.set(e,r),n.delete(e),!0}var mb=function(){function e(e,t,n){var r=this;this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new ib(e,t,n),this._timelineEngine=new Kv(e,t,n),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,r,i){var o=e+"-"+r,s=this._triggerCache[o];if(!s){var a=[],u=Sv(this._driver,i,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(e,t){return new Zv(e,t)}(r,u),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(t,r,s)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,r){if("@"==n.charAt(0)){var i=a(Dy(n),2);this._timelineEngine.command(i[0],t,i[1],r)}else this._transitionEngine.trigger(e,t,n,r)},e.prototype.listen=function(e,t,n,r,i){if("@"==n.charAt(0)){var o=a(Dy(n),2);return this._timelineEngine.listen(o[0],t,o[1],i)}return this._transitionEngine.listen(e,t,n,r,i)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),gb="animation",yb="animationend",vb=function(){function e(e,t,n,r,i,o,s){var a=this;this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return a._handleCallback(e)}}return e.prototype.apply=function(){var e,t,n;t=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=Cb(e=this._element,"").trim()).length&&(function(e,t){for(var n=0;n=this._delay&&n>=this._duration&&this.finish()},e.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),Eb(this._element,this._eventFn,!0))},e.prototype.destroy=function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(r=wb(n=Cb(e=this._element,"").split(","),t))>=0&&(n.splice(r,1),Sb(e,"",n.join(","))))},e}();function bb(e,t,n){Sb(e,"PlayState",n,_b(e,t))}function _b(e,t){var n=Cb(e,"");return n.indexOf(",")>0?wb(n.split(","),t):wb([n],t)}function wb(e,t){for(var n=0;n=0)return n;return-1}function Eb(e,t,n){n?e.removeEventListener(yb,t):e.addEventListener(yb,t)}function Sb(e,t,n,r){var i=gb+t;if(null!=r){var o=e.style[i];if(o.length){var s=o.split(",");s[r]=n,n=s.join(",")}}e.style[i]=n}function Cb(e,t){return e.style[gb+t]}var xb="linear",Tb=function(e){return e[e.INITIALIZED=1]="INITIALIZED",e[e.STARTED=2]="STARTED",e[e.FINISHED=3]="FINISHED",e[e.DESTROYED=4]="DESTROYED",e}({}),Ob=function(){function e(e,t,n,r,i,o,s){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this.state=0,this.easing=o||xb,this.totalTime=r+i,this._buildStyler()}return e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.destroy=function(){this.init(),this.state>=Tb.DESTROYED||(this.state=Tb.DESTROYED,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]},e.prototype._flushStartFns=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.finish=function(){this.init(),this.state>=Tb.FINISHED||(this.state=Tb.FINISHED,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},e.prototype.setPosition=function(e){this._styler.setPosition(e)},e.prototype.getPosition=function(){return this._styler.getPosition()},e.prototype.hasStarted=function(){return this.state>=Tb.STARTED},e.prototype.init=function(){this.state>=Tb.INITIALIZED||(this.state=Tb.INITIALIZED,this._styler.apply(),this._delay&&this._styler.pause())},e.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this.state=Tb.STARTED),this._styler.resume()},e.prototype.pause=function(){this.init(),this._styler.pause()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},e.prototype._buildStyler=function(){var e=this;this._styler=new vb(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e.prototype.beforeDestroy=function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this.state>=Tb.FINISHED;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:yv(e.element,r))})}this.currentSnapshot=t},e}(),Ib=function(e){function t(t,n){var r=e.call(this)||this;return r.element=t,r._startingStyles={},r.__initialized=!1,r._styles=Qy(n),r}return i(t,e),t.prototype.init=function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),e.prototype.init.call(this))},t.prototype.play=function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),e.prototype.play.call(this))},t.prototype.destroy=function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,e.prototype.destroy.call(this))},t}(Ip),kb=function(){function e(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return e.prototype.validateStyleProperty=function(e){return Gy(e)},e.prototype.matchesElement=function(e,t){return Wy(e,t)},e.prototype.containsElement=function(e,t){return qy(e,t)},e.prototype.query=function(e,t,n){return Zy(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.buildKeyframeElement=function(e,t,n){var r="@keyframes "+t+" {\n",i="";(n=n.map(function(e){return Qy(e)})).forEach(function(e){i=" ";var t=parseFloat(e.offset);r+=""+i+100*t+"% {\n",i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+t+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},e.prototype.animate=function(e,t,n,r,i,o,s){void 0===o&&(o=[]),s&&this._notifyFaultyScrubber();var a=o.filter(function(e){return e instanceof Ob}),u={};fv(n,r)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=mv(e,t,u));if(0==n)return new Ib(e,l);var c="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(d);var p=new Ob(e,t,c,n,r,i,l);return p.onDestroy(function(){var e;(e=d).parentNode.removeChild(e)}),p},e.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},e}(),Ab=function(){function e(e,t,n){this.element=e,this.keyframes=t,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}},e.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},e.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},e.prototype.pause=function(){this.init(),this.domPlayer.pause()},e.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},e.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.hasStarted=function(){return this._started},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.setPosition=function(e){this.domPlayer.currentTime=e*this.time},e.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:yv(e.element,n))}),this.currentSnapshot=t},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),Pb=function(){function e(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Rb().toString()),this._cssKeyframesDriver=new kb}return e.prototype.validateStyleProperty=function(e){return Gy(e)},e.prototype.matchesElement=function(e,t){return Wy(e,t)},e.prototype.containsElement=function(e,t){return qy(e,t)},e.prototype.query=function(e,t,n){return Zy(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.overrideWebAnimationsSupport=function(e){this._isNativeImpl=e},e.prototype.animate=function(e,t,n,r,i,o,s){if(void 0===o&&(o=[]),!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);var u={},l=o.filter(function(e){return e instanceof Ab});return fv(n,r)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})}),t=mv(e,t=t.map(function(e){return nv(e,!1)}),u),new Ab(e,t,a)},e}();function Rb(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Nb=function(e){function t(t,n){var r=e.call(this)||this;return r._nextAnimationId=0,r._renderer=t.createRenderer(n.body,{id:"0",encapsulation:rt.None,styles:[],data:{animation:[]}}),r}return i(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?xp(e):e;return Lb(this._renderer,null,t,"register",[n]),new Mb(t,this._renderer)},t}(Sp),Mb=function(e){function t(t,n){var r=e.call(this)||this;return r._id=t,r._renderer=n,r}return i(t,e),t.prototype.create=function(e,t){return new Db(this._id,e,t||{},this._renderer)},t}(function(){}),Db=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n=0&&e0){var r=e.slice(0,n),i=r.toLowerCase(),o=e.slice(n+1).trim();t.maybeSetNormalizedName(r,i),t.headers.has(i)?t.headers.get(i).push(o):t.headers.set(i,[o])}})}:function(){t.headers=new Map,Object.keys(e).forEach(function(n){var r=e[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(t.headers.set(i,r),t.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})},e.prototype.clone=function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,u(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}},e.prototype.forEach=function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})},e}(),Yb=function(){function e(){}return e.prototype.encodeKey=function(e){return Kb(e)},e.prototype.encodeValue=function(e){return Kb(e)},e.prototype.decodeKey=function(e){return decodeURIComponent(e)},e.prototype.decodeValue=function(e){return decodeURIComponent(e)},e}();function Kb(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Xb=function(){function e(e){void 0===e&&(e={});var t,n,r,i=this;if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Yb,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=e.fromString,n=this.encoder,r=new Map,t.length>0&&t.split("&").forEach(function(e){var t=e.indexOf("="),i=a(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),o=i[0],s=i[1],u=r.get(o)||[];u.push(s),r.set(o,u)}),r)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(function(t){var n=e.fromObject[t];i.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}return e.prototype.has=function(e){return this.init(),this.map.has(e)},e.prototype.get=function(e){this.init();var t=this.map.get(e);return t?t[0]:null},e.prototype.getAll=function(e){return this.init(),this.map.get(e)||null},e.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},e.prototype.append=function(e,t){return this.clone({param:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({param:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({param:e,value:t,op:"d"})},e.prototype.toString=function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).join("&")},e.prototype.clone=function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n},e.prototype.init=function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=null)},e}();function Jb(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function $b(e){return"undefined"!=typeof Blob&&e instanceof Blob}function e_(e){return"undefined"!=typeof FormData&&e instanceof FormData}var t_=function(){function e(e,t,n,r){var i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new Qb),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s=200&&this.status<300}}());function i_(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var o_=function(){function e(e){this.handler=e}return e.prototype.request=function(e,t,n){var r,i=this;if(void 0===n&&(n={}),e instanceof t_)r=e;else{var o;o=n.headers instanceof Qb?n.headers:new Qb(n.headers);var s=void 0;n.params&&(s=n.params instanceof Xb?n.params:new Xb({fromObject:n.params})),r=new t_(e,t,void 0!==n.body?n.body:null,{headers:o,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=Sa(r).pipe(Ba(function(e){return i.handler.handle(e)}));if(e instanceof t_||"events"===n.observe)return a;var u=a.pipe(xa(function(e){return e instanceof r_}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return u.pipe(G(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(G(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(G(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return u.pipe(G(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},e.prototype.delete=function(e,t){return void 0===t&&(t={}),this.request("DELETE",e,t)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this.request("GET",e,t)},e.prototype.head=function(e,t){return void 0===t&&(t={}),this.request("HEAD",e,t)},e.prototype.jsonp=function(e,t){return this.request("JSONP",e,{params:(new Xb).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},e.prototype.options=function(e,t){return void 0===t&&(t={}),this.request("OPTIONS",e,t)},e.prototype.patch=function(e,t,n){return void 0===n&&(n={}),this.request("PATCH",e,i_(n,t))},e.prototype.post=function(e,t,n){return void 0===n&&(n={}),this.request("POST",e,i_(n,t))},e.prototype.put=function(e,t,n){return void 0===n&&(n={}),this.request("PUT",e,i_(n,t))},e}(),s_=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new a_(e,this.callback))},e}(),a_=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new w(n)),r}return i(t,e),t}(C);function u_(e){return Error('Unable to find icon with the name "'+e+'"')}function l_(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+e+'".')}function c_(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \""+e+'".')}var d_=function(e){e.nodeName?this.svgElement=e:this.url=e},p_=function(){function e(e,t,n){this._httpClient=e,this._sanitizer=t,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return e.prototype.addSvgIcon=function(e,t){return this.addSvgIconInNamespace("",e,t)},e.prototype.addSvgIconLiteral=function(e,t){return this.addSvgIconLiteralInNamespace("",e,t)},e.prototype.addSvgIconInNamespace=function(e,t,n){return this._addSvgIconConfig(e,t,new d_(n))},e.prototype.addSvgIconLiteralInNamespace=function(e,t,n){var r=this._sanitizer.sanitize(Cr.HTML,n);if(!r)throw c_(n);var i=this._createSvgElementForSingleIcon(r);return this._addSvgIconConfig(e,t,new d_(i))},e.prototype.addSvgIconSet=function(e){return this.addSvgIconSetInNamespace("",e)},e.prototype.addSvgIconSetLiteral=function(e){return this.addSvgIconSetLiteralInNamespace("",e)},e.prototype.addSvgIconSetInNamespace=function(e,t){return this._addSvgIconSetConfig(e,new d_(t))},e.prototype.addSvgIconSetLiteralInNamespace=function(e,t){var n=this._sanitizer.sanitize(Cr.HTML,t);if(!n)throw c_(t);var r=this._svgElementFromString(n);return this._addSvgIconSetConfig(e,new d_(r))},e.prototype.registerFontClassAlias=function(e,t){return void 0===t&&(t=e),this._fontCssClassesByAlias.set(e,t),this},e.prototype.classNameForFontAlias=function(e){return this._fontCssClassesByAlias.get(e)||e},e.prototype.setDefaultFontSetClass=function(e){return this._defaultFontSetClass=e,this},e.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},e.prototype.getSvgIconFromUrl=function(e){var t=this,n=this._sanitizer.sanitize(Cr.RESOURCE_URL,e);if(!n)throw l_(e);var r=this._cachedIconsByUrl.get(n);return r?Sa(h_(r)):this._loadSvgIconFromConfig(new d_(e)).pipe(Da(function(e){return t._cachedIconsByUrl.set(n,e)}),G(function(e){return h_(e)}))},e.prototype.getNamedSvgIcon=function(e,t){void 0===t&&(t="");var n=f_(t,e),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(t);return i?this._getSvgFromIconSetConfigs(e,i):Ym(u_(n))},e.prototype._getSvgFromConfig=function(e){return e.svgElement?Sa(h_(e.svgElement)):this._loadSvgIconFromConfig(e).pipe(Da(function(t){return e.svgElement=t}),G(function(e){return h_(e)}))},e.prototype._getSvgFromIconSetConfigs=function(e,t){var n=this,r=this._extractIconWithNameFromAnySet(e,t);return r?Sa(r):bg(t.filter(function(e){return!e.svgElement}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(Ya(function(t){var r=n._sanitizer.sanitize(Cr.RESOURCE_URL,e.url);return console.error("Loading icon set URL: "+r+" failed: "+t.message),Sa(null)}))})).pipe(G(function(){var r=n._extractIconWithNameFromAnySet(e,t);if(!r)throw u_(e);return r}))},e.prototype._extractIconWithNameFromAnySet=function(e,t){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.svgElement){var i=this._extractSvgIconFromSet(r.svgElement,e);if(i)return i}}return null},e.prototype._loadSvgIconFromConfig=function(e){var t=this;return this._fetchUrl(e.url).pipe(G(function(e){return t._createSvgElementForSingleIcon(e)}))},e.prototype._loadSvgIconSetFromConfig=function(e){var t=this;return e.svgElement?Sa(e.svgElement):this._fetchUrl(e.url).pipe(G(function(n){return e.svgElement||(e.svgElement=t._svgElementFromString(n)),e.svgElement}))},e.prototype._createSvgElementForSingleIcon=function(e){var t=this._svgElementFromString(e);return this._setSvgAttributes(t),t},e.prototype._extractSvgIconFromSet=function(e,t){var n=e.querySelector("#"+t);if(!n)return null;var r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r));var i=this._svgElementFromString("");return i.appendChild(r),this._setSvgAttributes(i)},e.prototype._svgElementFromString=function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n},e.prototype._toSvgElement=function(e){for(var t=this._svgElementFromString(""),n=0;n*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function k_(e){return Po(2,[wo(402653184,1,{ripple:0}),(e()(),gi(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),To(null,0),(e()(),gi(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),io(4,212992,[[1,4]],0,Bf,[mn,Ht,Vp,[2,zf],[2,Gb]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(e()(),gi(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())},function(e,t){var n=t.component;e(t,3,0,n.isRoundButton||n.isIconButton,Wi(t,4).unbounded)})}var A_=function(){function e(){this.newInfo$=new oe}return e.prototype.getInfo=function(){return this.info},e.prototype.updateInfo=function(e){this.info=e,this.newInfo$.next(e)},e}(),P_=function(){function e(){}return e.prototype.getOpenViduPublicUrl=function(){var e=this;return new Promise(function(t,n){if(e.openviduPublicUrl)t(e.openviduPublicUrl);else{var r=location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")+"/config/openvidu-publicurl",i=new XMLHttpRequest;i.onreadystatechange=function(){4===i.readyState&&(200===i.status?(e.openviduPublicUrl=i.responseText,t(i.responseText)):n("Error getting OpenVidu publicurl"))},i.open("GET",r,!0),i.send()}})},e.prototype.getOpenViduToken=function(e){var t=this;if(this.openviduPublicUrl)return new Promise(function(n,r){var i="https://OPENVIDUAPP:"+e+"@"+t.openviduPublicUrl.split("://")[1]+"api/sessions",o=new XMLHttpRequest,s=JSON.stringify({mediaMode:"ROUTED",recordingMode:"MANUAL",RECORDING_LAYOUT:"BEST_FIT"});o.onreadystatechange=function(){if(401===o.status)r(401);else if(4===o.readyState)if(200===o.status){var i=JSON.parse(o.responseText).id,s=t.openviduPublicUrl+"api/tokens",a=new XMLHttpRequest,u={};u.session=i;var l=JSON.stringify(u);a.onreadystatechange=function(){4===a.readyState&&(200===a.status?n(JSON.parse(a.responseText).id):r(a.status))},a.open("POST",s,!0),a.setRequestHeader("Content-type","application/json"),a.setRequestHeader("Authorization","Basic "+btoa("OPENVIDUAPP:"+e)),a.send(l)}else r(o.status)},o.open("POST",i,!0),o.setRequestHeader("Content-type","application/json"),o.send(s)});this.getOpenViduPublicUrl().then(function(){return t.getOpenViduToken(e)})},e}(),R_=n("t9/D"),N_=function(){function e(){}return e.prototype.testVideo=function(){this.myReference.close(this.secret)},e}(),M_=function(){function e(e,t,n){var r=this;this.infoService=e,this.restService=t,this.dialog=n,this.lockScroll=!1,this.info=[],this.testStatus="DISCONNECTED",this.testButton="Test",this.tickClass="trigger",this.showSpinner=!1,this.msgChain=[],this.infoSubscription=this.infoService.newInfo$.subscribe(function(e){r.info.push(e),r.scrollToBottom()})}return e.prototype.ngOnInit=function(){var e=this,t=location.protocol.includes("https")?"wss://":"ws://",n=location.port?":"+location.port:"";this.websocket=new WebSocket(t+location.hostname+n+"/info"),this.websocket.onopen=function(e){console.log("Info websocket connected")},this.websocket.onclose=function(e){console.log("Info websocket closed")},this.websocket.onerror=function(e){console.log("Info websocket error")},this.websocket.onmessage=function(t){console.log("Info websocket message"),console.log(t.data),e.infoService.updateInfo(t.data)},this.restService.getOpenViduPublicUrl().then(function(t){e.openviduPublicUrl=t.replace("https://","wss://").replace("http://","ws://")}).catch(function(e){console.error(e)})},e.prototype.beforeunloadHandler=function(){this.session&&this.endTestVideo(),this.websocket.close()},e.prototype.ngOnDestroy=function(){this.session&&this.endTestVideo(),this.websocket.close()},e.prototype.toggleTestVideo=function(){this.session?this.endTestVideo():this.testVideo()},e.prototype.testVideo=function(){var e,t=this;(e=this.dialog.open(N_)).componentInstance.myReference=e,e.afterClosed().subscribe(function(e){e&&t.restService.getOpenViduToken(e).then(function(e){t.connectToSession(e)}).catch(function(e){401===e?t.testVideo():(console.error(e),t.msgChain.push("Error connecting to session: "+e))})})},e.prototype.connectToSession=function(e){var t=this;this.msgChain=[];var n=new R_.OpenVidu;this.session=n.initSession(),this.testStatus="CONNECTING",this.testButton="Testing...",this.session.connect(e).then(function(){t.msgChain.push("Connected to session"),t.testStatus="CONNECTED";var e=n.initPublisher("mirrored-video",{publishAudio:!0,publishVideo:!0,resolution:"640x480"},function(e){e&&console.error(e)});e.on("accessAllowed",function(){t.msgChain.push("Camera access allowed")}),e.on("accessDenied",function(){t.endTestVideo(),t.msgChain.push("Camera access denied")}),e.on("videoElementCreated",function(e){t.showSpinner=!0,t.msgChain.push("Video element created")}),e.on("streamCreated",function(e){t.msgChain.push("Stream created")}),e.on("streamPlaying",function(e){t.msgChain.push("Stream playing"),t.testButton="End test",t.testStatus="PLAYING",t.showSpinner=!1}),e.subscribeToRemote(),t.session.publish(e)}).catch(function(e){t.msgChain.push("Error connecting to session: "+e)})},e.prototype.endTestVideo=function(){this.session.disconnect(),this.session=null,this.testStatus="DISCONNECTED",this.testButton="Test",this.showSpinner=!1,this.info=[],this.msgChain=[]},e.prototype.scrollToBottom=function(){try{this.lockScroll||(this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight)}catch(e){console.error("[Error]:"+e.toString())}},e}(),D_=Ur({encapsulation:0,styles:[["#dashboard-div[_ngcontent-%COMP%]{height:100%;padding:20px}#log[_ngcontent-%COMP%]{height:90%}#log-content[_ngcontent-%COMP%]{height:90%;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;overflow-y:auto;overflow-x:hidden}ul[_ngcontent-%COMP%]{margin:0}#test-btn[_ngcontent-%COMP%]{text-transform:uppercase}mat-card-title[_ngcontent-%COMP%] button.blue[_ngcontent-%COMP%]{color:#fff;background-color:#08a}mat-card-title[_ngcontent-%COMP%] button.yellow[_ngcontent-%COMP%]{color:rgba(0,0,0,.87);background-color:#fc0}mat-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#tick-div[_ngcontent-%COMP%]{width:100px;height:100px;z-index:1;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#tooltip-tick[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;z-index:2}.circ[_ngcontent-%COMP%]{opacity:0;stroke-dasharray:130;stroke-dashoffset:130;transition:all 1s}.tick[_ngcontent-%COMP%]{stroke-dasharray:50;stroke-dashoffset:50;transition:stroke-dashoffset 1s .5s ease-out}.drawn[_ngcontent-%COMP%] + svg[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{opacity:1;stroke-dashoffset:0}#mirrored-video[_ngcontent-%COMP%]{position:relative}@media screen and (max-width:599px){mat-card-title[_ngcontent-%COMP%]{font-size:20px}}#loader[_ngcontent-%COMP%]{width:100px;height:100px;z-index:1;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#loader[_ngcontent-%COMP%] *[_ngcontent-%COMP%], #loader[_ngcontent-%COMP%] [_ngcontent-%COMP%]::after, #loader[_ngcontent-%COMP%] [_ngcontent-%COMP%]::before{box-sizing:border-box}.loader-1[_ngcontent-%COMP%]{height:100px;width:100px;-webkit-animation:4.8s linear infinite loader-1-1;animation:4.8s linear infinite loader-1-1}@-webkit-keyframes loader-1-1{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(360deg)}}@keyframes loader-1-1{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.loader-1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;position:absolute;top:0;left:0;bottom:0;right:0;margin:auto;height:100px;width:100px;clip:rect(0,100px,100px,50px);-webkit-animation:1.2s linear infinite loader-1-2;animation:1.2s linear infinite loader-1-2}@-webkit-keyframes loader-1-2{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(220deg)}}@keyframes loader-1-2{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(220deg);transform:rotate(220deg)}}.loader-1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]::after{content:\"\";position:absolute;top:0;left:0;bottom:0;right:0;margin:auto;height:100px;width:100px;clip:rect(0,100px,100px,50px);border:8px solid #4d4d4d;border-radius:50%;-webkit-animation:1.2s cubic-bezier(.77,0,.175,1) infinite loader-1-3;animation:1.2s cubic-bezier(.77,0,.175,1) infinite loader-1-3}@-webkit-keyframes loader-1-3{0%{-webkit-transform:rotate(-140deg)}50%{-webkit-transform:rotate(-160deg)}100%{-webkit-transform:rotate(140deg)}}@keyframes loader-1-3{0%{-webkit-transform:rotate(-140deg);transform:rotate(-140deg)}50%{-webkit-transform:rotate(-160deg);transform:rotate(-160deg)}100%{-webkit-transform:rotate(140deg);transform:rotate(140deg)}}"]],data:{}});function L_(e){return Po(0,[(e()(),gi(0,0,null,null,2,"li",[],null,null,null,null,null)),(e()(),gi(1,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Io(2,null,["",""]))],null,function(e,t){e(t,2,0,t.context.$implicit)})}function j_(e){return Po(0,[(e()(),gi(0,0,null,null,2,"div",[["id","loader"]],null,null,null,null,null)),(e()(),gi(1,0,null,null,1,"div",[["class","loader-1 center"]],null,null,null,null,null)),(e()(),gi(2,0,null,null,0,"span",[],null,null,null,null,null))],null,null)}function V_(e){return Po(0,[(e()(),gi(0,16777216,null,null,1,"div",[["id","tooltip-tick"],["matTooltip","The connection is successful"],["matTooltipPosition","below"]],null,[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==Wi(e,1).show()&&r),"keydown"===t&&(r=!1!==Wi(e,1)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==Wi(e,1)._handleTouchend()&&r),r},null,null)),io(1,147456,null,0,ef,[Wh,mn,hh,Sn,Ht,Vp,vf,Cf,Xh,[2,pf],[2,$h]],{position:[0,"position"],message:[1,"message"]},null),(e()(),mi(0,null,null,0))],function(e,t){e(t,1,0,"below","The connection is successful")},null)}function F_(e){return Po(0,[(e()(),gi(0,0,null,null,7,"div",[["id","tick-div"]],null,null,null,null,null)),(e()(),mi(16777216,null,null,1,null,V_)),io(2,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),gi(3,0,null,null,1,"div",[],null,null,null,null,null)),io(4,278528,null,0,yu,[Wn,qn,mn,fn],{ngClass:[0,"ngClass"]},null),(e()(),gi(5,0,null,null,2,":svg:svg",[[":xml:space","preserve"],[":xmlns:xlink","http://www.w3.org/1999/xlink"],["id","tick"],["style","enable-background:new 0 0 37 37;"],["version","1.1"],["viewBox","-1 -1 39 39"],["x","0px"],["xmlns","http://www.w3.org/2000/svg"],["y","0px"]],null,null,null,null,null)),(e()(),gi(6,0,null,null,0,":svg:path",[["class","circ path"],["d","\n\tM30.5,6.5L30.5,6.5c6.6,6.6,6.6,17.4,0,24l0,0c-6.6,6.6-17.4,6.6-24,0l0,0c-6.6-6.6-6.6-17.4,0-24l0,0C13.1-0.2,23.9-0.2,30.5,6.5z"],["style","fill:none;stroke:#06d362;stroke-width:4;stroke-linejoin:round;stroke-miterlimit:10;"]],null,null,null,null,null)),(e()(),gi(7,0,null,null,0,":svg:polyline",[["class","tick path"],["points","\n\t11.6,20 15.9,24.2 26.4,13.8 "],["style","fill:none;stroke:#06d362;stroke-width:4;stroke-linejoin:round;stroke-miterlimit:10;"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,2,0,"PLAYING"==n.testStatus),e(t,4,0,"PLAYING"==n.testStatus?"trigger drawn":"trigger")},null)}function z_(e){return Po(0,[(e()(),gi(0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Io(1,null,["",""]))],null,function(e,t){e(t,1,0,t.context.$implicit)})}function B_(e){return Po(0,[wo(402653184,1,{myScrollContainer:0}),(e()(),gi(1,0,null,null,50,"div",[["fxLayout","row"],["fxLayout.xs","column"],["fxLayoutGap","20px"],["fxLayoutGap.xs","20px"],["id","dashboard-div"]],null,null,null,null,null)),io(2,737280,null,0,sg,[Um,mn,Gm],{layout:[0,"layout"],layoutXs:[1,"layoutXs"]},null),io(3,1785856,null,0,ag,[Um,mn,[6,sg],Ht,pf,Gm],{gap:[0,"gap"],gapXs:[1,"gapXs"]},null),(e()(),gi(4,0,null,null,23,"div",[["fxFlex","66%"],["fxFlexOrder","1"],["fxFlexOrder.xs","2"]],null,null,null,null,null)),io(5,737280,null,0,cg,[Um,mn,[3,sg],Gm,Om],{flex:[0,"flex"]},null),io(6,737280,null,0,dg,[Um,mn,Gm],{order:[0,"order"],orderXs:[1,"orderXs"]},null),(e()(),gi(7,0,null,null,20,"mat-card",[["class","mat-card"],["id","log"]],null,null,null,vg,yg)),io(8,49152,null,0,mg,[],null,null),(e()(),gi(9,0,null,0,11,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),io(10,16384,null,0,fg,[],null,null),(e()(),Io(-1,null,["Server events "])),(e()(),gi(12,0,null,null,8,"mat-slide-toggle",[["class","mat-slide-toggle"],["style","float: right; margin-left: auto;"],["title","Lock Scroll"]],[[8,"id",0],[2,"mat-checked",null],[2,"mat-disabled",null],[2,"mat-slide-toggle-label-before",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var r=!0;return"ngModelChange"===t&&(r=!1!==(e.component.lockScroll=n)&&r),r},Zb,qb)),io(13,1228800,null,0,Ty,[mn,Vp,Cf,Cn,[8,null],Ht,[2,Gb]],null,null),oo(1024,null,Ag,function(e){return[e]},[Ty]),io(15,671744,null,0,by,[[8,null],[8,null],[8,null],[6,Ag]],{model:[0,"model"]},{update:"ngModelChange"}),oo(2048,null,Vg,null,[by]),io(17,16384,null,0,oy,[[4,Vg]],null,null),(e()(),gi(18,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,v_,y_)),io(19,638976,null,0,m_,[mn,p_,[8,null]],null,null),(e()(),Io(-1,0,["lock_outline"])),(e()(),gi(21,0,null,0,1,"mat-divider",[["class","mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-horizontal",null],[2,"mat-divider-inset",null]],null,null,E_,w_)),io(22,49152,null,0,b_,[],null,null),(e()(),gi(23,0,[[1,0],["scrollMe",1]],0,4,"mat-card-content",[["class","mat-card-content"],["id","log-content"]],null,null,null,null,null)),io(24,16384,null,0,hg,[],null,null),(e()(),gi(25,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),mi(16777216,null,null,1,null,L_)),io(27,802816,null,0,bu,[Sn,En,Wn],{ngForOf:[0,"ngForOf"]},null),(e()(),gi(28,0,null,null,23,"div",[["fxFlex","33%"],["fxFlex.xs","auto"],["fxFlexOrder","2"],["fxFlexOrder.xs","1"]],null,null,null,null,null)),io(29,737280,null,0,cg,[Um,mn,[3,sg],Gm,Om],{flex:[0,"flex"],flexXs:[1,"flexXs"]},null),io(30,737280,null,0,dg,[Um,mn,Gm],{order:[0,"order"],orderXs:[1,"orderXs"]},null),(e()(),gi(31,0,null,null,20,"mat-card",[["class","mat-card"],["id","video-loop"]],null,null,null,vg,yg)),io(32,49152,null,0,mg,[],null,null),(e()(),gi(33,0,null,0,6,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),io(34,16384,null,0,fg,[],null,null),(e()(),Io(-1,null,["Test the connection "])),(e()(),gi(36,0,null,null,3,"button",[["id","test-btn"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleTestVideo()&&r),r},k_,I_)),io(37,278528,null,0,yu,[Wn,qn,mn,fn],{ngClass:[0,"ngClass"]},null),io(38,180224,null,0,T_,[mn,Vp,Cf,[2,Gb]],{disabled:[0,"disabled"]},null),(e()(),Io(39,0,["",""])),(e()(),gi(40,0,null,0,1,"mat-divider",[["class","mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-horizontal",null],[2,"mat-divider-inset",null]],null,null,E_,w_)),io(41,49152,null,0,b_,[],null,null),(e()(),gi(42,0,null,0,9,"mat-card-content",[["class","mat-card-content"]],null,null,null,null,null)),io(43,16384,null,0,hg,[],null,null),(e()(),gi(44,0,null,null,4,"div",[["id","mirrored-video"]],null,null,null,null,null)),(e()(),mi(16777216,null,null,1,null,j_)),io(46,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),mi(16777216,null,null,1,null,F_)),io(48,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),gi(49,0,null,null,2,"div",[["id","msg-chain"]],null,null,null,null,null)),(e()(),mi(16777216,null,null,1,null,z_)),io(51,802816,null,0,bu,[Sn,En,Wn],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,2,0,"row","column"),e(t,3,0,"20px","20px"),e(t,5,0,"66%"),e(t,6,0,"1","2"),e(t,15,0,n.lockScroll),e(t,19,0),e(t,27,0,n.info),e(t,29,0,"33%","auto"),e(t,30,0,"2","1"),e(t,37,0,"DISCONNECTED"==n.testStatus?"blue":"PLAYING"==n.testStatus?"yellow":"disabled"),e(t,38,0,"CONNECTING"===n.testStatus||"CONNECTED"===n.testStatus),e(t,46,0,n.showSpinner),e(t,48,0,n.session),e(t,51,0,n.msgChain)},function(e,t){var n=t.component;e(t,12,1,[Wi(t,13).id,Wi(t,13).checked,Wi(t,13).disabled,"before"==Wi(t,13).labelPosition,"NoopAnimations"===Wi(t,13)._animationMode,Wi(t,17).ngClassUntouched,Wi(t,17).ngClassTouched,Wi(t,17).ngClassPristine,Wi(t,17).ngClassDirty,Wi(t,17).ngClassValid,Wi(t,17).ngClassInvalid,Wi(t,17).ngClassPending]),e(t,18,0,Wi(t,19).inline),e(t,21,0,Wi(t,22).vertical?"vertical":"horizontal",Wi(t,22).vertical,!Wi(t,22).vertical,Wi(t,22).inset),e(t,36,0,Wi(t,38).disabled||null,"NoopAnimations"===Wi(t,38)._animationMode),e(t,39,0,n.testButton),e(t,40,0,Wi(t,41).vertical?"vertical":"horizontal",Wi(t,41).vertical,!Wi(t,41).vertical,Wi(t,41).inset)})}var U_=Mi("app-dashboard",M_,function(e){return Po(0,[(e()(),gi(0,0,null,null,1,"app-dashboard",[],null,[["window","beforeunload"]],function(e,t,n){var r=!0;return"window:beforeunload"===t&&(r=!1!==Wi(e,1).beforeunloadHandler()&&r),r},B_,D_)),io(1,245760,null,0,M_,[A_,P_,rm],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),H_=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),G_=Ur({encapsulation:0,styles:[[""]],data:{}});function W_(e){return Po(0,[(e()(),gi(0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Io(-1,null,[" session-details works!\n"]))],null,null)}var q_=Mi("app-session-details",H_,function(e){return Po(0,[(e()(),gi(0,0,null,null,1,"app-session-details",[],null,null,null,W_,G_)),io(1,114688,null,0,H_,[],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),Z_=function(){function e(){}return e.prototype.ngAfterViewInit=function(){this._subscriber.addVideoElement(this.elementRef.nativeElement)},Object.defineProperty(e.prototype,"subscriber",{set:function(e){this._subscriber=e,this.elementRef&&this._subscriber.addVideoElement(this.elementRef.nativeElement)},enumerable:!0,configurable:!0}),e}(),Q_=Ur({encapsulation:2,styles:[],data:{}});function Y_(e){return Po(0,[wo(402653184,1,{elementRef:0}),(e()(),gi(1,0,[[1,0],["videoElement",1]],null,0,"video",[],null,null,null,null,null))],null,null)}var K_=function(){function e(){}return e.prototype.fixAspectRatio=function(e,t){var n=e.querySelector(".OT_root");if(n){var r=n.style.width;n.style.width=t+"px",n.style.width=r||""}},e.prototype.positionElement=function(e,t,n,r,i,o){var s=this,a={left:t+"px",top:n+"px",width:r+"px",height:i+"px"};this.fixAspectRatio(e,r),o&&$?($(e).stop(),$(e).animate(a,o.duration||200,o.easing||"swing",function(){s.fixAspectRatio(e,r),o.complete&&o.complete.call(s)})):$(e).css(a),this.fixAspectRatio(e,r)},e.prototype.getVideoRatio=function(e){if(!e)return.75;var t=e.querySelector("video");return t&&t.videoHeight&&t.videoWidth?t.videoHeight/t.videoWidth:e.videoHeight&&e.videoWidth?e.videoHeight/e.videoWidth:.75},e.prototype.getCSSNumber=function(e,t){var n=$(e).css(t);return n?parseInt(n,10):0},e.prototype.cheapUUID=function(){return(1e8*Math.random()).toFixed(0)},e.prototype.getHeight=function(e){var t=$(e).css("height");return t?parseInt(t,10):0},e.prototype.getWidth=function(e){var t=$(e).css("width");return t?parseInt(t,10):0},e.prototype.getBestDimensions=function(e,t,n,r,i,o){for(var s,a,u,l,c,d,p,h=1;h<=n;h++){var f=h,m=Math.ceil(n/f);(p=(d=Math.floor(i/m))/(c=Math.floor(r/f)))>t?d=c*(p=t):ps)&&(s=g,o=d,l=c,a=f,u=m)}return{maxArea:s,targetCols:a,targetRows:u,targetHeight:o,targetWidth:l,ratio:o/l}},e.prototype.arrange=function(e,t,n,r,i,o,s,a,u){var l,c,d=e.length;if(o){var p=this.getVideoRatio(e.length>0?e[0]:null);c=this.getBestDimensions(p,p,d,t,n,l)}else c=this.getBestDimensions(s,a,d,t,n,l);for(var h,f=0,m=0,g=[],y=0;yt?(h.height=Math.floor(h.height*(t/h.width)),h.width=t):h.width0){var w=n-b;for(b=0,y=0;y(t-h.width)/h.width&&(E=Math.floor((t-h.width)/h.width*h.height)),h.width+=Math.floor(E/h.height*h.width),h.height+=E,w-=E,_-=1}b+=h.height}}for(m=(n-b)/2,y=0;y."+this.opts.bigClass),this.filterDisplayNone),l=Array.prototype.filter.call(this.layoutContainer.querySelectorAll("#"+e+">*:not(."+this.opts.bigClass+")"),this.filterDisplayNone);if(u.length>0&&l.length>0){var c=void 0,d=void 0;r>this.getVideoRatio(u[0])?(c=n,s=t-(o=d=Math.floor(t*this.opts.bigPercentage))):(d=t,a=n-(i=c=Math.floor(n*this.opts.bigPercentage))),this.opts.bigFirst?(this.arrange(u,c,d,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate),this.arrange(l,n-i,t-o,i,o,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)):(this.arrange(l,n-i,t-o,0,0,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate),this.arrange(u,c,d,a,s,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate))}else u.length>0&&0===l.length?this.arrange(u,n,t,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate):this.arrange(l,n-i,t-o,i,o,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)}},e.prototype.initLayoutContainer=function(e,t){this.opts={maxRatio:null!=t.maxRatio?t.maxRatio:1.5,minRatio:null!=t.minRatio?t.minRatio:9/16,fixedRatio:null!=t.fixedRatio&&t.fixedRatio,animate:null!=t.animate&&t.animate,bigClass:null!=t.bigClass?t.bigClass:"OT_big",bigPercentage:null!=t.bigPercentage?t.bigPercentage:.8,bigFixedRatio:null!=t.bigFixedRatio&&t.bigFixedRatio,bigMaxRatio:null!=t.bigMaxRatio?t.bigMaxRatio:1.5,bigMinRatio:null!=t.bigMinRatio?t.bigMinRatio:9/16,bigFirst:null==t.bigFirst||t.bigFirst},this.layoutContainer="string"==typeof e?$(e):e},e.prototype.setLayoutOptions=function(e){this.opts=e},e}(),X_=function(){function e(e,t){var n=this;this.route=e,this.appRef=t,this.subscribers=[],this.numberOfScreenStreams=0,this.layoutOptions={maxRatio:1.5,minRatio:9/16,fixedRatio:!1,bigClass:"OV_big",bigPercentage:.8,bigFixedRatio:!1,bigMaxRatio:1.5,bigMinRatio:9/16,bigFirst:!0,animate:!0},this.route.params.subscribe(function(e){n.sessionId=e.sessionId,n.secret=e.secret})}return e.prototype.beforeunloadHandler=function(){this.leaveSession()},e.prototype.sizeChange=function(e){var t=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.openviduLayout.updateLayout()},20)},e.prototype.ngOnDestroy=function(){this.leaveSession()},e.prototype.ngOnInit=function(){var e=this,t=new R_.OpenVidu;this.session=t.initSession(),this.session.on("streamCreated",function(t){var n=!1;"SCREEN"===t.stream.typeOfVideo&&(e.numberOfScreenStreams++,n=!0);var r=e.session.subscribe(t.stream,void 0);r.on("streamPlaying",function(t){r.videos[0].video.parentElement.parentElement.classList.remove("custom-class"),e.updateLayout(n)}),e.addSubscriber(r)}),this.session.on("streamDestroyed",function(t){var n=!1;"SCREEN"===t.stream.typeOfVideo&&(e.numberOfScreenStreams--,n=!0),e.deleteSubscriber(t.stream.streamManager),e.updateLayout(n)});var n=location.port?":"+location.port:"",r="wss://"+location.hostname+n+"?sessionId="+this.sessionId+"&secret="+this.secret+"&recorder=true";this.session.connect(r).catch(function(e){console.error(e)}),this.openviduLayout=new K_,this.openviduLayout.initLayoutContainer(document.getElementById("layout"),this.layoutOptions)},e.prototype.addSubscriber=function(e){this.subscribers.push(e),this.appRef.tick()},e.prototype.deleteSubscriber=function(e){for(var t=-1,n=0;n-1&&this.subscribers.splice(t,1),this.appRef.tick()},e.prototype.leaveSession=function(){this.session&&this.session.disconnect(),this.subscribers=[],this.session=null},e.prototype.updateLayout=function(e){e&&(this.layoutOptions.fixedRatio=this.numberOfScreenStreams>0,this.openviduLayout.setLayoutOptions(this.layoutOptions)),this.openviduLayout.updateLayout()},e}(),J_=Ur({encapsulation:2,styles:[[".bounds{background-color:#000;overflow:hidden;cursor:none!important;position:absolute;left:0;right:0;top:0;bottom:0}app-ov-video video{-o-object-fit:cover;object-fit:cover;display:block;position:absolute;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%;font-family:Arial,Helvetica,sans-serif}.custom-class{min-height:0!important}.OT_root,.OT_root *{color:#fff;margin:0;padding:0;border:0;font-size:100%;font-family:Arial,Helvetica,sans-serif;vertical-align:baseline}.OT_dialog-centering{display:table;width:100%;height:100%}.OT_dialog-centering-child{display:table-cell;vertical-align:middle}.OT_dialog{position:relative;box-sizing:border-box;max-width:576px;margin-right:auto;margin-left:auto;padding:36px;text-align:center;background-color:#363636;color:#fff;box-shadow:2px 4px 6px #999;font-family:'Didact Gothic',sans-serif;font-size:13px;line-height:1.4}.OT_dialog *{font-family:inherit;box-sizing:inherit}.OT_closeButton{color:#999;cursor:pointer;font-size:32px;line-height:36px;position:absolute;right:18px;top:0}.OT_dialog-messages{text-align:center}.OT_dialog-messages-main{margin-bottom:36px;line-height:36px;font-weight:300;font-size:24px}.OT_dialog-messages-minor{margin-bottom:18px;font-size:13px;line-height:18px;color:#a4a4a4}.OT_dialog-messages-minor strong{color:#fff}.OT_dialog-actions-card{display:inline-block}.OT_dialog-button-title{margin-bottom:18px;line-height:18px;font-weight:300;text-align:center;font-size:14px;color:#999}.OT_dialog-button-title label{color:#999}.OT_dialog-button-title a,.OT_dialog-button-title a:active,.OT_dialog-button-title a:link{color:#02a1de}.OT_dialog-button-title strong{color:#fff;font-weight:100;display:block}.OT_dialog-button{display:inline-block;margin-bottom:18px;padding:0 1em;background-color:#1ca3dc;text-align:center;cursor:pointer}.OT_dialog-button:disabled{cursor:not-allowed;opacity:.5}.OT_dialog-button-large{line-height:36px;padding-top:9px;padding-bottom:9px;font-weight:100;font-size:24px}.OT_dialog-button-small{line-height:18px;padding-top:9px;padding-bottom:9px;background-color:#444;color:#999;font-size:16px}.OT_dialog-progress-bar{display:inline-block;width:100%;margin-top:5px;margin-bottom:41px;border:1px solid #4e4e4e;height:8px}.OT_dialog-progress-bar-fill{height:100%;background-color:#29a4da}.OT_dialog-plugin-upgrading .OT_dialog-plugin-upgrade-percentage{line-height:54px;font-size:48px;font-weight:100}.OT_centered{position:fixed;left:50%;top:50%;margin:0}.OT_dialog-hidden{display:none}.OT_dialog-button-block{display:block}.OT_dialog-no-natural-margin{margin-bottom:0}.OT_publisher,.OT_subscriber{position:relative;min-width:48px;min-height:48px}.OT_publisher .OT_video-element,.OT_subscriber .OT_video-element{display:block;position:absolute;width:100%;height:100%;-webkit-transform-origin:0 0;transform-origin:0 0}.OT_publisher.OT_mirrored .OT_video-element{-webkit-transform:scale(-1,1);transform:scale(-1,1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.OT_subscriber_error{background-color:#000;color:#fff;text-align:center}.OT_subscriber_error>p{padding:20px}.OT_publisher .OT_archiving,.OT_publisher .OT_archiving-light-box,.OT_publisher .OT_archiving-status,.OT_publisher .OT_bar,.OT_publisher .OT_name,.OT_subscriber .OT_archiving,.OT_subscriber .OT_archiving-light-box,.OT_subscriber .OT_archiving-status,.OT_subscriber .OT_bar,.OT_subscriber .OT_name{-ms-box-sizing:border-box;box-sizing:border-box;top:0;left:0;right:0;display:block;height:34px;position:absolute}.OT_publisher .OT_bar,.OT_subscriber .OT_bar{background:rgba(0,0,0,.4)}.OT_publisher .OT_edge-bar-item,.OT_subscriber .OT_edge-bar-item{z-index:1;transition-property:top,bottom,opacity;transition-duration:.5s;transition-timing-function:ease-in}.OT_publisher .OT_name,.OT_subscriber .OT_name{background-color:transparent;color:#fff;font-size:15px;line-height:34px;font-weight:400;padding:0 4px 0 36px}.OT_publisher .OT_archiving-status,.OT_subscriber .OT_archiving-status{background:rgba(0,0,0,.4);top:auto;bottom:0;left:34px;padding:0 4px;color:rgba(255,255,255,.8);font-size:15px;line-height:34px;font-weight:400}.OT_micro .OT_archiving-status,.OT_micro:hover .OT_archiving-status,.OT_mini .OT_archiving-status,.OT_mini:hover .OT_archiving-status{display:none}.OT_publisher .OT_archiving-light-box,.OT_subscriber .OT_archiving-light-box{background:rgba(0,0,0,.4);top:auto;bottom:0;right:auto;width:34px;height:34px}.OT_archiving-light{width:7px;height:7px;border-radius:30px;position:absolute;top:14px;left:14px;background-color:#575757;box-shadow:0 0 5px 1px #575757}.OT_archiving-light.OT_active{background-color:#970d13;animation:1.3s ease-in infinite OT_pulse;-webkit-animation:1.3s ease-in OT_pulse;-moz-animation:1.3s ease-in infinite OT_pulse;-webkit-animation-iteration-count:infinite}@-webkit-keyframes OT_pulse{0%,100%,80%{box-shadow:0 0 0 0 #c70019}30%,50%{box-shadow:0 0 5px 1px #c70019}}.OT_bar.OT_mode-mini,.OT_bar.OT_mode-mini-auto,.OT_mini .OT_bar{bottom:0;height:auto}.OT_mini .OT_name.OT_mode-auto,.OT_mini .OT_name.OT_mode-off,.OT_mini .OT_name.OT_mode-on,.OT_mini:hover .OT_name.OT_mode-auto{display:none}.OT_publisher .OT_name,.OT_subscriber .OT_name{left:10px;right:37px;height:34px;padding-left:0}.OT_publisher .OT_mute,.OT_subscriber .OT_mute{border:none;cursor:pointer;display:block;position:absolute;text-align:center;text-indent:-9999em;background-color:transparent;background-repeat:no-repeat;right:0;top:0;border-left:1px solid rgba(255,255,255,.2);height:36px;width:37px}.OT_mini .OT_mute,.OT_publisher.OT_mini .OT_mute.OT_mode-auto.OT_mode-on-hold,.OT_subscriber.OT_mini .OT_mute.OT_mode-auto.OT_mode-on-hold{top:50%;left:50%;right:auto;margin-top:-18px;margin-left:-18.5px;border-left:none}.OT_publisher .OT_mute{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAcCAMAAAC02HQrAAAA1VBMVEUAAAD3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj39/j3+Pj3+Pn4+Pk/JRMlAAAAQ3RSTlMABAUHCQoLDhAQERwdHiAjLjAxOD9ASFBRVl1mbnZ6fH2LjI+QkaWqrrC1uLzAwcXJycrL1NXj5Ofo6u3w9fr7/P3+d4M3+QAAAQBJREFUGBlVwYdCglAABdCLlr5Unijm3hMUtBzlBLSr//9JgUToOQgVJgceJgU8aHgMeA38K50ZOpcQmTPwcyXn+JM8M3JJIqQypiIkeXelTyIkGZPwKS1NMia1lgKTVkaE3oQQGYsmHNqSMWnTgUFbMiZtGlD2dpaxrL1XgM0i4ZK8MeAmFhsAs29MGZniawagS63oMOQUNXYB5D0D1RMDpyoMLw/fiE2og/V+PVDR5AiBl0/2Uwik+vx4xV3a5G5Ye68Nd1czjUjZckm6VhmPciRzeCZICjwTJAViQq+3e+St167rAoHK8sLYZVkBYPCZAZ/eGa+2R5LH7Wrc0YFf/O9J3yBDFaoAAAAASUVORK5CYII=);background-position:9px 5px}.OT_publisher .OT_mute.OT_active{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAdCAYAAABFRCf7AAADcElEQVRIiaWVXWhcRRTHf7NNd2aDtUKMIjTpg4ufFIuiUOmDEWm0Vi3VYhXRqIggQh4sWJFSig9+oOhTKSpIRUWMIBIr2kptoTbgU6ooxCiIjR+14kcJmf9sNceHnd3ebnc3Uv9wuXfOzPzmnDMz5zozGwdWAbc65w5RUJQ8cC2wDJgFJioh/MJCMrNxq2vOzK4HmIvRRemxKP0RJWt53o7S+d2Yzsx6gQ+AIUDAnUqpBLzXZd4RYFUlhB/bdZacc3PAOmAcCMC7wfvFwLNdoAPAyx09bXyYWRl4E7gDmAdGlNKFwLYu8GolhO9O87RJd64GbMrgEvB68P4osMWdXLtVV7czlooNpVRWSs8DO7NpR/B+3rBHsvetCgtCMTxwQCm9BbyQrc8F7/uBex3uRCeXO0PrUZ4NfKyUPgWeyj3bg/crDNsIRGwBaJQGorQ3Svdn2wHgc2BUKb0DPJHtjwfvbwRucc7tz+N+i9LFUdoXpfVN36I0CVwBTFI/q9e1LPxT8P4qYEdu70q12mYzWw1MYQzjeJF6zq+shHC4B7jklOBPP/TzSunh4P0DwKvAfb5c9krpe+CcwsEoZdbhEvBM9wxRAl5RShcA9wAngE3B+8tLpdLuwrhp4MNmK0pfRWkySr7NXS8+L5nZbWZWy/Vin1IaitJnUTqvwevJ71lgSSWEFKUfHG7Q2m/xqFJaGry/GXgfGPLl8mJgrXPur2JoUC8Qy3OpG+sAbGhEKT0ErAWOA6uBPWbW1wr9BOgFbgKezot0kAPYqJQA1gC/A9cA+82svzksSn1R+jNKX0SpnM/e1x3yqig92JhrZivM7FjO8bSZLSuCR/Ok16K0KMNHojQWpYko7Y7S1igN5PE3ROl4lNaZ2UVmNpPBU01orvZvZPCeKFXbBR+lEKVtUapFaSZKg9njqpl9aWYTrmXCImA7sCWb9lK/jj9TrwkrgA1AH3AQuKsSwkzbrLfxpgpsBtYDxf/R3xm2ExirhNCuHHZXTsmRwiat+S/zSt06eysVA/4pmGr/G3qm6ik28v29FKgCg8BS6pvS0KNRGgZ+Bb4FpsxsOkfUlMuwDcBWYOUZOHYM2AU8WQmhBifDv70O7PjX7KZ+4G7g3FM8zd6uBIaBy4AqxnIcZwFLCovPAhE4Sj38b4BDwEeVEFKD9S94Khjn486v3QAAAABJRU5ErkJggg==);background-position:9px 4px}.OT_subscriber .OT_mute{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAATCAYAAAB7u5a2AAABx0lEQVQ4jaWUv48NURiGn3ONmCs32ZBd28ht1gqyZAkF21ylQkEiSp2ehpDlD1BoFGqqVdJohYKI7MaPxMoVNghCWMF+7ybLUewnOXfcMWO9yeQ857zne8+XmZOBGjJpr0kvTIomvTZpS526UCO4DUwD64FjwCFgqZnnR+oc8LfgzKQ73vGsr42ZtGjSQFV9o8KfBCacZwCaef4YmAf2rzjcpN3A2WSpm/AssKcqPDNpDBjs410CViXzTwk/A7b1C4wxDgOngAsZcAXY2buDfp/6S4F3lDS8DjgBzDWAjX/Y/e/QgYS/AhsKHa+OMQ6GEJ4Cj4BOAxgq6aCowyZtdf4OtAr+FHDO+R4wWnVbihr3cQnICt4boO38GWj9a/icjwOACt4m4K3zEPA+AxaAtTWCnwN3lzHkEL8V/OPAGud9wK2GF9XR1Wae/1zG2AI+pGYI4VUIoRtjHAc2A9cz4LRPevYCZ+i9/4sJt4GXJU10gaPAzdI2TTro/5Tfz8XEe2LSZGmxq/SDNvP8BnA5WRrx4BwYBe6vONx1EnjovGvBLAAd4Adwuyq8UiaNmDTvr+a8SQ9MuvbfwckBHZPe+QEfTdpep+4XZmPBHiHgz74AAAAASUVORK5CYII=);background-position:8px 7px}.OT_subscriber .OT_mute.OT_active{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAACtklEQVQ4jZ2VSYiURxTHf+/T9Nc9iRrBuYySmIsXUU9iFMEFERRBvAjJLUQi5ioiHvSScfTmgqC4XAT1ZIgLuJHkICaaQAgKI2hAUBT30bjUq7bbv4eukXK029F3+eqtv/fqK6qQdEnSNUmT6CDB/bvgfjO4N9zj2RD8007xg1IABkwEzkma0qb4PGAPMBZYLtSD8eNwAEjqTlNI0gNJM4YU7w7ut4O7gvuhZFsR3C8NC5BBLiTIY0mzM8AvqbiC++pk+zLpE95XuwAws3vAQuBPYDRwWtL84P4tsDSLv5oaug4EYOawAMF9jMdoLxqNZcDvQA04UVYqL4G/svj7AF21mhJscrvCksYBFO7xc2AAGGg2mrdjvf4rcAyomNn+slLZmUEGBgsYdh945xZJmgvckDSrEJpK6ySBgV6q12O8ABwGPjGzfWWlsjdN9rpjoSfA+DYDXARGAksK4Is3XC1Ub4z1f4CDQGFmu6tleQSYk0U+p7WVeefLJc00s4fAeWB6Qeunvj0m2ugx9gO7kmlrtSxvBfcy6fXUZS6rgG/S+jLQUwCVNmMC9HqM14EtSe+rluWazN8YEv8IqKZ1E1qnaIDO0ucx3gX6kv6TpM3AM+D/IbGjgP60/gq4WQA33gMA2OQxPgHWJX1ttSwL4FAeZGYLgB2SasBs4A8L7qOBf9M0uXQB3a+TMYSmVctyDrA9mfcBK82smSdKWgCcAaa1bTm4fxbc/8uuCQX3RanAD5Ka6Wo5IGnE0HxJPZ03pQX5Org3MsD3AO5xXLPZXJ9BjkrqdFg6QjZkgG3Jtsw93pG0VFI9QU5K6voYQBHcTydAfwheBI9HgvvPAJIWS3qeIL9JGvUxkO7gfi1BrqTvwkG/pPmSnibIqTzXPgAyEVgBjAEu1qrVPbk/PVTHgb/NbPGg/RVIzOQqzSTBaQAAAABJRU5ErkJggg==);background-position:7px 7px}.OT_publisher .OT_edge-bar-item.OT_mode-auto,.OT_publisher .OT_edge-bar-item.OT_mode-mini-auto,.OT_publisher .OT_edge-bar-item.OT_mode-off,.OT_subscriber .OT_edge-bar-item.OT_mode-auto,.OT_subscriber .OT_edge-bar-item.OT_mode-mini-auto,.OT_subscriber .OT_edge-bar-item.OT_mode-off{top:-25px;opacity:0}.OT_publisher .OT_edge-bar-item.OT_mode-off,.OT_subscriber .OT_edge-bar-item.OT_mode-off{display:none}.OT_mini .OT_mute.OT_mode-auto,.OT_publisher .OT_mute.OT_mode-mini-auto,.OT_subscriber .OT_mute.OT_mode-mini-auto{top:50%}.OT_publisher .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto,.OT_publisher .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto,.OT_publisher .OT_edge-bar-item.OT_edge-bottom.OT_mode-off,.OT_subscriber .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto,.OT_subscriber .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto,.OT_subscriber .OT_edge-bar-item.OT_edge-bottom.OT_mode-off{top:auto;bottom:-25px}.OT_publisher .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold,.OT_publisher .OT_edge-bar-item.OT_mode-on,.OT_publisher:hover .OT_edge-bar-item.OT_mode-auto,.OT_publisher:hover .OT_edge-bar-item.OT_mode-mini-auto,.OT_subscriber .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold,.OT_subscriber .OT_edge-bar-item.OT_mode-on,.OT_subscriber:hover .OT_edge-bar-item.OT_mode-auto,.OT_subscriber:hover .OT_edge-bar-item.OT_mode-mini-auto{top:0;opacity:1}.OT_mini .OT_mute.OT_mode-on,.OT_mini:hover .OT_mute.OT_mode-auto,.OT_mute.OT_mode-mini,.OT_root:hover .OT_mute.OT_mode-mini-auto{top:50%}.OT_publisher .OT_edge-bar-item.OT_edge-bottom.OT_mode-on,.OT_publisher:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto,.OT_subscriber .OT_edge-bar-item.OT_edge-bottom.OT_mode-on,.OT_subscriber:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto{top:auto;bottom:0;opacity:1}.OT_widget-container{width:100%;height:100%;position:absolute;background-color:#000;overflow:hidden}.OT_root .OT_video-loading{position:absolute;z-index:1;width:100%;height:100%;display:none;background-color:rgba(0,0,0,.75)}.OT_root .OT_video-loading .OT_video-loading-spinner{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0yMCAtMjAgMjQwIDI0MCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4Mj0iMCIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjA4Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImMiIHgxPSIxIiB4Mj0iMCIgeTE9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMDgiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjE2Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImQiIHgyPSIwIiB5MT0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii4xNiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMzMiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZSIgeDI9IjEiIHkxPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjMzIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii42NiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJmIiB4Mj0iMSIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuNjYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiLz48L2xpbmVhckdyYWRpZW50PjxtYXNrIGlkPSJnIj48ZyBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjQwIj48cGF0aCBzdHJva2U9InVybCgjYSkiIGQ9Ik04Ni42LTUwYTEwMCAxMDAgMCAwIDEgMCAxMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2IpIiBkPSJNODYuNiA1MEExMDAgMTAwIDAgMCAxIDAgMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNjKSIgZD0iTTAgMTAwYTEwMCAxMDAgMCAwIDEtODYuNi01MCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAwIDEwMCkiLz48cGF0aCBzdHJva2U9InVybCgjZCkiIGQ9Ik0tODYuNiA1MGExMDAgMTAwIDAgMCAxIDAtMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNlKSIgZD0iTS04Ni42LTUwQTEwMCAxMDAgMCAwIDEgMC0xMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2YpIiBkPSJNMC0xMDBhMTAwIDEwMCAwIDAgMSA4Ni42IDUwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjwvZz48L21hc2s+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHg9Ii0yMCIgeT0iLTIwIiBtYXNrPSJ1cmwoI2cpIiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat;position:absolute;width:32px;height:32px;left:50%;top:50%;margin-left:-16px;margin-top:-16px;-webkit-animation:2s linear infinite OT_spin;animation:2s linear infinite OT_spin}@-webkit-keyframes OT_spin{100%{-webkit-transform:rotate(360deg)}}@keyframes OT_spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.OT_publisher.OT_loading .OT_video-loading,.OT_subscriber.OT_loading .OT_video-loading{display:block}.OT_video-centering{display:table;width:100%;height:100%}.OT_video-container{display:table-cell;vertical-align:middle}.OT_video-poster{position:absolute;z-index:1;width:100%;height:100%;display:none;opacity:.25;background-repeat:no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDcxIDQ2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSI2Ni42NiUiIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTc5IDMwOGMxNC4yNS02LjUgNTQuMjUtMTkuNzUgNzEtMjkgOS0zLjI1IDI1LTIxIDI1LTIxczMuNzUtMTMgMy0yMmMtMS43NS02Ljc1LTE1LTQzLTE1LTQzLTIuNSAzLTQuNzQxIDMuMjU5LTcgMS0zLjI1LTcuNS0yMC41LTQ0LjUtMTYtNTcgMS4yNS03LjUgMTAtNiAxMC02LTExLjI1LTMzLjc1LTgtNjctOC02N3MuMDczLTcuMzQ2IDYtMTVjLTMuNDguNjM3LTkgNC05IDQgMi41NjMtMTEuNzI3IDE1LTIxIDE1LTIxIC4xNDgtLjMxMi0xLjMyMS0xLjQ1NC0xMCAxIDEuNS0yLjc4IDE2LjY3NS04LjY1NCAzMC0xMSAzLjc4Ny05LjM2MSAxMi43ODItMTcuMzk4IDIyLTIyLTIuMzY1IDMuMTMzLTMgNi0zIDZzMTUuNjQ3LTguMDg4IDQxLTZjLTE5Ljc1IDItMjQgNi0yNCA2czc0LjUtMTAuNzUgMTA0IDM3YzcuNSA5LjUgMjQuNzUgNTUuNzUgMTAgODkgMy43NS0xLjUgNC41LTQuNSA5IDEgLjI1IDE0Ljc1LTExLjUgNjMtMTkgNjItMi43NSAxLTQtMy00LTMtMTAuNzUgMjkuNS0xNCAzOC0xNCAzOC0yIDQuMjUtMy43NSAxOC41LTEgMjIgMS4yNSA0LjUgMjMgMjMgMjMgMjNsMTI3IDUzYzM3IDM1IDIzIDEzNSAyMyAxMzVMMCA0NjRzLTMtOTYuNzUgMTQtMTIwYzUuMjUtNi4yNSAyMS43NS0xOS43NSA2NS0zNnoiLz48L3N2Zz4=);background-size:auto 76%}.OT_fit-mode-cover .OT_video-element{-o-object-fit:cover;object-fit:cover}@media only screen and (orientation:portrait){.OT_subscriber.OT_ForceContain.OT_fit-mode-cover .OT_video-element{-o-object-fit:contain!important;object-fit:contain!important}}.OT_fit-mode-contain .OT_video-element{-o-object-fit:contain;object-fit:contain}.OT_fit-mode-cover .OT_video-poster{background-position:center bottom}.OT_fit-mode-contain .OT_video-poster{background-position:center}.OT_audio-level-meter{position:absolute;width:25%;max-width:224px;min-width:21px;top:0;right:0;overflow:hidden}.OT_audio-level-meter:before{content:'';display:block;padding-top:100%}.OT_audio-level-meter__bar{position:absolute;width:192%;height:192%;top:-96%;right:-96%;border-radius:50%;background-color:rgba(0,0,0,.8)}.OT_audio-level-meter__audio-only-img{position:absolute;top:22%;right:15%;width:40%;opacity:.7;background:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNzkgODYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTkuNzU3IDQwLjkyNGMzLjczOC01LjE5MSAxMi43MTEtNC4zMDggMTIuNzExLTQuMzA4IDIuMjIzIDMuMDE0IDUuMTI2IDI0LjU4NiAzLjYyNCAyOC43MTgtMS40MDEgMS4zMDEtMTEuNjExIDEuNjI5LTEzLjM4LTEuNDM2LTEuMjI2LTguODA0LTIuOTU1LTIyLjk3NS0yLjk1NS0yMi45NzV6bTU4Ljc4NSAwYy0zLjczNy01LjE5MS0xMi43MTEtNC4zMDgtMTIuNzExLTQuMzA4LTIuMjIzIDMuMDE0LTUuMTI2IDI0LjU4Ni0zLjYyNCAyOC43MTggMS40MDEgMS4zMDEgMTEuNjExIDEuNjI5IDEzLjM4LTEuNDM2IDEuMjI2LTguODA0IDIuOTU1LTIyLjk3NSAyLjk1NS0yMi45NzV6Ii8+PHBhdGggZD0iTTY4LjY0NyA1OC42Yy43MjktNC43NTMgMi4zOC05LjU2MSAyLjM4LTE0LjgwNCAwLTIxLjQxMi0xNC4xMTUtMzguNzctMzEuNTI4LTM4Ljc3LTE3LjQxMiAwLTMxLjUyNyAxNy4zNTgtMzEuNTI3IDM4Ljc3IDAgNC41NDEuNTE1IDguOTM2IDEuODAyIDEyLjk1IDEuNjk4IDUuMjk1LTUuNTQyIDYuOTkxLTYuNjE2IDIuMDczQzIuNDEgNTUuMzk0IDAgNTEuNzg3IDAgNDguMTAzIDAgMjEuNTM2IDE3LjY4NSAwIDM5LjUgMCA2MS4zMTYgMCA3OSAyMS41MzYgNzkgNDguMTAzYzAgLjcxOC0yLjg5OSA5LjY5My0zLjI5MiAxMS40MDgtLjc1NCAzLjI5My03Ljc1MSAzLjU4OS03LjA2MS0uOTEyeiIvPjxwYXRoIGQ9Ik01LjA4NCA1MS4zODVjLS44MDQtMy43ODIuNTY5LTcuMzM1IDMuMTM0LTcuOTIxIDIuNjM2LS42MDMgNS40ODUgMi4xNSA2LjI4OSA2LjEzMi43OTcgMy45NDgtLjc1MiA3LjQ1Ny0zLjM4OCA3Ljg1OS0yLjU2Ni4zOTEtNS4yMzctMi4zMTgtNi4wMzQtNi4wN3ptNjguODM0IDBjLjgwNC0zLjc4Mi0uNTY4LTcuMzM1LTMuMTMzLTcuOTIxLTIuNjM2LS42MDMtNS40ODUgMi4xNS02LjI4OSA2LjEzMi0uNzk3IDMuOTQ4Ljc1MiA3LjQ1NyAzLjM4OSA3Ljg1OSAyLjU2NS4zOTEgNS4yMzctMi4zMTggNi4wMzQtNi4wN3ptLTIuMDM4IDguMjg4Yy0uOTI2IDE5LjY1OS0xNS4xMTIgMjQuNzU5LTI1Ljg1OSAyMC40NzUtNS40MDUtLjYwNi0zLjAzNCAxLjI2Mi0zLjAzNCAxLjI2MiAxMy42NjEgMy41NjIgMjYuMTY4IDMuNDk3IDMxLjI3My0yMC41NDktLjU4NS00LjUxMS0yLjM3OS0xLjE4Ny0yLjM3OS0xLjE4N3oiLz48cGF0aCBkPSJNNDEuNjYyIDc4LjQyMmw3LjU1My41NWMxLjE5Mi4xMDcgMi4xMiAxLjE1MyAyLjA3MiAyLjMzNWwtLjEwOSAyLjczOGMtLjA0NyAxLjE4Mi0xLjA1MSAyLjA1NC0yLjI0MyAxLjk0NmwtNy41NTMtLjU1Yy0xLjE5MS0uMTA3LTIuMTE5LTEuMTUzLTIuMDcyLTIuMzM1bC4xMDktMi43MzdjLjA0Ny0xLjE4MiAxLjA1Mi0yLjA1NCAyLjI0My0xLjk0N3oiLz48L2c+PC9zdmc+) center no-repeat}.OT_audio-level-meter__audio-only-img:before{content:'';display:block;padding-top:100%}.OT_audio-level-meter__value{position:absolute;border-radius:50%;background-image:radial-gradient(circle,rgba(151,206,0,1) 0,rgba(151,206,0,0) 100%)}.OT_audio-level-meter.OT_mode-off{display:none}.OT_audio-level-meter.OT_mode-on,.OT_audio-only .OT_audio-level-meter.OT_mode-auto{display:block}.OT_audio-only.OT_publisher .OT_video-element,.OT_audio-only.OT_subscriber .OT_video-element{display:none}.OT_video-disabled-indicator{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:bottom right;pointer-events:none;top:0;left:0;bottom:3px;right:3px}.OT_video-disabled{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAINUlEQVR42u2aaUxUVxTHcRBmAAEBRVTK4sKwDIsg+wCK7CqIw1CN1YobbbS2qYlJ06Qx1UpdqMbYWq2pSzWmH6ytNbXWJY1Lq7VuqBERtW64V0XFLYae0/xvcp3MMAMzDz6IyT/ge2ce5/7ucpY3Ts3NzZ1ygF57AJ0gO0G2jyZPmdbFyclJSAV1EeoEaUUSLGdSV5KLLFxzFmA7QVqGqDqjixhWkxCVeyRVl38wM6bwj6yYItYK47BAuu9B0gCqs6Ng2r494KQtkj/Dz2jHraw6qw2fdSE4rNmcCPCvZONP8iF1I6kdBdMaQJWZLeJqRWa2kPJAxXY+GxE+zxLI03GRh8lGSwoi9WCY8FWlCEh+8JOnT7MfPGjMuXX7Tt61hoaCi/9cKmKdv3BxeEtim/UbNpnbQiqF4MmT7kqrbr4lkMcTo46TTSpJB5g+8NHuVWnWuaampvhmO/7duHmrGluoO4C6OsJZGRrkDIld43ZqUOTnlkDSmXmabAoBU0vqBf+6KgFSxQ9++uzZ8rZApM81TJ8xM5me0Z/UF7PuBmdVdkGEb5gYDeQmyZNW3SJLIP9Kj64lGyMpmxRN6sOfIbkoAhKOdnv2/PmB1kB88eLFo+olyyrps3rSINIAzLonnqlqK8R9w+L86vtrt5L2nhug3Vc3ULu/Liz8AOuXESlZZONH6kmr7gtLIA9lRNeRzVukAvj3BslLnJNKgfScO69K+/Lly0ZbQW7e8tNK+pwBjqaSIjDrXgJkW1ciAZvbQjQ+RDahpBBKd5ZZsqN758hmImk4KQHnpDd8UwSkCyJarx07d4+3BeKJmlMHyX4qaRxpBCmNFE4KENvHDpAutVERn1kCVBMfeRRgYvZnx62wZPdnZkw92VQA5GClQXYRBze2S+iJmpPVVoJLA9l9QKokjcWKTCT1R5rhLg70NuSsziT16diIKkuAjibrTpJNDkn/e17CahtAjlAWJAYkb29Sb1LE9Rs391kILk8mVkyuIpuZcLKUlEmKkra1WuSTNuesEPzwoEploSVAh9Oiz+BIyd9dOHhtx4OEpFpVg6gbNK3yXX1j48N6U5Dz5i/gc/FDrMY3sTLiSMEkXxGxzUEUAGnbxlPaksMlHUXWAlHS8URCPseSohZbCSLjSSU7ixLXdzhIWVKq4Y7t2a/2bN0qGeKly1fYsVmk6RgIDz4J0bonyUOcjeYqm/8hRoYbWkigV2NH9CHAS60EkUkkw47hSRs6FqT1LR5AVcsrueXlK1d5AO+RpmBrZZEiefByytPCanRGNLZY0uF52gNDYr9sCRB8MHY0SJu2OJWKS2WQV65e4y31DmkCImEi0hBfufRime0RIhpbKen0/Ny9OYNW2ghyYytABjNIaxNuKttAWk6HPLn0k0FevdZwFinPWFIuKZbUV16NVko6jbWSDoPO3pOf8K0jQWLSQ0S9bdpkYck+m7vfWpAiHfKgBsZiGSSt0FqcTeU8WETqAHE2CgcAVd3Gkm4MD3xXYeI6B4NMItvKbcUpQ9gP+KMWnSsW+TaYJtoo+avBWLoKoK0CCSDud+7eXWQGZAXqV3YoQjQCfixJ8+fzj9ta3JHhlUeJ8wJOY2ws6eRKpPS3oqTvHAESEz9ya0naXL5WH6pt3FqSOhTHkTcKEXc6k1POh4Q9YJu/03TT4a8PoGMFI4i2EqSbOZAYaBkpCyD92RkG6KCSbjI/H0HEISBnlOZPFdcEzI2GTO4KBZICGKyAKLTEmJOB2txf5MbgohBINCl4FTqmpJMB2W+HiRn1Q2l6lXyPmiEP6VVE2TfGoaMYrHyPdtAnyI0jEOn9RLWmNEhvBBE7SjpFQZaShtLK+1S+T12lRwxUvrZlVPp8jE1PikeO7C/nyEqBDCB1t7+kUx4kKUWclea0yZC5BIGpiJSNSD9QgFR0RQKkL6KxHSWdsiARHJNYewoGrzG1/bk4dTPSunL2EyDjcbb7MQ+lQfZmkKiN7SjpFAM5CWAyGcwyY84YsZ1lUcbRNNtQMAdtQWGvQ0DyVjzYAKQfQFodeAeC1C8vzymXIZqD+ZEh/2OyLSalS/3VbnJZ+VqDXGjMrTCFuK4s66vVZUNfqaDolcbjOcb899sLpEE+I20GifywXe2QR3KElu99PzqjGufhREqB1pjCnG3IL3fY1v733r2FMsiGhutn0LAoJWWIGbPxjKwgjUbF0m52mPhigrpdXOecEq9pR6MkHbu2LOtrcZ9y3d0ODTb15y9MePz48aF79+8fvXnr9sljx2u2I7KNxDuaMPGVECoRs7mC4eT7SIruFNfNHK15MKuM2evwNq+4qjxvGnd5CHwNNynawW4cOlUZdG8b55IIJHmkItwrZHH6QxB3OSL9kTtAGpIvZiQB3Z4SKBfXQtEE9sashWAW87Bt3sYZNR6zn4uzJwWDKUKXfaKCdqUoBpLxSjYe9nqGiwWRBGipuGZ3Qm76itYLbbJI/PEhUApfw73uOIy9xfse3M9F9BuFJHcYrseSouGkHtCVtkuGTTikI8XgZzhg9SeF4VqcvSWiaSvNHQ8JwkNjIfEHemCmNLD1RaEfLs18mlgNuN6PFALHo7CyU5W2g00gFAQF4ozvibH04muwDbWraSFAyt/AAMzewgGR8uCeWn77xzBxPxgzPRCDDMZ14bQ/3jqGKGoHf2Hjgx3kw5LbaJDYWb52t9FMgw4AuWNWukNeuOYqOsmQi2jgws4PA/DD/z0B2x0/veCs4naw0cgybezid7X9jV3rX2RSs0wfLkll4pBGcgifg+NYxe1kJ2ycTaRq66uG/wBOl0vjcw70xwAAAABJRU5ErkJggg==);background-size:33px auto}.OT_video-disabled-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAGMElEQVR4Ae2aA7D0yBaAc7oH12vbRmlLaxYWb23btm3btm2899a2bWuYtPZ01cmtU9lJrib315yqr9I3Oem/5/s7acwEnehEJzoxCcX2O+wEeIgRBDDaGjAZOgQ6ihRpLklHZDJIXK1WWymMIhGGkVBKCWMM+Iv/f/b5t7faYtM/sGgIS7j8RNLjceUVl41GvGN1BFiHy9sgtRWaYbhvuVQ6o1VOvV5/tLe3dyssKoZuh8xClkDEi2MMS6ZjR0cScxdK/+HgnJsmLccYOx0e/PUGUqfTJDEHkV5go9lcMQoj4R8RpSIRRUr4a9baTJFCCNfqESKJ7RYJibK0xoi05EhFRTxMi1Rit6xHAuLaKRLwEVi6q1x+EhlVpd3d3Wfh4VQkQhRhxthYLg7SRGqdLlIp7UVOHf+JhEhEMscUolVje3p63saeeOFoKsT7fjj++BNuw2I/0ouUENmGaQcQEilQvUU6xuWC0kqmVWCt8df6kG7WLoFA20VSCOyNh0RKPT+SyrTWtQsvuvTYCy84z3+oAdbgAiLGIvHjTz6bFuu/B3lKKfVkFKknwih6EnnipZdfXQZzepAupXSGSCfwUGZtkrx3t/0dSQGnnXbmdocdetArQoj+4VR23wMP3bj/vnv9Sv/rBmkish09ca655thHSrlWq4TFF1vkNDxsgjiUnPqZnHPABIq47jx7pPMcecShfz7x1DO7D6eit99576X1113nVd8rqLGAuDaNitJonTGIqHgQGQjDsJglMrUH5iDSEQbRa6y2yrNvv/PuWVmV/PTzLz8steTit1B9FtGJeZrJksmWdBzBMcami4xUkaY1A1Qe94WIaPGBApJhaERrLrXkElf8+NPPz6YMLs1DDjn0Wn9PnI/UiQadM4jNEkhzVsEGE8nIHESM1j5/KqRX+/IEiOQ/yifNBlEkpnb00cccesbpp13T3983H88/48xzrrvm6it/8U5JXgX5G6nSvSq1R5LATR7aYGkwMG1RSwkWABH+4jUb3vT/uJ1Z0xpjraTBRltrxUQhksIRmgTJyy69+Pv99tv3qYX6FxgU+fU33352xGEHf5wisU7nNWJpZRMkAjZ6aIN1mwV7h29Jo2wCHlveu/GV169z65E+T6koexCh6c+EEiky3lnxQKFjUeVyOeI5AOBzIiayRhJryd7YYnkIHgvB0qk9Tdql6N3XH4bRUIOIIIKJSiRb0hkSEpZKRd1CpEq8GxtIyCVmDSgFl94GacTgaJw1rUlYhYng0c4ewaUsmKRIJjpiqMSOCh9QeI+UYECmtQIsxEu6OorEcv6Rl0gu0woh8MhFkmSCTXVI4pC704WCFRJvSRNJSzrMMEZO2iKZTCHAZYnmvXCny7ed5vfZK3viHSBdIFCKEFj2+nt+73nw8m2uedcLJlktA++VNMEPaR45aYukcKnnCfY3/DFbZS8t7eHxNgsPM0N1hXhJJwwM1QbpoQFlog2R13a/zBxEYHAQEUYUM6qiVwEyBYoM6JFNF2kFLelI5KQf+fVI4dJFCguDS7oAyx2R6SFQJKRedSDj/cMg/RXQ6ZE05GSIDAaXdCi1I3L021SQWNJ1RLY5OiIdL4/yvuw8ADfWPFrSciaMyH8tEQPwf1uGG54g5+KlJGTmsrxsQdl5PKidnPFe2QS///7Hu+VS6WX/HYnf0sevGL7lXydwod2/9DykZq0s5yff0sgSWCigNOH7TPHL7ufj+/TH8P/+qYpL4HkBDiRYpEXeM8/89/9zzjn7EtY64dfd1nqccM7Bs8+9MKy8555/8TnKS+5MufH6EZVASkgPzf+mJXroet17JirU0ALST3nT0y5ONyLpeo1y64ih+vuQfsoTOeRFSJXa+SvyB90TUmdw49EjLaKpMQ0mzEeTzkWsd/oI6fzfiKM8gWg6X6OjpXstu5ZHnmIb0GFiu29MIUfUewkmVrEN3RqVQ/bY8FzNcquMBv/pCNUZ5pHHem01KdN/I/DG66/lLhKSvTO5M84kav5C5z2ZfyAivi9i9VGd45RH7UWJbjwGG/7NYsRECt7jiOToHedKAui8SW4CsxyRc54mKH/8f7ELhCCACyNcIl/wI+FaAJyc8yzRtinQPzWzuFZrFHq/AAAAAElFTkSuQmCC);background-size:33px auto}.OT_video-disabled-indicator.OT_active{display:block}.OT_audio-blocked-indicator{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:center;pointer-events:none;top:0;left:0;bottom:0;right:0}.OT_audio-blocked{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUwIiBoZWlnaHQ9IjkwIj48ZGVmcz48cGF0aCBkPSJNNjcgMTJMNi40NDggNzIuNTUyIDAgMzFWMThMMjYgMGw0MSAxMnptMyA3bDYgNDctMjkgMTgtMzUuNTAyLTYuNDk4TDcwIDE5eiIgaWQ9ImEiLz48L2RlZnM+PHJlY3Qgd2lkdGg9IjE1MCIgaGVpZ2h0PSI5MCIgcng9IjM1IiByeT0iNDUiIG9wYWNpdHk9Ii41Ii8+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNikiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjxwYXRoIGQ9Ik0zOS4yNDkgNTEuMzEyYy42OTcgMTAuMzcgMi43ODUgMTcuODk3IDUuMjUxIDE3Ljg5NyAzLjAzOCAwIDUuNS0xMS40MTcgNS41LTI1LjVzLTIuNDYyLTI1LjUtNS41LTI1LjVjLTIuNTEgMC00LjYyOCA3Ljc5Ny01LjI4NyAxOC40NTNBOC45ODkgOC45ODkgMCAwIDEgNDMgNDRhOC45ODggOC45ODggMCAwIDEtMy43NTEgNy4zMTJ6TTIwLjk4NSAzMi4yMjRsMTUuNzQ2LTE2Ljg3N2E3LjM4NSA3LjM4NSAwIDAgMSAxMC4zNzQtLjQyQzUxLjcwMiAxOS4xMTQgNTQgMjkuMjA4IDU0IDQ1LjIwOGMwIDE0LjUyNy0yLjM0MyAyMy44OC03LjAzIDI4LjA1OGE3LjI4IDcuMjggMCAwIDEtMTAuMTY4LS40NjhMMjAuNDA1IDU1LjIyNEgxMmE1IDUgMCAwIDEtNS01di0xM2E1IDUgMCAwIDEgNS01aDguOTg1eiIgZmlsbD0iI0ZGRiIgbWFzaz0idXJsKCNiKSIvPjwvZz48cGF0aCBkPSJNMTA2LjUgMTMuNUw0NC45OTggNzUuMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:90px auto}.OT_container-audio-blocked{cursor:pointer}.OT_container-audio-blocked .OT_mute,.OT_container-audio-blocked.OT_mini .OT_edge-bar-item{display:none}.OT_audio-blocked-indicator.OT_active{display:block}.OT_video-unsupported{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:center;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:58px auto;pointer-events:none;top:0;left:0;bottom:0;right:0;margin-top:-30px}.OT_video-unsupported-bar{display:none;position:absolute;width:192%;height:192%;top:-96%;left:-96%;border-radius:50%;background-color:rgba(0,0,0,.8)}.OT_video-unsupported-img{display:none;position:absolute;top:11%;left:15%;width:70%;opacity:.7;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-repeat:no-repeat;background-position:center;background-size:100% auto}.OT_video-unsupported-img:before{content:'';display:block;padding-top:93%}.OT_video-unsupported-text{display:flex;justify-content:center;align-items:center;text-align:center;height:100%;margin-top:40px}"]],data:{}});function $_(e){return Po(0,[(e()(),gi(0,0,null,null,3,"div",[["class","OT_root OT_publisher custom-class"]],null,null,null,null,null)),(e()(),gi(1,0,null,null,2,"div",[["class","OT_widget-container"]],null,null,null,null,null)),(e()(),gi(2,0,null,null,1,"app-ov-video",[],null,null,null,Y_,Q_)),io(3,4243456,null,0,Z_,[],{subscriber:[0,"subscriber"]},null)],function(e,t){e(t,3,0,t.context.$implicit)},null)}function ew(e){return Po(0,[(e()(),gi(0,0,null,null,2,"div",[["class","bounds"],["id","layout"]],null,null,null,null,null)),(e()(),mi(16777216,null,null,1,null,$_)),io(2,802816,null,0,bu,[Sn,En,Wn],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.subscribers)},null)}var tw=Mi("app-layout-best-fit",X_,function(e){return Po(0,[(e()(),gi(0,0,null,null,1,"app-layout-best-fit",[],null,[["window","beforeunload"],["window","resize"]],function(e,t,n){var r=!0;return"window:beforeunload"===t&&(r=!1!==Wi(e,1).beforeunloadHandler()&&r),"window:resize"===t&&(r=!1!==Wi(e,1).sizeChange(n)&&r),r},ew,J_)),io(1,245760,null,0,X_,[ld,cn],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),nw=function(){};function rw(e){return Error("A hint was already declared for 'align=\""+e+"\"'.")}var iw=0,ow=kf(function(e){this._elementRef=e},"primary"),sw=new ge("MAT_FORM_FIELD_DEFAULT_OPTIONS"),aw=function(e){function t(t,n,r,i,o,s,a,u){var l=e.call(this,t)||this;return l._elementRef=t,l._changeDetectorRef=n,l._dir=i,l._defaultOptions=o,l._platform=s,l._ngZone=a,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+iw++,l._labelId="mat-form-field-label-"+iw++,l._outlineGapWidth=0,l._outlineGapStart=0,l._initialGapCalculated=!1,l._labelOptions=r||{},l.floatLabel=l._labelOptions.float||"auto",l._animationsEnabled="NoopAnimations"!==u,l}return i(t,e),Object.defineProperty(t.prototype,"appearance",{get:function(){return this._appearance||this._defaultOptions&&this._defaultOptions.appearance||"legacy"},set:function(e){this._appearance=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=Pp(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatLabel",{get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),t.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},t.prototype.ngAfterContentInit=function(){var e=this;this._validateControlChild(),this._control.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+this._control.controlType),this._control.stateChanges.pipe(Yp(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),te(this._control.ngControl&&this._control.ngControl.valueChanges||_a,this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Yp(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Yp(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})},t.prototype.ngAfterContentChecked=function(){var e=this;this._validateControlChild(),this._initialGapCalculated||(this._ngZone?this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){return e.updateOutlineGap()})}):Promise.resolve().then(function(){return e.updateOutlineGap()}))},t.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},t.prototype._shouldForward=function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]},t.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},t.prototype._hasLabel=function(){return!!this._labelChild},t.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},t.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},t.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},t.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},t.prototype._animateAndLockLabel=function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,rh(this._label.nativeElement,"transitionend").pipe(ka(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())},t.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},t.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},t.prototype._validateHints=function(){var e,t,n=this;this._hintChildren&&this._hintChildren.forEach(function(r){if("start"===r.align){if(e||n.hintLabel)throw rw("start");e=r}else if("end"===r.align){if(t)throw rw("end");t=r}})},t.prototype._syncDescribedByIds=function(){if(this._control){var e=[];if("hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&(e=this._errorChildren.map(function(e){return e.id}));this._control.setDescribedByIds(e)}},t.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},t.prototype.updateOutlineGap=function(){if("outline"===this.appearance&&this._label&&this._label.nativeElement.children.length){if(this._platform&&!this._platform.isBrowser)return void(this._initialGapCalculated=!0);if(!document.documentElement.contains(this._elementRef.nativeElement))return;for(var e=this._getStartEnd(this._connectionContainerRef.nativeElement.getBoundingClientRect()),t=this._getStartEnd(this._label.nativeElement.children[0].getBoundingClientRect()),n=0,r=0,i=this._label.nativeElement.children;r enter",animation:[{type:6,styles:{opacity:0,transform:"translateY(-100%)"},offset:null},{type:4,styles:null,timings:"300ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function cw(e){return Po(0,[(e()(),gi(0,0,null,null,8,null,null,null,null,null,null,null)),(e()(),gi(1,0,null,null,3,"div",[["class","mat-form-field-outline"]],null,null,null,null,null)),(e()(),gi(2,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],[[4,"width","px"]],null,null,null,null)),(e()(),gi(3,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],[[4,"width","px"]],null,null,null,null)),(e()(),gi(4,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null)),(e()(),gi(5,0,null,null,3,"div",[["class","mat-form-field-outline mat-form-field-outline-thick"]],null,null,null,null,null)),(e()(),gi(6,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],[[4,"width","px"]],null,null,null,null)),(e()(),gi(7,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],[[4,"width","px"]],null,null,null,null)),(e()(),gi(8,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null))],null,function(e,t){var n=t.component;e(t,2,0,n._outlineGapStart),e(t,3,0,n._outlineGapWidth),e(t,6,0,n._outlineGapStart),e(t,7,0,n._outlineGapWidth)})}function dw(e){return Po(0,[(e()(),gi(0,0,null,null,1,"div",[["class","mat-form-field-prefix"]],null,null,null,null,null)),To(null,0)],null,null)}function pw(e){return Po(0,[(e()(),gi(0,0,null,null,2,null,null,null,null,null,null,null)),To(null,2),(e()(),Io(2,null,["",""]))],null,function(e,t){e(t,2,0,t.component._control.placeholder)})}function hw(e){return Po(0,[To(null,3),(e()(),mi(0,null,null,0))],null,null)}function fw(e){return Po(0,[(e()(),gi(0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(e()(),Io(-1,null,["\xa0*"]))],null,null)}function mw(e){return Po(0,[(e()(),gi(0,0,[[4,0],["label",1]],null,7,"label",[["class","mat-form-field-label"]],[[8,"id",0],[1,"for",0],[1,"aria-owns",0],[2,"mat-empty",null],[2,"mat-form-field-empty",null],[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null)),io(1,16384,null,0,xu,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),mi(16777216,null,null,1,null,pw)),io(3,278528,null,0,Tu,[Sn,En,xu],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),mi(16777216,null,null,1,null,hw)),io(5,278528,null,0,Tu,[Sn,En,xu],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),mi(16777216,null,null,1,null,fw)),io(7,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,n._hasLabel()),e(t,3,0,!1),e(t,5,0,!0),e(t,7,0,!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)},function(e,t){var n=t.component;e(t,0,0,n._labelId,n._control.id,n._control.id,n._control.empty&&!n._shouldAlwaysFloat,n._control.empty&&!n._shouldAlwaysFloat,"accent"==n.color,"warn"==n.color)})}function gw(e){return Po(0,[(e()(),gi(0,0,null,null,1,"div",[["class","mat-form-field-suffix"]],null,null,null,null,null)),To(null,4)],null,null)}function yw(e){return Po(0,[(e()(),gi(0,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-form-field-underline"]],null,null,null,null,null)),(e()(),gi(1,0,null,null,0,"span",[["class","mat-form-field-ripple"]],[[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,1,0,"accent"==n.color,"warn"==n.color)})}function vw(e){return Po(0,[(e()(),gi(0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),To(null,5)],null,function(e,t){e(t,0,0,t.component._subscriptAnimationState)})}function bw(e){return Po(0,[(e()(),gi(0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(e()(),Io(1,null,["",""]))],null,function(e,t){var n=t.component;e(t,0,0,n._hintLabelId),e(t,1,0,n.hintLabel)})}function _w(e){return Po(0,[(e()(),gi(0,0,null,null,5,"div",[["class","mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(e()(),mi(16777216,null,null,1,null,bw)),io(2,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),To(null,6),(e()(),gi(4,0,null,null,0,"div",[["class","mat-form-field-hint-spacer"]],null,null,null,null,null)),To(null,7)],function(e,t){e(t,2,0,t.component.hintLabel)},function(e,t){e(t,0,0,t.component._subscriptAnimationState)})}function ww(e){return Po(2,[wo(671088640,1,{underlineRef:0}),wo(402653184,2,{_connectionContainerRef:0}),wo(402653184,3,{_inputContainerRef:0}),wo(671088640,4,{_label:0}),(e()(),gi(4,0,null,null,20,"div",[["class","mat-form-field-wrapper"]],null,null,null,null,null)),(e()(),gi(5,0,[[2,0],["connectionContainer",1]],null,11,"div",[["class","mat-form-field-flex"]],null,[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==(i._control.onContainerClick&&i._control.onContainerClick(n))&&r),r},null,null)),(e()(),mi(16777216,null,null,1,null,cw)),io(7,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),mi(16777216,null,null,1,null,dw)),io(9,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),gi(10,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-form-field-infix"]],null,null,null,null,null)),To(null,1),(e()(),gi(12,0,null,null,2,"span",[["class","mat-form-field-label-wrapper"]],null,null,null,null,null)),(e()(),mi(16777216,null,null,1,null,mw)),io(14,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),mi(16777216,null,null,1,null,gw)),io(16,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),mi(16777216,null,null,1,null,yw)),io(18,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),gi(19,0,null,null,5,"div",[["class","mat-form-field-subscript-wrapper"]],null,null,null,null,null)),io(20,16384,null,0,xu,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),mi(16777216,null,null,1,null,vw)),io(22,278528,null,0,Tu,[Sn,En,xu],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),mi(16777216,null,null,1,null,_w)),io(24,278528,null,0,Tu,[Sn,En,xu],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(e,t){var n=t.component;e(t,7,0,"outline"==n.appearance),e(t,9,0,n._prefixChildren.length),e(t,14,0,n._hasFloatingLabel()),e(t,16,0,n._suffixChildren.length),e(t,18,0,"outline"!=n.appearance),e(t,20,0,n._getDisplayedMessages()),e(t,22,0,"error"),e(t,24,0,"hint")},null)}var Ew=!!Fp()&&{passive:!0},Sw=function(){function e(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}return e.prototype.monitor=function(e){var t=this;if(!this._platform.isBrowser)return _a;var n=this._monitoredElements.get(e);if(n)return n.subject.asObservable();var r=new oe,i=function(n){"cdk-text-field-autofill-start"===n.animationName?(e.classList.add("cdk-text-field-autofilled"),t._ngZone.run(function(){return r.next({target:n.target,isAutofilled:!0})})):"cdk-text-field-autofill-end"===n.animationName&&(e.classList.remove("cdk-text-field-autofilled"),t._ngZone.run(function(){return r.next({target:n.target,isAutofilled:!1})}))};return this._ngZone.runOutsideAngular(function(){e.addEventListener("animationstart",i,Ew),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:r,unlisten:function(){e.removeEventListener("animationstart",i,Ew)}}),r.asObservable()},e.prototype.stopMonitoring=function(e){var t=this._monitoredElements.get(e);t&&(t.unlisten(),t.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))},e.prototype.ngOnDestroy=function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})},e.ngInjectableDef=me({factory:function(){return new e(nt(Vp),nt(Ht))},token:e,providedIn:"root"}),e}(),Cw=function(){},xw=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Tw=0,Ow=function(e){function t(t,n,r,i,o,s,a,u,l){var c=e.call(this,s,i,o,r)||this;return c._elementRef=t,c._platform=n,c.ngControl=r,c._autofillMonitor=u,c._uid="mat-input-"+Tw++,c._isServer=!1,c.focused=!1,c.stateChanges=new oe,c.controlType="mat-input",c.autofilled=!1,c._disabled=!1,c._required=!1,c._type="text",c._readonly=!1,c._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return Bp().has(e)}),c._inputValueAccessor=a||c._elementRef.nativeElement,c._previousNativeValue=c.value,c.id=c.id,n.IOS&&l.runOutsideAngular(function(){t.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),c._isServer=!c._platform.isBrowser,c}return i(t,e),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Pp(e),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=Pp(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&Bp().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=Pp(e)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})},t.prototype.ngOnChanges=function(){this.stateChanges.next()},t.prototype.ngOnDestroy=function(){this.stateChanges.complete(),this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)},t.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},t.prototype.focus=function(){this._elementRef.nativeElement.focus()},t.prototype._focusChanged=function(e){e===this.focused||this.readonly||(this.focused=e,this.stateChanges.next())},t.prototype._onInput=function(){},t.prototype._dirtyCheckNativeValue=function(){var e=this.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())},t.prototype._validateType=function(){if(xw.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},t.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},t.prototype._isBadInput=function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput},t.prototype._isTextarea=function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()},Object.defineProperty(t.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!0,configurable:!0}),t.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},t.prototype.onContainerClick=function(){this.focus()},t}(function(e){return function(e){function t(){for(var t=[],n=0;n0){var r=e.slice(0,t),i=e.slice(t+1).trim();n.set(r,i)}}),n},e.prototype.append=function(e,t){var n=this.getAll(e);null===n?this.set(e,t):n.push(t)},e.prototype.delete=function(e){var t=e.toLowerCase();this._normalizedNames.delete(t),this._headers.delete(t)},e.prototype.forEach=function(e){var t=this;this._headers.forEach(function(n,r){return e(n,t._normalizedNames.get(r),t._headers)})},e.prototype.get=function(e){var t=this.getAll(e);return null===t?null:t.length>0?t[0]:null},e.prototype.has=function(e){return this._headers.has(e.toLowerCase())},e.prototype.keys=function(){return Array.from(this._normalizedNames.values())},e.prototype.set=function(e,t){Array.isArray(t)?t.length&&this._headers.set(e.toLowerCase(),[t.join(",")]):this._headers.set(e.toLowerCase(),[t]),this.mayBeSetNormalizedName(e)},e.prototype.values=function(){return Array.from(this._headers.values())},e.prototype.toJSON=function(){var e=this,t={};return this._headers.forEach(function(n,r){var i=[];n.forEach(function(e){return i.push.apply(i,u(e.split(",")))}),t[e._normalizedNames.get(r)]=i}),t},e.prototype.getAll=function(e){return this.has(e)&&this._headers.get(e.toLowerCase())||null},e.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},e.prototype.mayBeSetNormalizedName=function(e){var t=e.toLowerCase();this._normalizedNames.has(t)||this._normalizedNames.set(t,e)},e}(),Bw=function(){function e(e){void 0===e&&(e={});var t=e.body,n=e.status,r=e.headers,i=e.statusText,o=e.type,s=e.url;this.body=null!=t?t:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=i?i:null,this.type=null!=o?o:null,this.url=null!=s?s:null}return e.prototype.merge=function(t){return new e({body:t&&null!=t.body?t.body:this.body,status:t&&null!=t.status?t.status:this.status,headers:t&&null!=t.headers?t.headers:this.headers,statusText:t&&null!=t.statusText?t.statusText:this.statusText,type:t&&null!=t.type?t.type:this.type,url:t&&null!=t.url?t.url:this.url})},e}(),Uw=function(e){function t(){return e.call(this,{status:200,statusText:"Ok",type:jw.Default,headers:new zw})||this}return i(t,e),t}(Bw),Hw=function(){};function Gw(e){if("string"!=typeof e)return e;switch(e.toUpperCase()){case"GET":return Lw.Get;case"POST":return Lw.Post;case"PUT":return Lw.Put;case"DELETE":return Lw.Delete;case"OPTIONS":return Lw.Options;case"HEAD":return Lw.Head;case"PATCH":return Lw.Patch}throw new Error('Invalid request method. The method "'+e+'" is not supported.')}var Ww=function(e){return e>=200&&e<300},qw=function(){function e(){}return e.prototype.encodeKey=function(e){return Zw(e)},e.prototype.encodeValue=function(e){return Zw(e)},e}();function Zw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Qw=function(){function e(e,t){void 0===e&&(e=""),void 0===t&&(t=new qw),this.rawParams=e,this.queryEncoder=t,this.paramsMap=function(e){void 0===e&&(e="");var t=new Map;return e.length>0&&e.split("&").forEach(function(e){var n=e.indexOf("="),r=a(-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)],2),i=r[0],o=r[1],s=t.get(i)||[];s.push(o),t.set(i,s)}),t}(e)}return e.prototype.clone=function(){var t=new e("",this.queryEncoder);return t.appendAll(this),t},e.prototype.has=function(e){return this.paramsMap.has(e)},e.prototype.get=function(e){var t=this.paramsMap.get(e);return Array.isArray(t)?t[0]:null},e.prototype.getAll=function(e){return this.paramsMap.get(e)||[]},e.prototype.set=function(e,t){if(void 0!==t&&null!==t){var n=this.paramsMap.get(e)||[];n.length=0,n.push(t),this.paramsMap.set(e,n)}else this.delete(e)},e.prototype.setAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){var r=t.paramsMap.get(n)||[];r.length=0,r.push(e[0]),t.paramsMap.set(n,r)})},e.prototype.append=function(e,t){if(void 0!==t&&null!==t){var n=this.paramsMap.get(e)||[];n.push(t),this.paramsMap.set(e,n)}},e.prototype.appendAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){for(var r=t.paramsMap.get(n)||[],i=0;i=200&&n.status<=299,n.statusText=t.statusText,n.headers=t.headers,n.type=t.type,n.url=t.url,n}return i(t,e),t.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},t}(Yw),Xw=/^\)\]\}',?\n/,Jw=function(){function e(e,t,n){var r=this;this.request=e,this.response=new A(function(i){var o=t.build();o.open(Lw[e.method].toUpperCase(),e.url),null!=e.withCredentials&&(o.withCredentials=e.withCredentials);var s=function(){var t=1223===o.status?204:o.status,r=null;204!==t&&"string"==typeof(r=void 0===o.response?o.responseText:o.response)&&(r=r.replace(Xw,"")),0===t&&(t=r?200:0);var s,a=zw.fromResponseHeaderString(o.getAllResponseHeaders()),u=("responseURL"in(s=o)?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):null)||e.url,l=new Bw({body:r,status:t,headers:a,statusText:o.statusText||"OK",url:u});null!=n&&(l=n.merge(l));var c=new Kw(l);if(c.ok=Ww(t),c.ok)return i.next(c),void i.complete();i.error(c)},a=function(e){var t=new Bw({body:e,type:jw.Error,status:o.status,statusText:o.statusText});null!=n&&(t=n.merge(t)),i.error(new Kw(t))};if(r.setDetectedContentType(e,o),null==e.headers&&(e.headers=new zw),e.headers.has("Accept")||e.headers.append("Accept","application/json, text/plain, */*"),e.headers.forEach(function(e,t){return o.setRequestHeader(t,e.join(","))}),null!=e.responseType&&null!=o.responseType)switch(e.responseType){case Fw.ArrayBuffer:o.responseType="arraybuffer";break;case Fw.Json:o.responseType="json";break;case Fw.Text:o.responseType="text";break;case Fw.Blob:o.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return o.addEventListener("load",s),o.addEventListener("error",a),o.send(r.request.getBody()),function(){o.removeEventListener("load",s),o.removeEventListener("error",a),o.abort()}})}return e.prototype.setDetectedContentType=function(e,t){if(null==e.headers||null==e.headers.get("Content-Type"))switch(e.contentType){case Vw.NONE:break;case Vw.JSON:t.setRequestHeader("content-type","application/json");break;case Vw.FORM:t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case Vw.TEXT:t.setRequestHeader("content-type","text/plain");break;case Vw.BLOB:var n=e.blob();n.type&&t.setRequestHeader("content-type",n.type)}},e}(),$w=function(){function e(e,t){void 0===e&&(e="XSRF-TOKEN"),void 0===t&&(t="X-XSRF-TOKEN"),this._cookieName=e,this._headerName=t}return e.prototype.configureRequest=function(e){var t=Vu().getCookie(this._cookieName);t&&e.headers.set(this._headerName,t)},e}(),eE=function(){function e(e,t,n){this._browserXHR=e,this._baseResponseOptions=t,this._xsrfStrategy=n}return e.prototype.createConnection=function(e){return this._xsrfStrategy.configureRequest(e),new Jw(e,this._browserXHR,this._baseResponseOptions)},e}(),tE=function(){function e(e){void 0===e&&(e={});var t=e.method,n=e.headers,r=e.body,i=e.url,o=e.search,s=e.params,a=e.withCredentials,u=e.responseType;this.method=null!=t?Gw(t):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=i?i:null,this.params=this._mergeSearchParams(s||o),this.withCredentials=null!=a?a:null,this.responseType=null!=u?u:null}return Object.defineProperty(e.prototype,"search",{get:function(){return this.params},set:function(e){this.params=e},enumerable:!0,configurable:!0}),e.prototype.merge=function(t){return new e({method:t&&null!=t.method?t.method:this.method,headers:t&&null!=t.headers?t.headers:new zw(this.headers),body:t&&null!=t.body?t.body:this.body,url:t&&null!=t.url?t.url:this.url,params:t&&this._mergeSearchParams(t.params||t.search),withCredentials:t&&null!=t.withCredentials?t.withCredentials:this.withCredentials,responseType:t&&null!=t.responseType?t.responseType:this.responseType})},e.prototype._mergeSearchParams=function(e){return e?e instanceof Qw?e.clone():"string"==typeof e?new Qw(e):this._parseParams(e):this.params},e.prototype._parseParams=function(e){var t=this;void 0===e&&(e={});var n=new Qw;return Object.keys(e).forEach(function(r){var i=e[r];Array.isArray(i)?i.forEach(function(e){return t._appendParam(r,e,n)}):t._appendParam(r,i,n)}),n},e.prototype._appendParam=function(e,t,n){"string"!=typeof t&&(t=JSON.stringify(t)),n.append(e,t)},e}(),nE=function(e){function t(){return e.call(this,{method:Lw.Get,headers:new zw})||this}return i(t,e),t}(tE),rE=function(e){function t(t){var n=e.call(this)||this,r=t.url;n.url=t.url;var i,o=t.params||t.search;if(o&&(i="object"!=typeof o||o instanceof Qw?o.toString():function(e){var t=new Qw;return Object.keys(e).forEach(function(n){var r=e[n];r&&Array.isArray(r)?r.forEach(function(e){return t.append(n,e.toString())}):t.append(n,r.toString())}),t}(o).toString()).length>0){var s="?";-1!=n.url.indexOf("?")&&(s="&"==n.url[n.url.length-1]?"":"&"),n.url=r+s+i}return n._body=t.body,n.method=Gw(t.method),n.headers=new zw(t.headers),n.contentType=n.detectContentType(),n.withCredentials=t.withCredentials,n.responseType=t.responseType,n}return i(t,e),t.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return Vw.JSON;case"application/x-www-form-urlencoded":return Vw.FORM;case"multipart/form-data":return Vw.FORM_DATA;case"text/plain":case"text/html":return Vw.TEXT;case"application/octet-stream":return this._body instanceof uE?Vw.ARRAY_BUFFER:Vw.BLOB;default:return this.detectContentTypeFromBody()}},t.prototype.detectContentTypeFromBody=function(){return null==this._body?Vw.NONE:this._body instanceof Qw?Vw.FORM:this._body instanceof sE?Vw.FORM_DATA:this._body instanceof aE?Vw.BLOB:this._body instanceof uE?Vw.ARRAY_BUFFER:this._body&&"object"==typeof this._body?Vw.JSON:Vw.TEXT},t.prototype.getBody=function(){switch(this.contentType){case Vw.JSON:case Vw.FORM:return this.text();case Vw.FORM_DATA:return this._body;case Vw.TEXT:return this.text();case Vw.BLOB:return this.blob();case Vw.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},t}(Yw),iE=function(){},oE="object"==typeof window?window:iE,sE=oE.FormData||iE,aE=oE.Blob||iE,uE=oE.ArrayBuffer||iE;function lE(e,t){return e.createConnection(t).response}function cE(e,t,n,r){return e.merge(new tE(t?{method:t.method||n,url:t.url||r,search:t.search,params:t.params,headers:t.headers,body:t.body,withCredentials:t.withCredentials,responseType:t.responseType}:{method:n,url:r}))}var dE=function(){function e(e,t){this._backend=e,this._defaultOptions=t}return e.prototype.request=function(e,t){var n;if("string"==typeof e)n=lE(this._backend,new rE(cE(this._defaultOptions,t,Lw.Get,e)));else{if(!(e instanceof rE))throw new Error("First argument must be a url string or Request instance.");n=lE(this._backend,e)}return n},e.prototype.get=function(e,t){return this.request(new rE(cE(this._defaultOptions,t,Lw.Get,e)))},e.prototype.post=function(e,t,n){return this.request(new rE(cE(this._defaultOptions.merge(new tE({body:t})),n,Lw.Post,e)))},e.prototype.put=function(e,t,n){return this.request(new rE(cE(this._defaultOptions.merge(new tE({body:t})),n,Lw.Put,e)))},e.prototype.delete=function(e,t){return this.request(new rE(cE(this._defaultOptions,t,Lw.Delete,e)))},e.prototype.patch=function(e,t,n){return this.request(new rE(cE(this._defaultOptions.merge(new tE({body:t})),n,Lw.Patch,e)))},e.prototype.head=function(e,t){return this.request(new rE(cE(this._defaultOptions,t,Lw.Head,e)))},e.prototype.options=function(e,t){return this.request(new rE(cE(this._defaultOptions,t,Lw.Options,e)))},e}();function pE(){return new $w}function hE(e,t){return new dE(e,t)}var fE=function(){},mE=function(){},gE=function(){},yE=function(){},vE=function(){},bE=function(){},_E=function(){},wE=function(){function e(e,t){Lu(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return e.withConfig=function(t,n){var r=Object.assign({},Tm),i=[];for(var o in t)t[o]===r[o]||!1!==t[o]&&!0!==t[o]||(r[o]=t[o]);return t.serverLoaded&&i.push({provide:Vm,useValue:!0}),Array.isArray(n)&&i.push({provide:mm,useValue:n,multi:!0}),i.push({provide:Om,useValue:r}),{ngModule:e,providers:i}},e}(),EE=function(e,t,n){return new Vs(ya,[va],function(e){return function(e){for(var t={},n=[],r=!1,i=0;i4&&clearTimeout(l),o===r&&a===i||(t.stream.videoDimensions={width:o||0,height:a||0},e.sendRequest("streamPropertyChanged",{streamId:t.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(t.stream.videoDimensions),reason:"deviceRotated"},function(n,o){n?console.error("Error sending 'streamPropertyChanged' event",n):(e.session.emitEvent("streamPropertyChanged",[new s.StreamPropertyChangedEvent(e.session,t.stream,"videoDimensions",t.stream.videoDimensions,{width:r,height:i},"deviceRotated")]),t.emitEvent("streamPropertyChanged",[new s.StreamPropertyChangedEvent(t,t.stream,"videoDimensions",t.stream.videoDimensions,{width:r,height:i},"deviceRotated")]))}),clearTimeout(l))}})})}return e.prototype.initSession=function(){return this.session=new o.Session(this),this.session},e.prototype.initPublisher=function(e,t,n){var r;r=t&&"function"!=typeof t?{audioSource:void 0!==(r=t).audioSource?r.audioSource:void 0,frameRate:r.videoSource instanceof MediaStreamTrack?void 0:void 0!==r.frameRate?r.frameRate:void 0,insertMode:void 0!==r.insertMode?"string"==typeof r.insertMode?u.VideoInsertMode[r.insertMode]:r.insertMode:u.VideoInsertMode.APPEND,mirror:void 0===r.mirror||r.mirror,publishAudio:void 0===r.publishAudio||r.publishAudio,publishVideo:void 0===r.publishVideo||r.publishVideo,resolution:r.videoSource instanceof MediaStreamTrack?void 0:void 0!==r.resolution?r.resolution:"640x480",videoSource:void 0!==r.videoSource?r.videoSource:void 0,filter:r.filter}:{insertMode:u.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var o,s=new i.Publisher(e,r,this);return t&&"function"==typeof t?o=t:n&&(o=n),s.initialize().then(function(){void 0!==o&&o(void 0),s.emitEvent("accessAllowed",[])}).catch(function(e){void 0!==o&&o(e),s.emitEvent("accessDenied",[])}),this.publishers.push(s),s},e.prototype.initPublisherAsync=function(e,t){var n=this;return new Promise(function(r,i){var o,s=function(e){e?i(e):r(o)};o=t?n.initPublisher(e,t,s):n.initPublisher(e,s)})},e.prototype.initLocalRecorder=function(e){return new r.LocalRecorder(e)},e.prototype.checkSystemRequirements=function(){var e=p.name;return"Chrome"!==e&&"Chrome Mobile"!==e&&"Firefox"!==e&&"Firefox Mobile"!==e&&"Firefox for iOS"!==e&&"Opera"!==e&&"Opera Mobile"!==e&&"Safari"!==e?0:1},e.prototype.getDevices=function(){return new Promise(function(e,t){navigator.mediaDevices.enumerateDevices().then(function(t){var n=[];t.forEach(function(e){"audioinput"!==e.kind&&"videoinput"!==e.kind||n.push({kind:e.kind,deviceId:e.deviceId,label:e.label})}),e(n)}).catch(function(e){console.error("Error getting devices",e),t(e)})})},e.prototype.getUserMedia=function(e){var t=this;return new Promise(function(n,r){t.generateMediaConstraints(e).then(function(t){navigator.mediaDevices.getUserMedia(t).then(function(e){n(e)}).catch(function(t){var n=t.toString();r(new a.OpenViduError("screen"!==e.videoSource?a.OpenViduErrorName.DEVICE_ACCESS_DENIED:a.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n))})}).catch(function(e){r(e)})})},e.prototype.enableProdMode=function(){console.log=function(){},console.debug=function(){},console.info=function(){},console.warn=function(){}},e.prototype.setAdvancedConfiguration=function(e){this.advancedConfiguration=e},e.prototype.generateMediaConstraints=function(e){var t=this;return new Promise(function(n,r){var i={audio:null!==e.audioSource&&!1!==e.audioSource&&(void 0===e.audioSource||e.audioSource),video:null!==e.videoSource&&!1!==e.videoSource&&{height:{ideal:480},width:{ideal:640}}};if("string"==typeof i.audio&&(i.audio={deviceId:{exact:i.audio}}),i.video){if(e.resolution){var o=e.resolution.toLowerCase().split("x"),s=Number(o[0]),u=Number(o[1]);i.video.width.ideal=s,i.video.height.ideal=u}if(e.frameRate&&(i.video.frameRate={ideal:e.frameRate}),e.videoSource&&"string"==typeof e.videoSource)if("screen"===e.videoSource||-1!==p.name.indexOf("Firefox")&&"window"===e.videoSource)if("Chrome"!==p.name&&-1===p.name.indexOf("Firefox")){var d=new a.OpenViduError(a.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome and Firefox. Detected browser: "+p.name);console.error(d),r(d)}else{if(t.advancedConfiguration.screenShareChromeExtension&&-1===p.name.indexOf("Firefox"))c.getScreenConstraints(function(e,o){if(e||o.mandatory&&"screen"===o.mandatory.chromeMediaSource)if("permission-denied"===e||"PermissionDeniedError"===e){var s=new a.OpenViduError(a.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");console.error(s),r(s)}else{var u=t.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();c.getChromeExtensionStatus(u,function(e){if("installed-disabled"===e){var n=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");console.error(n),r(n)}if("not-installed"===e){var i=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,t.advancedConfiguration.screenShareChromeExtension);console.error(i),r(i)}})}else i.video=o,n(i)});else{var h=-1!==p.name.indexOf("Firefox")?e.videoSource:void 0;l.getScreenId(h,function(e,o,s){if(e){if("not-installed"===e){var u=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,t.advancedConfiguration.screenShareChromeExtension?t.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");console.error(u),r(u)}else if("installed-disabled"===e){var l=new a.OpenViduError(a.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");console.error(l),r(l)}else if("permission-denied"===e){var c=new a.OpenViduError(a.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");console.error(c),r(c)}}else i.video=s.video,n(i)})}e.videoSource="screen"}else i.video.deviceId={exact:e.videoSource},n(i);else n(i)}else n(i)})},e.prototype.startWs=function(e){var t={heartbeat:5e3,sendCloseMessage:!1,ws:{uri:this.wsUri,useSockJS:!1,onconnected:e,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this)},rpc:{requestTimeout:1e4,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),filterEventDispatched:this.session.onFilterEventDispatched.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session)}};this.jsonRpcClient=new d.clients.JsonRpcClient(t)},e.prototype.closeWs=function(){this.jsonRpcClient.close()},e.prototype.sendRequest=function(e,t,n){t&&t instanceof Function&&(n=t,t={}),console.debug('Sending request: {method:"'+e+'", params: '+JSON.stringify(t)+"}"),this.jsonRpcClient.send(e,t,n)},e.prototype.getWsUri=function(){return this.wsUri},e.prototype.getSecret=function(){return this.secret},e.prototype.getRecorder=function(){return this.recorder},e.prototype.disconnectCallback=function(){console.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection():alert("Connection error. Please reload page.")},e.prototype.reconnectingCallback=function(){console.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.onLostConnection():alert("Connection error. Please reload page.")},e.prototype.reconnectedCallback=function(){console.warn("Websocket reconnected"),this.isRoomAvailable()?this.session.onRecoveredConnection():alert("Connection error. Please reload page.")},e.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof o.Session||(console.warn("Session instance not found"),!1)},e}()},"+snY":function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("HyLw");t.ConnectionEvent=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n,r)||this;return s.connection=i,s.reason=o,s}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},"0fCr":function(e,t,n){"use strict";t.__esModule=!0;var r=n("AlV1"),i=n("ReYS"),o=n("WDJJ"),s=n("PyKc"),a=n("8HiN"),u=n("kaSr"),l=n("vxzt"),c=n("p571");t.Stream=function(){function e(e,t){var n=this;this.ee=new u,this.isSubscribeToRemote=!1,this.isLocalStreamReadyToPublish=!1,this.isLocalStreamPublished=!1,this.publishedOnce=!1,this.session=e,t.hasOwnProperty("id")?(this.inboundStreamOpts=t,this.streamId=this.inboundStreamOpts.id,this.hasAudio=this.inboundStreamOpts.hasAudio,this.hasVideo=this.inboundStreamOpts.hasVideo,this.hasAudio&&(this.audioActive=this.inboundStreamOpts.audioActive),this.hasVideo&&(this.videoActive=this.inboundStreamOpts.videoActive,this.typeOfVideo=this.inboundStreamOpts.typeOfVideo?this.inboundStreamOpts.typeOfVideo:void 0,this.frameRate=-1===this.inboundStreamOpts.frameRate?void 0:this.inboundStreamOpts.frameRate,this.videoDimensions=this.inboundStreamOpts.videoDimensions),this.inboundStreamOpts.filter&&Object.keys(this.inboundStreamOpts.filter).length>0&&(this.inboundStreamOpts.filter.lastExecMethod&&0===Object.keys(this.inboundStreamOpts.filter.lastExecMethod).length&&delete this.inboundStreamOpts.filter.lastExecMethod,this.filter=this.inboundStreamOpts.filter)):(this.outboundStreamOpts=t,this.hasAudio=this.isSendAudio(),this.hasVideo=this.isSendVideo(),this.hasAudio&&(this.audioActive=!!this.outboundStreamOpts.publisherProperties.publishAudio),this.hasVideo&&(this.videoActive=!!this.outboundStreamOpts.publisherProperties.publishVideo,this.frameRate=this.outboundStreamOpts.publisherProperties.frameRate,this.typeOfVideo=this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":this.isSendScreen()?"SCREEN":"CAMERA"),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){n.streamManager.updateMediaStream(n.mediaStream),console.debug("Video srcObject ["+n.mediaStream+"] updated in stream ["+n.streamId+"]")})}return e.prototype.on=function(e,t){var n=this;return this.ee.on(e,function(r){r?console.info("Event '"+e+"' triggered by stream '"+n.streamId+"'",r):console.info("Event '"+e+"' triggered by stream '"+n.streamId+"'"),t(r)}),this},e.prototype.once=function(e,t){var n=this;return this.ee.once(e,function(r){r?console.info("Event '"+e+"' triggered once by stream '"+n.streamId+"'",r):console.info("Event '"+e+"' triggered once by stream '"+n.streamId+"'"),t(r)}),this},e.prototype.off=function(e,t){return t?this.ee.off(e,t):this.ee.removeAllListeners(e),this},e.prototype.applyFilter=function(e,t){var n=this;return new Promise(function(i,o){console.info("Applying filter to stream "+n.streamId),"string"!=typeof(t=t||{})&&(t=JSON.stringify(t)),n.session.openvidu.sendRequest("applyFilter",{streamId:n.streamId,type:e,options:t},function(s,u){if(s)console.error("Error applying filter for Stream "+n.streamId,s),o(401===s.code?new c.OpenViduError(c.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):s);else{console.info("Filter successfully applied on Stream "+n.streamId);var l=n.filter;n.filter=new r.Filter(e,t),n.filter.stream=n,n.session.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(n.session,n,"filter",n.filter,l,"applyFilter")]),n.streamManager.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(n.streamManager,n,"filter",n.filter,l,"applyFilter")]),i(n.filter)}})})},e.prototype.removeFilter=function(){var e=this;return new Promise(function(t,n){console.info("Removing filter of stream "+e.streamId),e.session.openvidu.sendRequest("removeFilter",{streamId:e.streamId},function(r,i){if(r)console.error("Error removing filter for Stream "+e.streamId,r),n(401===r.code?new c.OpenViduError(c.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):r);else{console.info("Filter successfully removed from Stream "+e.streamId);var o=e.filter;delete e.filter,e.session.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(e.session,e,"filter",e.filter,o,"applyFilter")]),e.streamManager.emitEvent("streamPropertyChanged",[new a.StreamPropertyChangedEvent(e.streamManager,e,"filter",e.filter,o,"applyFilter")]),t()}})})},e.prototype.getMediaStream=function(){return this.mediaStream},e.prototype.setMediaStream=function(e){this.mediaStream=e},e.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated")},e.prototype.getWebRtcPeer=function(){return this.webRtcPeer},e.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},e.prototype.subscribeToMyRemote=function(e){this.isSubscribeToRemote=e},e.prototype.setOutboundStreamOptions=function(e){this.outboundStreamOpts=e},e.prototype.subscribe=function(){var e=this;return new Promise(function(t,n){e.initWebRtcPeerReceive().then(function(){t()}).catch(function(e){n(e)})})},e.prototype.publish=function(){var e=this;return new Promise(function(t,n){e.isLocalStreamReadyToPublish?e.initWebRtcPeerSend().then(function(){t()}).catch(function(e){n(e)}):e.ee.once("stream-ready-to-publish",function(){e.publish().then(function(){t()}).catch(function(e){n(e)})})})},e.prototype.disposeWebRtcPeer=function(){if(this.webRtcPeer){var e=!!this.outboundStreamOpts&&this.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack;this.webRtcPeer.dispose(e)}this.speechEvent&&this.speechEvent.stop(),this.stopWebRtcStats(),console.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"WebRTCPeer from 'Stream' with id ["+this.streamId+"] is now closed")},e.prototype.disposeMediaStream=function(){this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function(e){e.stop()}),this.mediaStream.getVideoTracks().forEach(function(e){e.stop()}),delete this.mediaStream),console.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed")},e.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},e.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},e.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},e.prototype.isSendScreen=function(){return!!this.outboundStreamOpts&&"screen"===this.outboundStreamOpts.publisherProperties.videoSource},e.prototype.setSpeechEventIfNotExists=function(){if(!this.speechEvent){var e=this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};e.interval="number"==typeof e.interval?e.interval:50,e.threshold="number"==typeof e.threshold?e.threshold:-50,this.speechEvent=l(this.mediaStream,e)}},e.prototype.enableSpeakingEvents=function(){var e=this;this.setSpeechEventIfNotExists(),this.speechEvent.on("speaking",function(){e.session.emitEvent("publisherStartSpeaking",[new s.PublisherSpeakingEvent(e.session,"publisherStartSpeaking",e.connection,e.streamId)])}),this.speechEvent.on("stopped_speaking",function(){e.session.emitEvent("publisherStopSpeaking",[new s.PublisherSpeakingEvent(e.session,"publisherStopSpeaking",e.connection,e.streamId)])})},e.prototype.enableOnceSpeakingEvents=function(){var e=this;this.setSpeechEventIfNotExists(),this.speechEvent.on("speaking",function(){e.session.emitEvent("publisherStartSpeaking",[new s.PublisherSpeakingEvent(e.session,"publisherStartSpeaking",e.connection,e.streamId)]),e.disableSpeakingEvents()}),this.speechEvent.on("stopped_speaking",function(){e.session.emitEvent("publisherStopSpeaking",[new s.PublisherSpeakingEvent(e.session,"publisherStopSpeaking",e.connection,e.streamId)]),e.disableSpeakingEvents()})},e.prototype.disableSpeakingEvents=function(){this.speechEvent.stop(),this.speechEvent=void 0},e.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},e.prototype.getSelectedIceCandidate=function(){var e=this;return new Promise(function(t,n){e.webRtcStats.getSelectedIceCandidateInfo().then(function(e){return t(e)}).catch(function(e){return n(e)})})},e.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},e.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},e.prototype.initWebRtcPeerSend=function(){var e=this;return new Promise(function(t,n){var r={audio:e.isSendAudio(),video:e.isSendVideo()},o={mediaStream:e.mediaStream,mediaConstraints:r,onicecandidate:e.connection.sendIceCandidate.bind(e.connection),iceServers:e.getIceServersConf(),simulcast:!1};e.webRtcPeer=e.displayMyRemote()?new i.WebRtcPeerSendrecv(o):new i.WebRtcPeerSendonly(o),e.webRtcPeer.generateOffer().then(function(r){!function(r){console.debug("Sending SDP offer to publish as "+e.streamId,r);var i="";e.isSendVideo()&&(i=e.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?"CUSTOM":e.isSendScreen()?"SCREEN":"CAMERA"),e.session.openvidu.sendRequest("publishVideo",{sdpOffer:r,doLoopback:e.displayMyRemote()||!1,hasAudio:e.isSendAudio(),hasVideo:e.isSendVideo(),audioActive:e.audioActive,videoActive:e.videoActive,typeOfVideo:i,frameRate:e.frameRate?e.frameRate:-1,videoDimensions:JSON.stringify(e.videoDimensions),filter:e.outboundStreamOpts.publisherProperties.filter},function(r,i){r?n(401===r.code?new c.OpenViduError(c.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(r)):(e.webRtcPeer.processAnswer(i.sdpAnswer).then(function(){e.streamId=i.id,e.isLocalStreamPublished=!0,e.publishedOnce=!0,e.displayMyRemote()&&e.remotePeerSuccessfullyEstablished(),e.ee.emitEvent("stream-created-by-publisher"),e.initWebRtcStats(),t()}).catch(function(e){n(e)}),console.info("'Publisher' successfully published to session"))})}(r)}).catch(function(e){n(new Error("(publish) SDP offer error: "+JSON.stringify(e)))})})},e.prototype.initWebRtcPeerReceive=function(){var e=this;return new Promise(function(t,n){var r={audio:e.inboundStreamOpts.hasAudio,video:e.inboundStreamOpts.hasVideo};console.debug("'Session.subscribe(Stream)' called. Constraints of generate SDP offer",r);var o={onicecandidate:e.connection.sendIceCandidate.bind(e.connection),mediaConstraints:r,iceServers:e.getIceServersConf(),simulcast:!1};e.webRtcPeer=new i.WebRtcPeerRecvonly(o),e.webRtcPeer.generateOffer().then(function(r){var i;i=r,console.debug("Sending SDP offer to subscribe to "+e.streamId,i),e.session.openvidu.sendRequest("receiveVideoFrom",{sender:e.streamId,sdpOffer:i},function(r,i){r?n(new Error("Error on recvVideoFrom: "+JSON.stringify(r))):e.webRtcPeer.processAnswer(i.sdpAnswer).then(function(){e.remotePeerSuccessfullyEstablished(),e.initWebRtcStats(),t()}).catch(function(e){n(e)})})}).catch(function(e){n(new Error("(subscribe) SDP offer error: "+JSON.stringify(e)))})})},e.prototype.remotePeerSuccessfullyEstablished=function(){var e;this.mediaStream=new MediaStream;for(var t=0,n=this.webRtcPeer.pc.getReceivers();t1&&(i=r[1],r=r[0].split(":"),o.username=r[0],o.credential=(e||{}).credential||r[1]||""),o.url=t+i,o.urls=[o.url],o):e):e}},3:function(e,t,n){e.exports=n("zUnb")},"3QOI":function(e){e.exports=["stun.l.google.com:19302","stun1.l.google.com:19302","stun2.l.google.com:19302","stun3.l.google.com:19302","stun4.l.google.com:19302","stun.ekiga.net","stun.ideasip.com","stun.schlund.de","stun.stunprotocol.org:3478","stun.voiparound.com","stun.voipbuster.com","stun.voipstunt.com","stun.voxgratia.org"]},"3lFV":function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("HyLw");t.StreamManagerEvent=function(e){function t(t){return e.call(this,!1,t,"streamPlaying")||this}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},"5lRx":function(e,t){t.pack=function(e){throw new TypeError("Not yet implemented")},t.unpack=function(e){throw new TypeError("Not yet implemented")}},"7W0T":function(e,t,n){"use strict";t.__esModule=!0,function(e){e.AFTER="AFTER",e.APPEND="APPEND",e.BEFORE="BEFORE",e.PREPEND="PREPEND",e.REPLACE="REPLACE"}(t.VideoInsertMode||(t.VideoInsertMode={}))},"8HiN":function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("HyLw");t.StreamPropertyChangedEvent=function(e){function t(t,n,r,i,o,s){var a=e.call(this,!1,t,"streamPropertyChanged")||this;return a.stream=n,a.changedProperty=r,a.newValue=i,a.oldValue=o,a.reason=s,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},"8v+A":function(e,t,n){var r=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(e){r=!0}Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i});var i=n("Dfy+").EventEmitter,o=n("pRLG"),s=n("ZlF2"),a=n("I17Z"),u=5e3;function l(e){if(e){if(e instanceof Function)return{send:e};if(e.send instanceof Function)return e;if(e.postMessage instanceof Function)return e.send=e.postMessage,e;if(e.write instanceof Function)return e.send=e.write,e;if(void 0===e.onmessage&&!(e.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function c(e,t){r?(this.method=e,this.params=t):(Object.defineProperty(this,"method",{value:e,enumerable:!0}),Object.defineProperty(this,"params",{value:t,enumerable:!0}))}function d(e,t,n,s){var d=this;if(!e)throw new SyntaxError("Packer is not defined");if(!e.pack||!e.unpack)throw new SyntaxError("Packer is invalid");var p=function(e){if(!e)return{};for(var t in e){var n=e[t];"string"==typeof n&&(e[t]={response:n})}return e}(e.responseMethods);if(t instanceof Function){if(void 0!=n)throw new SyntaxError("There can't be parameters after onRequest");s=t,n=void 0,t=void 0}if(t&&t.send instanceof Function){if(n&&!(n instanceof Function))throw new SyntaxError("Only a function can be after transport");s=n,n=t,t=void 0}if(n instanceof Function){if(void 0!=s)throw new SyntaxError("There can't be parameters after onRequest");s=n,n=void 0}if(n&&n.send instanceof Function&&s&&!(s instanceof Function))throw new SyntaxError("Only a function can be after transport");t=t||{},i.call(this),s&&this.on("request",s),r?this.peerID=t.peerID:Object.defineProperty(this,"peerID",{value:t.peerID});var h=t.max_retries||0;function f(e){d.decode(e.data||e)}this.getTransport=function(){return n},this.setTransport=function(e){n&&(n.removeEventListener?n.removeEventListener("message",f):n.removeListener&&n.removeListener("data",f)),e&&(e.addEventListener?e.addEventListener("message",f):e.addListener&&e.addListener("data",f)),n=l(e)},r||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(n);var m=t.request_timeout||u,g=t.ping_request_timeout||m,y=t.response_timeout||u,v=t.duplicates_timeout||u,b=0,_=new a,w=new a,E=new a,S={};function C(e,t){var n=setTimeout(function(){E.remove(e,t)},v);E.set(n,e,t)}function x(t,n,i,o,s){c.call(this,t,n),this.getTransport=function(){return s},this.setTransport=function(e){s=l(e)},r||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var a=w.get(i,o);s||d.getTransport()||(r?this.duplicated=Boolean(a):Object.defineProperty(this,"duplicated",{value:Boolean(a)}));var u=p[t];this.pack=e.pack.bind(e,this,i),this.reply=function(t,n,r){if(t instanceof Function||t&&t.send instanceof Function){if(void 0!=n)throw new SyntaxError("There can't be parameters after callback");r=t,n=null,t=void 0}else if(n instanceof Function||n&&n.send instanceof Function){if(void 0!=r)throw new SyntaxError("There can't be parameters after callback");r=n,n=null}var s;return r=l(r),a&&clearTimeout(a.timeout),void 0!=o&&(t&&(t.dest=o),n&&(n.dest=o)),t||void 0!=n?(void 0!=d.peerID&&(t?t.from=d.peerID:n.from=d.peerID),s=e.pack(s=u?void 0==u.error&&t?{error:t}:{method:t?u.error:u.response,params:t||n}:{error:t,result:n},i)):s=a?a.message:e.pack({result:null},i),function(e,t,n){var r={message:e,timeout:setTimeout(function(){w.remove(t,n)},y)};w.set(r,t,n)}(s,i,o),(r=r||this.getTransport()||d.getTransport())?r.send(s):s}}function T(e){var t=S[e];if(t){delete S[e];var n=_.pop(t.id,t.dest);n&&(clearTimeout(n.timeout),C(t.id,t.dest))}}o(x,c),this.cancel=function(e){if(e)return T(e);for(var e in S)T(e)},this.close=function(){var e=this.getTransport();e&&e.close&&e.close(),this.cancel(),E.forEach(clearTimeout),w.forEach(function(e){clearTimeout(e.timeout)})},this.encode=function(t,n,r,i,o){if(n instanceof Function){if(void 0!=r)throw new SyntaxError("There can't be parameters after callback");o=n,i=void 0,r=void 0,n=void 0}else if(r instanceof Function){if(void 0!=i)throw new SyntaxError("There can't be parameters after callback");o=r,i=void 0,r=void 0}else if(i instanceof Function){if(void 0!=o)throw new SyntaxError("There can't be parameters after callback");o=i,i=void 0}void 0!=d.peerID&&((n=n||{}).from=d.peerID),void 0!=r&&((n=n||{}).dest=r);var s={method:t,params:n};if(o){var a=b++,u=0;function c(e,t){d.cancel(s),o(e,t)}var f={message:s=e.pack(s,a),callback:c,responseMethods:p[t]||{}},y=l(i);function v(e){return f.timeout=setTimeout(C,("ping"===t?g:m)*Math.pow(2,u++)),S[s]={id:a,dest:r},_.set(f,a,r),(e=e||y||d.getTransport())?e.send(s):s}function w(e){e=l(e),console.warn(u+" retry for request message:",s);var t=E.pop(a,r);return clearTimeout(t),v(e)}function C(){if(u0&&a.length>o){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",u.name,u.message)}}else a=s[t]=r,++e._eventsCount;return e}function d(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t1&&(t=arguments[1]),t instanceof Error)throw t;var u=new Error('Unhandled "error" event. ('+t+")");throw u.context=t,u}if(!(n=s[e]))return!1;var l="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=m(e,r),o=0;o=0;s--)if(r[s]===t||r[s].listener===t){a=r[s].listener,o=s;break}if(o<0)return this;0===o?r.shift():function(e,t){for(var n=o,r=n+1,i=e.length;r=0;o--)this.removeListener(e,t[o]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},FaRF:function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return i}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return s}),n.d(t,"__decorate",function(){return a}),n.d(t,"__param",function(){return u}),n.d(t,"__metadata",function(){return l}),n.d(t,"__awaiter",function(){return c}),n.d(t,"__generator",function(){return d}),n.d(t,"__exportStar",function(){return p}),n.d(t,"__values",function(){return h}),n.d(t,"__read",function(){return f}),n.d(t,"__spread",function(){return m}),n.d(t,"__await",function(){return g}),n.d(t,"__asyncGenerator",function(){return y}),n.d(t,"__asyncDelegator",function(){return v}),n.d(t,"__asyncValues",function(){return b}),n.d(t,"__makeTemplateObject",function(){return _}),n.d(t,"__importStar",function(){return w}),n.d(t,"__importDefault",function(){return E});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function u(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})}function d(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function m(){for(var e=[],t=0;t1||a(e,t)})})}function a(e,t){try{(n=i[e](t)).value instanceof g?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(e){c(o[0][3],e)}var n}function u(e){a("next",e)}function l(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function v(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:g(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}},FmsN:function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},HyLw:function(e,t,n){"use strict";t.__esModule=!0,t.Event=function(){function e(e,t,n){this.hasBeenPrevented=!1,this.cancelable=e,this.target=t,this.type=n}return e.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},e.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},e}()},I17Z:function(e,t){function n(){var e={};this.forEach=function(t){for(var n in e){var r=e[n];for(var i in r)t(r[i])}},this.get=function(t,n){var r=e[n];if(void 0!=r)return r[t]},this.remove=function(t,n){var r=e[n];if(void 0!=r){for(var i in delete r[t],r)return!1;delete e[n]}},this.set=function(t,n,r){if(void 0==t)return this.remove(n,r);var i=e[r];void 0==i&&(e[r]=i={}),i[n]=t}}n.prototype.pop=function(e,t){var n=this.get(e,t);if(void 0!=n)return this.remove(e,t),n},e.exports=n},IWAk:function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("Vncp");t.Subscriber=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.element=i.targetElement,i.stream=t,i.properties=r,i}return r(t,e),t.prototype.subscribeToAudio=function(e){return this.stream.getMediaStream().getAudioTracks().forEach(function(t){t.enabled=e}),console.info("'Subscriber' has "+(e?"subscribed to":"unsubscribed from")+" its audio stream"),this},t.prototype.subscribeToVideo=function(e){return this.stream.getMediaStream().getVideoTracks().forEach(function(t){t.enabled=e}),console.info("'Subscriber' has "+(e?"subscribed to":"unsubscribed from")+" its video stream"),this},t}(i.StreamManager)},K1e4:function(e,t,n){var r,i,o=n("FmsN"),s=n("DEtd"),a=0,u=0;e.exports=function(e,t,n){var l=t&&n||0,c=t||[],d=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==p){var h=o();null==d&&(d=r=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=i=16383&(h[6]<<8|h[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,g=f-a+(m-u)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||f>a)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=f,u=m,i=p;var y=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;c[l++]=y>>>24&255,c[l++]=y>>>16&255,c[l++]=y>>>8&255,c[l++]=255&y;var v=f/4294967296*1e4&268435455;c[l++]=v>>>8&255,c[l++]=255&v,c[l++]=v>>>24&15|16,c[l++]=v>>>16&255,c[l++]=p>>>8|128,c[l++]=255&p;for(var b=0;b<6;++b)c[l+b]=d[b];return t||s(c)}},KCZL:function(e,t){function n(){}e.exports=n,n.mixin=function(e){var t=e.prototype||e;t.isWildEmitter=!0,t.on=function(e,t,n){this.callbacks=this.callbacks||{};var r=3===arguments.length,i=r?arguments[2]:arguments[1];return i._groupName=r?arguments[1]:void 0,(this.callbacks[e]=this.callbacks[e]||[]).push(i),this},t.once=function(e,t,n){var r=this,i=3===arguments.length,o=i?arguments[2]:arguments[1];return this.on(e,i?arguments[1]:void 0,function t(){r.off(e,t),o.apply(this,arguments)}),this},t.releaseGroup=function(e){var t,n,r,i;for(t in this.callbacks=this.callbacks||{},this.callbacks)for(n=0,r=(i=this.callbacks[t]).length;nu&&(c=!1,b(),s.debug("Server did not respond to ping message #"+r+". Reconnecting... "),y.reconnectWs()))}))}else s.debug("Trying to send ping, but ping is not enabled");var r}function w(){d||(s.debug("Starting ping (if configured)"),d=!0,void 0!=e.heartbeat&&(t=setInterval(_,e.heartbeat),_()))}this.send=function(e,t,n){"ping"!==e&&s.debug("Request: method:"+e+" params:"+JSON.stringify(t));var r=Date.now();v.encode(e,t,function(i,o){if(i){try{s.error("ERROR:"+i.message+" in Request: method:"+e+" params:"+JSON.stringify(t)+" request:"+i.request),i.data&&s.error("ERROR DATA:"+JSON.stringify(i.data))}catch(e){}i.requestTime=r}n&&(void 0!=o&&"pong"!==o.value&&s.debug("Response: "+JSON.stringify(o)),n(i,o))})},this.close=function(){s.debug("Closing jsonRpcClient explicitly by client"),void 0!=t&&(s.debug("Clearing ping interval"),clearInterval(t)),d=!1,c=!1,e.sendCloseMessage?(s.debug("Sending close message"),this.send("closeSession",null,function(e,t){e&&s.error("Error sending close message: "+JSON.stringify(e)),y.close()})):y.close()},this.forceClose=function(e){y.forceClose(e)},this.reconnect=function(){y.reconnectWs()}}},Nb1D:function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("HyLw");t.SessionDisconnectedEvent=function(e){function t(t,n){var r=e.call(this,!0,t,"sessionDisconnected")||this;return r.reason=n,r}return r(t,e),t.prototype.callDefaultBehavior=function(){console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var e=this.target;for(var t in e.remoteConnections)e.remoteConnections[t].stream&&(e.remoteConnections[t].stream.disposeWebRtcPeer(),e.remoteConnections[t].stream.disposeMediaStream(),e.remoteConnections[t].stream.streamManager&&e.remoteConnections[t].stream.streamManager.removeAllVideos(),delete e.remoteStreamsCreated[e.remoteConnections[t].stream.streamId],e.remoteConnections[t].dispose()),delete e.remoteConnections[t]},t}(i.Event)},NwAM:function(e,t,n){var r=n("NRqn");t.JsonRpcClient=r},OCCK:function(e,t){function n(e,t,n){var r={audio:!1,video:{mandatory:{chromeMediaSource:e?"screen":"desktop",maxWidth:window.screen.width>1920?window.screen.width:1920,maxHeight:window.screen.height>1080?window.screen.height:1080},optional:[]}};return n&&(r.audio={mandatory:{chromeMediaSource:e?"screen":"desktop"},optional:[]}),t&&(r.video.mandatory.chromeMediaSourceId=t,r.audio&&r.audio.mandatory&&(r.audio.mandatory.chromeMediaSourceId=t)),r}function r(e){i?i.isLoaded?i.contentWindow.postMessage(e?e.forEach?{captureCustomSourceId:e}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){r(e)},100):o(function(){r(e)})}var i;function o(e){i?e():((i=document.createElement("iframe")).onload=function(){i.isLoaded=!0,e()},i.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",i.style.display="none",(document.body||document.documentElement).appendChild(i))}function s(){i?i.isLoaded?i.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(s,100):o(s)}window.getScreenId=function(e,t,i){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?t(null,"firefox",{video:{mozMediaSource:e,mediaSource:e}}):(window.addEventListener("message",function e(r){r.data&&(r.data.chromeMediaSourceId&&("PermissionDeniedError"===r.data.chromeMediaSourceId?t("permission-denied"):t(null,r.data.chromeMediaSourceId,n(null,r.data.chromeMediaSourceId,r.data.canRequestAudioTrack)),window.removeEventListener("message",e)),r.data.chromeExtensionStatus&&(t(r.data.chromeExtensionStatus,null,n(r.data.chromeExtensionStatus)),window.removeEventListener("message",e)))}),i?setTimeout(function(){r(i)},100):setTimeout(r,100)):t({video:!0})},window.getScreenConstraints=function(e){o(function(){getScreenId(function(t,n,r){r||(r={video:!0}),e(t,r.video)})})},window.getChromeExtensionStatus=function(e){navigator.mozGetUserMedia?e("installed-enabled"):(window.addEventListener("message",function t(n){n.data&&n.data.chromeExtensionStatus&&(e(n.data.chromeExtensionStatus),window.removeEventListener("message",t))}),setTimeout(s,100))},t.getScreenId=getScreenId},OQ7p:function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("HyLw"),o=n("iZBl"),s=n("keth");t.StreamEvent=function(e){function t(t,n,r,i,o){var s=e.call(this,t,n,r)||this;return s.stream=i,s.reason=o,s}return r(t,e),t.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof s.Session)console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof o.Publisher){console.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var e=this.target.openvidu.publishers,t=0;t=0;--t)r[t].id===this.stream.streamId&&r.splice(t,1)}}},t}(i.Event)},PyKc:function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("HyLw");t.PublisherSpeakingEvent=function(e){function t(t,n,r,i){var o=e.call(this,!1,t,n)||this;return o.type=n,o.connection=r,o.streamId=i,o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(i.Event)},RckH:function(e,t,n){"use strict";global.WebSocket||global;var r=console,i=3e3;e.exports=function(e){var t,n,o=!1,s=e.uri,a=e.useSockJS,u=!1,l=!1;function c(e,t){try{r.debug("WebSocket connected to "+t)}catch(e){r.error(e)}}(n=a?new SockJS(s):new WebSocket(s)).onopen=function(){c(0,s),e.onconnected&&e.onconnected()},n.onerror=function(t){r.error("Could not connect to "+s+" (invoking onerror if defined)",t),e.onerror&&e.onerror(t)};var d=function(){3===n.readyState?o?r.debug("Connection closed by user"):(r.debug("Connection closed unexpectecly. Reconnecting..."),p(2e3,1)):r.debug("Close callback from previous websocket. Ignoring it")};function p(t,n){if(r.debug("reconnectToSameUri (attempt #"+n+", max="+t+")"),1===n){if(u)return void r.warn("Trying to reconnectToNewUri when reconnecting... Ignoring this reconnection.");u=!0,e.onreconnecting&&e.onreconnecting()}l?h(t,n,s):e.newWsUriOnReconnection?e.newWsUriOnReconnection(function(e,o){e?(r.debug(e),setTimeout(function(){p(t,n+1)},i)):h(t,n,o)}):h(t,n,s)}function h(o,l,h){var f;r.debug("Reconnection attempt #"+l),n.close(),s=h||s,(f=a?new SockJS(s):new WebSocket(s)).onopen=function(){r.debug("Reconnected after "+l+" attempts..."),c(0,s),u=!1,t(),e.onreconnected()&&e.onreconnected(),f.onclose=d},f.onerror=function(t){r.warn("Reconnection error: ",t),l===o?e.ondisconnect&&e.ondisconnect():setTimeout(function(){p(o,l+1)},i)},n=f}n.onclose=d,this.close=function(){o=!0,n.close()},this.forceClose=function(e){if(r.debug("Testing: Force WebSocket close"),e){r.debug("Testing: Change wsUri for "+e+" millis to simulate net failure");var t=s;s="wss://21.234.12.34.4:443/",l=!0,setTimeout(function(){r.debug("Testing: Recover good wsUri "+t),s=t,l=!1},e)}n.close()},this.reconnectWs=function(){r.debug("reconnectWs"),p(2e3,1)},this.send=function(e){n.send(e)},this.addEventListener=function(e,r){(t=function(){n.addEventListener(e,r)})()}}},ReYS:function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("swkC"),o=n("c652"),s=function(){function e(e){var t=this;this.configuration=e,this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],this.candidategatheringdone=!1,this.configuration.iceServers=this.configuration.iceServers&&this.configuration.iceServers.length>0?this.configuration.iceServers:i(),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.id=e.id?e.id:o.v4(),this.pc.onicecandidate=function(e){if(e.candidate){var n=e.candidate;n?(t.localCandidatesQueue.push({candidate:n.candidate}),t.candidategatheringdone=!1,t.configuration.onicecandidate(e.candidate)):t.candidategatheringdone||(t.candidategatheringdone=!0)}},this.pc.onsignalingstatechange=function(){if("stable"===t.pc.signalingState)for(;t.iceCandidateList.length>0;)t.pc.addIceCandidate(t.iceCandidateList.shift())},this.start()}return e.prototype.start=function(){var e=this;return new Promise(function(t,n){if("closed"===e.pc.signalingState&&n('The peer connection object is in "closed" state. This is most likely due to an invocation of the dispose method before accepting in the dialogue'),e.configuration.mediaStream){for(var r=0,i=e.configuration.mediaStream.getTracks();r0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new r.StreamManagerEvent(this)]),this.ee.emitEvent("videoPlaying",[new i.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),this},e.prototype.once=function(e,t){return this.ee.once(e,function(n){n?console.info("Event '"+e+"' triggered once",n):console.info("Event '"+e+"' triggered once"),t(n)}),"videoElementCreated"===e&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new i.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"!==e&&"videoPlaying"!==e||this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&(this.ee.emitEvent("streamPlaying",[new r.StreamManagerEvent(this)]),this.ee.emitEvent("videoPlaying",[new i.VideoElementEvent(this.videos[0].video,this,"videoPlaying")])),this},e.prototype.off=function(e,t){return t?this.ee.off(e,t):this.ee.removeAllListeners(e),this},e.prototype.addVideoElement=function(e){this.initializeVideoProperties(e);for(var t=0,n=this.videos;t=0;--t)this.stream.session.streamManagers[t]===this&&this.stream.session.streamManagers.splice(t,1);this.videos.forEach(function(t){t.video.removeEventListener("canplay",e.canPlayListener),t.targetElement&&(t.video.parentNode.removeChild(t.video),e.ee.emitEvent("videoElementDestroyed",[new i.VideoElementEvent(t.video,e,"videoElementDestroyed")])),t.video.srcObject=null,e.videos.filter(function(e){return!e.targetElement})})},e.prototype.disassociateVideo=function(e){for(var t=!1,n=0;n=0&&e.candidate.indexOf(p.portNumber)>=0&&e.candidate.indexOf(p.priority)>=0});p.raw=h[0]?h[0].candidate:"ERROR: Cannot find local candidate in list of sent ICE candidates"}else p="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";var f=l[s];f?(h=e.stream.getRemoteIceCandidateList().filter(function(e){return!!e.candidate&&e.candidate.indexOf(f.ipAddress)>=0&&e.candidate.indexOf(f.portNumber)>=0&&e.candidate.indexOf(f.priority)>=0}),f.raw=h[0]?h[0].candidate:"ERROR: Cannot find remote candidate in list of received ICE candidates"):f="ERROR: No active remote ICE candidate. Probably ICE-TCP is being used",t({googCandidatePair:a,localCandidate:p,remoteCandidate:f})}else n("Selected ICE candidate info only available for Chrome")},function(e){n(e)})})},e.prototype.sendStatsToHttpEndpoint=function(e){var t=this,n=function(n){var r=new XMLHttpRequest,i=e.webrtc.httpEndpoint;r.open("POST",i,!0),r.setRequestHeader("Content-type","application/json"),r.onreadystatechange=function(){4===r.readyState&&200===r.status&&console.log("WebRtc stats successfully sent to "+i+" for stream "+t.stream.streamId+" of connection "+t.stream.connection.connectionId)},r.send(n)};this.getStatsAgnostic(this.stream.getRTCPeerConnection(),function(i){if(-1!==r.name.indexOf("Firefox"))i.forEach(function(r){var i={};if("inbound-rtp"===r.type&&null!==r.nackCount&&!1===r.isRemote&&r.id.startsWith("inbound")&&r.remoteId.startsWith("inbound")){var o="webrtc_inbound_"+r.mediaType+"_"+r.ssrc,s={bytesReceived:(r.bytesReceived-t.stats.inbound[r.mediaType].bytesReceived)/t.statsInterval,jitter:1e3*r.jitter,packetsReceived:(r.packetsReceived-t.stats.inbound[r.mediaType].packetsReceived)/t.statsInterval,packetsLost:(r.packetsLost-t.stats.inbound[r.mediaType].packetsLost)/t.statsInterval},a={bytesReceived:"bytes",jitter:"ms",packetsReceived:"packets",packetsLost:"packets"};"video"===r.mediaType&&(s.framesDecoded=(r.framesDecoded-t.stats.inbound.video.framesDecoded)/t.statsInterval,s.nackCount=(r.nackCount-t.stats.inbound.video.nackCount)/t.statsInterval,a.framesDecoded="frames",a.nackCount="packets",t.stats.inbound.video.framesDecoded=r.framesDecoded,t.stats.inbound.video.nackCount=r.nackCount),t.stats.inbound[r.mediaType].bytesReceived=r.bytesReceived,t.stats.inbound[r.mediaType].packetsReceived=r.packetsReceived,t.stats.inbound[r.mediaType].packetsLost=r.packetsLost,(i={"@timestamp":new Date(r.timestamp).toISOString(),exec:e.exec,component:e.component,stream:"webRtc",type:o,stream_type:"composed_metrics",units:a})[o]=s,n(JSON.stringify(i))}else"outbound-rtp"===r.type&&!1===r.isRemote&&r.id.toLowerCase().includes("outbound")&&(o="webrtc_outbound_"+r.mediaType+"_"+r.ssrc,s={bytesSent:(r.bytesSent-t.stats.outbound[r.mediaType].bytesSent)/t.statsInterval,packetsSent:(r.packetsSent-t.stats.outbound[r.mediaType].packetsSent)/t.statsInterval},a={bytesSent:"bytes",packetsSent:"packets"},"video"===r.mediaType&&(s.framesEncoded=(r.framesEncoded-t.stats.outbound.video.framesEncoded)/t.statsInterval,a.framesEncoded="frames",t.stats.outbound.video.framesEncoded=r.framesEncoded),t.stats.outbound[r.mediaType].bytesSent=r.bytesSent,t.stats.outbound[r.mediaType].packetsSent=r.packetsSent,(i={"@timestamp":new Date(r.timestamp).toISOString(),exec:e.exec,component:e.component,stream:"webRtc",type:o,stream_type:"composed_metrics",units:a})[o]=s,n(JSON.stringify(i)))});else if(-1!==r.name.indexOf("Chrome")||-1!==r.name.indexOf("Opera"))for(var o=0,s=Object.keys(i);o1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=i||n?("desktop"==i&&(a.mandatory.chromeMediaSourceId=n),e(null,a)):t?function(e){if(!e)throw'"callback" parameter is mandatory.';if(n)return e(n);r=e,window.postMessage("audio-plus-tab","*")}(function(t,n){a.mandatory.chromeMediaSourceId=t,n&&(a.canRequestAudioTrack=!0),e("PermissionDeniedError"==t?t:null,a)}):s(function(t){a.mandatory.chromeMediaSourceId=t,e("PermissionDeniedError"==t?t:null,a)})}window.opera||navigator.userAgent.indexOf(" OPR/"),window,window.addEventListener("message",function(e){e.origin==window.location.origin&&function(e){if("PermissionDeniedError"==e){if(r)return r("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==e&&(i="desktop"),e.sourceId&&r&&r(n=e.sourceId,!0===e.canRequestAudioTrack)}(e.data)}),t.getScreenConstraints=a,t.getScreenConstraintsWithAudio=function(e){a(e,!0)},t.isChromeExtensionAvailable=function(e){if(e){if("desktop"==i)return e(!0);window.postMessage("are-you-there","*"),setTimeout(function(){e("screen"!=i)},2e3)}},t.getChromeExtensionStatus=function(e,t){if(o)return t("not-chrome");2!=arguments.length&&(t=e,e="lfcgfepafnobdloecchnfaclibenjold");var n=document.createElement("img");n.src="chrome-extension://"+e+"/icon.png",n.onload=function(){i="screen",window.postMessage("are-you-there","*"),setTimeout(function(){t("screen"==i?"installed-disabled":"installed-enabled")},2e3)},n.onerror=function(){t("not-installed")}},t.getSourceId=s},iZBl:function(e,t,n){"use strict";var r=n("FaRF").__extends;t.__esModule=!0;var i=n("keth"),o=n("0fCr"),s=n("Vncp"),a=n("OQ7p"),u=n("8HiN"),l=n("ZOI4"),c=n("p571"),d=n("kPIN");t.Publisher=function(e){function t(t,n,r){var s=e.call(this,new o.Stream(r.session?r.session:new i.Session(r),{publisherProperties:n,mediaConstraints:{}}),t)||this;return s.accessAllowed=!1,s.isSubscribedToRemote=!1,s.accessDenied=!1,s.properties=n,s.openvidu=r,s.stream.ee.on("local-stream-destroyed",function(e){s.stream.isLocalStreamPublished=!1;var t=new a.StreamEvent(!0,s,"streamDestroyed",s.stream,e);s.emitEvent("streamDestroyed",[t]),t.callDefaultBehavior()}),s}return r(t,e),t.prototype.publishAudio=function(e){var t=this;this.stream.audioActive!==e&&(this.stream.getMediaStream().getAudioTracks().forEach(function(t){t.enabled=e}),this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"audioActive",newValue:e,reason:"publishAudio"},function(n,r){n?console.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t.session,t.stream,"audioActive",e,!e,"publishAudio")]),t.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t,t.stream,"audioActive",e,!e,"publishAudio")]))}),this.stream.audioActive=e,console.info("'Publisher' has "+(e?"published":"unpublished")+" its audio stream"))},t.prototype.publishVideo=function(e){var t=this;this.stream.videoActive!==e&&(this.stream.getMediaStream().getVideoTracks().forEach(function(t){t.enabled=e}),this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"videoActive",newValue:e,reason:"publishVideo"},function(n,r){n?console.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t.session,t.stream,"videoActive",e,!e,"publishVideo")]),t.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(t,t.stream,"videoActive",e,!e,"publishVideo")]))}),this.stream.videoActive=e,console.info("'Publisher' has "+(e?"published":"unpublished")+" its video stream"))},t.prototype.subscribeToRemote=function(e){this.isSubscribedToRemote=e=void 0===e||e,this.stream.subscribeToMyRemote(e)},t.prototype.on=function(t,n){var r=this;return e.prototype.on.call(this,t,n),"streamCreated"===t&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new a.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.on("stream-created-by-publisher",function(){r.emitEvent("streamCreated",[new a.StreamEvent(!1,r,"streamCreated",r.stream,"")])})),"remoteVideoPlaying"===t&&this.stream.displayMyRemote()&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new l.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===t&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===t&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},t.prototype.once=function(t,n){var r=this;return e.prototype.once.call(this,t,n),"streamCreated"===t&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new a.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",function(){r.emitEvent("streamCreated",[new a.StreamEvent(!1,r,"streamCreated",r.stream,"")])})),"remoteVideoPlaying"===t&&this.stream.displayMyRemote()&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.emitEvent("remoteVideoPlaying",[new l.VideoElementEvent(this.videos[0].video,this,"remoteVideoPlaying")]),"accessAllowed"===t&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===t&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},t.prototype.initialize=function(){var e=this;return new Promise(function(t,n){var r=function(t){e.accessDenied=!0,e.accessAllowed=!1,n(t)},i=function(n){if(e.accessAllowed=!0,e.accessDenied=!1,e.properties.audioSource instanceof MediaStreamTrack&&(n.removeTrack(n.getAudioTracks()[0]),n.addTrack(e.properties.audioSource)),e.properties.videoSource instanceof MediaStreamTrack&&(n.removeTrack(n.getVideoTracks()[0]),n.addTrack(e.properties.videoSource)),n.getAudioTracks()[0]){var r=void 0!==e.stream.audioActive&&null!==e.stream.audioActive?e.stream.audioActive:!!e.stream.outboundStreamOpts.publisherProperties.publishAudio;n.getAudioTracks()[0].enabled=r}if(n.getVideoTracks()[0]&&(r=void 0!==e.stream.videoActive&&null!==e.stream.videoActive?e.stream.videoActive:!!e.stream.outboundStreamOpts.publisherProperties.publishVideo,n.getVideoTracks()[0].enabled=r),e.videoReference=document.createElement("video"),e.videoReference.srcObject=n,e.stream.setMediaStream(n),e.stream.displayMyRemote()||e.stream.updateMediaStreamInVideos(),e.firstVideoElement&&e.createVideoElement(e.firstVideoElement.targetElement,e.properties.insertMode),delete e.firstVideoElement,e.stream.isSendVideo())if(e.stream.isSendScreen())e.videoReference.onloadedmetadata=function(){e.stream.videoDimensions={width:e.videoReference.videoWidth,height:e.videoReference.videoHeight},e.screenShareResizeInterval=setInterval(function(){var t=n.getVideoTracks()[0].getSettings(),r="Chrome"===d.name?e.videoReference.videoWidth:t.width,i="Chrome"===d.name?e.videoReference.videoHeight:t.height;if(e.stream.isLocalStreamPublished&&(r!==e.stream.videoDimensions.width||i!==e.stream.videoDimensions.height)){var o={width:e.stream.videoDimensions.width,height:e.stream.videoDimensions.height};e.stream.videoDimensions={width:r||0,height:i||0},e.session.openvidu.sendRequest("streamPropertyChanged",{streamId:e.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(e.stream.videoDimensions),reason:"screenResized"},function(t,n){t?console.error("Error sending 'streamPropertyChanged' event",t):(e.session.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(e.session,e.stream,"videoDimensions",e.stream.videoDimensions,o,"screenResized")]),e.emitEvent("streamPropertyChanged",[new u.StreamPropertyChangedEvent(e,e.stream,"videoDimensions",e.stream.videoDimensions,o,"screenResized")]))})}},500),e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[])};else{var i=n.getVideoTracks()[0].getSettings(),o=i.width,s=i.height;e.stream.videoDimensions=-1!==d.name.toLowerCase().indexOf("mobile")&&window.innerHeight>window.innerWidth?{width:s||0,height:o||0}:{width:o||0,height:s||0},e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[])}else e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[]);t()};if(e.properties.videoSource instanceof MediaStreamTrack&&!e.properties.audioSource||e.properties.audioSource instanceof MediaStreamTrack&&!e.properties.videoSource||e.properties.videoSource instanceof MediaStreamTrack&&e.properties.audioSource instanceof MediaStreamTrack){var o=new MediaStream;return e.properties.videoSource instanceof MediaStreamTrack&&o.addTrack(e.properties.videoSource),e.properties.audioSource instanceof MediaStreamTrack&&o.addTrack(e.properties.audioSource),void i(o)}e.openvidu.generateMediaConstraints(e.properties).then(function(t){e.stream.setOutboundStreamOptions({mediaConstraints:t,publisherProperties:e.properties});var o={};if(e.stream.isSendVideo()||e.stream.isSendAudio()){var s=void 0===t.audio||t.audio;o.audio=!e.stream.isSendScreen()&&s,o.video=t.video;var a=Date.now();e.setPermissionDialogTimer(1250),navigator.mediaDevices.getUserMedia(o).then(function(n){e.clearPermissionDialogTimer(a,1250),e.stream.isSendScreen()&&e.stream.isSendAudio()?(o.audio=s,o.video=!1,a=Date.now(),e.setPermissionDialogTimer(1250),navigator.mediaDevices.getUserMedia(o).then(function(t){e.clearPermissionDialogTimer(a,1250),n.addTrack(t.getAudioTracks()[0]),i(n)}).catch(function(n){var i,o;switch(e.clearPermissionDialogTimer(a,1250),n.name.toLowerCase()){case"notfounderror":i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o=n.toString(),r(new c.OpenViduError(i,o));break;case"notallowederror":i=c.OpenViduErrorName.DEVICE_ACCESS_DENIED,o=n.toString(),r(new c.OpenViduError(i,o));break;case"overconstrainederror":"deviceid"===n.constraint.toLowerCase()?(i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o="Audio input device with deviceId '"+t.video.deviceId.exact+"' not found"):(i=c.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Audio input device doesn't support the value passed for constraint '"+n.constraint+"'"),r(new c.OpenViduError(i,o))}})):i(n)}).catch(function(n){var i,o;switch(e.clearPermissionDialogTimer(a,1250),n.name.toLowerCase()){case"notfounderror":navigator.mediaDevices.getUserMedia({audio:!1,video:t.video}).then(function(e){e.getVideoTracks().forEach(function(e){e.stop()}),i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o=n.toString(),r(new c.OpenViduError(i,o))}).catch(function(e){i=c.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o=n.toString(),r(new c.OpenViduError(i,o))});break;case"notallowederror":i=e.stream.isSendScreen()?c.OpenViduErrorName.SCREEN_CAPTURE_DENIED:c.OpenViduErrorName.DEVICE_ACCESS_DENIED,o=n.toString(),r(new c.OpenViduError(i,o));break;case"overconstrainederror":navigator.mediaDevices.getUserMedia({audio:!1,video:t.video}).then(function(e){e.getVideoTracks().forEach(function(e){e.stop()}),"deviceid"===n.constraint.toLowerCase()?(i=c.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o="Audio input device with deviceId '"+t.audio.deviceId.exact+"' not found"):(i=c.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Audio input device doesn't support the value passed for constraint '"+n.constraint+"'"),r(new c.OpenViduError(i,o))}).catch(function(e){"deviceid"===n.constraint.toLowerCase()?(i=c.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o="Video input device with deviceId '"+t.video.deviceId.exact+"' not found"):(i=c.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Video input device doesn't support the value passed for constraint '"+n.constraint+"'"),r(new c.OpenViduError(i,o))})}})}else n(new c.OpenViduError(c.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time when calling 'OpenVidu.initPublisher'"))}).catch(function(e){r(e)})})},t.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},t.prototype.setPermissionDialogTimer=function(e){var t=this;this.permissionDialogTimeout=setTimeout(function(){t.emitEvent("accessDialogOpened",[])},e)},t.prototype.clearPermissionDialogTimer=function(e,t){clearTimeout(this.permissionDialogTimeout),Date.now()-e>t&&this.emitEvent("accessDialogClosed",[])},t}(s.StreamManager)},kPIN:function(e,t,n){(function(e){var r;(function(){"use strict";var i={function:!0,object:!0},o=i[typeof window]&&window||this,s=i[typeof t]&&t&&i[typeof e]&&e&&!e.nodeType&&e&&"object"==typeof global&&global;!s||s.global!==s&&s.window!==s&&s.self!==s||(o=s);var a=Math.pow(2,53)-1,u=/\bOpera/,l=Object.prototype,c=l.hasOwnProperty,d=l.toString;function p(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function h(e){return e=v(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:p(e)}function f(e,t){for(var n in e)c.call(e,n)&&t(e[n],n,e)}function m(e){return null==e?p(e):d.call(e).slice(8,-1)}function g(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function y(e,t){var n=null;return function(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=a)for(;++n3?"WebKit":/\bOpera\b/.test(V)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(j)&&"WebKit"||!j&&/\bMSIE\b/i.test(t)&&("Mac OS"==B?"Tasman":"Trident")||"WebKit"==j&&/\bPlayStation\b(?! Vita\b)/i.test(V)&&"NetFront")&&(j=[a]),"IE"==V&&(a=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(V+=" Mobile",B="Windows Phone "+(/\+$/.test(a)?a:a+".x"),M.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(V="IE Mobile",B="Windows Phone 8.x",M.unshift("desktop mode"),L||(L=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=V&&"Trident"==j&&(a=/\brv:([\d.]+)/.exec(t))&&(V&&M.push("identifying as "+V+(L?" "+L:"")),V="IE",L=a[1]),D){if(p="global",/^(?:boolean|number|string|undefined)$/.test(b=null!=(c=n)?typeof c[p]:"number")||"object"==b&&!c[p])m(a=n.runtime)==w?(V="Adobe AIR",B=a.flash.system.Capabilities.os):m(a=n.phantom)==C?(V="PhantomJS",L=(a=a.version||null)&&a.major+"."+a.minor+"."+a.patch):"number"==typeof k.documentMode&&(a=/\bTrident\/(\d+)/i.exec(t))?((a=+a[1]+4)!=(L=[L,k.documentMode])[1]&&(M.push("IE "+L[1]+" mode"),j&&(j[1]=""),L[1]=a),L="IE"==V?String(L[1].toFixed(1)):L[0]):"number"==typeof k.documentMode&&/^(?:Chrome|Firefox)\b/.test(V)&&(M.push("masking as "+V+" "+L),V="IE",L="11.0",j=["Trident"],B="Windows");else if(x&&(R=(a=x.lang.System).getProperty("os.arch"),B=B||a.getProperty("os.name")+" "+a.getProperty("os.version")),T){try{L=n.require("ringo/engine").version.join("."),V="RingoJS"}catch(e){(a=n.system)&&a.global.system==n.system&&(V="Narwhal",B||(B=a[0].os||null))}V||(V="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(a=n.process)&&("object"==typeof a.versions&&("string"==typeof a.versions.electron?(M.push("Node "+a.versions.node),V="Electron",L=a.versions.electron):"string"==typeof a.versions.nw&&(M.push("Chromium "+L,"Node "+a.versions.node),V="NW.js",L=a.versions.nw)),V||(V="Node.js",R=a.arch,B=a.platform,L=(L=/[\d.]+/.exec(a.version))?L[0]:null));B=B&&h(B)}if(L&&(a=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(L)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(D&&i.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(N=/b/i.test(a)?"beta":"alpha",L=L.replace(RegExp(a+"\\+?$"),"")+("beta"==N?I:O)+(/\d+\+?/.exec(a)||"")),"Fennec"==V||"Firefox"==V&&/\b(?:Android|Firefox OS)\b/.test(B))V="Firefox Mobile";else if("Maxthon"==V&&L)L=L.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(F))"Xbox 360"==F&&(B=null),"Xbox 360"==F&&/\bIEMobile\b/.test(t)&&M.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(V)&&(!V||F||/Browser|Mobi/.test(V))||"Windows CE"!=B&&!/Mobi/i.test(t))if("IE"==V&&D)try{null===n.external&&M.unshift("platform preview")}catch(e){M.unshift("embedded")}else(/\bBlackBerry\b/.test(F)||/\bBB10\b/.test(t))&&(a=(RegExp(F.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||L)?(B=((a=[a,/BB10/.test(t)])[1]?(F=null,z="BlackBerry"):"Device Software")+" "+a[0],L=null):this!=f&&"Wii"!=F&&(D&&A||/Opera/.test(V)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==V&&/\bOS X (?:\d+\.){2,}/.test(B)||"IE"==V&&(B&&!/^Win/.test(B)&&L>5.5||/\bWindows XP\b/.test(B)&&L>8||8==L&&!/\bTrident\b/.test(t)))&&!u.test(a=e.call(f,t.replace(u,"")+";"))&&a.name&&(a="ing as "+a.name+((a=a.version)?" "+a:""),u.test(V)?(/\bIE\b/.test(a)&&"Mac OS"==B&&(B=null),a="identify"+a):(a="mask"+a,V=P?h(P.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(a)&&(B=null),D||(L=null)),j=["Presto"],M.push(a));else V+=" Mobile";(a=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(a=[parseFloat(a.replace(/\.(\d)$/,".0$1")),a],"Safari"==V&&"+"==a[1].slice(-1)?(V="WebKit Nightly",N="alpha",L=a[1].slice(0,-1)):L!=a[1]&&L!=(a[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(L=null),a[1]=(/\bChrome\/([\d.]+)/i.exec(t)||0)[1],537.36==a[0]&&537.36==a[2]&&parseFloat(a[1])>=28&&"WebKit"==j&&(j=["Blink"]),D&&(_||a[1])?(j&&(j[1]="like Chrome"),a=a[1]||((a=a[0])<530?1:a<532?2:a<532.05?3:a<533?4:a<534.03?5:a<534.07?6:a<534.1?7:a<534.13?8:a<534.16?9:a<534.24?10:a<534.3?11:a<535.01?12:a<535.02?"13+":a<535.07?15:a<535.11?16:a<535.19?17:a<536.05?18:a<536.1?19:a<537.01?20:a<537.11?"21+":a<537.13?23:a<537.18?24:a<537.24?25:a<537.36?26:"Blink"!=j?"27":"28")):(j&&(j[1]="like Safari"),a=(a=a[0])<400?1:a<500?2:a<526?3:a<533?4:a<534?"4+":a<535?5:a<537?6:a<538?7:a<601?8:"8"),j&&(j[1]+=" "+(a+="number"==typeof a?".x":/[.+]/.test(a)?"":"+")),"Safari"==V&&(!L||parseInt(L)>45)&&(L=a)),"Opera"==V&&(a=/\bzbov|zvav$/.exec(B))?(V+=" ",M.unshift("desktop mode"),"zvav"==a?(V+="Mini",L=null):V+="Mobile",B=B.replace(RegExp(" *"+a+"$"),"")):"Safari"==V&&/\bChrome\b/.exec(j&&j[1])&&(M.unshift("desktop mode"),V="Chrome Mobile",L=null,/\bOS X\b/.test(B)?(z="Apple",B="iOS 4.3+"):B=null),L&&0==L.indexOf(a=/[\d.]+$/.exec(B))&&t.indexOf("/"+a+"-")>-1&&(B=v(B.replace(a,""))),j&&!/\b(?:Avant|Nook)\b/.test(V)&&(/Browser|Lunascape|Maxthon/.test(V)||"Safari"!=V&&/^iOS/.test(B)&&/\bSafari\b/.test(j[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(V)&&j[1])&&(a=j[j.length-1])&&M.push(a),M.length&&(M=["("+M.join("; ")+")"]),z&&F&&F.indexOf(z)<0&&M.push("on "+z),F&&M.push((/^on /.test(M[M.length-1])?"":"on ")+F),B&&(a=/ ([\d.+]+)$/.exec(B),l=a&&"/"==B.charAt(B.length-a[0].length-1),B={architecture:32,family:a&&!l?B.replace(a[0],""):B,version:a?a[1]:null,toString:function(){var e=this.version;return this.family+(e&&!l?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(a=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(R))&&!/\bi686\b/i.test(R)?(B&&(B.architecture=64,B.family=B.family.replace(RegExp(" *"+a),"")),V&&(/\bWOW64\b/i.test(t)||D&&/\w(?:86|32)$/.test(i.cpuClass||i.platform)&&!/\bWin64; x64\b/i.test(t))&&M.unshift("32-bit")):B&&/^OS X/.test(B.family)&&"Chrome"==V&&parseFloat(L)>=39&&(B.architecture=64),t||(t=null);var H={};return H.description=t,H.layout=j&&j[0],H.manufacturer=z,H.name=V,H.prerelease=N,H.product=F,H.ua=t,H.version=V&&L,H.os=B||{architecture:null,family:null,version:null,toString:function(){return"null"}},H.parse=e,H.toString=function(){return this.description||""},H.version&&M.unshift(L),H.name&&M.unshift(V),B&&V&&(B!=String(B).split(" ")[0]||B!=V.split(" ")[0]&&!F)&&M.push(F?"("+B+")":"on "+B),M.length&&(H.description=M.join(" ")),H}();o.platform=b,void 0===(r=(function(){return b}).call(t,n,t,e))||(e.exports=r)}).call(this)}).call(this,n("YuTi")(e))},kaSr:function(e,t,n){var r;!function(t){"use strict";function i(){}var o=i.prototype,s=t.EventEmitter;function a(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function u(e){return function(){return this[e].apply(this,arguments)}}o.getListeners=function(e){var t,n,r=this._getEvents();if(e instanceof RegExp)for(n in t={},r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n]);else t=r[e]||(r[e]=[]);return t},o.flattenListeners=function(e){var t,n=[];for(t=0;t0){var o=[];e.to.forEach(function(e){o.push(e.connectionId)}),i.to=o}else i.to=[];i.data=e.data?e.data:"",i.type=e.type?e.type:"",t.openvidu.sendRequest("sendMessage",{message:JSON.stringify(i)},function(e,t){e?r(e):n()})})},e.prototype.on=function(e,t){if(this.ee.on(e,function(n){n?console.info("Event '"+e+"' triggered by 'Session'",n):console.info("Event '"+e+"' triggered by 'Session'"),t(n)}),"publisherStartSpeaking"===e||"publisherStopSpeaking"===e)for(var n in this.speakingEventsEnabled=!0,this.remoteConnections){var r=this.remoteConnections[n].stream;r&&!r.speechEvent&&r.hasAudio&&r.enableSpeakingEvents()}return this},e.prototype.once=function(e,t){if(this.ee.once(e,function(n){n?console.info("Event '"+e+"' triggered by 'Session'",n):console.info("Event '"+e+"' triggered by 'Session'"),t(n)}),"publisherStartSpeaking"===e||"publisherStopSpeaking"===e)for(var n in this.speakingEventsEnabled=!0,this.remoteConnections){var r=this.remoteConnections[n].stream;r&&!r.speechEvent&&r.hasAudio&&r.enableOnceSpeakingEvents()}return this},e.prototype.off=function(e,t){if(t?this.ee.off(e,t):this.ee.removeAllListeners(e),"publisherStartSpeaking"===e||"publisherStopSpeaking"===e)for(var n in this.speakingEventsEnabled=!1,this.remoteConnections){var r=this.remoteConnections[n].stream;r&&r.speechEvent&&r.disableSpeakingEvents()}return this},e.prototype.onParticipantJoined=function(e){var t=this;this.getConnection(e.id,"").then(function(t){console.warn("Connection "+e.id+" already exists in connections list")}).catch(function(n){var i=new r.Connection(t,e);t.remoteConnections[e.id]=i,t.ee.emitEvent("connectionCreated",[new s.ConnectionEvent(!1,t,"connectionCreated",i,"")])})},e.prototype.onParticipantLeft=function(e){var t=this;this.getRemoteConnection(e.connectionId,"Remote connection "+e.connectionId+" unknown when 'onParticipantLeft'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(n){if(n.stream){var r=n.stream,i=new d.StreamEvent(!0,t,"streamDestroyed",r,e.reason);t.ee.emitEvent("streamDestroyed",[i]),i.callDefaultBehavior(),delete t.remoteStreamsCreated[r.streamId]}delete t.remoteConnections[n.connectionId],t.ee.emitEvent("connectionDestroyed",[new s.ConnectionEvent(!1,t,"connectionDestroyed",n,e.reason)])}).catch(function(e){console.error(e)})},e.prototype.onParticipantPublished=function(e){var t,n=this,i=function(e){n.remoteConnections[e.connectionId]=e,n.remoteStreamsCreated[e.stream.streamId]||n.ee.emitEvent("streamCreated",[new d.StreamEvent(!1,n,"streamCreated",e.stream,"")]),n.remoteStreamsCreated[e.stream.streamId]=!0};this.getRemoteConnection(e.id,"Remote connection '"+e.id+"' unknown when 'onParticipantPublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(n){t=n,e.metadata=n.data,t.options=e,t.initRemoteStreams(e.streams),i(t)}).catch(function(o){t=new r.Connection(n,e),i(t)})},e.prototype.onParticipantUnpublished=function(e){var t=this;e.connectionId===this.connection.connectionId?this.stopPublisherStream(e.reason):this.getRemoteConnection(e.connectionId,"Remote connection '"+e.connectionId+"' unknown when 'onParticipantUnpublished'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(n){var r=new d.StreamEvent(!0,t,"streamDestroyed",n.stream,e.reason);t.ee.emitEvent("streamDestroyed",[r]),r.callDefaultBehavior();var i=n.stream.streamId;delete t.remoteStreamsCreated[i],n.removeStream(i)}).catch(function(e){console.error(e)})},e.prototype.onParticipantEvicted=function(e){e.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,e.reason)},e.prototype.onNewMessage=function(e){var t=this;console.info("New signal: "+JSON.stringify(e)),this.getConnection(e.from,"Connection '"+e.from+"' unknow when 'onNewMessage'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))+". Existing local connection: "+this.connection.connectionId).then(function(n){t.ee.emitEvent("signal",[new c.SignalEvent(t,e.type,e.data,n)]),t.ee.emitEvent("signal:"+e.type,[new c.SignalEvent(t,e.type,e.data,n)])}).catch(function(e){console.error(e)})},e.prototype.onStreamPropertyChanged=function(e){var t=this,n=function(n){if(n.stream&&n.stream.streamId===e.streamId){var r=n.stream,o=void 0;switch(e.property){case"audioActive":o=r.audioActive,e.newValue="true"===e.newValue,r.audioActive=e.newValue;break;case"videoActive":o=r.videoActive,e.newValue="true"===e.newValue,r.videoActive=e.newValue;break;case"videoDimensions":o=r.videoDimensions,e.newValue=JSON.parse(JSON.parse(e.newValue)),r.videoDimensions=e.newValue;break;case"filter":o=r.filter,e.newValue=Object.keys(e.newValue).length>0?e.newValue:void 0,void 0!==e.newValue?(r.filter=new i.Filter(e.newValue.type,e.newValue.options),r.filter.stream=r,e.newValue.lastExecMethod&&(r.filter.lastExecMethod=e.newValue.lastExecMethod)):delete r.filter,e.newValue=r.filter}t.ee.emitEvent("streamPropertyChanged",[new p.StreamPropertyChangedEvent(t,r,e.property,e.newValue,o,e.reason)]),r.streamManager.emitEvent("streamPropertyChanged",[new p.StreamPropertyChangedEvent(r.streamManager,r,e.property,e.newValue,o,e.reason)])}else console.error("No stream with streamId '"+e.streamId+"' found for connection '"+e.connectionId+"' on 'streamPropertyChanged' event")};e.connectionId===this.connection.connectionId?n(this.connection):this.getRemoteConnection(e.connectionId,"Remote connection "+e.connectionId+" unknown when 'onStreamPropertyChanged'. Existing remote connections: "+JSON.stringify(Object.keys(this.remoteConnections))).then(function(e){n(e)}).catch(function(e){console.error(e)})},e.prototype.recvIceCandidate=function(e){var t={candidate:e.candidate,component:e.component,foundation:e.foundation,ip:e.ip,port:e.port,priority:e.priority,protocol:e.protocol,relatedAddress:e.relatedAddress,relatedPort:e.relatedPort,sdpMid:e.sdpMid,sdpMLineIndex:e.sdpMLineIndex,tcpType:e.tcpType,usernameFragment:e.usernameFragment,type:e.type,toJSON:function(){return{candidate:e.candidate}}};this.getConnection(e.endpointName,"Connection not found for endpoint "+e.endpointName+". Ice candidate will be ignored: "+t).then(function(n){var r=n.stream;r.getWebRtcPeer().addIceCandidate(t).catch(function(t){console.error("Error adding candidate for "+r.streamId+" stream of endpoint "+e.endpointName+": "+t)})}).catch(function(e){console.error(e)})},e.prototype.onSessionClosed=function(e){console.info("Session closed: "+JSON.stringify(e));var t=e.sessionId;void 0!==t?this.ee.emitEvent("session-closed",[{session:t}]):console.warn("Session undefined on session closed",e)},e.prototype.onLostConnection=function(){console.warn("Lost connection in Session "+this.sessionId),this.sessionId&&!this.connection.disposed&&this.leave(!0,"networkDisconnect")},e.prototype.onRecoveredConnection=function(){console.warn("Recovered connection in Session "+this.sessionId),this.ee.emitEvent("connectionRecovered",[])},e.prototype.onMediaError=function(e){console.error("Media error: "+JSON.stringify(e));var t=e.error;t?this.ee.emitEvent("error-media",[{error:t}]):console.warn("Received undefined media error. Params:",e)},e.prototype.onRecordingStarted=function(e){this.ee.emitEvent("recordingStarted",[new u.RecordingEvent(this,"recordingStarted",e.id,e.name)])},e.prototype.onRecordingStopped=function(e){this.ee.emitEvent("recordingStopped",[new u.RecordingEvent(this,"recordingStopped",e.id,e.name)])},e.prototype.onFilterEventDispatched=function(e){var t=e.connectionId;this.getConnection(t,"No connection found for connectionId "+t).then(function(t){console.info("Filter event dispatched");var n=t.stream;n.filter.handlers[e.eventType](new a.FilterEvent(n.filter,e.eventType,e.data))})},e.prototype.emitEvent=function(e,t){this.ee.emitEvent(e,t)},e.prototype.leave=function(e,t){var n=this;if(e=!!e,console.info("Leaving Session (forced="+e+")"),this.connection){if(this.connection.disposed||e?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(e,t){e&&console.error(e),n.openvidu.closeWs()}),this.stopPublisherStream(t),!this.connection.disposed){var r=new l.SessionDisconnectedEvent(this,t);this.ee.emitEvent("sessionDisconnected",[r]),r.callDefaultBehavior()}}else console.warn("You were not connected to the session "+this.sessionId)},e.prototype.connectAux=function(e){var t=this;return new Promise(function(n,i){t.openvidu.startWs(function(o){if(o)i(o);else{var a={token:e||"",session:t.sessionId,platform:m.description,metadata:t.options.metadata?t.options.metadata:"",secret:t.openvidu.getSecret(),recorder:t.openvidu.getRecorder()};t.openvidu.sendRequest("joinRoom",a,function(e,o){if(e)i(e);else{t.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==t.openvidu.role,forceUnpublish:"MODERATOR"===t.openvidu.role,forceDisconnect:"MODERATOR"===t.openvidu.role},t.connection=new r.Connection(t),t.connection.connectionId=o.id,t.connection.data=o.metadata;var a={connections:new Array,streams:new Array};o.value.forEach(function(e){var n=new r.Connection(t,e);t.remoteConnections[n.connectionId]=n,a.connections.push(n),n.stream&&(t.remoteStreamsCreated[n.stream.streamId]=!0,a.streams.push(n.stream))}),t.ee.emitEvent("connectionCreated",[new s.ConnectionEvent(!1,t,"connectionCreated",t.connection,"")]),a.connections.forEach(function(e){t.ee.emitEvent("connectionCreated",[new s.ConnectionEvent(!1,t,"connectionCreated",e,"")])}),a.streams.forEach(function(e){t.ee.emitEvent("streamCreated",[new d.StreamEvent(!1,t,"streamCreated",e,"")])}),n()}})}})})},e.prototype.stopPublisherStream=function(e){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[e]))},e.prototype.stringClientMetadata=function(e){return"string"!=typeof e?JSON.stringify(e):e},e.prototype.getConnection=function(e,t){var n=this;return new Promise(function(r,i){var o=n.remoteConnections[e];o?r(o):n.connection.connectionId===e?r(n.connection):i(new h.OpenViduError(h.OpenViduErrorName.GENERIC_ERROR,t))})},e.prototype.getRemoteConnection=function(e,t){var n=this;return new Promise(function(r,i){var o=n.remoteConnections[e];o?r(o):i(new h.OpenViduError(h.OpenViduErrorName.GENERIC_ERROR,t))})},e.prototype.processToken=function(e){var t=new URL(e);this.sessionId=t.searchParams.get("sessionId");var n=t.searchParams.get("secret"),r=t.searchParams.get("recorder"),i=t.searchParams.get("turnUsername"),o=t.searchParams.get("turnCredential"),s=t.searchParams.get("role");if(n&&(this.openvidu.secret=n),r&&(this.openvidu.recorder=!0),i&&o){var a="turn:"+t.hostname+":3478";this.openvidu.iceServers=[{urls:["stun:"+t.hostname+":3478"]},{urls:[a,a+"?transport=tcp"],username:i,credential:o}],console.log("TURN temp credentials ["+i+":"+o+"]")}s&&(this.openvidu.role=s),this.openvidu.wsUri="wss://"+t.host+"/openvidu"},e}()},p571:function(e,t,n){"use strict";t.__esModule=!0,function(e){e.BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",e.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",e.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",e.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",e.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",e.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",e.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",e.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",e.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",e.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",e.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",e.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",e.GENERIC_ERROR="GENERIC_ERROR"}(t.OpenViduErrorName||(t.OpenViduErrorName={})),t.OpenViduError=function(e,t){this.name=e,this.message=t}},pRLG:function(e,t){e.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},swkC:function(e,t,n){"use strict";var r=n("0ixB");e.exports=function(e){var t,i={stun:(e||{}).stun||n("3QOI"),turn:(e||{}).turn||n("dBhu")},o=(e||{}).turnCount||0;function s(e,t){for(var n,o=[],s=[].concat(i[e]);s.length&&o.lengthn&&t[r]<0&&(n=t[r]);return n}(u,a);n.emit("volume_change",e,d);var t=0;if(e>d&&!n.speaking){for(var r=n.speakingHistory.length-3;r=2&&(n.speaking=!0,n.emit("speaking"))}else if(ed)),g()}},c)};return g(),n}},yLV6:function(e,t,n){var r;!function(i,o,s,a){"use strict";var u,l=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),d="function",p=Math.round,h=Math.abs,f=Date.now;function m(e,t,n){return setTimeout(E(e,n),t)}function g(e,t,n){return!!Array.isArray(e)&&(y(e,n[t],n),!0)}function y(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==a)for(r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),e.apply(this,arguments)}}u="function"!=typeof Object.assign?function(e){if(e===a||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n-1}function k(e){return e.trim().split(/\s+/g)}function A(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;rn[t]}):r.sort()),r}function M(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=te(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,u=s?s.center:o.center,l=t.center=ne(r);t.timeStamp=f(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=se(u,l),t.distance=oe(u,l),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};t.eventType!==z&&o.eventType!==B||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=ie(t.deltaX,t.deltaY);var c,d,p=re(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=h(p.x)>h(p.y)?p.x:p.y,t.scale=s?(c=s.pointers,oe((d=r)[0],d[1],J)/oe(c[0],c[1],J)):1,t.rotation=s?function(e,t){return se(r[1],r[0],J)+se(e[1],e[0],J)}(s.pointers):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,s=e.lastInterval||t,u=t.timeStamp-s.timeStamp;if(t.eventType!=U&&(u>F||s.velocity===a)){var l=t.deltaX-s.deltaX,c=t.deltaY-s.deltaY,d=re(u,l,c);r=d.x,i=d.y,n=h(d.x)>h(d.y)?d.x:d.y,o=ie(l,c),e.lastInterval=t}else n=s.velocity,r=s.velocityX,i=s.velocityY,o=s.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var m=e.element;O(t.srcEvent.target,m)&&(m=t.srcEvent.target),t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function te(e){for(var t=[],n=0;n=h(t)?e<0?G:W:t<0?q:Z}function oe(e,t,n){n||(n=X);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function se(e,t,n){return n||(n=X),180*Math.atan2(t[n[1]]-e[n[1]],t[n[0]]-e[n[0]])/Math.PI}$.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(D(this.element),this.evWin,this.domHandler)}};var ae={mousedown:z,mousemove:2,mouseup:B},ue="mousedown",le="mousemove mouseup";function ce(){this.evEl=ue,this.evWin=le,this.pressed=!1,$.apply(this,arguments)}w(ce,$,{handler:function(e){var t=ae[e.type];t&z&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=B),this.pressed&&(t&B&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var de={pointerdown:z,pointermove:2,pointerup:B,pointercancel:U,pointerout:U},pe={2:"touch",3:"pen",4:"mouse",5:"kinect"},he="pointerdown",fe="pointermove pointerup pointercancel";function me(){this.evEl=he,this.evWin=fe,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(he="MSPointerDown",fe="MSPointerMove MSPointerUp MSPointerCancel"),w(me,$,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=de[r],o=pe[e.pointerType]||e.pointerType,s="touch"==o,a=A(t,e.pointerId,"pointerId");i&z&&(0===e.button||s)?a<0&&(t.push(e),a=t.length-1):i&(B|U)&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(a,1))}});var ge={touchstart:z,touchmove:2,touchend:B,touchcancel:U},ye="touchstart",ve="touchstart touchmove touchend touchcancel";function be(){this.evTarget=ye,this.evWin=ve,this.started=!1,$.apply(this,arguments)}w(be,$,{handler:function(e){var t=ge[e.type];if(t===z&&(this.started=!0),this.started){var n=(function(e,t){var n=P(e.touches),r=P(e.changedTouches);return t&(B|U)&&(n=R(n.concat(r),"identifier",!0)),[n,r]}).call(this,e,t);t&(B|U)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var _e={touchstart:z,touchmove:2,touchend:B,touchcancel:U},we="touchstart touchmove touchend touchcancel";function Ee(){this.evTarget=we,this.targetIds={},$.apply(this,arguments)}w(Ee,$,{handler:function(e){var t=_e[e.type],n=(function(e,t){var n=P(e.touches),r=this.targetIds;if(t&(2|z)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,s=P(e.changedTouches),a=[],u=this.target;if(o=n.filter(function(e){return O(e.target,u)}),t===z)for(i=0;i-1&&r.splice(e,1)},Se)}}w(Ce,$,{handler:function(e,t,n){var r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)(function(e,t){e&z?(this.primaryTouch=t.changedPointers[0].identifier,xe.call(this,t)):e&(B|U)&&xe.call(this,t)}).call(this,t,n);else if(r&&(function(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r-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){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n=Me&&r(t.options.event+je(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;et.threshold&&i&t.direction},attrTest:function(e){return ze.prototype.attrTest.call(this,e)&&(this.state&Pe||!(this.state&Pe)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ve(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Ue,ze,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Pe)},emit:function(e){1!==e.scale&&(e.additionalEvent=this.options.event+(e.scale<1?"in":"out")),this._super.emit.call(this,e)}}),w(He,Le,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distancet.time;if(this._input=e,!r||!n||e.eventType&(B|U)&&!i)this.reset();else if(e.eventType&z)this.reset(),this._timer=m(function(){this.state=Ne,this.tryEmit()},t.time,this);else if(e.eventType&B)return Ne;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===Ne&&(e&&e.eventType&B?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),w(Ge,ze,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Pe)}}),w(We,ze,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Q|Y,pointers:1},getTouchAction:function(){return Be.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Q|Y)?t=e.overallVelocity:n&Q?t=e.overallVelocityX:n&Y&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&h(t)>this.options.velocity&&e.eventType&B},emit:function(e){var t=Ve(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(qe,Le,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function u(){for(var e=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(H);function J(e){return e}function ee(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Y(J,e)}function te(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof A?e[0]:ee(n)(Z(e,r))}var ne=function(e){function t(){var n=e.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,t.prototype),n}return i(t,e),t}(Error),re=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return i(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(w),ie=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return i(t,e),t}(C),oe=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype[S]=function(){return new ie(this)},t.prototype.lift=function(e){var t=new se(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new ne;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(C),ce=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new w).add(this.source.subscribe(new pe(this.getSubject(),this))),e.closed?(this._connection=null,e=w.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return ae()(this)},t}(A).prototype,de={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ce._subscribe},_isComplete:{value:ce._isComplete,writable:!0},getSubject:{value:ce.getSubject},connect:{value:ce.connect},refCount:{value:ce.refCount}},pe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return i(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(ie);function he(){return new oe}function fe(){return function(e){return ae()((t=he,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,de);return r.source=e,r.subjectFactory=n,r})(e));var t}}function me(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var ge=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==t?me({providedIn:t.providedIn||"root",factory:t.factory}):void 0}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),ye="__parameters__";function ve(e,t,n){var r=function(e){return function(){for(var t=[],n=0;n ");else if("object"==typeof t){var i=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];i.push(o+":"+("string"==typeof s?JSON.stringify(s):ke(s)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(Qe,"\n ")}function $e(e,t){return new Error(Je(e,t))}var et=void 0;function tt(e){var t=et;return et=e,t}function nt(e,t){if(void 0===t&&(t=0),void 0===et)throw new Error("inject() must be called from an injection context");if(null===et){var n=e.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;throw new Error("Injector: NOT_FOUND ["+ke(e)+"]")}return et.get(e,8&t?null:void 0,t)}String;var rt=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),it=new function(e){this.full="6.0.9",this.major="6.0.9".split(".")[0],this.minor="6.0.9".split(".")[1],this.patch="6.0.9".split(".").slice(2).join(".")}("6.0.9"),ot="ngDebugContext",st="ngOriginalError",at="ngErrorLogger";function ut(e){return e[ot]}function lt(e){return e[st]}function ct(e){for(var t=[],n=1;n0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),Jt=function(){function e(){this._applications=new Map,$t.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),$t.findTestabilityInTree(this,e,t)},e.ctorParameters=function(){return[]},e}(),$t=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),en=!0,tn=!1,nn=new ge("AllowMultipleToken");function rn(){return tn=!0,en}var on=function(e,t){this.name=e,this.token=t};function sn(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,i=new ge(r);return function(t){void 0===t&&(t=[]);var o=an();if(!o||o.injector.get(nn,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var s=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(Yt&&!Yt.destroyed&&!Yt.injector.get(nn,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Yt=e.get(un);var t=e.get(_t,null);t&&t.forEach(function(e){return e()})}(ze.create({providers:s,name:r}))}return function(e){var t=an();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function an(){return Yt&&!Yt.destroyed?Yt:null}var un=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,i="noop"===(n=t?t.ngZone:void 0)?new Kt:("zone.js"===n?void 0:n)||new Ht({enableLongStackTrace:rn()}),o=[{provide:Ht,useValue:i}];return i.run(function(){var t=ze.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),s=n.injector.get(dt,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return dn(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(e){s.handleError(e)}})}),function(e,t,i){try{var o=((s=n.injector.get(gt)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return ht(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}var s}(s,i)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=this.injector.get(Tt),i=ln({},t);return r.createCompiler([i]).compileModuleAsync(e).then(function(e){return n.bootstrapModuleFactory(e,i)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(cn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+ke(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function ln(e,t){return Array.isArray(t)?t.reduce(ln,e):o({},e,t)}var cn=function(){function e(e,t,n,r,i,o){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=rn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new A(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),u=new A(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Ht.assertNotInAngularZone(),Oe(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Ht.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=te(a,u.pipe(fe()))}return e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Ot?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof Dt?null:this._injector.get(Lt),o=n.create(ze.NULL,[],t||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var s=o.injector.get(Xt,null);return s&&o.injector.get(Jt).registerApplication(o.location.nativeElement,s),this._loadComponent(o),rn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Bt(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;dn(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Et,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),dn(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=zt("ApplicationRef#tick()"),e}();function dn(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var pn=function(){},hn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),fn=function(){},mn=function(e){this.nativeElement=e},gn=function(){},yn=function(){function e(){this.dirty=!0,this._results=[],this.changes=new Ut,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[Te()]=function(){return this._results[Te()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),vn=function(){},bn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},_n=function(){function e(e,t){this._compiler=e,this._config=t||bn}return e.prototype.load=function(e){return this._compiler instanceof xt?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,r=a(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("crnd")(i).then(function(e){return e[o]}).then(function(e){return wn(e,i,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=a(e.split("#"),2),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[i+o]}).then(function(e){return wn(e,r,i)})},e}();function wn(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var En=function(){},Sn=function(){},Cn=function(){},xn=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Tn?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),Tn=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return i(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,u([i+1,0],t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return function e(t,n,r){t.childNodes.forEach(function(t){t instanceof Tn&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof Tn&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof Tn&&e(t,n,r)})}(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(xn),On=new Map;function In(e){return On.get(e)||null}function kn(e){On.set(e.nativeNode,e)}function An(e,t){var n=Mn(e),r=Mn(t);return n&&r?function(e,t,n){for(var r=e[Te()](),i=t[Te()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(e,t,An):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Ie(e,t)}var Pn=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),Rn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function Mn(e){return!!Nn(e)&&(Array.isArray(e)||!(e instanceof Map)&&Te()in e)}function Nn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var Dn=function(){function e(){}return e.prototype.supports=function(e){return Mn(e)},e.prototype.create=function(e){return new jn(e)},e}(),Ln=function(e,t){return t},jn=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Ln}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0")}else this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();hr.hasOwnProperty(t)&&!lr.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(_r(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),vr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,br=/([^\#-~ |!])/g;function _r(e){return e.replace(/&/g,"&").replace(vr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(br,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function wr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Er=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Sr=/^url\(([^)]+)\)$/,Cr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({}),xr=function(){};function Tr(e,t,n){var r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function Or(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Ir(e,t){return e.nodes[t]}function kr(e,t){return e.nodes[t]}function Ar(e,t){return e.nodes[t]}function Pr(e,t){return e.nodes[t]}function Rr(e,t){return e.nodes[t]}var Mr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Nr(e,t,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return Dr(n,t),n}(i,e)}function Dr(e,t){e[ot]=t,e[at]=t.logError.bind(t)}function Lr(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}var jr=function(){},Vr=new Map;function Fr(e){var t=Vr.get(e);return t||(t=ke(e)+"_"+Vr.size,Vr.set(e,t)),t}var zr="$$undefined",Br="$$empty";function Ur(e){return{id:zr,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var Hr=0;function Gr(e,t,n,r){return!(!(2&e.state)&&Ie(e.oldValues[t.bindingIndex+n],r))}function Wr(e,t,n,r){return!!Gr(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function qr(e,t,n,r){var i=e.oldValues[t.bindingIndex+n];if(1&e.state||!An(i,r)){var o=t.bindings[n].name;throw Nr(Mr.createDebugContext(e,t.nodeIndex),o+": "+i,o+": "+r,0!=(1&e.state))}}function Zr(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Qr(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Yr(e,t,n,r){try{return Zr(33554432&e.def.nodes[t].flags?kr(e,t).componentView:e),Mr.handleEvent(e,t,n,r)}catch(t){e.root.errorHandler.handleError(t)}}function Kr(e){return e.parent?kr(e.parent,e.parentNodeDef.nodeIndex):null}function Xr(e){return e.parent?e.parentNodeDef.parent:null}function Jr(e,t){switch(201347067&t.flags){case 1:return kr(e,t.nodeIndex).renderElement;case 2:return Ir(e,t.nodeIndex).renderText}}function $r(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function ei(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function ti(e){return 1<-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var l=e._providers.length;return e._def.providersByKey[t.tokenKey]={flags:5120,value:t.token.ngInjectableDef.factory,deps:[],index:l,token:t.token},e._providers[l]=wi,e._providers[l]=Oi(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{tt(o)}}function Oi(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(Ti(e,n[0]));case 2:return new t(Ti(e,n[0]),Ti(e,n[1]));case 3:return new t(Ti(e,n[0]),Ti(e,n[1]),Ti(e,n[2]));default:for(var i=new Array(r),o=0;o=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Ri(n,t),Mr.dirtyParentQueries(r),Ai(r),r}function ki(e,t,n){var r=t?Jr(t,t.def.lastRenderRootNode):e.renderElement;ai(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Ai(e){ai(e,3,null,null,void 0)}function Pi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ri(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Mi=new Object;function Ni(e,t,n,r,i,o){return new Di(e,t,n,r,i,o)}var Di=function(e){function t(t,n,r,i,o,s){var a=e.call(this)||this;return a.selector=t,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return i(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=si(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=Mr.createRootView(e,t||[],n,i,r,Mi),a=Ar(s,o).instance;return n&&s.renderer.setAttribute(kr(s,0).renderElement,"ng-version",it.full),new Li(s,new zi(s),a)},t}(Ot),Li=function(e){function t(t,n,r){var i=e.call(this)||this;return i._view=t,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return i(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new mn(kr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Gi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(function(){});function ji(e,t,n){return new Vi(e,t,n)}var Vi=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new mn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Gi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Xr(e),e=e.parent;return e?new Gi(e,t):new Gi(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Ii(this._data,e);Mr.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new zi(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof Dt||(i=o.get(Lt));var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,s=e;return i=s._view,o=(n=this._data).viewContainer._embeddedViews,null!==(r=t)&&void 0!==r||(r=o.length),i.viewContainerParent=this._view,Pi(o,r,i),function(e,t){var n=Kr(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,i),Mr.dirtyParentQueries(i),ki(n,r>0?o[r-1]:null,i),s.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,s,a=this._embeddedViews.indexOf(e._view);return i=t,s=(o=(n=this._data).viewContainer._embeddedViews)[r=a],Ri(o,r),null==i&&(i=o.length),Pi(o,i,s),Mr.dirtyParentQueries(s),Ai(s),ki(n,i>0?o[i-1]:null,s),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Ii(this._data,e);t&&Mr.destroyView(t)},e.prototype.detach=function(e){var t=Ii(this._data,e);return t?new zi(t):null},e}();function Fi(e){return new zi(e)}var zi=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return ai(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Zr(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Mr.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Mr.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Mr.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Ai(this._view),Mr.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Bi(e,t){return new Ui(e,t)}var Ui=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return i(t,e),t.prototype.createEmbeddedView=function(e){return new zi(Mr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new mn(kr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(En);function Hi(e,t){return new Gi(e,t)}var Gi=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=ze.THROW_IF_NOT_FOUND),Mr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Fr(e)},t)},e}();function Wi(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=kr(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Ir(e,n.nodeIndex).renderText;if(20240&n.flags)return Ar(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function qi(e){return new Zi(e.renderer)}var Zi=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=a(hi(t),2),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return ho(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(mo(e,t,n,i[0]));case 2:return r(mo(e,t,n,i[0]),mo(e,t,n,i[1]));case 3:return r(mo(e,t,n,i[0]),mo(e,t,n,i[1]),mo(e,t,n,i[2]));default:for(var s=Array(o),a=0;a0)l=m,Ro(m)||(c=m);else for(;l&&f===l.nodeIndex+l.childCount;){var v=l.parent;v&&(v.childFlags|=l.childFlags,v.childMatchedQueries|=l.childMatchedQueries),c=(l=v)&&Ro(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||jr,updateRenderer:r||jr,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:h}}function Ro(e){return 0!=(1&e.flags)&&null===e.element.name}function Mo(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function No(e,t,n,r){var i=jo(e.root,e.renderer,e,t,n);return Vo(i,e.component,r),Fo(i),i}function Do(e,t,n){var r=jo(e,e.renderer,null,null,t);return Vo(r,n,n),Fo(r),r}function Lo(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,jo(e.root,i,e,t.element.componentProvider,n)}function jo(e,t,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function Vo(e,t,n){e.component=t,e.context=n}function Fo(e){var t;$r(e)&&(t=kr(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i0&&_i(e,t,0,n)&&(h=!0),p>1&&_i(e,t,1,r)&&(h=!0),p>2&&_i(e,t,2,i)&&(h=!0),p>3&&_i(e,t,3,o)&&(h=!0),p>4&&_i(e,t,4,s)&&(h=!0),p>5&&_i(e,t,5,a)&&(h=!0),p>6&&_i(e,t,6,u)&&(h=!0),p>7&&_i(e,t,7,l)&&(h=!0),p>8&&_i(e,t,8,c)&&(h=!0),p>9&&_i(e,t,9,d)&&(h=!0),h}(e,t,n,r,i,o,s,a,u,l,c,d);case 2:return function(e,t,n,r,i,o,s,a,u,l,c,d){var p=!1,h=t.bindings,f=h.length;if(f>0&&Wr(e,t,0,n)&&(p=!0),f>1&&Wr(e,t,1,r)&&(p=!0),f>2&&Wr(e,t,2,i)&&(p=!0),f>3&&Wr(e,t,3,o)&&(p=!0),f>4&&Wr(e,t,4,s)&&(p=!0),f>5&&Wr(e,t,5,a)&&(p=!0),f>6&&Wr(e,t,6,u)&&(p=!0),f>7&&Wr(e,t,7,l)&&(p=!0),f>8&&Wr(e,t,8,c)&&(p=!0),f>9&&Wr(e,t,9,d)&&(p=!0),p){var m=t.text.prefix;f>0&&(m+=Ao(n,h[0])),f>1&&(m+=Ao(r,h[1])),f>2&&(m+=Ao(i,h[2])),f>3&&(m+=Ao(o,h[3])),f>4&&(m+=Ao(s,h[4])),f>5&&(m+=Ao(a,h[5])),f>6&&(m+=Ao(u,h[6])),f>7&&(m+=Ao(l,h[7])),f>8&&(m+=Ao(c,h[8])),f>9&&(m+=Ao(d,h[9]));var g=Ir(e,t.nodeIndex).renderText;e.renderer.setValue(g,m)}return p}(e,t,n,r,i,o,s,a,u,l,c,d);case 16384:return function(e,t,n,r,i,o,s,a,u,l,c,d){var p=Ar(e,t.nodeIndex),h=p.instance,f=!1,m=void 0,g=t.bindings.length;return g>0&&Gr(e,t,0,n)&&(f=!0,m=yo(e,p,t,0,n,m)),g>1&&Gr(e,t,1,r)&&(f=!0,m=yo(e,p,t,1,r,m)),g>2&&Gr(e,t,2,i)&&(f=!0,m=yo(e,p,t,2,i,m)),g>3&&Gr(e,t,3,o)&&(f=!0,m=yo(e,p,t,3,o,m)),g>4&&Gr(e,t,4,s)&&(f=!0,m=yo(e,p,t,4,s,m)),g>5&&Gr(e,t,5,a)&&(f=!0,m=yo(e,p,t,5,a,m)),g>6&&Gr(e,t,6,u)&&(f=!0,m=yo(e,p,t,6,u,m)),g>7&&Gr(e,t,7,l)&&(f=!0,m=yo(e,p,t,7,l,m)),g>8&&Gr(e,t,8,c)&&(f=!0,m=yo(e,p,t,8,c,m)),g>9&&Gr(e,t,9,d)&&(f=!0,m=yo(e,p,t,9,d,m)),m&&h.ngOnChanges(m),65536&t.flags&&Or(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),f}(e,t,n,r,i,o,s,a,u,l,c,d);case 32:case 64:case 128:return function(e,t,n,r,i,o,s,a,u,l,c,d){var p=t.bindings,h=!1,f=p.length;if(f>0&&Wr(e,t,0,n)&&(h=!0),f>1&&Wr(e,t,1,r)&&(h=!0),f>2&&Wr(e,t,2,i)&&(h=!0),f>3&&Wr(e,t,3,o)&&(h=!0),f>4&&Wr(e,t,4,s)&&(h=!0),f>5&&Wr(e,t,5,a)&&(h=!0),f>6&&Wr(e,t,6,u)&&(h=!0),f>7&&Wr(e,t,7,l)&&(h=!0),f>8&&Wr(e,t,8,c)&&(h=!0),f>9&&Wr(e,t,9,d)&&(h=!0),h){var m=Pr(e,t.nodeIndex),g=void 0;switch(201347067&t.flags){case 32:g=new Array(p.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=i),f>3&&(g[3]=o),f>4&&(g[4]=s),f>5&&(g[5]=a),f>6&&(g[6]=u),f>7&&(g[7]=l),f>8&&(g[8]=c),f>9&&(g[9]=d);break;case 64:g={},f>0&&(g[p[0].name]=n),f>1&&(g[p[1].name]=r),f>2&&(g[p[2].name]=i),f>3&&(g[p[3].name]=o),f>4&&(g[p[4].name]=s),f>5&&(g[p[5].name]=a),f>6&&(g[p[6].name]=u),f>7&&(g[p[7].name]=l),f>8&&(g[p[8].name]=c),f>9&&(g[p[9].name]=d);break;case 128:var y=n;switch(f){case 1:g=y.transform(n);break;case 2:g=y.transform(r);break;case 3:g=y.transform(r,i);break;case 4:g=y.transform(r,i,o);break;case 5:g=y.transform(r,i,o,s);break;case 6:g=y.transform(r,i,o,s,a);break;case 7:g=y.transform(r,i,o,s,a,u);break;case 8:g=y.transform(r,i,o,s,a,u,l);break;case 9:g=y.transform(r,i,o,s,a,u,l,c);break;case 10:g=y.transform(r,i,o,s,a,u,l,c,d)}}m.value=g}return h}(e,t,n,r,i,o,s,a,u,l,c,d);default:throw"unreachable"}}(e,t,r,i,o,s,a,l,c,d,p,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&qr(e,t,0,n),p>1&&qr(e,t,1,r),p>2&&qr(e,t,2,i),p>3&&qr(e,t,3,o),p>4&&qr(e,t,4,s),p>5&&qr(e,t,5,a),p>6&&qr(e,t,6,u),p>7&&qr(e,t,7,l),p>8&&qr(e,t,8,c),p>9&&qr(e,t,9,d)}(e,t,r,i,o,s,a,u,l,c,d,p):function(e,t,n){for(var r=0;r0){var o=new Set(e.modules);as.forEach(function(t,r){if(o.has(r.ngInjectableDef.providedIn)){var i={token:r,flags:t.flags|(n?4096:0),deps:ri(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[Fr(r)]=i}})}}(e=e.factory(function(){return jr})),e):e}(r))}var ss=new Map,as=new Map,us=new Map;function ls(e){ss.set(e.token,e),"function"==typeof e.token&&e.token.ngInjectableDef&&"function"==typeof e.token.ngInjectableDef.providedIn&&as.set(e.token,e)}function cs(e,t){var n=si(si(t.viewDefFactory).nodes[0].element.componentView);us.set(e,n)}function ds(){ss.clear(),as.clear(),us.clear()}function ps(e){if(0===ss.size)return e;var t=function(e){for(var t=[],n=null,r=0;r=Qs.length?Qs[a]=null:f.tNode=Qs[a],Zs?(Ys=null,qs.view!==ra&&2!==qs.type||(ngDevMode&&zs(qs.child,"previousOrParentNode's child should not have been set."),qs.child=f)):qs&&(ngDevMode&&zs(qs.next,"previousOrParentNode's next property should not have been set "+a+"."),qs.next=f,qs.dynamicLContainerNode&&(qs.dynamicLContainerNode.next=f))),qs=f,Zs=!0,e=f,y=1),s=oa(e.data,e),t(y,n),aa(),da()}finally{sa(s),Zs=m,qs=g}return e}function da(){for(var e=ra.child;null!==e;e=e.next)if(0!==e.dynamicViewCount&&e.views)for(var t=e,n=0;n"}(r))),ngDevMode&&Bs(i.data,"Component's host node should have an LView attached.");var o,s=i.data;8==(8&s.flags)&&6&s.flags&&(ngDevMode&&ma(e,Js),fa(s,i,ra.tView.directives[e],(o=Js[e],Array.isArray(o)?o[0]:o)))}function ha(e){var t=ga(e);ngDevMode&&Bs(t.data,"Component host node should be attached to an LView"),fa(t.data,t,t.view.tView.directives[t.tNode.flags>>13],e)}function fa(e,t,n,r){var i=oa(e,t),o=n.template;try{o(1&e.flags?3:2,r),aa(),da()}finally{sa(i)}}function ma(e,t){null==t&&(t=Xs),e>=(t?t.length:0)&&Us("index expected to be a valid data index")}function ga(e){ngDevMode&&Bs(e,"expecting component got null");var t=e[ea];return ngDevMode&&Bs(e,"object is not a component"),t}i(function(e,t,n){var r=$s.call(this,e.data,n)||this;return r._lViewNode=e,r},$s=function(){function e(e,t){this._view=e,this.context=t}return e.prototype._setComponentContext=function(e,t){this._view=e,this.context=t},e.prototype.destroy=function(){},e.prototype.onDestroy=function(e){},e.prototype.markForCheck=function(){!function(e){for(var t=e;null!=t.parent;)t.flags|=4,t=t.parent;var n,r;t.flags|=4,ngDevMode&&Bs(t.context,"rootContext"),(n=t.context).clean==ta&&(n.clean=new Promise(function(e){return r=e}),n.scheduler(function(){var e,t;t=ga((e=function(e){ngDevMode&&Bs(e,"component");for(var t=ga(e).view;t.parent;)t=t.parent;return t}(n.component)).context.component),ngDevMode&&Bs(t.data,"Component host node should be attached to an LView"),function(n,r,i,o){var s=oa(e,t);try{Ws.begin&&Ws.begin(),la(),ua(na),pa(0,0)}finally{Ws.end&&Ws.end(),sa(s)}}(),r(null),n.clean=ta}))}(this._view)},e.prototype.detach=function(){this._view.flags&=-9},e.prototype.reattach=function(){this._view.flags|=8},e.prototype.detectChanges=function(){ha(this.context)},e.prototype.checkNoChanges=function(){!function(e){ia=!0;try{ha(e)}finally{ia=!1}}(this.context)},e}()),n("yLV6");var ya=function(){},va=function(){},ba=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ne;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(oe),_a=new A(function(e){return e.complete()});function wa(e){return e?function(e){return new A(function(t){return e.schedule(function(){return t.complete()})})}(e):_a}function Ea(e){var t=new A(function(t){t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function Sa(){for(var e=[],t=0;t=2;return function(r){return r.pipe(e?xa(function(t,n){return e(t,n,r)}):J,ka(1),n?Ra(t):Va(function(){return new Ca}))}}function Ba(e,t){return Y(e,t,1)}function Ua(e){return function(t){return 0===e?wa():t.lift(new Ha(e))}}var Ha=function(){function e(e){if(this.total=e,this.total<0)throw new Ia}return e.prototype.call=function(e,t){return t.subscribe(new Ga(e,this.total))},e}(),Ga=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return i(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(e?xa(function(t,n){return e(t,n,r)}):J,Ua(1),n?Ra(t):Va(function(){return new Ca}))}}function qa(e,t){return function(n){return n.lift(new Za(e,t,n))}}var Za=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new Qa(e,this.predicate,this.thisArg,this.source))},e}(),Qa=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return i(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(C);function Ya(e){return function(t){var n=new Ka(e),r=t.lift(n);return n.caught=r}}var Ka=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new Xa(e,this.selector,this.caught))},e}(),Xa=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return i(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(U(this,n))}},t}(H);function Ja(){return ee(1)}function $a(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new eu(e,t,n))}}var eu=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new tu(e,this.accumulator,this.seed,this.hasSeed))},e}(),tu=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return i(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(C),nu=function(){},ru=new ge("Location Initialized"),iu=function(){},ou=new ge("appBaseHref"),su=function(){function e(t){var n=this;this._subject=new Ut,this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(au(r)),this._platformStrategy.onPopState(function(e){n._subject.emit({url:n.path(!0),pop:!0,state:e.state,type:e.type})})}return e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},e.prototype.normalize=function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,au(t)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",e,t)},e.prototype.replaceState=function(e,t,n){void 0===t&&(t=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",e,t)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)},e}();function au(e){return e.replace(/\/index.html$/,"")}var uu=function(e){function t(t,n){var r=e.call(this)||this;return r._platformLocation=t,r._baseHref="",null!=n&&(r._baseHref=n),r}return i(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=su.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+su.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+su.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(iu),lu=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return i(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return su.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+su.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+su.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+su.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(iu),cu=void 0,du=["en",[["a","p"],["AM","PM"],cu],[["AM","PM"],cu,cu],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],cu,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],cu,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",cu,"{1} 'at' {0}",cu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],pu={},hu=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),fu=new ge("UseV4Plurals"),mu=function(){},gu=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return i(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=pu[t];if(n)return n;var r=t.split("-")[0];if(n=pu[r])return n;if("en"===r)return du;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[18]}(t||this.locale)(e)){case hu.Zero:return"zero";case hu.One:return"one";case hu.Two:return"two";case hu.Few:return"few";case hu.Many:return"many";default:return"other"}},t}(mu),yu=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Mn(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+ke(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))},e.prototype._removeClasses=function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},e}(),vu=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),bu=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){rn()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("ngForOf"in e){var t=e.ngForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((n=t).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.ngForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new vu(null,t.ngForOf,-1,-1),i),s=new _u(e,o);n.push(s)}else null==i?t._viewContainer.remove(r):(o=t._viewContainer.get(r),t._viewContainer.move(o,i),s=new _u(e,o),n.push(s))});for(var r=0;r0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0;s||(s=e[o]=[]);var u=Tl(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:i});else{for(var l=!1,c=0;c-1},t}(ol),Ml=["alt","control","meta","shift"],Nl={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Dl=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Vu().onAndCancel(e,i.domEventName,o)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=t._normalizeKey(n.pop()),o="";if(Ml.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},t.getEventFullKey=function(e){var t="",n=Vu().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ml.forEach(function(r){r!=n&&(0,Nl[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(i){t.getEventFullKey(i)===e&&r.runGuarded(function(){return n(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(ol),Ll=function(){},jl=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return i(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case Cr.NONE:return t;case Cr.HTML:return t instanceof Fl?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{ur=ur||new nr(e);var r=t?String(t):"";n=ur.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=ur.getInertBodyElement(r)}while(r!==o);var s=new yr,a=s.sanitizeChildren(wr(n)||n);return rn()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}finally{if(n)for(var u=wr(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}(this._doc,String(t)));case Cr.STYLE:return t instanceof zl?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(Sr);return t&&or(t[1])===t[1]||e.match(Er)&&function(e){for(var t=!0,n=!0,r=0;re.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function Ec(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Sc(e){return e.pipe(ee(),qa(function(e){return!0===e}))}function Cc(e){return ft(e)?e:ht(e)?Q(Promise.resolve(e)):Sa(e)}function xc(e,t,n){return n?function(e,t){return bc(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!kc(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!kc(s=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!kc(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!e(n.children[o],r.children[o]))return!1}return!0}var s=i.slice(0,n.segments.length),a=i.slice(n.segments.length);return!!kc(n.segments,s)&&!!n.children[cc]&&t(n.children[cc],r,a)}(t,n,n.segments)}(e.root,t.root)}var Tc=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=pc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Mc.serialize(this)},e}(),Oc=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,Ec(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return Nc(this)},e}(),Ic=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=pc(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return zc(this)},e}();function kc(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function Ac(e,t){var n=[];return Ec(e.children,function(e,r){r===cc&&(n=n.concat(t(e,r)))}),Ec(e.children,function(e,r){r!==cc&&(n=n.concat(t(e,r)))}),n}var Pc=function(){},Rc=function(){function e(){}return e.prototype.parse=function(e){var t=new Wc(e);return new Tc(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return"/"+function e(t,n){if(!t.hasChildren())return Nc(t);if(n){var r=t.children[cc]?e(t.children[cc],!1):"",i=[];return Ec(t.children,function(t,n){n!==cc&&i.push(n+":"+e(t,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=Ac(t,function(n,r){return r===cc?[e(t.children[cc],!1)]:[r+":"+e(n,!1)]});return Nc(t)+"/("+o.join("//")+")"}(e.root,!0)+(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return Lc(e)+"="+Lc(t)}).join("&"):Lc(e)+"="+Lc(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),Mc=new Rc;function Nc(e){return e.segments.map(function(e){return zc(e)}).join("/")}function Dc(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lc(e){return Dc(e).replace(/%3B/gi,";")}function jc(e){return Dc(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vc(e){return decodeURIComponent(e)}function Fc(e){return Vc(e.replace(/\+/g,"%20"))}function zc(e){return""+jc(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+jc(e)+"="+jc(t[e])}).join(""));var t}var Bc=/^[^\/()?;=#]+/;function Uc(e){var t=e.match(Bc);return t?t[0]:""}var Hc=/^[^=?&#]+/,Gc=/^[^?&#]+/,Wc=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oc([],{}):new Oc([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[cc]=new Oc(e,t)),n},e.prototype.parseSegment=function(){var e=Uc(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new Ic(Vc(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=Uc(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=Uc(this.remaining);r&&this.capture(n=r)}e[Vc(t)]=Vc(n)}},e.prototype.parseQueryParam=function(e){var t,n=(t=this.remaining.match(Hc))?t[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Gc);return t?t[0]:""}(this.remaining);i&&this.capture(r=i)}var o=Fc(n),s=Fc(r);if(e.hasOwnProperty(o)){var a=e[o];Array.isArray(a)||(e[o]=a=[a]),a.push(s)}else e[o]=s}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Uc(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=cc);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[cc]:new Oc([],o),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),qc=function(e){this.segmentGroup=e||null},Zc=function(e){this.urlTree=e};function Qc(e){return new A(function(t){return t.error(new qc(e))})}function Yc(e){return new A(function(t){return t.error(new Zc(e))})}function Kc(e){return new A(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}var Xc=function(){function e(e,t,n,r,i){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(Lt)}return e.prototype.apply=function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,cc).pipe(G(function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Ya(function(t){if(t instanceof Zc)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof qc)throw e.noMatchError(t);throw t}))},e.prototype.match=function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,cc).pipe(G(function(n){return t.createUrlTree(n,e.queryParams,e.fragment)})).pipe(Ya(function(e){if(e instanceof qc)throw t.noMatchError(e);throw e}))},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,n){var r,i=e.segments.length>0?new Oc([],((r={})[cc]=e,r)):e;return new Tc(i,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(G(function(e){return new Oc([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)},e.prototype.expandChildren=function(e,t,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Sa({});var o=[],s=[],a={};return Ec(n,function(n,i){var u,l,c=(u=i,l=n,r.expandSegmentGroup(e,t,l,u)).pipe(G(function(e){return a[i]=e}));i===cc?o.push(c):s.push(c)}),Sa.apply(null,o.concat(s)).pipe(Ja(),Wa(),G(function(){return a}))}(n.children)},e.prototype.expandSegment=function(e,t,n,r,i,o){var s=this;return Sa.apply(void 0,u(n)).pipe(G(function(a){return s.expandSegmentAgainstRoute(e,t,n,a,r,i,o).pipe(Ya(function(e){if(e instanceof qc)return Sa(null);throw e}))}),Ja(),za(function(e){return!!e}),Ya(function(e,n){if(e instanceof Ca||"EmptyError"===e.name){if(s.noLeftoversInUrl(t,r,i))return Sa(new Oc([],{}));throw new qc(t)}throw e}))},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,r,i,o,s){return td(r)!==o?Qc(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):Qc(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Yc(o):this.lineralizeSegments(n,o).pipe(Y(function(n){var o=new Oc(n,{});return i.expandSegment(e,o,t,n,r,!1)}))},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){var s=this,a=Jc(t,r,i),u=a.consumedSegments,l=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return Qc(t);var d=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?Yc(d):this.lineralizeSegments(r,d).pipe(Y(function(r){return s.expandSegment(e,t,n,r.concat(i.slice(l)),o,!1)}))},e.prototype.matchSegmentAgainstRoute=function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(G(function(e){return n._loadedConfig=e,new Oc(r,{})})):Sa(new Oc(r,{}));var a=Jc(t,n,r),u=a.consumedSegments,l=a.lastChild;if(!a.matched)return Qc(t);var c=r.slice(l);return this.getChildConfig(e,n).pipe(Y(function(e){var n=e.module,r=e.routes,a=function(e,t,n,r){return n.length>0&&function(e,t,n){return r.some(function(n){return ed(e,t,n)&&td(n)!==cc})}(e,n)?{segmentGroup:$c(new Oc(t,function(e,t){var n,r,i={};i[cc]=t;try{for(var o=s(e),a=o.next();!a.done;a=o.next()){var u=a.value;""===u.path&&td(u)!==cc&&(i[td(u)]=new Oc([],{}))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}(r,new Oc(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return r.some(function(n){return ed(e,t,n)})}(e,n)?{segmentGroup:$c(new Oc(e.segments,function(e,t,n,r){var i,a,u={};try{for(var l=s(n),c=l.next();!c.done;c=l.next()){var d=c.value;ed(e,t,d)&&!r[td(d)]&&(u[td(d)]=new Oc([],{}))}}catch(e){i={error:e}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return o({},r,u)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,u,c,r),l=a.segmentGroup,d=a.slicedSegments;return 0===d.length&&l.hasChildren()?i.expandChildren(n,r,l).pipe(G(function(e){return new Oc(u,e)})):0===r.length&&0===d.length?Sa(new Oc(u,{})):i.expandSegment(n,l,r,d,cc,!0).pipe(G(function(e){return new Oc(u.concat(e.segments),e.children)}))}))},e.prototype.getChildConfig=function(e,t){var n=this;return t.children?Sa(new fc(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Sa(t._loadedConfig):function(e,t){var n=t.canLoad;return n&&0!==n.length?Sc(Q(n).pipe(G(function(n){var r=e.get(n);return Cc(r.canLoad?r.canLoad(t):r(t))}))):Sa(!0)}(e.injector,t).pipe(Y(function(r){return r?n.configLoader.load(e.injector,t).pipe(G(function(e){return t._loadedConfig=e,e})):function(e){return new A(function(t){return t.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(t)})):Sa(new fc([],e))},e.prototype.lineralizeSegments=function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Sa(n);if(r.numberOfChildren>1||!r.children[cc])return Kc(e.redirectTo);r=r.children[cc]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new Tc(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return Ec(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),s={};return Ec(t.children,function(t,o){s[o]=i.createSegmentGroup(e,t,n,r)}),new Oc(o,s)},e.prototype.createSegments=function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return r},e.prototype.findOrReturn=function(e,t){var n,r,i=0;try{for(var o=s(t),a=o.next();!a.done;a=o.next()){var u=a.value;if(u.path===e.path)return t.splice(i),u;i++}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e},e}();function Jc(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||hc)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function $c(e){if(1===e.numberOfChildren&&e.children[cc]){var t=e.children[cc];return new Oc(e.segments.concat(t.segments),t.children)}return e}function ed(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function td(e){return e.outlet||cc}var nd=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=rd(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=rd(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=id(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return id(e,this._root).map(function(e){return e.value})},e}();function rd(e,t){if(e===t.value)return t;try{for(var n=s(t.children),r=n.next();!r.done;r=n.next()){var i=rd(e,r.value);if(i)return i}}catch(e){o={error:e}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}}return null;var o,a}function id(e,t){if(e===t.value)return[t];try{for(var n=s(t.children),r=n.next();!r.done;r=n.next()){var i=id(e,r.value);if(i.length)return i.unshift(t),i}}catch(e){o={error:e}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}}return[];var o,a}var od=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}();function sd(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var ad=function(e){function t(t,n){var r=e.call(this,t)||this;return r.snapshot=n,hd(r,t),r}return i(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(nd);function ud(e,t){var n=function(e,t){var n=new dd([],{},{},"",{},cc,t,null,e.root,-1,{});return new pd("",new od(n,[]))}(e,t),r=new ba([new Ic("",{})]),i=new ba({}),o=new ba({}),s=new ba({}),a=new ba(""),u=new ld(r,i,s,a,o,cc,t,n.root);return u.snapshot=n.root,new ad(new od(u,[]),n)}var ld=function(){function e(e,t,n,r,i,o,s,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(G(function(e){return pc(e)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(G(function(e){return pc(e)}))),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}();function cd(e,t){void 0===t&&(t="emptyOnly");var n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],s=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(s.component)break;r--}}return function(e){return e.reduce(function(e,t){return{params:o({},e.params,t.params),data:o({},e.data,t.data),resolve:o({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var dd=function(){function e(e,t,n,r,i,o,s,a,u,l,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=u,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=pc(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=pc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),pd=function(e){function t(t,n){var r=e.call(this,n)||this;return r.url=t,hd(r,n),r}return i(t,e),t.prototype.toString=function(){return fd(this._root)},t}(nd);function hd(e,t){t.value._routerState=e,t.children.forEach(function(t){return hd(e,t)})}function fd(e){var t=e.children.length>0?" { "+e.children.map(fd).join(", ")+" } ":"";return""+e.value+t}function md(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,bc(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),bc(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0&&yd(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(r&&r!==wc(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),_d=function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n};function wd(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[cc]:""+e}function Ed(e,t,n){if(e||(e=new Oc([],{})),0===e.segments.length&&e.hasChildren())return Sd(e,t,n);var r=function(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var s=e.segments[i],a=wd(n[r]),u=r0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Od(a,u,s))return o;r+=2}else{if(!Od(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?function(n){return I($a(e,t),Ua(1),Ra(t))(n)}:function(t){return I($a(function(t,n,r){return e(t,n,r+1)}),Ua(1))(t)}}(function(e,t){return e})):Sa(null)},e.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},e.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},e.prototype.setupChildRouteGuards=function(e,t,n,r){var i=this,o=sd(t);e.children.forEach(function(e){i.setupRouteGuards(e,o[e.value.outlet],n,r.concat([e.value])),delete o[e.value.outlet]}),Ec(o,function(e,t){return i.deactivateRouteAndItsChildren(e,n.getContext(t))})},e.prototype.setupRouteGuards=function(e,t,n,r){var i=e.value,o=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){var a=this.shouldRunGuardsAndResolvers(o,i,i.routeConfig.runGuardsAndResolvers);a?this.canActivateChecks.push(new Id(r)):(i.data=o.data,i._resolvedData=o._resolvedData),this.setupChildRouteGuards(e,t,i.component?s?s.children:null:n,r),a&&this.canDeactivateChecks.push(new kd(s.outlet.component,o))}else o&&this.deactivateRouteAndItsChildren(t,s),this.canActivateChecks.push(new Id(r)),this.setupChildRouteGuards(e,null,i.component?s?s.children:null:n,r)},e.prototype.shouldRunGuardsAndResolvers=function(e,t,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!gd(e,t)||!bc(e.queryParams,t.queryParams);case"paramsChange":default:return!gd(e,t)}},e.prototype.deactivateRouteAndItsChildren=function(e,t){var n=this,r=sd(e),i=e.value;Ec(r,function(e,r){n.deactivateRouteAndItsChildren(e,i.component?t?t.children.getContext(r):null:t)}),this.canDeactivateChecks.push(new kd(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))},e.prototype.runCanDeactivateChecks=function(){var e=this;return Q(this.canDeactivateChecks).pipe(Y(function(t){return e.runCanDeactivate(t.component,t.route)}),qa(function(e){return!0===e}))},e.prototype.runCanActivateChecks=function(){var e=this;return Q(this.canActivateChecks).pipe(Ba(function(t){return Sc(Q([e.fireChildActivationStart(t.route.parent),e.fireActivationStart(t.route),e.runCanActivateChild(t.path),e.runCanActivate(t.route)]))}),qa(function(e){return!0===e}))},e.prototype.fireActivationStart=function(e){return null!==e&&this.forwardEvent&&this.forwardEvent(new ac(e)),Sa(!0)},e.prototype.fireChildActivationStart=function(e){return null!==e&&this.forwardEvent&&this.forwardEvent(new oc(e)),Sa(!0)},e.prototype.runCanActivate=function(e){var t=this,n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Sc(Q(n).pipe(G(function(n){var r=t.getToken(n,e);return Cc(r.canActivate?r.canActivate(e,t.future):r(e,t.future)).pipe(za())}))):Sa(!0)},e.prototype.runCanActivateChild=function(e){var t=this,n=e[e.length-1];return Sc(Q(e.slice(0,e.length-1).reverse().map(function(e){return t.extractCanActivateChild(e)}).filter(function(e){return null!==e})).pipe(G(function(e){return Sc(Q(e.guards).pipe(G(function(r){var i=t.getToken(r,e.node);return Cc(i.canActivateChild?i.canActivateChild(n,t.future):i(n,t.future)).pipe(za())})))})))},e.prototype.extractCanActivateChild=function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null},e.prototype.runCanDeactivate=function(e,t){var n=this,r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return r&&0!==r.length?Q(r).pipe(Y(function(r){var i=n.getToken(r,t);return Cc(i.canDeactivate?i.canDeactivate(e,t,n.curr,n.future):i(e,t,n.curr,n.future)).pipe(za())})).pipe(qa(function(e){return!0===e})):Sa(!0)},e.prototype.runResolve=function(e,t){return this.resolveNode(e._resolve,e).pipe(G(function(n){return e._resolvedData=n,e.data=o({},e.data,cd(e,t).resolve),null}))},e.prototype.resolveNode=function(e,t){var n=this,r=Object.keys(e);if(0===r.length)return Sa({});if(1===r.length){var i=r[0];return this.getResolver(e[i],t).pipe(G(function(e){return(t={})[i]=e,t;var t}))}var o={};return Q(r).pipe(Y(function(r){return n.getResolver(e[r],t).pipe(G(function(e){return o[r]=e,e}))})).pipe(Wa(),G(function(){return o}))},e.prototype.getResolver=function(e,t){var n=this.getToken(e,t);return Cc(n.resolve?n.resolve(t,this.future):n(t,this.future))},e.prototype.getToken=function(e,t){var n=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(n?n.module.injector:this.moduleInjector).get(e)},e}(),Pd=function(){},Rd=function(){function e(e,t,n,r,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i}return e.prototype.recognize=function(){try{var e=Dd(this.urlTree.root,[],[],this.config).segmentGroup,t=this.processSegmentGroup(this.config,e,cc),n=new dd([],Object.freeze({}),Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,{},cc,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new od(n,t),i=new pd(this.url,r);return this.inheritParamsAndData(i._root),Sa(i)}catch(e){return new A(function(t){return t.error(e)})}},e.prototype.inheritParamsAndData=function(e){var t=this,n=e.value,r=cd(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})},e.prototype.processSegmentGroup=function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)},e.prototype.processChildren=function(e,t){var n,r=this,i=Ac(t,function(t,n){return r.processSegmentGroup(e,t,n)});return n={},i.forEach(function(e){var t=n[e.value.outlet];if(t){var r=t.url.map(function(e){return e.toString()}).join("/"),i=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[e.value.outlet]=e.value}),i.sort(function(e,t){return e.value.outlet===cc?-1:t.value.outlet===cc?1:e.value.outlet.localeCompare(t.value.outlet)}),i},e.prototype.processSegment=function(e,t,n,r){try{for(var i=s(e),o=i.next();!o.done;o=i.next()){var a=o.value;try{return this.processSegmentAgainstRoute(a,t,n,r)}catch(e){if(!(e instanceof Pd))throw e}}}catch(e){u={error:e}}finally{try{o&&!o.done&&(l=i.return)&&l.call(i)}finally{if(u)throw u.error}}if(this.noLeftoversInUrl(t,n,r))return[];throw new Pd;var u,l},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.processSegmentAgainstRoute=function(e,t,n,r){if(e.redirectTo)throw new Pd;if((e.outlet||cc)!==r)throw new Pd;var i,s=[],a=[];if("**"===e.path){var u=n.length>0?wc(n).parameters:{};i=new dd(n,u,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,Vd(e),r,e.component,e,Md(t),Nd(t)+n.length,Fd(e))}else{var l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Pd;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||hc)(n,e,t);if(!r)throw new Pd;var i={};Ec(r.posParams,function(e,t){i[t]=e.path});var s=r.consumed.length>0?o({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(t,e,n);s=l.consumedSegments,a=n.slice(l.lastChild),i=new dd(s,l.parameters,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,Vd(e),r,e.component,e,Md(t),Nd(t)+s.length,Fd(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),d=Dd(t,s,a,c),p=d.segmentGroup,h=d.slicedSegments;if(0===h.length&&p.hasChildren()){var f=this.processChildren(c,p);return[new od(i,f)]}if(0===c.length&&0===h.length)return[new od(i,[])];var m=this.processSegment(c,p,h,cc);return[new od(i,m)]},e}();function Md(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Nd(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Dd(e,t,n,r){if(n.length>0&&function(e,t,n){return r.some(function(n){return Ld(e,t,n)&&jd(n)!==cc})}(e,n)){var i=new Oc(t,function(e,t,n,r){var i,o,a={};a[cc]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;try{for(var u=s(n),l=u.next();!l.done;l=u.next()){var c=l.value;if(""===c.path&&jd(c)!==cc){var d=new Oc([],{});d._sourceSegment=e,d._segmentIndexShift=t.length,a[jd(c)]=d}}}catch(e){i={error:e}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return a}(e,t,r,new Oc(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return r.some(function(n){return Ld(e,t,n)})}(e,n)){var a=new Oc(e.segments,function(e,t,n,r){var i,a,u={};try{for(var l=s(n),c=l.next();!c.done;c=l.next()){var d=c.value;if(Ld(e,t,d)&&!r[jd(d)]){var p=new Oc([],{});p._sourceSegment=e,p._segmentIndexShift=e.segments.length,u[jd(d)]=p}}}catch(e){i={error:e}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}return o({},r,u)}(e,n,r,e.children));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var u=new Oc(e.segments,e.children);return u._sourceSegment=e,u._segmentIndexShift=t.length,{segmentGroup:u,slicedSegments:n}}function Ld(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function jd(e){return e.outlet||cc}function Vd(e){return e.data||{}}function Fd(e){return e.resolve||{}}var zd=function(){},Bd=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),Ud=new ge("ROUTES"),Hd=function(){function e(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}return e.prototype.load=function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(G(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new fc(_c(i.injector.get(Ud)).map(vc),i)}))},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?Q(this.loader.load(e)):Cc(e()).pipe(Y(function(e){return e instanceof jt?Sa(e):Q(t.compiler.compileModuleAsync(e))}))},e}(),Gd=function(){},Wd=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function qd(e){throw e}function Zd(e,t,n){return t.parse("/")}function Qd(e){return Sa(null)}var Yd=function(){function e(e,t,n,r,i,o,s,a){var u=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.navigations=new ba(null),this.navigationId=0,this.events=new oe,this.errorHandler=qd,this.malformedUriErrorHandler=Zd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Qd,afterPreactivation:Qd},this.urlHandlingStrategy=new Wd,this.routeReuseStrategy=new Bd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=i.get(Lt),this.resetConfig(a),this.currentUrlTree=new Tc(new Oc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Hd(o,s,function(e){return u.triggerEvent(new rc(e))},function(e){return u.triggerEvent(new ic(e))}),this.routerState=ud(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.parseUrl(t.url),r="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?{navigationId:t.state.navigationId}:null;setTimeout(function(){e.scheduleNavigation(n,r,i,{replaceUrl:!0})},0)}))},Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),e.prototype.triggerEvent=function(e){this.events.next(e)},e.prototype.resetConfig=function(e){mc(e),this.config=e.map(vc),this.navigated=!1,this.lastSuccessfulId=-1},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){void 0===t&&(t={});var n=t.relativeTo,r=t.queryParams,i=t.fragment,s=t.preserveQueryParams,a=t.queryParamsHandling,l=t.preserveFragment;rn()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,d=l?this.currentUrlTree.fragment:i,p=null;if(a)switch(a){case"merge":p=o({},this.currentUrlTree.queryParams,r);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=r||null}else p=s?this.currentUrlTree.queryParams:r||null;return null!==p&&(p=this.removeEmptyProps(p)),function(e,t,n,r,i){if(0===n.length)return vd(t.root,t.root,t,r,i);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new bd(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return Ec(r.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),u(e,[{outlets:o}])}if(r.segmentPath)return u(e,[r.segmentPath])}return"string"!=typeof r?u(e,[r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):u(e,[r])},[]);return new bd(n,t,r)}(n);if(o.toRoot())return vd(t.root,new Oc([],{}),t,r,i);var s=function(e,n,r){if(e.isAbsolute)return new _d(t.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new _d(r.snapshot._urlSegment,!0,0);var i=yd(e.commands[0])?0:1;return function(t,n,o){for(var s=r.snapshot._urlSegment,a=r.snapshot._lastPathIndex+i,u=e.numberOfDoubleDots;u>a;){if(u-=a,!(s=s.parent))throw new Error("Invalid number of '../'");a=s.segments.length}return new _d(s,!1,a-u)}()}(o,0,e),a=s.processChildren?Sd(s.segmentGroup,s.index,o.commands):Ed(s.segmentGroup,s.index,o.commands);return vd(s.segmentGroup,a,t,r,i)}(c,this.currentUrlTree,e,p,d)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1});var n=e instanceof Tc?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t0?Z(e,n):wa(n):Ea(e[0]),t)}}var Kp,Xp=new Set,Jp=function(){function e(e){this.platform=e,this._matchMedia=this.platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$p}return e.prototype.matchMedia=function(e){return this.platform.WEBKIT&&function(e){if(!Xp.has(e))try{Kp||((Kp=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Kp)),Kp.sheet&&(Kp.sheet.insertRule("@media "+e+" {.fx-query-test{ }}",0),Xp.add(e))}catch(e){console.error(e)}}(e),this._matchMedia(e)},e.ngInjectableDef=me({factory:function(){return new e(nt(Vp))},token:e,providedIn:"root"}),e}();function $p(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var eh=function(){function e(e,t){this.mediaMatcher=e,this.zone=t,this._queries=new Map,this._destroySubject=new oe}return e.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},e.prototype.isMatched=function(e){var t=this;return th(Rp(e)).some(function(e){return t._registerQuery(e).mql.matches})},e.prototype.observe=function(e){var t=this;return function(){for(var e=[],t=0;t1?Array.prototype.slice.call(arguments):e)},r,n)})}Object;var ih=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return i(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(w)),oh=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=Date.now?Date.now:function(){return+new Date},e}(),sh=function(e){function t(n,r){void 0===r&&(r=oh.now);var i=e.call(this,n,function(){return t.delegate&&t.delegate!==i?t.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(oh),ah=new sh(ih),uh=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new lh(e,this.durationSelector))},e}(),lh=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return i(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=b(this.durationSelector)(e);if(t===y)this.destination.error(y.e);else{var n=U(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(e,t,n,r){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(H);function ch(e){return!f(e)&&e-parseFloat(e)+1>=0}function dh(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function ph(e,t){return void 0===t&&(t=ah),n=function(){return function(e,t,n){void 0===e&&(e=0);var r=-1;return ch(t)?r=Number(t)<1?1:Number(t):R(t)&&(n=t),R(n)||(n=ah),new A(function(t){var i=ch(e)?e:+e-n.now();return n.schedule(dh,i,{index:0,period:r,subscriber:t})})}(e,t)},function(e){return e.lift(new uh(n))};var n}var hh=function(){function e(e,t){this._ngZone=e,this._platform=t,this._scrolled=new oe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return e.prototype.register=function(e){var t=this,n=e.elementScrolled().subscribe(function(){return t._scrolled.next(e)});this.scrollContainers.set(e,n)},e.prototype.deregister=function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))},e.prototype.scrolled=function(e){var t=this;return void 0===e&&(e=20),this._platform.isBrowser?A.create(function(n){t._globalSubscription||t._addGlobalListener();var r=e>0?t._scrolled.pipe(ph(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){r.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):Sa()},e.prototype.ngOnDestroy=function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()},e.prototype.ancestorScrolled=function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(xa(function(e){return!e||n.indexOf(e)>-1}))},e.prototype.getAncestorScrollContainers=function(e){var t=this,n=[];return this.scrollContainers.forEach(function(r,i){t._scrollableContainsElement(i,e)&&n.push(i)}),n},e.prototype._scrollableContainsElement=function(e,t){var n=t.nativeElement,r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},e.prototype._addGlobalListener=function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return rh(window.document,"scroll").subscribe(function(){return e._scrolled.next()})})},e.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},e.ngInjectableDef=me({factory:function(){return new e(nt(Ht),nt(Vp))},token:e,providedIn:"root"}),e}(),fh=function(){function e(e,t){var n=this;this._platform=e,this._change=e.isBrowser?t.runOutsideAngular(function(){return te(rh(window,"resize"),rh(window,"orientationchange"))}):Sa(),this._invalidateCache=this.change().subscribe(function(){return n._updateViewportSize()})}return e.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},e.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e},e.prototype.getViewportRect=function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,r=t.height;return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}},e.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=document.documentElement.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},e.prototype.change=function(e){return void 0===e&&(e=20),e>0?this._change.pipe(ph(e)):this._change},e.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},e.ngInjectableDef=me({factory:function(){return new e(nt(Vp),nt(Ht))},token:e,providedIn:"root"}),e}(),mh=function(){};function gh(){throw Error("Host already has a portal attached")}var yh=function(){function e(){}return e.prototype.attach=function(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&gh(),this._attachedHost=e,e.attach(this)},e.prototype.detach=function(){var e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())},Object.defineProperty(e.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),e.prototype.setAttachedHost=function(e){this._attachedHost=e},e}(),vh=function(e){function t(t,n,r){var i=e.call(this)||this;return i.component=t,i.viewContainerRef=n,i.injector=r,i}return i(t,e),t}(yh),bh=function(e){function t(t,n,r){var i=e.call(this)||this;return i.templateRef=t,i.viewContainerRef=n,i.context=r,i}return i(t,e),Object.defineProperty(t.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),t.prototype.attach=function(t,n){return void 0===n&&(n=this.context),this.context=n,e.prototype.attach.call(this,t)},t.prototype.detach=function(){return this.context=void 0,e.prototype.detach.call(this)},t}(yh),_h=function(){function e(){this._isDisposed=!1}return e.prototype.hasAttached=function(){return!!this._attachedPortal},e.prototype.attach=function(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&gh(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof vh?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof bh?(this._attachedPortal=e,this.attachTemplatePortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},e.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},e.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},e.prototype.setDisposeFn=function(e){this._disposeFn=e},e.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},e}(),wh=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.outletElement=t,o._componentFactoryResolver=n,o._appRef=r,o._defaultInjector=i,o}return i(t,e),t.prototype.attachComponentPortal=function(e){var t,n=this,r=this._componentFactoryResolver.resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(r,e.viewContainerRef.length,e.injector||e.viewContainerRef.parentInjector),this.setDisposeFn(function(){return t.destroy()})):(t=r.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),t},t.prototype.attachTemplatePortal=function(e){var t=this,n=e.viewContainerRef,r=n.createEmbeddedView(e.templateRef,e.context);return r.detectChanges(),r.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),this.setDisposeFn(function(){var e=n.indexOf(r);-1!==e&&n.remove(e)}),r},t.prototype.dispose=function(){e.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},t.prototype._getComponentRootNode=function(e){return e.hostView.rootNodes[0]},t}(_h),Eh=function(e){function t(t,n){var r=e.call(this)||this;return r._componentFactoryResolver=t,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new Ut,r}return i(t,e),Object.defineProperty(t.prototype,"portal",{get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&e.prototype.detach.call(this),t&&e.prototype.attach.call(this,t),this._attachedPortal=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0},t.prototype.ngOnDestroy=function(){e.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},t.prototype.attachComponentPortal=function(t){t.setAttachedHost(this);var n=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,r=this._componentFactoryResolver.resolveComponentFactory(t.component),i=n.createComponent(r,n.length,t.injector||n.parentInjector);return e.prototype.setDisposeFn.call(this,function(){return i.destroy()}),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i},t.prototype.attachTemplatePortal=function(t){var n=this;t.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return e.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r},t}(_h),Sh=function(){},Ch=function(){function e(e,t){this._parentInjector=e,this._customTokens=t}return e.prototype.get=function(e,t){var n=this._customTokens.get(e);return void 0!==n?n:this._parentInjector.get(e,t)},e}(),xh=function(){function e(){}return e.prototype.enable=function(){},e.prototype.disable=function(){},e.prototype.attach=function(){},e}(),Th=function(){return function(e){var t=this;this.scrollStrategy=new xh,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",e&&Object.keys(e).filter(function(t){return void 0!==e[t]}).forEach(function(n){return t[n]=e[n]})}}();function Oh(e,t){if("top"!==t&&"bottom"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid "+e+' "'+t+'". Expected "top", "bottom" or "center".')}function Ih(e,t){if("start"!==t&&"end"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid "+e+' "'+t+'". Expected "start", "end" or "center".')}var kh=function(){function e(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}return e.prototype.attach=function(){},e.prototype.enable=function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Mp(-this._previousScrollPosition.left),e.style.top=Mp(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},e.prototype.disable=function(){if(this._isEnabled){var e=this._document.documentElement,t=this._document.body,n=e.style.scrollBehavior||"",r=t.style.scrollBehavior||"";this._isEnabled=!1,e.style.left=this._previousHTMLStyles.left,e.style.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),e.style.scrollBehavior=t.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.style.scrollBehavior=n,t.style.scrollBehavior=r}},e.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width},e}();function Ah(){return Error("Scroll strategy has already been attached.")}var Ph=function(){function e(e,t,n,r){var i=this;this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){i.disable(),i._overlayRef.hasAttached()&&i._ngZone.run(function(){return i._overlayRef.detach()})}}return e.prototype.attach=function(e){if(this._overlayRef)throw Ah();this._overlayRef=e},e.prototype.enable=function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}},e.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},e}();function Rh(e,t){return t.some(function(t){return e.bottomt.bottom||e.rightt.right})}function Mh(e,t){return t.some(function(t){return e.topt.bottom||e.leftt.right})}var Nh=function(){function e(e,t,n,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=r,this._scrollSubscription=null}return e.prototype.attach=function(e){if(this._overlayRef)throw Ah();this._overlayRef=e},e.prototype.enable=function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),r=n.width,i=n.height;Rh(t,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))},e.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},e}(),Dh=function(){function e(e,t,n,r){var i=this;this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=function(){return new xh},this.close=function(e){return new Ph(i._scrollDispatcher,i._ngZone,i._viewportRuler,e)},this.block=function(){return new kh(i._viewportRuler,i._document)},this.reposition=function(e){return new Nh(i._scrollDispatcher,i._viewportRuler,i._ngZone,e)},this._document=r}return e.ngInjectableDef=me({factory:function(){return new e(nt(hh),nt(fh),nt(Ht),nt(Ru))},token:e,providedIn:"root"}),e}(),Lh=function(){function e(e){var t=this;this._attachedOverlays=[],this._keydownListener=function(e){for(var n=t._attachedOverlays,r=n.length-1;r>-1;r--)if(n[r]._keydownEventSubscriptions>0){n[r]._keydownEvents.next(e);break}},this._document=e}return e.prototype.ngOnDestroy=function(){this._detach()},e.prototype.add=function(e){this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener,!0),this._isAttached=!0),this._attachedOverlays.push(e)},e.prototype.remove=function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()},e.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener,!0),this._isAttached=!1)},e.ngInjectableDef=me({factory:function(){return new e(nt(Ru))},token:e,providedIn:"root"}),e}(),jh=function(){function e(e){this._document=e}return e.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},e.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},e.prototype._createContainer=function(){var e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),this._document.body.appendChild(e),this._containerElement=e},e.ngInjectableDef=me({factory:function(){return new e(nt(Ru))},token:e,providedIn:"root"}),e}(),Vh=function(){function e(e,t,n,r,i,o,s){var a=this;this._portalOutlet=e,this._host=t,this._pane=n,this._config=r,this._ngZone=i,this._keyboardDispatcher=o,this._document=s,this._backdropElement=null,this._backdropClick=new oe,this._attachments=new oe,this._detachments=new oe,this._keydownEventsObservable=A.create(function(e){var t=a._keydownEvents.subscribe(e);return a._keydownEventSubscriptions++,function(){t.unsubscribe(),a._keydownEventSubscriptions--}}),this._keydownEvents=new oe,this._keydownEventSubscriptions=0,r.scrollStrategy&&r.scrollStrategy.attach(this)}return Object.defineProperty(e.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostElement",{get:function(){return this._host},enumerable:!0,configurable:!0}),e.prototype.attach=function(e){var t=this,n=this._portalOutlet.attach(e);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(ka(1)).subscribe(function(){t.hasAttached()&&t.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),n},e.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._config.positionStrategy&&this._config.positionStrategy.detach&&this._config.positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),e}},e.prototype.dispose=function(){var e=this.hasAttached();this._config.positionStrategy&&this._config.positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._pane=null,e&&this._detachments.next(),this._detachments.complete()},e.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},e.prototype.backdropClick=function(){return this._backdropClick.asObservable()},e.prototype.attachments=function(){return this._attachments.asObservable()},e.prototype.detachments=function(){return this._detachments.asObservable()},e.prototype.keydownEvents=function(){return this._keydownEventsObservable},e.prototype.getConfig=function(){return this._config},e.prototype.updatePosition=function(){this._config.positionStrategy&&this._config.positionStrategy.apply()},e.prototype.updateSize=function(e){this._config=o({},this._config,e),this._updateElementSize()},e.prototype.setDirection=function(e){this._config=o({},this._config,{direction:e}),this._updateElementDirection()},e.prototype.getDirection=function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"},e.prototype._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())},e.prototype._updateElementSize=function(){var e=this._pane.style;e.width=Mp(this._config.width),e.height=Mp(this._config.height),e.minWidth=Mp(this._config.minWidth),e.minHeight=Mp(this._config.minHeight),e.maxWidth=Mp(this._config.maxWidth),e.maxHeight=Mp(this._config.maxHeight)},e.prototype._togglePointerEvents=function(e){this._pane.style.pointerEvents=e?"auto":"none"},e.prototype._attachBackdrop=function(){var e=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",function(t){return e._backdropClick.next(t)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},e.prototype._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)},e.prototype.detachBackdrop=function(){var e=this,t=this._backdropElement;if(t){var n,r=function(){t&&t.parentNode&&t.parentNode.removeChild(t),e._backdropElement==t&&(e._backdropElement=null),clearTimeout(n)};t.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),this._ngZone.runOutsideAngular(function(){t.addEventListener("transitionend",r)}),t.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(r,500)})}},e.prototype._toggleClasses=function(e,t,n){var r=e.classList;Rp(t).forEach(function(e){n?r.add(e):r.remove(e)})},e}(),Fh=function(){function e(e,t,n,r){var i=this;this._viewportRuler=t,this._document=n,this._platform=r,this._isInitialRender=!0,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this.scrollables=[],this._preferredPositions=[],this._positionChanges=new oe,this._resizeSubscription=w.EMPTY,this._offsetX=0,this._offsetY=0,this._positionChangeSubscriptions=0,this.positionChanges=A.create(function(e){var t=i._positionChanges.subscribe(e);return i._positionChangeSubscriptions++,function(){t.unsubscribe(),i._positionChangeSubscriptions--}}),this.setOrigin(e)}return Object.defineProperty(e.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),e.prototype.attach=function(e){var t=this;if(this._overlayRef&&e!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){return t.apply()})},e.prototype.apply=function(){if(!(this._isDisposed||this._platform&&!this._platform.isBrowser))if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect();for(var e,t=this._originRect,n=this._overlayRect,r=this._viewportRect,i=[],o=0,s=this._preferredPositions;op&&(p=g,d=m)}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}},e.prototype.detach=function(){this._resizeSubscription.unsubscribe()},e.prototype.dispose=function(){this._isDisposed||(this.detach(),this._boundingBox=null,this._positionChanges.complete(),this._isDisposed=!0)},e.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}},e.prototype.withScrollableContainers=function(e){this.scrollables=e},e.prototype.withPositions=function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},e.prototype.withViewportMargin=function(e){return this._viewportMargin=e,this},e.prototype.withFlexibleDimensions=function(e){return void 0===e&&(e=!0),this._hasFlexibleDimensions=e,this},e.prototype.withGrowAfterOpen=function(e){return void 0===e&&(e=!0),this._growAfterOpen=e,this},e.prototype.withPush=function(e){return void 0===e&&(e=!0),this._canPush=e,this},e.prototype.withLockedPosition=function(e){return void 0===e&&(e=!0),this._positionLocked=e,this},e.prototype.setOrigin=function(e){return this._origin=e instanceof mn?e.nativeElement:e,this},e.prototype.withDefaultOffsetX=function(e){return this._offsetX=e,this},e.prototype.withDefaultOffsetY=function(e){return this._offsetY=e,this},e.prototype.withTransformOriginOn=function(e){return this._transformOriginSelector=e,this},e.prototype._getOriginPoint=function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var r=this._isRtl()?e.right:e.left,i=this._isRtl()?e.left:e.right;n="start"==t.originX?r:i}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}},e.prototype._getOverlayPoint=function(e,t,n){var r;return r="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,{x:e.x+r,y:e.y+("center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height)}},e.prototype._getOverlayFit=function(e,t,n,r){var i=e.x,o=e.y,s=this._getOffset(r,"x"),a=this._getOffset(r,"y");s&&(i+=s),a&&(o+=a);var u=0-o,l=o+t.height-n.height,c=this._subtractOverflows(t.width,0-i,i+t.width-n.width),d=this._subtractOverflows(t.height,u,l),p=c*d;return{visibleArea:p,isCompletelyWithinViewport:t.width*t.height===p,fitsInViewportVertically:d===t.height,fitsInViewportHorizontally:c==t.width}},e.prototype._canFitWithFlexibleDimensions=function(e,t,n){if(this._hasFlexibleDimensions){var r=n.bottom-t.y,i=n.right-t.x,o=this._overlayRef.getConfig().minHeight,s=this._overlayRef.getConfig().minWidth;return(e.fitsInViewportVertically||null!=o&&o<=r)&&(e.fitsInViewportHorizontally||null!=s&&s<=i)}},e.prototype._pushOverlayOnScreen=function(e,t){var n=this._viewportRect,r=Math.max(e.x+t.width-n.right,0),i=Math.max(e.y+t.height-n.bottom,0),o=Math.max(n.top-e.y,0),s=Math.max(n.left-e.x,0);return{x:e.x+(t.width<=n.width?s||-r:n.left-e.x),y:e.y+(t.height<=n.height?o||-i:n.top-e.y)}},e.prototype._applyPosition=function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),this._lastPosition=e,this._positionChangeSubscriptions>0){var n=new function(e,t){this.connectionPair=e,this.scrollableViewProperties=t}(e,this._getScrollVisibility());this._positionChanges.next(n)}this._isInitialRender=!1},e.prototype._setTransformOrigin=function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),r=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var i=0;id&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-d/2)}if("end"===t.overlayX&&!l||"start"===t.overlayX&&l)a=u.right-e.x+this._viewportMargin,o=e.x-u.left;else if("start"===t.overlayX&&!l||"end"===t.overlayX&&l)s=e.x,o=u.right-e.x;else{c=Math.min(u.right-e.x,e.x-u.top);var p=this._lastBoundingBoxSize.width;s=e.x-c,(o=2*c)>p&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.x-p/2)}return{top:r,left:s,bottom:i,right:a,width:o,height:n}},e.prototype._setBoundingBoxStyles=function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right="",r.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Mp(n.height),r.top=Mp(n.top),r.bottom=Mp(n.bottom),r.width=Mp(n.width),r.left=Mp(n.left),r.right=Mp(n.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=Mp(i)),o&&(r.maxWidth=Mp(o))}this._lastBoundingBoxSize=n,zh(this._boundingBox.style,r)},e.prototype._resetBoundingBoxStyles=function(){zh(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},e.prototype._resetOverlayElementStyles=function(){zh(this._pane.style,{top:"",left:"",bottom:"",right:"",position:""})},e.prototype._setOverlayElementStyles=function(e,t){var n={};this._hasExactPosition()?(zh(n,this._getExactOverlayY(t,e)),zh(n,this._getExactOverlayX(t,e))):n.position="static";var r="",i=this._getOffset(t,"x"),o=this._getOffset(t,"y");i&&(r+="translateX("+i+"px) "),o&&(r+="translateY("+o+"px)"),n.transform=r.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),zh(this._pane.style,n)},e.prototype._getExactOverlayY=function(e,t){var n={top:null,bottom:null},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect)),"bottom"===e.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=Mp(r.y),n},e.prototype._getExactOverlayX=function(e,t){var n={left:null,right:null},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect)),"right"==(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":n.left=Mp(r.x),n},e.prototype._getScrollVisibility=function(){var e=this._origin.getBoundingClientRect(),t=this._pane.getBoundingClientRect(),n=this.scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Mh(e,n),isOriginOutsideView:Rh(e,n),isOverlayClipped:Mh(t,n),isOverlayOutsideView:Rh(t,n)}},e.prototype._subtractOverflows=function(e){for(var t=[],n=1;n=0},e.prototype.isFocusable=function(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||_f(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)},e.ngInjectableDef=me({factory:function(){return new e(nt(Vp))},token:e,providedIn:"root"}),e}();function _f(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function wf(e){if(!_f(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var Ef=function(){function e(e,t,n,r,i){void 0===i&&(i=!1),this._element=e,this._checker=t,this._ngZone=n,this._document=r,this._hasAttached=!1,this._enabled=!0,i||this.attachAnchors()}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._startAnchor.tabIndex=this._endAnchor.tabIndex=this._enabled?0:-1)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentNode.removeChild(this._endAnchor),this._startAnchor=this._endAnchor=null},e.prototype.attachAnchors=function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",function(){return e.focusLastTabbableElement()})),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",function(){return e.focusFirstTabbableElement()}))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},e.prototype.focusInitialElementWhenReady=function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusInitialElement())})})},e.prototype.focusFirstTabbableElementWhenReady=function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusFirstTabbableElement())})})},e.prototype.focusLastTabbableElementWhenReady=function(){var e=this;return new Promise(function(t){e._executeOnStable(function(){return t(e.focusLastTabbableElement())})})},e.prototype._getRegionBoundary=function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-"+e+"], [cdkFocusRegion"+e+"], [cdk-focus-"+e+"]"),n=0;n=0;n--){var r=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(r)return r}return null},e.prototype._createAnchor=function(){var e=this._document.createElement("div");return e.tabIndex=this._enabled?0:-1,e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e},e.prototype._executeOnStable=function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(ka(1)).subscribe(e)},e}(),Sf=function(){function e(e,t,n){this._checker=e,this._ngZone=t,this._document=n}return e.prototype.create=function(e,t){return void 0===t&&(t=!1),new Ef(e,this._checker,this._ngZone,this._document,t)},e.ngInjectableDef=me({factory:function(){return new e(nt(bf),nt(Ht),nt(Ru))},token:e,providedIn:"root"}),e}(),Cf=function(){function e(e,t){this._ngZone=e,this._platform=t,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return e.prototype.monitor=function(e,t){var n=this;if(void 0===t&&(t=!1),!this._platform.isBrowser)return Sa(null);if(this._elementInfo.has(e)){var r=this._elementInfo.get(e);return r.checkChildren=t,r.subject.asObservable()}var i={unlisten:function(){},checkChildren:t,subject:new oe};this._elementInfo.set(e,i),this._incrementMonitoredElementCount();var o=function(t){return n._onFocus(t,e)},s=function(t){return n._onBlur(t,e)};return this._ngZone.runOutsideAngular(function(){e.addEventListener("focus",o,!0),e.addEventListener("blur",s,!0)}),i.unlisten=function(){e.removeEventListener("focus",o,!0),e.removeEventListener("blur",s,!0)},i.subject.asObservable()},e.prototype.stopMonitoring=function(e){var t=this._elementInfo.get(e);t&&(t.unlisten(),t.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())},e.prototype.focusVia=function(e,t,n){this._setOriginForCurrentEventQueue(t),"function"==typeof e.focus&&e.focus(n)},e.prototype.ngOnDestroy=function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})},e.prototype._registerGlobalListeners=function(){var e=this;if(this._platform.isBrowser){var t=function(){e._lastTouchTarget=null,e._setOriginForCurrentEventQueue("keyboard")},n=function(){e._lastTouchTarget||e._setOriginForCurrentEventQueue("mouse")},r=function(t){null!=e._touchTimeoutId&&clearTimeout(e._touchTimeoutId),e._lastTouchTarget=t.target,e._touchTimeoutId=setTimeout(function(){return e._lastTouchTarget=null},650)},i=function(){e._windowFocused=!0,e._windowFocusTimeoutId=setTimeout(function(){return e._windowFocused=!1})};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",t,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",r,!Fp()||{passive:!0,capture:!0}),window.addEventListener("focus",i)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",t,!0),document.removeEventListener("mousedown",n,!0),document.removeEventListener("touchstart",r,!Fp()||{passive:!0,capture:!0}),window.removeEventListener("focus",i),clearTimeout(e._windowFocusTimeoutId),clearTimeout(e._touchTimeoutId),clearTimeout(e._originTimeoutId)}}},e.prototype._toggleClass=function(e,t,n){n?e.classList.add(t):e.classList.remove(t)},e.prototype._setClasses=function(e,t){this._elementInfo.get(e)&&(this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t))},e.prototype._setOriginForCurrentEventQueue=function(e){var t=this;this._ngZone.runOutsideAngular(function(){t._origin=e,t._originTimeoutId=setTimeout(function(){return t._origin=null})})},e.prototype._wasCausedByTouch=function(e){var t=e.target;return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))},e.prototype._onFocus=function(e,t){var n=this._elementInfo.get(t);if(n&&(n.checkChildren||t===e.target)){var r=this._origin;r||(r=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"),this._setClasses(t,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}},e.prototype._onBlur=function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))},e.prototype._emitOrigin=function(e,t){this._ngZone.run(function(){return e.next(t)})},e.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},e.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},e.ngInjectableDef=me({factory:function(){return new e(nt(Ht),nt(Vp))},token:e,providedIn:"root"}),e}(),xf=function(){},Tf=new ge("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Of=function(){function e(e){this._sanityChecksEnabled=e,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._hasDoneGlobalChecks=!0)}return e.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&rn()&&!this._isTestEnv()},e.prototype._isTestEnv=function(){return this._window&&(this._window.__karma__||this._window.jasmine)},e.prototype._checkDoctypeIsDefined=function(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},e.prototype._checkThemeIsPresent=function(){if(this._document&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}},e.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(this._areChecksEnabled()&&!this._window.Hammer&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},e}();function If(e){return function(e){function t(){for(var t=[],n=0;n visible",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0.0, 0.0, 0.2, 1)"},options:null},{type:1,expr:"* => hidden",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0.4, 0.0, 1, 1)"},options:null}],options:{}}]}});function qf(e){return Po(2,[(e()(),gi(0,0,null,null,3,"div",[["class","mat-tooltip"]],[[2,"mat-tooltip-handset",null],[24,"@state",0]],[[null,"@state.start"],[null,"@state.done"]],function(e,t,n){var r=!0,i=e.component;return"@state.start"===t&&(r=!1!==i._animationStart()&&r),"@state.done"===t&&(r=!1!==i._animationDone(n)&&r),r},null,null)),io(1,278528,null,0,yu,[Wn,qn,mn,fn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t=131072,n=Au,r=[Cn],so(-1,t|=16,null,0,n,n,r)),(e()(),Io(3,null,["",""]))],function(e,t){e(t,1,0,"mat-tooltip",t.component.tooltipClass)},function(e,t){var n=t.component;e(t,0,0,function(e,t,n,r){if(Pn.isWrapped(r)){r=Pn.unwrap(r);var i=e.def.nodes[0].bindingIndex+0,o=Pn.unwrap(e.oldValues[i]);e.oldValues[i]=new Pn(o)}return r}(t,0,0,Wi(t,2).transform(n._isHandset)).matches,n._visibility),e(t,3,0,n.message)});var t,n,r}var Zf=Ni("mat-tooltip-component",tf,function(e){return Po(0,[(e()(),gi(0,0,null,null,1,"mat-tooltip-component",[["aria-hidden","true"]],[[4,"zoom",null]],[["body","click"]],function(e,t,n){var r=!0;return"body:click"===t&&(r=!1!==Wi(e,1)._handleBodyInteraction()&&r),r},qf,Wf)),io(1,49152,null,0,tf,[Cn,eh],null,null)],null,function(e,t){e(t,0,0,"visible"===Wi(t,1)._visibility?1:null)})},{},{},[]),Qf=function(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabel=null,this.autoFocus=!0,this.closeOnNavigation=!0};function Yf(){throw Error("Attempting to attach dialog content after content is already attached")}var Kf=function(e){function t(t,n,r,i,o){var s=e.call(this)||this;return s._elementRef=t,s._focusTrapFactory=n,s._changeDetectorRef=r,s._document=i,s._config=o,s._elementFocusedBeforeDialogWasOpened=null,s._state="enter",s._animationStateChanged=new Ut,s._ariaLabelledBy=null,s}return i(t,e),t.prototype.attachComponentPortal=function(e){return this._portalOutlet.hasAttached()&&Yf(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)},t.prototype.attachTemplatePortal=function(e){return this._portalOutlet.hasAttached()&&Yf(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)},t.prototype._trapFocus=function(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._config.autoFocus&&this._focusTrap.focusInitialElementWhenReady()},t.prototype._restoreFocus=function(){var e=this._elementFocusedBeforeDialogWasOpened;e&&"function"==typeof e.focus&&e.focus(),this._focusTrap&&this._focusTrap.destroy()},t.prototype._savePreviouslyFocusedElement=function(){var e=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return e._elementRef.nativeElement.focus()}))},t.prototype._onAnimationDone=function(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)},t.prototype._onAnimationStart=function(e){this._animationStateChanged.emit(e)},t.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},t}(_h),Xf=0,Jf=function(){function e(e,t,n,r){void 0===r&&(r="mat-dialog-"+Xf++);var i=this;this._overlayRef=e,this._containerInstance=t,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpen=new oe,this._afterClosed=new oe,this._beforeClose=new oe,this._locationChanges=w.EMPTY,t._id=r,t._animationStateChanged.pipe(xa(function(e){return"done"===e.phaseName&&"enter"===e.toState}),ka(1)).subscribe(function(){i._afterOpen.next(),i._afterOpen.complete()}),t._animationStateChanged.pipe(xa(function(e){return"done"===e.phaseName&&"exit"===e.toState}),ka(1)).subscribe(function(){return i._overlayRef.dispose()}),e.detachments().subscribe(function(){i._beforeClose.next(i._result),i._beforeClose.complete(),i._locationChanges.unsubscribe(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),e.keydownEvents().pipe(xa(function(e){return e.keyCode===Lp&&!i.disableClose})).subscribe(function(){return i.close()}),n&&(this._locationChanges=n.subscribe(function(){i._containerInstance._config.closeOnNavigation&&i.close()}))}return e.prototype.close=function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(xa(function(e){return"start"===e.phaseName}),ka(1)).subscribe(function(){t._beforeClose.next(e),t._beforeClose.complete(),t._overlayRef.detachBackdrop()}),this._containerInstance._startExitAnimation()},e.prototype.afterOpen=function(){return this._afterOpen.asObservable()},e.prototype.afterClosed=function(){return this._afterClosed.asObservable()},e.prototype.beforeClose=function(){return this._beforeClose.asObservable()},e.prototype.backdropClick=function(){return this._overlayRef.backdropClick()},e.prototype.keydownEvents=function(){return this._overlayRef.keydownEvents()},e.prototype.updatePosition=function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this},e.prototype.updateSize=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this},e.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},e}(),$f=new ge("MatDialogData"),em=new ge("mat-dialog-default-options"),tm=new ge("mat-dialog-scroll-strategy");function nm(e){return function(){return e.scrollStrategies.block()}}var rm=function(){function e(e,t,n,r,i,o,s){var a,u=this;this._overlay=e,this._injector=t,this._location=n,this._defaultOptions=r,this._scrollStrategy=i,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new oe,this._afterOpenAtThisLevel=new oe,this._ariaHiddenElements=new Map,this.afterAllClosed=(a=function(){return u.openDialogs.length?u._afterAllClosed:u._afterAllClosed.pipe(Yp(void 0))},new A(function(e){var t;try{t=a()}catch(t){return void e.error(t)}return(t?Q(t):wa()).subscribe(e)}))}return Object.defineProperty(e.prototype,"openDialogs",{get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"afterOpen",{get:function(){return this._parentDialog?this._parentDialog.afterOpen:this._afterOpenAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_afterAllClosed",{get:function(){var e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),e.prototype.open=function(e,t){var n=this;if((t=function(e,t){return o({},t,e)}(t,this._defaultOptions||new Qf)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'+t.id+'" exists already. The dialog id must be unique.');var r=this._createOverlay(t),i=this._attachDialogContainer(r,t),s=this._attachDialogContent(e,i,r,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(function(){return n._removeOpenDialog(s)}),this.afterOpen.next(s),s},e.prototype.closeAll=function(){for(var e=this.openDialogs.length;e--;)this.openDialogs[e].close()},e.prototype.getDialogById=function(e){return this.openDialogs.find(function(t){return t.id===e})},e.prototype._createOverlay=function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)},e.prototype._getOverlayConfig=function(e){var t=new Th({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight});return e.backdropClass&&(t.backdropClass=e.backdropClass),t},e.prototype._attachDialogContainer=function(e,t){var n=new Ch(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[Qf,t]])),r=new vh(Kf,t.viewContainerRef,n);return e.attach(r).instance},e.prototype._attachDialogContent=function(e,t,n,r){var i=new Jf(n,t,this._location,r.id);if(r.hasBackdrop&&n.backdropClick().subscribe(function(){i.disableClose||i.close()}),e instanceof En)t.attachTemplatePortal(new bh(e,null,{$implicit:r.data,dialogRef:i}));else{var o=this._createInjector(r,i,t),s=t.attachComponentPortal(new vh(e,void 0,o));i.componentInstance=s.instance}return i.updateSize(r.width,r.height).updatePosition(r.position),i},e.prototype._createInjector=function(e,t,n){var r=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=new WeakMap([[Kf,n],[$f,e.data],[Jf,t]]);return!e.direction||r&&r.get(pf,null)||i.set(pf,{value:e.direction,change:Sa()}),new Ch(r||this._injector,i)},e.prototype._removeOpenDialog=function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},e.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var r=t[n];r===e||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}},e}(),im=0,om=function(){function e(e,t,n){this.dialogRef=e,this._elementRef=t,this._dialog=n,this.ariaLabel="Close dialog"}return e.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=lm(this._elementRef,this._dialog.openDialogs))},e.prototype.ngOnChanges=function(e){var t=e._matDialogClose||e._matDialogCloseResult;t&&(this.dialogResult=t.currentValue)},e}(),sm=function(){function e(e,t,n){this._dialogRef=e,this._elementRef=t,this._dialog=n,this.id="mat-dialog-title-"+im++}return e.prototype.ngOnInit=function(){var e=this;this._dialogRef||(this._dialogRef=lm(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})},e}(),am=function(){},um=function(){};function lm(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}var cm=function(){},dm=Ur({encapsulation:2,styles:[".mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);display:block;padding:24px;border-radius:2px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}@media screen and (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:12px 0;display:flex;flex-wrap:wrap;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button+.mat-button,.mat-dialog-actions .mat-button+.mat-raised-button,.mat-dialog-actions .mat-raised-button+.mat-button,.mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-button+.mat-raised-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"slideDialog",definitions:[{type:0,name:"enter",styles:{type:6,styles:{transform:"none",opacity:1},offset:null},options:void 0},{type:0,name:"void",styles:{type:6,styles:{transform:"translate3d(0, 25%, 0) scale(0.9)",opacity:0},offset:null},options:void 0},{type:0,name:"exit",styles:{type:6,styles:{transform:"translate3d(0, 25%, 0)",opacity:0},offset:null},options:void 0},{type:1,expr:"* => *",animation:{type:4,styles:null,timings:"400ms cubic-bezier(0.25, 0.8, 0.25, 1)"},options:null}],options:{}}]}});function pm(e){return Po(0,[(e()(),mi(0,null,null,0))],null,null)}function hm(e){return Po(0,[wo(402653184,1,{_portalOutlet:0}),(e()(),mi(16777216,null,null,1,null,pm)),io(2,212992,[[1,4]],0,Eh,[Mt,Sn],{portal:[0,"portal"]},null)],function(e,t){e(t,2,0,"")},null)}var fm=Ni("mat-dialog-container",Kf,function(e){return Po(0,[(e()(),gi(0,0,null,null,1,"mat-dialog-container",[["aria-modal","true"],["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@slideDialog",0]],[["component","@slideDialog.start"],["component","@slideDialog.done"]],function(e,t,n){var r=!0;return"component:@slideDialog.start"===t&&(r=!1!==Wi(e,1)._onAnimationStart(n)&&r),"component:@slideDialog.done"===t&&(r=!1!==Wi(e,1)._onAnimationDone(n)&&r),r},hm,dm)),io(1,49152,null,0,Kf,[mn,Sf,Cn,[2,Ru],Qf],null,null)],null,function(e,t){e(t,0,0,Wi(t,1)._id,Wi(t,1)._config.role,Wi(t,1)._config.ariaLabel?null:Wi(t,1)._ariaLabelledBy,Wi(t,1)._config.ariaLabel,Wi(t,1)._config.ariaDescribedBy||null,Wi(t,1)._state)})},{},{},[]),mm=new ge("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}}),gm=[{alias:"xs",mediaQuery:"(min-width: 0px) and (max-width: 599px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"(min-width: 600px)"},{alias:"lt-sm",overlapping:!0,mediaQuery:"(max-width: 599px)"},{alias:"sm",mediaQuery:"(min-width: 600px) and (max-width: 959px)"},{alias:"gt-sm",overlapping:!0,mediaQuery:"(min-width: 960px)"},{alias:"lt-md",overlapping:!0,mediaQuery:"(max-width: 959px)"},{alias:"md",mediaQuery:"(min-width: 960px) and (max-width: 1279px)"},{alias:"gt-md",overlapping:!0,mediaQuery:"(min-width: 1280px)"},{alias:"lt-lg",overlapping:!0,mediaQuery:"(max-width: 1279px)"},{alias:"lg",mediaQuery:"(min-width: 1280px) and (max-width: 1919px)"},{alias:"gt-lg",overlapping:!0,mediaQuery:"(min-width: 1920px)"},{alias:"lt-xl",overlapping:!0,mediaQuery:"(max-width: 1920px)"},{alias:"xl",mediaQuery:"(min-width: 1920px) and (max-width: 5000px)"}],ym="(orientation: landscape) and (min-width: 960px) and (max-width: 1279px)",vm="(orientation: portrait) and (min-width: 600px) and (max-width: 839px)",bm="(orientation: portrait) and (min-width: 840px)",_m="(orientation: landscape) and (min-width: 1280px)",wm={HANDSET:"(orientation: portrait) and (max-width: 599px), (orientation: landscape) and (max-width: 959px)",TABLET:vm+" , "+ym,WEB:bm+", "+_m+" ",HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599px)",TABLET_PORTRAIT:vm+" ",WEB_PORTRAIT:""+bm,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959px)]",TABLET_LANDSCAPE:""+ym,WEB_LANDSCAPE:""+_m},Em=[{alias:"handset",mediaQuery:wm.HANDSET},{alias:"handset.landscape",mediaQuery:wm.HANDSET_LANDSCAPE},{alias:"handset.portrait",mediaQuery:wm.HANDSET_PORTRAIT},{alias:"tablet",mediaQuery:wm.TABLET},{alias:"tablet.landscape",mediaQuery:wm.TABLET},{alias:"tablet.portrait",mediaQuery:wm.TABLET_PORTRAIT},{alias:"web",mediaQuery:wm.WEB,overlapping:!0},{alias:"web.landscape",mediaQuery:wm.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",mediaQuery:wm.WEB_PORTRAIT,overlapping:!0}];function Sm(e){for(var t=[],n=1;n0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}var Tm={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0},Om=new ge("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return Tm}}),Im=new ge("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=nt(mm),t=nt(Om),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e,t){void 0===t&&(t=[]);var n,r={};return e.forEach(function(e){r[e.alias]=e}),t.forEach(function(e){r[e.alias]?Sm(r[e.alias],e):r[e.alias]=e}),(n=Object.keys(r).map(function(e){return r[e]})).forEach(function(e){e.suffix||(e.suffix=e.alias.replace(Cm,"|").split("|").map(xm).join(""),e.overlapping=!!e.overlapping)}),n}((t.disableDefaultBps?[]:gm).concat(t.addOrientationBps?Em:[]),n)}}),km=function(){function e(e){this._registry=e}return Object.defineProperty(e.prototype,"items",{get:function(){return this._registry.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortedItems",{get:function(){var e=this._registry.filter(function(e){return!0===e.overlapping}),t=this._registry.filter(function(e){return!0!==e.overlapping});return e.concat(t)},enumerable:!0,configurable:!0}),e.prototype.findByAlias=function(e){return this._registry.find(function(t){return t.alias==e})||null},e.prototype.findByQuery=function(e){return this._registry.find(function(t){return t.mediaQuery==e})||null},Object.defineProperty(e.prototype,"overlappings",{get:function(){return this._registry.filter(function(e){return 1==e.overlapping})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aliases",{get:function(){return this._registry.map(function(e){return e.alias})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"suffixes",{get:function(){return this._registry.map(function(e){return e.suffix?e.suffix:""})},enumerable:!0,configurable:!0}),e.ngInjectableDef=me({factory:function(){return new e(nt(Im))},token:e,providedIn:"root"}),e}(),Am=function(){function e(e,t,n,r){void 0===e&&(e=!1),void 0===t&&(t="all"),void 0===n&&(n=""),void 0===r&&(r=""),this.matches=e,this.mediaQuery=t,this.mqAlias=n,this.suffix=r}return e.prototype.clone=function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)},e}(),Pm=function(){function e(e,t,n){this._zone=e,this._platformId=t,this._document=n,this._registry=new Map,this._source=new ba(new Am(!0)),this._observable$=this._source.asObservable()}return e.prototype.isActive=function(e){var t=this._registry.get(e);return!!t&&t.matches},e.prototype.observe=function(e){return e&&this.registerQuery(e),this._observable$.pipe(xa(function(t){return!e||t.mediaQuery===e}))},e.prototype.registerQuery=function(e){var t=this,n=function(e){return void 0===e?[]:"string"==typeof e?[e]:(t={},e.filter(function(e){return!t.hasOwnProperty(e)&&(t[e]=!0)}));var t}(e);n.length>0&&(this._prepareQueryCSS(n,this._document),n.forEach(function(e){var n=t._registry.get(e),r=function(n){t._zone.run(function(){var r=new Am(n.matches,e);t._source.next(r)})};n||((n=t._buildMQL(e)).addListener(r),t._registry.set(e,n)),n.matches&&r(n)}))},e.prototype._buildMQL=function(e){return Du(this._platformId)&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}},e.prototype._prepareQueryCSS=function(e,t){var n=e.filter(function(e){return!Rm[e]});if(n.length>0){var r=n.join(", ");try{var i=t.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(t.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+r+" {.fx-query-test{ }}\n")),t.head.appendChild(i),n.forEach(function(e){return Rm[e]=i})}catch(e){console.error(e)}}},e.ngInjectableDef=me({factory:function(){return new e(nt(Ht),nt(wt),nt(Ru))},token:e,providedIn:"root"}),e}(),Rm={};function Mm(e,t){return Sm(e,t?{mqAlias:t.alias,suffix:t.suffix}:{})}var Nm=function(){},Dm=function(){function e(e,t){this.breakpoints=e,this.mediaWatcher=t,this.filterOverlaps=!0,this._registerBreakPoints(),this.observable$=this._buildObservable()}return e.prototype.isActive=function(e){var t=this._toMediaQuery(e);return this.mediaWatcher.isActive(t)},e.prototype.subscribe=function(e,t,n){return this.observable$.subscribe(e,t,n)},e.prototype.asObservable=function(){return this.observable$},e.prototype._registerBreakPoints=function(){var e=this.breakpoints.sortedItems.map(function(e){return e.mediaQuery});this.mediaWatcher.registerQuery(e)},e.prototype._buildObservable=function(){var e=this,t=this;return this.mediaWatcher.observe().pipe(xa(function(e){return!0===e.matches}),xa(function(n){var r=e.breakpoints.findByQuery(n.mediaQuery);return!r||!(t.filterOverlaps&&r.overlapping)}),G(function(t){return Mm(t,e._findByQuery(t.mediaQuery))}))},e.prototype._findByAlias=function(e){return this.breakpoints.findByAlias(e)},e.prototype._findByQuery=function(e){return this.breakpoints.findByQuery(e)},e.prototype._toMediaQuery=function(e){var t=this._findByAlias(e)||this._findByQuery(e);return t?t.mediaQuery:e},e.ngInjectableDef=me({factory:function(){return new e(nt(km),nt(Pm))},token:e,providedIn:"root"}),e}(),Lm=function(){},jm=function(){function e(){this.stylesheet=new Map}return e.prototype.addStyleToElement=function(e,t,n){var r=this.stylesheet.get(e);r?r.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))},e.prototype.clearStyles=function(){this.stylesheet.clear()},e.prototype.getStyleForElement=function(e,t){var n=this.stylesheet.get(e),r="";if(n){var i=n.get(t);"number"!=typeof i&&"string"!=typeof i||(r=i+"")}return r},e.ngInjectableDef=me({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Vm=new ge("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),Fm=["row","column","row-reverse","column-reverse"],zm=function(){function e(e,t,n){this._options=e,this._mediaMonitor=t,this._onMediaChanges=n,this._subscribers=[],this._registryMap=this._buildRegistryMap(),this._subscribers=this._configureChangeObservers()}return Object.defineProperty(e.prototype,"registryFromLargest",{get:function(){return this._registryMap.slice().reverse()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mediaMonitor",{get:function(){return this._mediaMonitor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedInputKey",{get:function(){return this._activatedInputKey||this._options.baseKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedInput",{get:function(){var e=this.activatedInputKey;return this.hasKeyValue(e)?this._lookupKeyValue(e):this._options.defaultValue},enumerable:!0,configurable:!0}),e.prototype.hasKeyValue=function(e){return void 0!==this._options.inputKeys[e]},e.prototype.destroy=function(){this._subscribers.forEach(function(e){e.unsubscribe()}),this._subscribers=[]},e.prototype._configureChangeObservers=function(){var e=this,t=[];return this._registryMap.forEach(function(n){e._keyInUse(n.key)&&t.push(e.mediaMonitor.observe(n.alias).pipe(G(function(t){return(t=t.clone()).property=e._options.baseKey,t})).subscribe(function(t){e._onMonitorEvents(t)}))}),t},e.prototype._buildRegistryMap=function(){var e=this;return this.mediaMonitor.breakpoints.map(function(t){return Sm({},t,{baseKey:e._options.baseKey,key:e._options.baseKey+t.suffix})}).filter(function(t){return e._keyInUse(t.key)})},e.prototype._onMonitorEvents=function(e){e.property==this._options.baseKey&&(e.value=this._calculateActivatedValue(e),this._onMediaChanges(e))},e.prototype._keyInUse=function(e){return void 0!==this._lookupKeyValue(e)},e.prototype._calculateActivatedValue=function(e){var t=this._options.baseKey+e.suffix,n=this._activatedInputKey;return this._activatedInputKey=this._validateInputKey(n=e.matches?t:n==t?"":n),this.activatedInput},e.prototype._validateInputKey=function(e){var t=this,n=function(e){return!t._keyInUse(e)};return n(e)&&this.mediaMonitor.activeOverlaps.some(function(r){var i=t._options.baseKey+r.suffix;return!n(i)&&(e=i,!0)}),e},e.prototype._lookupKeyValue=function(e){return this._options.inputKeys[e]},e}(),Bm=function(){function e(e,t,n){this._mediaMonitor=e,this._elementRef=t,this._styler=n,this._inputMap={},this._hasInitialized=!1}return Object.defineProperty(e.prototype,"hasMediaQueryListener",{get:function(){return!!this._mqActivation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedValue",{get:function(){return this._mqActivation?this._mqActivation.activatedInput:void 0},set:function(e){var t,n="baseKey";this._mqActivation&&(t=this._inputMap[n=this._mqActivation.activatedInputKey],this._inputMap[n]=e);var r,i=new Rn(t,e,!1);this.ngOnChanges(((r={})[n]=i,r))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return this._elementRef.nativeElement.parentNode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nativeElement",{get:function(){return this._elementRef.nativeElement},enumerable:!0,configurable:!0}),e.prototype._queryInput=function(e){return this._inputMap[e]},e.prototype.ngOnInit=function(){this._display=this._getDisplayStyle(),this._hasInitialized=!0},e.prototype.ngOnChanges=function(e){throw new Error("BaseDirective::ngOnChanges should be overridden in subclass: "+e)},e.prototype.ngOnDestroy=function(){this._mqActivation&&this._mqActivation.destroy(),delete this._mediaMonitor},e.prototype._getDefaultVal=function(e,t){var n=this._queryInput(e);return void 0!==n&&null!==n&&""!==n?n:t},e.prototype._getDisplayStyle=function(e){return void 0===e&&(e=this.nativeElement),this._styler.lookupStyle(e,"display")},e.prototype._getAttributeValue=function(e,t){return void 0===t&&(t=this.nativeElement),this._styler.lookupAttributeValue(t,e)},e.prototype._getFlexFlowDirection=function(e,t){void 0===t&&(t=!1);var n,r="row";if(e&&(r=(n=this._styler.getFlowDirection(e))[0],!n[1]&&t)){var i=function(e){var t,n,r=function(e){var t=(e=e?e.toLowerCase():"").split(" "),n=t[0],r=t[1],i=t[2];return Fm.find(function(e){return e===n})||(n=Fm[0]),"inline"===r&&(r="inline"!==i?i:"",i="inline"),[n,function(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}(r),!!i]}(e);return n=r[2],void 0===(t=r[1])&&(t=null),void 0===n&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":r[0],"flex-wrap":t||null}}(r);this._styler.applyStyleToElements(i,[e])}return r.trim()||"row"},e.prototype._applyStyleToElement=function(e,t,n){void 0===n&&(n=this.nativeElement),this._styler.applyStyleToElement(n,e,t)},e.prototype._applyStyleToElements=function(e,t){this._styler.applyStyleToElements(e,t)},e.prototype._cacheInput=function(e,t){if("object"==typeof t)for(var n in t)this._inputMap[n]=t[n];else e&&(this._inputMap[e]=t)},e.prototype._listenForMediaQueryChanges=function(e,t,n){if(!this._mqActivation){var r=new function(e,t,n){this.baseKey=e,this.defaultValue=t,this.inputKeys=n}(e,t,this._inputMap);this._mqActivation=new zm(r,this._mediaMonitor,function(e){return n(e)})}return this._mqActivation},Object.defineProperty(e.prototype,"childrenNodes",{get:function(){for(var e=this.nativeElement.children,t=[],n=e.length;n--;)t[n]=e[n];return t},enumerable:!0,configurable:!0}),e.prototype.hasResponsiveAPI=function(e){return Object.keys(this._inputMap).length-(this._inputMap[e]?1:0)>0},e.prototype.hasKeyValue=function(e){return this._mqActivation.hasKeyValue(e)},Object.defineProperty(e.prototype,"hasInitialized",{get:function(){return this._hasInitialized},enumerable:!0,configurable:!0}),e}(),Um=function(){function e(e,t){this._breakpoints=e,this._matchMedia=t,this._registerBreakpoints()}return Object.defineProperty(e.prototype,"breakpoints",{get:function(){return this._breakpoints.items.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeOverlaps",{get:function(){var e=this;return this._breakpoints.overlappings.reverse().filter(function(t){return e._matchMedia.isActive(t.mediaQuery)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){var e=this,t=null;this.breakpoints.reverse().forEach(function(n){""!==n.alias&&!t&&e._matchMedia.isActive(n.mediaQuery)&&(t=n)});var n=this.breakpoints[0];return t||(this._matchMedia.isActive(n.mediaQuery)?n:null)},enumerable:!0,configurable:!0}),e.prototype.isActive=function(e){var t=this._breakpoints.findByAlias(e)||this._breakpoints.findByQuery(e);return this._matchMedia.isActive(t?t.mediaQuery:e)},e.prototype.observe=function(e){var t=this._breakpoints.findByAlias(e||"")||this._breakpoints.findByQuery(e||"");return this._matchMedia.observe(t?t.mediaQuery:e).pipe(G(function(e){return Mm(e,t)}),xa(function(e){return!t||""!==e.mqAlias}))},e.prototype._registerBreakpoints=function(){var e=this._breakpoints.sortedItems.map(function(e){return e.mediaQuery});this._matchMedia.registerQuery(e)},e.ngInjectableDef=me({factory:function(){return new e(nt(km),nt(Pm))},token:e,providedIn:"root"}),e}();function Hm(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=n;break;case"flex-direction":e["-webkit-flex-direction"]=n=n||"row",e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(n)?"0":n}}return e}var Gm=function(){function e(e,t,n,r){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=n,this.layoutConfig=r}return e.prototype.applyStyleToElement=function(e,t,n){var r={};"string"==typeof t&&(r[t]=n,t=r),r=this.layoutConfig.disableVendorPrefixes?t:Hm(t),this._applyMultiValueStyleToElement(r,e)},e.prototype.applyStyleToElements=function(e,t){var n=this;void 0===t&&(t=[]);var r=this.layoutConfig.disableVendorPrefixes?e:Hm(e);t.forEach(function(e){n._applyMultiValueStyleToElement(r,e)})},e.prototype.getFlowDirection=function(e){var t=this.lookupStyle(e,"flex-direction");t===Wm&&(t="");var n=this.lookupInlineStyle(e,"flex-direction")||Lu(this._platformId)&&this._serverModuleLoaded?t:"";return[t||"row",n]},e.prototype.lookupAttributeValue=function(e,t){return e.getAttribute(t)||""},e.prototype.lookupInlineStyle=function(e,t){return Du(this._platformId)?e.style[t]:this._getServerStyle(e,t)},e.prototype.lookupStyle=function(e,t,n){void 0===n&&(n=!1);var r="";return e&&((r=this.lookupInlineStyle(e,t))||(Du(this._platformId)?n||(r=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(e,t)))),r?r.trim():Wm},e.prototype._applyMultiValueStyleToElement=function(e,t){var n=this;Object.keys(e).sort().forEach(function(r){var i=Array.isArray(e[r])?e[r]:[e[r]];i.sort();for(var o=0,s=i;o0){var s=o.indexOf(":");if(-1===s)throw new Error("Invalid CSS style: "+o);t[o.substr(0,s).trim()]=o.substr(s+1).trim()}}return t},e.prototype._writeStyleAttribute=function(e,t){var n="";for(var r in t)t[r]&&(n+=r+":"+t[r]+";");e.setAttribute("style",n)},e.ngInjectableDef=me({factory:function(){return new e(nt(jm,8),nt(Vm,8),nt(wt),nt(Om))},token:e,providedIn:"root"}),e}(),Wm="block";function qm(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var Zm=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(ih),Qm=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(sh))(Zm);function Ym(e,t){return new A(t?function(n){return t.schedule(Km,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function Km(e){e.subscriber.error(e.error)}var Xm=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Sa(this.value);case"E":return Ym(this.error);case"C":return wa()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),Jm=function(e){function t(t,n,r){void 0===r&&(r=0);var i=e.call(this,t)||this;return i.scheduler=n,i.delay=r,i}return i(t,e),t.dispatch=function(e){e.notification.observe(e.destination),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new $m(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(Xm.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(Xm.createError(e))},t.prototype._complete=function(){this.scheduleMessage(Xm.createComplete())},t}(C),$m=function(e,t){this.notification=e,this.destination=t},eg=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return i(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new tg(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new ne;if(this.isStopped||this.hasError?t=w.EMPTY:(this.observers.push(e),t=new re(this,e)),i&&e.add(e=new Jm(e,i)),n)for(var s=0;st&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},t}(oe),tg=function(e,t){this.time=e,this.value=t},ng="inline",rg=["row","column","row-reverse","column-reverse"];function ig(e){var t=(e=e?e.toLowerCase():"").split(" "),n=t[0],r=t[1],i=t[2];return rg.find(function(e){return e===n})||(n=rg[0]),r===ng&&(r=i!==ng?i:"",i=ng),[n,function(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}(r),!!i]}function og(e){return ig(e)[0].indexOf("row")>-1}var sg=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i._announcer=new eg(1),i.layout$=i._announcer.asObservable(),i}return i(t,e),Object.defineProperty(t.prototype,"layout",{set:function(e){this._cacheInput("layout",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutXs",{set:function(e){this._cacheInput("layoutXs",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutSm",{set:function(e){this._cacheInput("layoutSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutMd",{set:function(e){this._cacheInput("layoutMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutLg",{set:function(e){this._cacheInput("layoutLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutXl",{set:function(e){this._cacheInput("layoutXl",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutGtXs",{set:function(e){this._cacheInput("layoutGtXs",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutGtSm",{set:function(e){this._cacheInput("layoutGtSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutGtMd",{set:function(e){this._cacheInput("layoutGtMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutGtLg",{set:function(e){this._cacheInput("layoutGtLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutLtSm",{set:function(e){this._cacheInput("layoutLtSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutLtMd",{set:function(e){this._cacheInput("layoutLtMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutLtLg",{set:function(e){this._cacheInput("layoutLtLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layoutLtXl",{set:function(e){this._cacheInput("layoutLtXl",e)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){(null!=e.layout||this._mqActivation)&&this._updateWithDirection()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("layout","row",function(e){t._updateWithDirection(e.value)}),this._updateWithDirection()},t.prototype._updateWithDirection=function(e){e=e||this._queryInput("layout")||"row",this._mqActivation&&(e=this._mqActivation.activatedInput);var t=function(e){var t=ig(e);return function(e,n,r){return void 0===n&&(n=null),void 0===r&&(r=!1),{display:r?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t[0],"flex-wrap":n||null}}(0,t[1],t[2])}(e||"");this._applyStyleToElement(t),this._announcer.next({direction:t["flex-direction"],wrap:!!t["flex-wrap"]&&"nowrap"!==t["flex-wrap"]})},t}(Bm),ag=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t,n,s)||this;return a._zone=i,a._directionality=o,a._layout="row",r&&(a._layoutWatcher=r.layout$.subscribe(a._onLayoutChange.bind(a))),a._directionWatcher=a._directionality.change.subscribe(a._updateWithValue.bind(a)),a}return i(t,e),Object.defineProperty(t.prototype,"gap",{set:function(e){this._cacheInput("gap",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapXs",{set:function(e){this._cacheInput("gapXs",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapSm",{set:function(e){this._cacheInput("gapSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapMd",{set:function(e){this._cacheInput("gapMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapLg",{set:function(e){this._cacheInput("gapLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapXl",{set:function(e){this._cacheInput("gapXl",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapGtXs",{set:function(e){this._cacheInput("gapGtXs",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapGtSm",{set:function(e){this._cacheInput("gapGtSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapGtMd",{set:function(e){this._cacheInput("gapGtMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapGtLg",{set:function(e){this._cacheInput("gapGtLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapLtSm",{set:function(e){this._cacheInput("gapLtSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapLtMd",{set:function(e){this._cacheInput("gapLtMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapLtLg",{set:function(e){this._cacheInput("gapLtLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gapLtXl",{set:function(e){this._cacheInput("gapLtXl",e)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){(null!=e.gap||this._mqActivation)&&this._updateWithValue()},t.prototype.ngAfterContentInit=function(){var e=this;this._watchContentChanges(),this._listenForMediaQueryChanges("gap","0",function(t){e._updateWithValue(t.value)}),this._updateWithValue()},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this._layoutWatcher&&this._layoutWatcher.unsubscribe(),this._observer&&this._observer.disconnect(),this._directionWatcher&&this._directionWatcher.unsubscribe()},t.prototype._watchContentChanges=function(){var e=this;this._zone.runOutsideAngular(function(){"undefined"!=typeof MutationObserver&&(e._observer=new MutationObserver(function(t){t.some(function(e){return e.addedNodes&&e.addedNodes.length>0||e.removedNodes&&e.removedNodes.length>0})&&e._updateWithValue()}),e._observer.observe(e.nativeElement,{childList:!0}))})},t.prototype._onLayoutChange=function(e){var t=this;this._layout=(e.direction||"").toLowerCase(),rg.find(function(e){return e===t._layout})||(this._layout="row"),this._updateWithValue()},t.prototype._updateWithValue=function(e){var t=this,n=e||this._queryInput("gap")||"0";this._mqActivation&&(n=this._mqActivation.activatedInput);var r=this.childrenNodes.filter(function(e){return 1===e.nodeType&&"none"!=t._getDisplayStyle(e)}).sort(function(e,n){var r=+t._styler.lookupStyle(e,"order"),i=+t._styler.lookupStyle(n,"order");return isNaN(r)||isNaN(i)||r===i?0:r>i?1:-1});if(r.length>0)if(n.endsWith(ug))n=n.substring(0,n.indexOf(ug)),this._applyStyleToElements(this._buildGridPadding(n),r),this._applyStyleToElement(this._buildGridMargin(n));else{var i=r.pop();this._applyStyleToElements(this._buildCSS(n),r),this._applyStyleToElements(this._buildCSS(),[i])}},t.prototype._buildGridPadding=function(e){var t="0px",n="0px";return"rtl"===this._directionality.value?n=e:t=e,{padding:"0px "+t+" "+e+" "+n}},t.prototype._buildGridMargin=function(e){var t="0px",n="0px";return"rtl"===this._directionality.value?n="-"+e:t="-"+e,{margin:"0px "+t+" -"+e+" "+n}},t.prototype._buildCSS=function(e){void 0===e&&(e=null);var t,n={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};switch(this._layout){case"column":t="margin-bottom";break;case"column-reverse":t="margin-top";break;case"row":t="rtl"===this._directionality.value?"margin-left":"margin-right";break;case"row-reverse":t="rtl"===this._directionality.value?"margin-right":"margin-left";break;default:t="rtl"===this._directionality.value?"margin-left":"margin-right"}return n[t]=e,n},t}(Bm),ug=" grid";function lg(e){for(var t=[],n=1;n0)r[2]=qm(e.substring(i).trim()),2==(o=e.substr(0,i).trim().split(" ")).length&&(r[0]=o[0],r[1]=o[1]);else if(0==i)r[2]=qm(e.trim());else{var o;r=3===(o=e.split(" ")).length?o:[t,n,e]}return r}(String(t).replace(";",""),this._queryInput("grow"),this._queryInput("shrink"));this._applyStyleToElement(this._validateValue.apply(this,n))},t.prototype._validateValue=function(e,t,n){var r=this._getFlexFlowDirection(this.parentElement,this.layoutConfig.addFlexToParent).indexOf("column")>-1?"column":"row",i=og(r)?"max-width":"max-height",o=og(r)?"min-width":"min-height",s=String(n).indexOf("calc")>-1,a=s||"auto"==n,u=String(n).indexOf("%")>-1&&!s,l=String(n).indexOf("px")>-1||String(n).indexOf("em")>-1||String(n).indexOf("vw")>-1||String(n).indexOf("vh")>-1,c=String(n).indexOf("px")>-1||a,d=s||l;e="0"==e?0:e,t="0"==t?0:t;var p=!e&&!t,h={},f={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(n||""){case"":n="row"===r?"0%":this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":e=0,n="auto";break;case"grow":n="100%";break;case"noshrink":t=0,n="auto";break;case"auto":break;case"none":e=0,t=0,n="auto";break;default:d||u||isNaN(n)||(n+="%"),"0%"===n&&(d=!0),"0px"===n&&(n="0%"),h=lg(f,s?{"flex-grow":e,"flex-shrink":t,"flex-basis":d?n:"100%"}:{flex:e+" "+t+" "+(d?n:"100%")})}return h.flex||h["flex-grow"]||(h=lg(f,s?{"flex-grow":e,"flex-shrink":t,"flex-basis":n}:{flex:e+" "+t+" "+n})),"0%"!==n&&"0px"!==n&&"0.000000001px"!==n&&"auto"!==n&&(h[o]=p||c&&e?n:null,h[i]=p||!a&&t?n:null),h[o]||h[i]?this._layout&&this._layout.wrap&&(h[s?"flex-basis":"flex"]=h[i]?s?h[i]:e+" "+t+" "+h[i]:s?h[o]:e+" "+t+" "+h[o]):h=lg(f,s?{"flex-grow":e,"flex-shrink":t,"flex-basis":n}:{flex:e+" "+t+" "+n}),lg(h,{"box-sizing":"border-box"})},t}(Bm),dg=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return i(t,e),Object.defineProperty(t.prototype,"order",{set:function(e){this._cacheInput("order",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderXs",{set:function(e){this._cacheInput("orderXs",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderSm",{set:function(e){this._cacheInput("orderSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderMd",{set:function(e){this._cacheInput("orderMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderLg",{set:function(e){this._cacheInput("orderLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderXl",{set:function(e){this._cacheInput("orderXl",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderGtXs",{set:function(e){this._cacheInput("orderGtXs",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderGtSm",{set:function(e){this._cacheInput("orderGtSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderGtMd",{set:function(e){this._cacheInput("orderGtMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderGtLg",{set:function(e){this._cacheInput("orderGtLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderLtSm",{set:function(e){this._cacheInput("orderLtSm",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderLtMd",{set:function(e){this._cacheInput("orderLtMd",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderLtLg",{set:function(e){this._cacheInput("orderLtLg",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orderLtXl",{set:function(e){this._cacheInput("orderLtXl",e)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){(null!=e.order||this._mqActivation)&&this._updateWithValue()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("order","0",function(e){t._updateWithValue(e.value)}),this._updateWithValue()},t.prototype._updateWithValue=function(e){e=e||this._queryInput("order")||"0",this._mqActivation&&(e=this._mqActivation.activatedInput),this._applyStyleToElement(this._buildCSS(e))},t.prototype._buildCSS=function(e){return e=parseInt(e,10),{order:isNaN(e)?0:e}},t}(Bm),pg=function(){},hg=function(){},fg=function(){},mg=function(){},gg=function(){},yg=Ur({encapsulation:2,styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:block;position:relative;padding:24px;border-radius:2px}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}.mat-card.mat-card-flat{box-shadow:none}@media screen and (-ms-high-contrast:active){.mat-card{outline:solid 1px}}.mat-card-actions,.mat-card-content,.mat-card-subtitle,.mat-card-title{display:block;margin-bottom:16px}.mat-card-actions{margin-left:-16px;margin-right:-16px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 48px);margin:0 -24px 16px -24px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-footer{display:block;margin:0 -24px -24px -24px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button{margin:0 4px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header-text{margin:0 8px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0}.mat-card-lg-image,.mat-card-md-image,.mat-card-sm-image{margin:-8px 0}.mat-card-title-group{display:flex;justify-content:space-between;margin:0 -8px}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}@media (max-width:599px){.mat-card{padding:24px 16px}.mat-card-actions{margin-left:-8px;margin-right:-8px}.mat-card-image{width:calc(100% + 32px);margin:16px -16px}.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}.mat-card-header{margin:-8px 0 0 0}.mat-card-footer{margin-left:-16px;margin-right:-16px}}.mat-card-content>:first-child,.mat-card>:first-child{margin-top:0}.mat-card-content>:last-child:not(.mat-card-footer),.mat-card>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-24px}.mat-card>.mat-card-actions:last-child{margin-bottom:-16px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child{margin-left:0;margin-right:0}.mat-card-subtitle:not(:first-child),.mat-card-title:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],data:{}});function vg(e){return Po(2,[To(null,0),To(null,1)],null,null)}function bg(){for(var e,t=[],n=0;ne?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return Sg(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return Sg(e.value)?null:xg.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(Sg(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(Sg(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(Og);return 0==t.length?null:function(e){return kg(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(Og);return 0==t.length?null:function(e){return bg(function(e,n){return t.map(function(t){return t(e)})}(e).map(Ig)).pipe(G(kg))}},e}();function Og(e){return null!=e}function Ig(e){var t=ht(e)?Q(e):e;if(!ft(t))throw new Error("Expected validator to return Promise or Observable.");return t}function kg(e){var t=e.reduce(function(e,t){return null!=t?o({},e,t):e},{});return 0===Object.keys(t).length?null:t}var Ag=new ge("NgValueAccessor"),Pg=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),Rg=new ge("CompositionEventMode"),Mg=function(){function e(e,t,n){var r;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Vu()?Vu().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function Ng(e){return e.validate?function(t){return e.validate(t)}:e}function Dg(e){return e.validate?function(t){return e.validate(t)}:e}var Lg=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function jg(){throw new Error("unimplemented")}var Vg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return i(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return jg()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return jg()},enumerable:!0,configurable:!0}),t}(wg),Fg=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),zg=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(Vg),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e}(),Bg=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),Ug='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Hg='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Gg='\n
\n
\n \n
\n
',Wg=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Ug)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+Hg+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Gg)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Ug)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Hg)},e.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e.ngModelWarning=function(e){console.warn("\n It looks like you're using ngModel on the same form field as "+e+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===e?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},e}();function qg(e,t){return u(t.path,[e])}function Zg(e,t){e||Xg(t,"Cannot find control with"),t.valueAccessor||Xg(t,"No value accessor for form control with"),e.validator=Tg.compose([e.validator,t.validator]),e.asyncValidator=Tg.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Qg(e,t)})}(e,t),function(e,t){e.registerOnChange(function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Qg(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function Qg(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Yg(e,t){null==e&&Xg(t,"Cannot find control with"),e.validator=Tg.compose([e.validator,t.validator]),e.asyncValidator=Tg.composeAsync([e.asyncValidator,t.asyncValidator])}function Kg(e){return Xg(e,"There is no FormControl instance attached to form control element with")}function Xg(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function Jg(e){return null!=e?Tg.compose(e.map(Ng)):null}function $g(e){return null!=e?Tg.composeAsync(e.map(Dg)):null}var ey=[Pg,Bg,Lg,function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Ie}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){try{for(var t=s(Array.from(this._optionMap.keys())),n=t.next();!n.done;n=t.next()){var r=n.value;if(this._compareWith(this._optionMap.get(r),e))return r}}catch(e){i={error:e}}finally{try{n&&!n.done&&(o=t.return)&&o.call(t)}finally{if(i)throw i.error}}return null;var i,o},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},e}(),function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Ie}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o-1&&e.splice(n,1)}var ry=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return qg(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Jg(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return $g(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(Eg),iy=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),oy=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t}(iy),sy=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t}(iy);function ay(e){var t=ly(e)?e.validators:e;return Array.isArray(t)?Jg(t):t||null}function uy(e,t){var n=ly(t)?t.asyncValidators:e;return Array.isArray(n)?$g(n):n||null}function ly(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var cy=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=ay(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=uy(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(o({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(t){t.enable(o({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=Ig(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof py?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof hy&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new Ut,this.statusChanges=new Ut},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){ly(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),dy=function(e){function t(t,n,r){void 0===t&&(t=null);var i=e.call(this,ay(n),uy(r,n))||this;return i._onChange=[],i._applyFormState(t),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return i(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(cy),py=function(e){function t(t,n,r){var i=e.call(this,ay(n),uy(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof dy?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(r,i){n=n||t.contains(i)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){try{for(var e=s(Object.keys(this.controls)),t=e.next();!t.done;t=e.next())if(this.controls[t.value].enabled)return!1}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return Object.keys(this.controls).length>0||this.disabled;var n,r},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(cy),hy=function(e){function t(t,n,r){var i=e.call(this,ay(n),uy(r,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return i(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof dy?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){try{for(var e=s(this.controls),t=e.next();!t.done;t=e.next())if(t.value.enabled)return!1}catch(e){n={error:e}}finally{try{t&&!t.done&&(r=e.return)&&r.call(e)}finally{if(n)throw n.error}}return this.controls.length>0||this.disabled;var n,r},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(cy),fy=Promise.resolve(null),my=function(e){function t(t,n){var r=e.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Ut,r.form=new py({},Jg(t),$g(n)),r}return i(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Zg(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ny(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path),r=new py({});Yg(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;fy.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;fy.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,ty(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(Eg),gy=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+Ug+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+Hg+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Gg)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+Hg+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Gg)},e}(),yy=function(e){function t(t,n,r){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=r,i}return i(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof my||gy.modelGroupParentException()},t}(ry),vy=Promise.resolve(null),by=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.control=new dy,o._registered=!1,o.update=new Ut,o._parent=t,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||Xg(e,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return t.forEach(function(t){var o;t.constructor===Mg?n=t:(o=t,ey.some(function(e){return o.constructor===e})?(r&&Xg(e,"More than one built-in value accessor matches form control with"),r=t):(i&&Xg(e,"More than one custom value accessor matches form control with"),i=t))}),i||r||n||(Xg(e,"No valid value accessor for form control with"),null)}(o,i),o}return i(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Ie(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?qg(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Jg(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return $g(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){Zg(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof yy)&&this._parent instanceof ry?gy.formGroupNameException():this._parent instanceof yy||this._parent instanceof my||gy.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||gy.missingNameException()},t.prototype._updateValue=function(e){var t=this;vy.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;vy.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}(Vg),_y=function(e){function t(t,n){var r=e.call(this)||this;return r._validators=t,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Ut,r}return i(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return Zg(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){ny(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);Yg(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);Yg(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,ty(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange(function(){return Kg(t)}),t.valueAccessor.registerOnTouched(function(){return Kg(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&Zg(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=Jg(this._validators);this.form.validator=Tg.compose([this.form.validator,e]);var t=$g(this._asyncValidators);this.form.asyncValidator=Tg.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||Wg.missingFormException()},t}(Eg),wy=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?Tg.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),Ey=function(){},Sy=function(){},Cy=function(){},xy=0,Ty=function(e){function t(t,n,r,i,o,s,a){var u=e.call(this,t)||this;return u._focusMonitor=r,u._changeDetectorRef=i,u._ngZone=s,u._animationMode=a,u.onChange=function(e){},u.onTouched=function(){},u._uniqueId="mat-slide-toggle-"+ ++xy,u._required=!1,u._checked=!1,u._dragging=!1,u.name=null,u.id=u._uniqueId,u.labelPosition="after",u.ariaLabel=null,u.ariaLabelledby=null,u.change=new Ut,u.tabIndex=parseInt(o)||0,u}return i(t,e),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=Pp(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._checked=Pp(e),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var e=this;this._focusMonitor.monitor(this._inputElement.nativeElement).subscribe(function(t){return e._onInputFocusChange(t)})},t.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._inputElement.nativeElement)},t.prototype._onChangeEvent=function(e){e.stopPropagation(),this._dragging?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())},t.prototype._onInputClick=function(e){e.stopPropagation()},t.prototype.writeValue=function(e){this.checked=!!e},t.prototype.registerOnChange=function(e){this.onChange=e},t.prototype.registerOnTouched=function(e){this.onTouched=e},t.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},t.prototype.focus=function(){this._focusMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},t.prototype.toggle=function(){this.checked=!this.checked,this.onChange(this.checked)},t.prototype._onInputFocusChange=function(e){this._focusRipple||"keyboard"!==e?e||(this.onTouched(),this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)):this._focusRipple=this._ripple.launch(0,0,{persistent:!0})},t.prototype._emitChangeEvent=function(){this.onChange(this.checked),this.change.emit(new function(e,t){this.source=e,this.checked=t}(this,this.checked))},t.prototype._getDragPercentage=function(e){var t=e/this._thumbBarWidth*100;return this._previousChecked&&(t+=100),Math.max(0,Math.min(t,100))},t.prototype._onDragStart=function(){if(!this.disabled&&!this._dragging){var e=this._thumbEl.nativeElement;this._thumbBarWidth=this._thumbBarEl.nativeElement.clientWidth-e.clientWidth,e.classList.add("mat-dragging"),this._previousChecked=this.checked,this._dragging=!0}},t.prototype._onDrag=function(e){this._dragging&&(this._dragPercentage=this._getDragPercentage(e.deltaX),this._thumbEl.nativeElement.style.transform="translate3d("+this._dragPercentage/100*this._thumbBarWidth+"px, 0, 0)")},t.prototype._onDragEnd=function(){var e=this;if(this._dragging){var t=this._dragPercentage>50;t!==this.checked&&(this.checked=t,this._emitChangeEvent()),this._ngZone.runOutsideAngular(function(){return setTimeout(function(){e._dragging&&(e._dragging=!1,e._thumbEl.nativeElement.classList.remove("mat-dragging"),e._thumbEl.nativeElement.style.transform="")})})}},t.prototype._onLabelTextChange=function(){this._changeDetectorRef.markForCheck()},t}(function(e,t){return void 0===t&&(t=0),function(e){function n(){for(var n=[],r=0;r *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var o=i[1],s=i[2],a=i[3];t.push(wv(o,a)),"<"!=s[0]||o==vv&&a==vv||t.push(wv(a,o))}(e,i,r)}):i.push(n),i),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:Ov(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return gv(n,e,t)}),options:Ov(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,r=t.currentTime,i=0,o=e.steps.map(function(e){t.currentTime=r;var o=gv(n,e,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:3,steps:o,options:Ov(e.options)}},e.prototype.visitAnimate=function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Iv(ev(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=Iv(0,0,"");return i.dynamic=!0,i.strValue=r,i}return Iv((n=n||ev(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:Tp({});if(5==i.type)n=this.visitKeyframes(i,t);else{var o=e.styles,s=!1;if(!o){s=!0;var a={};r.easing&&(a.easing=r.easing),o=Tp(a)}t.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,t);u.isEmptyStep=s,n=u}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==Cp?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(Tv(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t)if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,o=t.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,u,l=t.collectedStyles[t.currentQuerySelector],c=l[r],d=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(t.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),d=!1),o=c.startTime),d&&(l[r]={startTime:o,endTime:i}),t.options&&(s=t.errors,a=t.options.params||{},(u=lv(e[r])).length&&u.forEach(function(e){a.hasOwnProperty(e)||s.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],s=!1,a=!1,u=0,l=e.steps.map(function(e){var r=n._makeStyleAst(e,t),l=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(Tv(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(Tv(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=l&&(i++,c=r.offset=l),a=a||c<0||c>1,s=s||c0&&i0?i==p?1:d*i:o[i],a=s*m;t.currentTime=h+f.delay+a,f.duration=a,n._validateStyleAst(e,t),e.offset=s,r.styles.push(e)}),r},e.prototype.visitReference=function(e,t){return{type:8,animation:gv(this,av(e.animation),t),options:Ov(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:Ov(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ov(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=a(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Ev,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),o=i[0],s=i[1];t.currentQuerySelector=n.length?n+" "+o:o,Ny(t.collectedStyles,t.currentQuerySelector,{});var u=gv(this,av(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:u,originalSelector:e.selector,options:Ov(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:ev(e.timings,t.errors,!0);return{type:12,animation:gv(this,av(e.animation),t),timings:n,options:null}},e}(),xv=function(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Tv(e){return!Array.isArray(e)&&"object"==typeof e}function Ov(e){var t;return e?(e=tv(e)).params&&(e.params=(t=e.params)?tv(t):null):e={},e}function Iv(e,t,n){return{duration:e,delay:t,easing:n}}function kv(e,t,n,r,i,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var Av=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,u(t))},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),Pv=new RegExp(":enter","g"),Rv=new RegExp(":leave","g");function Mv(e,t,n,r,i,o,s,a,u,l){return void 0===o&&(o={}),void 0===s&&(s={}),void 0===l&&(l=[]),(new Nv).buildKeyframes(e,t,n,r,i,o,s,a,u,l)}var Nv=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,r,i,o,s,a,u,l){void 0===l&&(l=[]),u=u||new Av;var c=new Lv(e,t,u,r,i,l,[]);c.options=a,c.currentTimeline.setStyles([o],null,c.errors,a),gv(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(s).length){var p=d[d.length-1];p.allowOnlyTimelineStyles()||p.setStyles([s],null,c.errors,a)}return d.length?d.map(function(e){return e.buildKeyframes()}):[kv(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?Jy(n.duration):null,o=null!=n.delay?Jy(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,o);r=Math.max(r,n.duration+n.delay)}),r},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),gv(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,r=t.subContextCount,i=t,o=e.options;if(o&&(o.params||o.delay)&&((i=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Dv);var s=Jy(o.delay);i.delayNextStep(s)}e.steps.length&&(e.steps.forEach(function(e){return gv(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,o=e.options&&e.options.delay?Jy(e.options.delay):0;e.steps.forEach(function(s){var a=t.createSubContext(e.options);o&&a.delayNextStep(o),gv(n,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return ev(t.params?cv(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*i),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(r+i),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},o=i.delay?Jy(i.delay):0;o&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Dv);var s=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;var u=null;a.forEach(function(r,i){t.currentQueryIndex=i;var a=t.createSubContext(e.options,r);o&&a.delayNextStep(o),r===t.element&&(u=a.currentTimeline),gv(n,e.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),s=o*(t.currentQueryTotal-1),a=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=t.currentTimeline;a&&u.delayNextStep(a);var l=u.currentTime;gv(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},e}(),Dv={},Lv=function(){function e(e,t,n,r,i,o,s,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Dv,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new jv(this._driver,t,0),s.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=Jy(r.duration)),null!=r.delay&&(i.delay=Jy(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(e){t&&s.hasOwnProperty(e)||(s[e]=cv(o[e],s,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,r){void 0===t&&(t=null);var i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=Dv,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new Vv(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,r,i,o){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(Pv,"."+this._enterClassName)).replace(Rv,"."+this._leaveClassName);var a=this._driver.query(this.element,e,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,u(a))}return i||0!=s.length||o.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),s},e}(),jv=function(){function e(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||Cp,t._currentKeyframe[e]=Cp}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var o=r&&r.params||{},s=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=Cp}):nv(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=cv(s[e],o,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:Cp),i._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,s){var a=nv(o,!0);Object.keys(a).forEach(function(e){var r=a[e];r==Ap?t.add(e):r==Cp&&n.add(e)}),r||(a.offset=s/e.duration),i.push(a)});var o=t.size?dv(t.values()):[],s=n.size?dv(n.values()):[];if(r){var a=i[0],u=tv(a);a.offset=0,u.offset=1,i=[a,u]}return kv(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)},e}(),Vv=function(e){function t(t,n,r,i,o,s,a){void 0===a&&(a=!1);var u=e.call(this,t,n,s.delay)||this;return u.element=n,u.keyframes=r,u.preStyleProps=i,u.postStyleProps=o,u._stretchStartingKeyframe=a,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return i(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,u=nv(e[0],!1);u.offset=0,o.push(u);var l=nv(e[0],!1);l.offset=Fv(a),o.push(l);for(var c=e.length-1,d=1;d<=c;d++){var p=nv(e[d],!1);p.offset=Fv((n+p.offset*r)/s),o.push(p)}r=s,n=0,i="",e=o}return kv(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)},t}(jv);function Fv(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var zv=function(){},Bv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.normalizePropertyName=function(e,t){return hv(e)},t.prototype.normalizeStyleValue=function(e,t,n,r){var i="",o=n.toString().trim();if(Uv[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return o+i},t}(zv),Uv=function(e){var t={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(e){return t[e]=!0}),t}();function Hv(e,t,n,r,i,o,s,a,u,l,c,d,p){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:d,errors:p}}var Gv={},Wv=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)},e.prototype.buildStyles=function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],o=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):o},e.prototype.build=function(e,t,n,r,i,s,a,u,l,c){var d=[],p=this.ast.options&&this.ast.options.params||Gv,h=this.buildStyles(n,a&&a.params||Gv,d),f=u&&u.params||Gv,m=this.buildStyles(r,f,d),g=new Set,y=new Map,v=new Map,b="void"===r,_={params:o({},p,f)},w=c?[]:Mv(e,t,this.ast.animation,i,s,h,m,_,l,d),E=0;if(w.forEach(function(e){E=Math.max(e.duration+e.delay,E)}),d.length)return Hv(t,this._triggerName,n,r,b,h,m,[],[],y,v,E,d);w.forEach(function(e){var n=e.element,r=Ny(y,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=Ny(v,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&g.add(n)});var S=dv(g.values());return Hv(t,this._triggerName,n,r,b,h,m,w,S,y,v,E)},e}(),qv=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=tv(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var o=i[e];o.length>1&&(o=cv(o,r,t)),n[e]=o})}}),n},e}(),Zv=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new qv(e.style,e.options&&e.options.params||{})}),Qv(this.states,"true","1"),Qv(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new Wv(e,t,n.states))}),this.fallbackTransition=new Wv(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function Qv(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Yv=new Av,Kv=function(){function e(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],r=Sv(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r},e.prototype._buildPlayer=function(e,t,n){var r=e.element,i=Ay(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)},e.prototype.create=function(e,t,n){var r=this;void 0===n&&(n={});var i,o=[],s=this._animations[e],a=new Map;if(s?(i=Mv(this._driver,t,s,"ng-enter","ng-leave",{},{},n,Yv,o)).forEach(function(e){var t=Ny(a,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));a.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,Cp)})});var u=ky(i.map(function(e){var t=a.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return r.destroy(e)}),this.players.push(u),u},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,r){var i=My(t,"","","");return Py(this._getPlayer(e),n,i,r),function(){}},e.prototype.command=function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])},e}(),Xv=[],Jv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$v={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},eb="__ng_removed",tb=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var r=tv(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),nb=new tb("void"),rb=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,db(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var s=Ny(this._elementListeners,e,[]),a={name:t,phase:n,callback:r};s.push(a);var u=Ny(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(db(e,"ng-trigger"),db(e,"ng-trigger-"+t),u[t]=nb),function(){o._engine.afterFlush(function(){var e=s.indexOf(a);e>=0&&s.splice(e,1),o._triggers[t]||delete u[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(t),s=new ob(this.id,t,e),a=this._engine.statesByElement.get(e);a||(db(e,"ng-trigger"),db(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,a={}));var u=a[t],l=new tb(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),a[t]=l,u||(u=nb),"void"===l.value||u.value!==l.value){var c=Ny(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=o.matchTransition(u.value,l.value,e,l.params),p=!1;if(!d){if(!r)return;d=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:u,toState:l,player:s,isFallbackTransition:p}),p||(db(e,"ng-animate-queued"),s.onStart(function(){pb(e,"ng-animate-queued")})),s.onDone(function(){var t=i.players.indexOf(s);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){var s=this._fetchNamespace(e);s&&s.insertNode(t,n)}r&&this.collectEnterElement(t)}},e.prototype.collectEnterElement=function(e){this.collectedEnterElements.push(e)},e.prototype.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),db(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),pb(e,"ng-animate-disabled"))},e.prototype.removeNode=function(e,t,n){if(sb(t)){var r=e?this._fetchNamespace(e):null;r?r.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n)}else this._onRemovalComplete(t,n)},e.prototype.markElementAsRemoved=function(e,t,n,r){this.collectedLeaveElements.push(t),t[eb]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},e.prototype.listen=function(e,t,n,r,i){return sb(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}},e.prototype._buildInstruction=function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)},e.prototype.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})},e.prototype.destroyActiveAnimationsForElement=function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})},e.prototype.finishActiveQueriedAnimationOnElement=function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})},e.prototype.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return ky(e.players).onDone(function(){return t()});t()})},e.prototype.processLeaveNode=function(e){var t=this,n=e[eb];if(n&&n.setForRemoval){if(e[eb]=Jv,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(n){t.markElementAsDisabled(e,!1)})},e.prototype.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(C.push(t),n.collectedEnterElements.length){var s=o[eb];if(s&&s.setForMove)return void t.destroy()}var u=!h||!n.driver.containsElement(h,o),p=E.get(o),f=g.get(o),m=n._buildInstruction(e,r,f,p,u);if(m.errors&&m.errors.length)x.push(m);else{if(u)return t.onStart(function(){return sv(o,m.fromStyles)}),t.onDestroy(function(){return ov(o,m.toStyles)}),void i.push(t);if(e.isFallbackTransition)return t.onStart(function(){return sv(o,m.fromStyles)}),t.onDestroy(function(){return ov(o,m.toStyles)}),void i.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(o,m.timelines),a.push({instruction:m,player:t,element:o}),m.queriedElements.forEach(function(e){return Ny(l,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=c.get(t);r||c.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=d.get(t);r||d.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}});if(x.length){var O=[];x.forEach(function(e){O.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return O.push("- "+e+"\n")})}),C.forEach(function(e){return e.destroy()}),this.reportError(O)}var I=new Map,k=new Map;a.forEach(function(e){var t=e.element;r.has(t)&&(k.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,I))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){Ny(I,t,[]).push(e),e.destroy()})});var A=v.filter(function(e){return fb(e,c,d)}),P=new Map;ub(P,this.driver,_,d,Cp).forEach(function(e){fb(e,c,d)&&A.push(e)});var R=new Map;m.forEach(function(e,t){ub(R,n.driver,new Set(e),c,Ap)}),A.forEach(function(e){var t=P.get(e),n=R.get(e);P.set(e,o({},t,n))});var M=[],N=[],D={};a.forEach(function(e){var t=e.element,o=e.player,a=e.instruction;if(r.has(t)){if(p.has(t))return o.onDestroy(function(){return ov(t,a.toStyles)}),o.disabled=!0,o.overrideTotalTime(a.totalTime),void i.push(o);var u=D;if(k.size>1){for(var l=t,c=[];l=l.parentNode;){var d=k.get(l);if(d){u=d;break}c.push(l)}c.forEach(function(e){return k.set(e,u)})}var h=n._buildAnimation(o.namespaceId,a,I,s,R,P);if(o.setRealPlayer(h),u===D)M.push(o);else{var f=n.playersByElement.get(u);f&&f.length&&(o.parentPlayer=ky(f)),i.push(o)}}else sv(t,a.fromStyles),o.onDestroy(function(){return ov(t,a.toStyles)}),N.push(o),p.has(t)&&i.push(o)}),N.forEach(function(e){var t=s.get(e.element);if(t&&t.length){var n=ky(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var L=0;L0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Ip(e.duration,e.delay)},e}(),ob=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Ip,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return Py(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.overrideTotalTime=function(e){this.totalTime=e},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){Ny(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function sb(e){return e&&1===e.nodeType}function ab(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function ub(e,t,n,r,i){var o=[];n.forEach(function(e){return o.push(ab(e))});var s=[];r.forEach(function(n,r){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r[eb]=$v,s.push(r))}),e.set(r,o)});var a=0;return n.forEach(function(e){return ab(e,o[a++])}),s}function lb(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var o=i.get(t);if(o)return o;var s=t.parentNode;return o=n.has(s)?s:r.has(s)?1:e(s),i.set(t,o),o}(e);1!==t&&n.get(t).push(e)}),n}var cb="$$classes";function db(e,t){if(e.classList)e.classList.add(t);else{var n=e[cb];n||(n=e[cb]={}),n[t]=!0}}function pb(e,t){if(e.classList)e.classList.remove(t);else{var n=e[cb];n&&delete n[t]}}function hb(e,t,n){ky(n).onDone(function(){return e.processLeaveNode(t)})}function fb(e,t,n){var r=n.get(e);if(!r)return!1;var i=t.get(e);return i?r.forEach(function(e){return i.add(e)}):t.set(e,r),n.delete(e),!0}var mb=function(){function e(e,t,n){var r=this;this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new ib(e,t,n),this._timelineEngine=new Kv(e,t,n),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,r,i){var o=e+"-"+r,s=this._triggerCache[o];if(!s){var a=[],u=Sv(this._driver,i,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(e,t){return new Zv(e,t)}(r,u),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(t,r,s)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,r){if("@"==n.charAt(0)){var i=a(Dy(n),2);this._timelineEngine.command(i[0],t,i[1],r)}else this._transitionEngine.trigger(e,t,n,r)},e.prototype.listen=function(e,t,n,r,i){if("@"==n.charAt(0)){var o=a(Dy(n),2);return this._timelineEngine.listen(o[0],t,o[1],i)}return this._transitionEngine.listen(e,t,n,r,i)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),gb="animation",yb="animationend",vb=function(){function e(e,t,n,r,i,o,s){var a=this;this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return a._handleCallback(e)}}return e.prototype.apply=function(){var e,t,n;t=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=Cb(e=this._element,"").trim()).length&&(function(e,t){for(var n=0;n=this._delay&&n>=this._duration&&this.finish()},e.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),Eb(this._element,this._eventFn,!0))},e.prototype.destroy=function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(r=wb(n=Cb(e=this._element,"").split(","),t))>=0&&(n.splice(r,1),Sb(e,"",n.join(","))))},e}();function bb(e,t,n){Sb(e,"PlayState",n,_b(e,t))}function _b(e,t){var n=Cb(e,"");return n.indexOf(",")>0?wb(n.split(","),t):wb([n],t)}function wb(e,t){for(var n=0;n=0)return n;return-1}function Eb(e,t,n){n?e.removeEventListener(yb,t):e.addEventListener(yb,t)}function Sb(e,t,n,r){var i=gb+t;if(null!=r){var o=e.style[i];if(o.length){var s=o.split(",");s[r]=n,n=s.join(",")}}e.style[i]=n}function Cb(e,t){return e.style[gb+t]}var xb="linear",Tb=function(e){return e[e.INITIALIZED=1]="INITIALIZED",e[e.STARTED=2]="STARTED",e[e.FINISHED=3]="FINISHED",e[e.DESTROYED=4]="DESTROYED",e}({}),Ob=function(){function e(e,t,n,r,i,o,s){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this.state=0,this.easing=o||xb,this.totalTime=r+i,this._buildStyler()}return e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.destroy=function(){this.init(),this.state>=Tb.DESTROYED||(this.state=Tb.DESTROYED,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]},e.prototype._flushStartFns=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.finish=function(){this.init(),this.state>=Tb.FINISHED||(this.state=Tb.FINISHED,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},e.prototype.setPosition=function(e){this._styler.setPosition(e)},e.prototype.getPosition=function(){return this._styler.getPosition()},e.prototype.hasStarted=function(){return this.state>=Tb.STARTED},e.prototype.init=function(){this.state>=Tb.INITIALIZED||(this.state=Tb.INITIALIZED,this._styler.apply(),this._delay&&this._styler.pause())},e.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this.state=Tb.STARTED),this._styler.resume()},e.prototype.pause=function(){this.init(),this._styler.pause()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},e.prototype._buildStyler=function(){var e=this;this._styler=new vb(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e.prototype.beforeDestroy=function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this.state>=Tb.FINISHED;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:yv(e.element,r))})}this.currentSnapshot=t},e}(),Ib=function(e){function t(t,n){var r=e.call(this)||this;return r.element=t,r._startingStyles={},r.__initialized=!1,r._styles=Qy(n),r}return i(t,e),t.prototype.init=function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),e.prototype.init.call(this))},t.prototype.play=function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),e.prototype.play.call(this))},t.prototype.destroy=function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,e.prototype.destroy.call(this))},t}(Ip),kb=function(){function e(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return e.prototype.validateStyleProperty=function(e){return Gy(e)},e.prototype.matchesElement=function(e,t){return Wy(e,t)},e.prototype.containsElement=function(e,t){return qy(e,t)},e.prototype.query=function(e,t,n){return Zy(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.buildKeyframeElement=function(e,t,n){var r="@keyframes "+t+" {\n",i="";(n=n.map(function(e){return Qy(e)})).forEach(function(e){i=" ";var t=parseFloat(e.offset);r+=""+i+100*t+"% {\n",i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+t+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},e.prototype.animate=function(e,t,n,r,i,o,s){void 0===o&&(o=[]),s&&this._notifyFaultyScrubber();var a=o.filter(function(e){return e instanceof Ob}),u={};fv(n,r)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=mv(e,t,u));if(0==n)return new Ib(e,l);var c="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(d);var p=new Ob(e,t,c,n,r,i,l);return p.onDestroy(function(){var e;(e=d).parentNode.removeChild(e)}),p},e.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},e}(),Ab=function(){function e(e,t,n){this.element=e,this.keyframes=t,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}},e.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},e.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},e.prototype.pause=function(){this.init(),this.domPlayer.pause()},e.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},e.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.hasStarted=function(){return this._started},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.setPosition=function(e){this.domPlayer.currentTime=e*this.time},e.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:yv(e.element,n))}),this.currentSnapshot=t},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),Pb=function(){function e(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Rb().toString()),this._cssKeyframesDriver=new kb}return e.prototype.validateStyleProperty=function(e){return Gy(e)},e.prototype.matchesElement=function(e,t){return Wy(e,t)},e.prototype.containsElement=function(e,t){return qy(e,t)},e.prototype.query=function(e,t,n){return Zy(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.overrideWebAnimationsSupport=function(e){this._isNativeImpl=e},e.prototype.animate=function(e,t,n,r,i,o,s){if(void 0===o&&(o=[]),!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,o);var a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);var u={},l=o.filter(function(e){return e instanceof Ab});return fv(n,r)&&l.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return u[e]=t[e]})}),t=mv(e,t=t.map(function(e){return nv(e,!1)}),u),new Ab(e,t,a)},e}();function Rb(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Mb=function(e){function t(t,n){var r=e.call(this)||this;return r._nextAnimationId=0,r._renderer=t.createRenderer(n.body,{id:"0",encapsulation:rt.None,styles:[],data:{animation:[]}}),r}return i(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?xp(e):e;return Lb(this._renderer,null,t,"register",[n]),new Nb(t,this._renderer)},t}(Sp),Nb=function(e){function t(t,n){var r=e.call(this)||this;return r._id=t,r._renderer=n,r}return i(t,e),t.prototype.create=function(e,t){return new Db(this._id,e,t||{},this._renderer)},t}(function(){}),Db=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n=0&&e0){var r=e.slice(0,n),i=r.toLowerCase(),o=e.slice(n+1).trim();t.maybeSetNormalizedName(r,i),t.headers.has(i)?t.headers.get(i).push(o):t.headers.set(i,[o])}})}:function(){t.headers=new Map,Object.keys(e).forEach(function(n){var r=e[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(t.headers.set(i,r),t.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return e.prototype.has=function(e){return this.init(),this.headers.has(e.toLowerCase())},e.prototype.get=function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null},e.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},e.prototype.getAll=function(e){return this.init(),this.headers.get(e.toLowerCase())||null},e.prototype.append=function(e,t){return this.clone({name:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({name:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({name:e,value:t,op:"d"})},e.prototype.maybeSetNormalizedName=function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)},e.prototype.init=function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))},e.prototype.copyFrom=function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})},e.prototype.clone=function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n},e.prototype.applyUpdate=function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var r=("a"===e.op?this.headers.get(t):void 0)||[];r.push.apply(r,u(n)),this.headers.set(t,r);break;case"d":var i=e.value;if(i){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===i.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}},e.prototype.forEach=function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})},e}(),Yb=function(){function e(){}return e.prototype.encodeKey=function(e){return Kb(e)},e.prototype.encodeValue=function(e){return Kb(e)},e.prototype.decodeKey=function(e){return decodeURIComponent(e)},e.prototype.decodeValue=function(e){return decodeURIComponent(e)},e}();function Kb(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Xb=function(){function e(e){void 0===e&&(e={});var t,n,r,i=this;if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Yb,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=e.fromString,n=this.encoder,r=new Map,t.length>0&&t.split("&").forEach(function(e){var t=e.indexOf("="),i=a(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),o=i[0],s=i[1],u=r.get(o)||[];u.push(s),r.set(o,u)}),r)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(function(t){var n=e.fromObject[t];i.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}return e.prototype.has=function(e){return this.init(),this.map.has(e)},e.prototype.get=function(e){this.init();var t=this.map.get(e);return t?t[0]:null},e.prototype.getAll=function(e){return this.init(),this.map.get(e)||null},e.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},e.prototype.append=function(e,t){return this.clone({param:e,value:t,op:"a"})},e.prototype.set=function(e,t){return this.clone({param:e,value:t,op:"s"})},e.prototype.delete=function(e,t){return this.clone({param:e,value:t,op:"d"})},e.prototype.toString=function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).join("&")},e.prototype.clone=function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([t]),n},e.prototype.init=function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(t.value),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var r=e.map.get(t.param)||[],i=r.indexOf(t.value);-1!==i&&r.splice(i,1),r.length>0?e.map.set(t.param,r):e.map.delete(t.param)}}),this.cloneFrom=null)},e}();function Jb(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function $b(e){return"undefined"!=typeof Blob&&e instanceof Blob}function e_(e){return"undefined"!=typeof FormData&&e instanceof FormData}var t_=function(){function e(e,t,n,r){var i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new Qb),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s=200&&this.status<300}}());function i_(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var o_=function(){function e(e){this.handler=e}return e.prototype.request=function(e,t,n){var r,i=this;if(void 0===n&&(n={}),e instanceof t_)r=e;else{var o;o=n.headers instanceof Qb?n.headers:new Qb(n.headers);var s=void 0;n.params&&(s=n.params instanceof Xb?n.params:new Xb({fromObject:n.params})),r=new t_(e,t,void 0!==n.body?n.body:null,{headers:o,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=Sa(r).pipe(Ba(function(e){return i.handler.handle(e)}));if(e instanceof t_||"events"===n.observe)return a;var u=a.pipe(xa(function(e){return e instanceof r_}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return u.pipe(G(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return u.pipe(G(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return u.pipe(G(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return u.pipe(G(function(e){return e.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},e.prototype.delete=function(e,t){return void 0===t&&(t={}),this.request("DELETE",e,t)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this.request("GET",e,t)},e.prototype.head=function(e,t){return void 0===t&&(t={}),this.request("HEAD",e,t)},e.prototype.jsonp=function(e,t){return this.request("JSONP",e,{params:(new Xb).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},e.prototype.options=function(e,t){return void 0===t&&(t={}),this.request("OPTIONS",e,t)},e.prototype.patch=function(e,t,n){return void 0===n&&(n={}),this.request("PATCH",e,i_(n,t))},e.prototype.post=function(e,t,n){return void 0===n&&(n={}),this.request("POST",e,i_(n,t))},e.prototype.put=function(e,t,n){return void 0===n&&(n={}),this.request("PUT",e,i_(n,t))},e}(),s_=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new a_(e,this.callback))},e}(),a_=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new w(n)),r}return i(t,e),t}(C);function u_(e){return Error('Unable to find icon with the name "'+e+'"')}function l_(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+e+'".')}function c_(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \""+e+'".')}var d_=function(e){e.nodeName?this.svgElement=e:this.url=e},p_=function(){function e(e,t,n){this._httpClient=e,this._sanitizer=t,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}return e.prototype.addSvgIcon=function(e,t){return this.addSvgIconInNamespace("",e,t)},e.prototype.addSvgIconLiteral=function(e,t){return this.addSvgIconLiteralInNamespace("",e,t)},e.prototype.addSvgIconInNamespace=function(e,t,n){return this._addSvgIconConfig(e,t,new d_(n))},e.prototype.addSvgIconLiteralInNamespace=function(e,t,n){var r=this._sanitizer.sanitize(Cr.HTML,n);if(!r)throw c_(n);var i=this._createSvgElementForSingleIcon(r);return this._addSvgIconConfig(e,t,new d_(i))},e.prototype.addSvgIconSet=function(e){return this.addSvgIconSetInNamespace("",e)},e.prototype.addSvgIconSetLiteral=function(e){return this.addSvgIconSetLiteralInNamespace("",e)},e.prototype.addSvgIconSetInNamespace=function(e,t){return this._addSvgIconSetConfig(e,new d_(t))},e.prototype.addSvgIconSetLiteralInNamespace=function(e,t){var n=this._sanitizer.sanitize(Cr.HTML,t);if(!n)throw c_(t);var r=this._svgElementFromString(n);return this._addSvgIconSetConfig(e,new d_(r))},e.prototype.registerFontClassAlias=function(e,t){return void 0===t&&(t=e),this._fontCssClassesByAlias.set(e,t),this},e.prototype.classNameForFontAlias=function(e){return this._fontCssClassesByAlias.get(e)||e},e.prototype.setDefaultFontSetClass=function(e){return this._defaultFontSetClass=e,this},e.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},e.prototype.getSvgIconFromUrl=function(e){var t=this,n=this._sanitizer.sanitize(Cr.RESOURCE_URL,e);if(!n)throw l_(e);var r=this._cachedIconsByUrl.get(n);return r?Sa(h_(r)):this._loadSvgIconFromConfig(new d_(e)).pipe(Da(function(e){return t._cachedIconsByUrl.set(n,e)}),G(function(e){return h_(e)}))},e.prototype.getNamedSvgIcon=function(e,t){void 0===t&&(t="");var n=f_(t,e),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(t);return i?this._getSvgFromIconSetConfigs(e,i):Ym(u_(n))},e.prototype._getSvgFromConfig=function(e){return e.svgElement?Sa(h_(e.svgElement)):this._loadSvgIconFromConfig(e).pipe(Da(function(t){return e.svgElement=t}),G(function(e){return h_(e)}))},e.prototype._getSvgFromIconSetConfigs=function(e,t){var n=this,r=this._extractIconWithNameFromAnySet(e,t);return r?Sa(r):bg(t.filter(function(e){return!e.svgElement}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(Ya(function(t){var r=n._sanitizer.sanitize(Cr.RESOURCE_URL,e.url);return console.error("Loading icon set URL: "+r+" failed: "+t.message),Sa(null)}))})).pipe(G(function(){var r=n._extractIconWithNameFromAnySet(e,t);if(!r)throw u_(e);return r}))},e.prototype._extractIconWithNameFromAnySet=function(e,t){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.svgElement){var i=this._extractSvgIconFromSet(r.svgElement,e);if(i)return i}}return null},e.prototype._loadSvgIconFromConfig=function(e){var t=this;return this._fetchUrl(e.url).pipe(G(function(e){return t._createSvgElementForSingleIcon(e)}))},e.prototype._loadSvgIconSetFromConfig=function(e){var t=this;return e.svgElement?Sa(e.svgElement):this._fetchUrl(e.url).pipe(G(function(n){return e.svgElement||(e.svgElement=t._svgElementFromString(n)),e.svgElement}))},e.prototype._createSvgElementForSingleIcon=function(e){var t=this._svgElementFromString(e);return this._setSvgAttributes(t),t},e.prototype._extractSvgIconFromSet=function(e,t){var n=e.querySelector("#"+t);if(!n)return null;var r=n.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r));var i=this._svgElementFromString("");return i.appendChild(r),this._setSvgAttributes(i)},e.prototype._svgElementFromString=function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n},e.prototype._toSvgElement=function(e){for(var t=this._svgElementFromString(""),n=0;n*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function k_(e){return Po(2,[wo(402653184,1,{ripple:0}),(e()(),gi(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),To(null,0),(e()(),gi(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),io(4,212992,[[1,4]],0,Bf,[mn,Ht,Vp,[2,zf],[2,Gb]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(e()(),gi(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())},function(e,t){var n=t.component;e(t,3,0,n.isRoundButton||n.isIconButton,Wi(t,4).unbounded)})}var A_=function(){function e(){this.newInfo$=new oe}return e.prototype.getInfo=function(){return this.info},e.prototype.updateInfo=function(e){this.info=e,this.newInfo$.next(e)},e}(),P_=function(){function e(){}return e.prototype.getOpenViduPublicUrl=function(){var e=this;return new Promise(function(t,n){if(e.openviduPublicUrl)t(e.openviduPublicUrl);else{var r=location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")+"/config/openvidu-publicurl",i=new XMLHttpRequest;i.onreadystatechange=function(){4===i.readyState&&(200===i.status?(e.openviduPublicUrl=i.responseText,t(i.responseText)):n("Error getting OpenVidu publicurl"))},i.open("GET",r,!0),i.send()}})},e.prototype.getOpenViduToken=function(e){var t=this;if(this.openviduPublicUrl)return new Promise(function(n,r){var i="https://OPENVIDUAPP:"+e+"@"+t.openviduPublicUrl.split("://")[1]+"api/sessions",o=new XMLHttpRequest,s=JSON.stringify({mediaMode:"ROUTED",recordingMode:"MANUAL",RECORDING_LAYOUT:"BEST_FIT"});o.onreadystatechange=function(){if(401===o.status)r(401);else if(4===o.readyState)if(200===o.status){var i=JSON.parse(o.responseText).id,s=t.openviduPublicUrl+"api/tokens",a=new XMLHttpRequest,u={};u.session=i;var l=JSON.stringify(u);a.onreadystatechange=function(){4===a.readyState&&(200===a.status?n(JSON.parse(a.responseText).id):r(a.status))},a.open("POST",s,!0),a.setRequestHeader("Content-type","application/json"),a.setRequestHeader("Authorization","Basic "+btoa("OPENVIDUAPP:"+e)),a.send(l)}else r(o.status)},o.open("POST",i,!0),o.setRequestHeader("Content-type","application/json"),o.send(s)});this.getOpenViduPublicUrl().then(function(){return t.getOpenViduToken(e)})},e}(),R_=n("t9/D"),M_=function(){function e(){}return e.prototype.testVideo=function(){this.myReference.close(this.secret)},e}(),N_=function(){function e(e,t,n){var r=this;this.infoService=e,this.restService=t,this.dialog=n,this.lockScroll=!1,this.info=[],this.testStatus="DISCONNECTED",this.testButton="Test",this.tickClass="trigger",this.showSpinner=!1,this.msgChain=[],this.infoSubscription=this.infoService.newInfo$.subscribe(function(e){r.info.push(e),r.scrollToBottom()})}return e.prototype.ngOnInit=function(){var e=this,t=location.protocol.includes("https")?"wss://":"ws://",n=location.port?":"+location.port:"";this.websocket=new WebSocket(t+location.hostname+n+"/info"),this.websocket.onopen=function(e){console.log("Info websocket connected")},this.websocket.onclose=function(e){console.log("Info websocket closed")},this.websocket.onerror=function(e){console.log("Info websocket error")},this.websocket.onmessage=function(t){console.log("Info websocket message"),console.log(t.data),e.infoService.updateInfo(t.data)},this.restService.getOpenViduPublicUrl().then(function(t){e.openviduPublicUrl=t.replace("https://","wss://").replace("http://","ws://")}).catch(function(e){console.error(e)})},e.prototype.beforeunloadHandler=function(){this.session&&this.endTestVideo(),this.websocket.close()},e.prototype.ngOnDestroy=function(){this.session&&this.endTestVideo(),this.websocket.close()},e.prototype.toggleTestVideo=function(){this.session?this.endTestVideo():this.testVideo()},e.prototype.testVideo=function(){var e,t=this;(e=this.dialog.open(M_)).componentInstance.myReference=e,e.afterClosed().subscribe(function(e){e&&t.restService.getOpenViduToken(e).then(function(e){t.connectToSession(e)}).catch(function(e){401===e?t.testVideo():(console.error(e),t.msgChain.push("Error connecting to session: "+e))})})},e.prototype.connectToSession=function(e){var t=this;this.msgChain=[];var n=new R_.OpenVidu;this.session=n.initSession(),this.testStatus="CONNECTING",this.testButton="Testing...",this.session.connect(e).then(function(){t.msgChain.push("Connected to session"),t.testStatus="CONNECTED";var e=n.initPublisher("mirrored-video",{publishAudio:!0,publishVideo:!0,resolution:"640x480"},function(e){e&&console.error(e)});e.on("accessAllowed",function(){t.msgChain.push("Camera access allowed")}),e.on("accessDenied",function(){t.endTestVideo(),t.msgChain.push("Camera access denied")}),e.on("videoElementCreated",function(e){t.showSpinner=!0,t.msgChain.push("Video element created")}),e.on("streamCreated",function(e){t.msgChain.push("Stream created")}),e.on("streamPlaying",function(e){t.msgChain.push("Stream playing"),t.testButton="End test",t.testStatus="PLAYING",t.showSpinner=!1}),e.subscribeToRemote(),t.session.publish(e)}).catch(function(e){t.msgChain.push("Error connecting to session: "+e)})},e.prototype.endTestVideo=function(){this.session.disconnect(),this.session=null,this.testStatus="DISCONNECTED",this.testButton="Test",this.showSpinner=!1,this.info=[],this.msgChain=[]},e.prototype.scrollToBottom=function(){try{this.lockScroll||(this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight)}catch(e){console.error("[Error]:"+e.toString())}},e}(),D_=Ur({encapsulation:0,styles:[["#dashboard-div[_ngcontent-%COMP%]{height:100%;padding:20px}#log[_ngcontent-%COMP%]{height:90%}#log-content[_ngcontent-%COMP%]{height:90%;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;overflow-y:auto;overflow-x:hidden}ul[_ngcontent-%COMP%]{margin:0}#test-btn[_ngcontent-%COMP%]{text-transform:uppercase}mat-card-title[_ngcontent-%COMP%] button.blue[_ngcontent-%COMP%]{color:#fff;background-color:#08a}mat-card-title[_ngcontent-%COMP%] button.yellow[_ngcontent-%COMP%]{color:rgba(0,0,0,.87);background-color:#fc0}mat-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#tick-div[_ngcontent-%COMP%]{width:100px;height:100px;z-index:1;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#tooltip-tick[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;z-index:2}.circ[_ngcontent-%COMP%]{opacity:0;stroke-dasharray:130;stroke-dashoffset:130;transition:all 1s}.tick[_ngcontent-%COMP%]{stroke-dasharray:50;stroke-dashoffset:50;transition:stroke-dashoffset 1s .5s ease-out}.drawn[_ngcontent-%COMP%] + svg[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{opacity:1;stroke-dashoffset:0}#mirrored-video[_ngcontent-%COMP%]{position:relative}@media screen and (max-width:599px){mat-card-title[_ngcontent-%COMP%]{font-size:20px}}#loader[_ngcontent-%COMP%]{width:100px;height:100px;z-index:1;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#loader[_ngcontent-%COMP%] *[_ngcontent-%COMP%], #loader[_ngcontent-%COMP%] [_ngcontent-%COMP%]::after, #loader[_ngcontent-%COMP%] [_ngcontent-%COMP%]::before{box-sizing:border-box}.loader-1[_ngcontent-%COMP%]{height:100px;width:100px;-webkit-animation:4.8s linear infinite loader-1-1;animation:4.8s linear infinite loader-1-1}@-webkit-keyframes loader-1-1{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(360deg)}}@keyframes loader-1-1{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.loader-1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;position:absolute;top:0;left:0;bottom:0;right:0;margin:auto;height:100px;width:100px;clip:rect(0,100px,100px,50px);-webkit-animation:1.2s linear infinite loader-1-2;animation:1.2s linear infinite loader-1-2}@-webkit-keyframes loader-1-2{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(220deg)}}@keyframes loader-1-2{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(220deg);transform:rotate(220deg)}}.loader-1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]::after{content:\"\";position:absolute;top:0;left:0;bottom:0;right:0;margin:auto;height:100px;width:100px;clip:rect(0,100px,100px,50px);border:8px solid #4d4d4d;border-radius:50%;-webkit-animation:1.2s cubic-bezier(.77,0,.175,1) infinite loader-1-3;animation:1.2s cubic-bezier(.77,0,.175,1) infinite loader-1-3}@-webkit-keyframes loader-1-3{0%{-webkit-transform:rotate(-140deg)}50%{-webkit-transform:rotate(-160deg)}100%{-webkit-transform:rotate(140deg)}}@keyframes loader-1-3{0%{-webkit-transform:rotate(-140deg);transform:rotate(-140deg)}50%{-webkit-transform:rotate(-160deg);transform:rotate(-160deg)}100%{-webkit-transform:rotate(140deg);transform:rotate(140deg)}}"]],data:{}});function L_(e){return Po(0,[(e()(),gi(0,0,null,null,2,"li",[],null,null,null,null,null)),(e()(),gi(1,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Io(2,null,["",""]))],null,function(e,t){e(t,2,0,t.context.$implicit)})}function j_(e){return Po(0,[(e()(),gi(0,0,null,null,2,"div",[["id","loader"]],null,null,null,null,null)),(e()(),gi(1,0,null,null,1,"div",[["class","loader-1 center"]],null,null,null,null,null)),(e()(),gi(2,0,null,null,0,"span",[],null,null,null,null,null))],null,null)}function V_(e){return Po(0,[(e()(),gi(0,16777216,null,null,1,"div",[["id","tooltip-tick"],["matTooltip","The connection is successful"],["matTooltipPosition","below"]],null,[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(e,t,n){var r=!0;return"longpress"===t&&(r=!1!==Wi(e,1).show()&&r),"keydown"===t&&(r=!1!==Wi(e,1)._handleKeydown(n)&&r),"touchend"===t&&(r=!1!==Wi(e,1)._handleTouchend()&&r),r},null,null)),io(1,147456,null,0,ef,[Wh,mn,hh,Sn,Ht,Vp,vf,Cf,Xh,[2,pf],[2,$h]],{position:[0,"position"],message:[1,"message"]},null),(e()(),mi(0,null,null,0))],function(e,t){e(t,1,0,"below","The connection is successful")},null)}function F_(e){return Po(0,[(e()(),gi(0,0,null,null,7,"div",[["id","tick-div"]],null,null,null,null,null)),(e()(),mi(16777216,null,null,1,null,V_)),io(2,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),gi(3,0,null,null,1,"div",[],null,null,null,null,null)),io(4,278528,null,0,yu,[Wn,qn,mn,fn],{ngClass:[0,"ngClass"]},null),(e()(),gi(5,0,null,null,2,":svg:svg",[[":xml:space","preserve"],[":xmlns:xlink","http://www.w3.org/1999/xlink"],["id","tick"],["style","enable-background:new 0 0 37 37;"],["version","1.1"],["viewBox","-1 -1 39 39"],["x","0px"],["xmlns","http://www.w3.org/2000/svg"],["y","0px"]],null,null,null,null,null)),(e()(),gi(6,0,null,null,0,":svg:path",[["class","circ path"],["d","\n\tM30.5,6.5L30.5,6.5c6.6,6.6,6.6,17.4,0,24l0,0c-6.6,6.6-17.4,6.6-24,0l0,0c-6.6-6.6-6.6-17.4,0-24l0,0C13.1-0.2,23.9-0.2,30.5,6.5z"],["style","fill:none;stroke:#06d362;stroke-width:4;stroke-linejoin:round;stroke-miterlimit:10;"]],null,null,null,null,null)),(e()(),gi(7,0,null,null,0,":svg:polyline",[["class","tick path"],["points","\n\t11.6,20 15.9,24.2 26.4,13.8 "],["style","fill:none;stroke:#06d362;stroke-width:4;stroke-linejoin:round;stroke-miterlimit:10;"]],null,null,null,null,null))],function(e,t){var n=t.component;e(t,2,0,"PLAYING"==n.testStatus),e(t,4,0,"PLAYING"==n.testStatus?"trigger drawn":"trigger")},null)}function z_(e){return Po(0,[(e()(),gi(0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Io(1,null,["",""]))],null,function(e,t){e(t,1,0,t.context.$implicit)})}function B_(e){return Po(0,[wo(402653184,1,{myScrollContainer:0}),(e()(),gi(1,0,null,null,50,"div",[["fxLayout","row"],["fxLayout.xs","column"],["fxLayoutGap","20px"],["fxLayoutGap.xs","20px"],["id","dashboard-div"]],null,null,null,null,null)),io(2,737280,null,0,sg,[Um,mn,Gm],{layout:[0,"layout"],layoutXs:[1,"layoutXs"]},null),io(3,1785856,null,0,ag,[Um,mn,[6,sg],Ht,pf,Gm],{gap:[0,"gap"],gapXs:[1,"gapXs"]},null),(e()(),gi(4,0,null,null,23,"div",[["fxFlex","66%"],["fxFlexOrder","1"],["fxFlexOrder.xs","2"]],null,null,null,null,null)),io(5,737280,null,0,cg,[Um,mn,[3,sg],Gm,Om],{flex:[0,"flex"]},null),io(6,737280,null,0,dg,[Um,mn,Gm],{order:[0,"order"],orderXs:[1,"orderXs"]},null),(e()(),gi(7,0,null,null,20,"mat-card",[["class","mat-card"],["id","log"]],null,null,null,vg,yg)),io(8,49152,null,0,mg,[],null,null),(e()(),gi(9,0,null,0,11,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),io(10,16384,null,0,fg,[],null,null),(e()(),Io(-1,null,["Server events "])),(e()(),gi(12,0,null,null,8,"mat-slide-toggle",[["class","mat-slide-toggle"],["style","float: right; margin-left: auto;"],["title","Lock Scroll"]],[[8,"id",0],[2,"mat-checked",null],[2,"mat-disabled",null],[2,"mat-slide-toggle-label-before",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var r=!0;return"ngModelChange"===t&&(r=!1!==(e.component.lockScroll=n)&&r),r},Zb,qb)),io(13,1228800,null,0,Ty,[mn,Vp,Cf,Cn,[8,null],Ht,[2,Gb]],null,null),oo(1024,null,Ag,function(e){return[e]},[Ty]),io(15,671744,null,0,by,[[8,null],[8,null],[8,null],[6,Ag]],{model:[0,"model"]},{update:"ngModelChange"}),oo(2048,null,Vg,null,[by]),io(17,16384,null,0,oy,[[4,Vg]],null,null),(e()(),gi(18,0,null,0,2,"mat-icon",[["class","mat-icon"],["role","img"]],[[2,"mat-icon-inline",null]],null,null,v_,y_)),io(19,638976,null,0,m_,[mn,p_,[8,null]],null,null),(e()(),Io(-1,0,["lock_outline"])),(e()(),gi(21,0,null,0,1,"mat-divider",[["class","mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-horizontal",null],[2,"mat-divider-inset",null]],null,null,E_,w_)),io(22,49152,null,0,b_,[],null,null),(e()(),gi(23,0,[[1,0],["scrollMe",1]],0,4,"mat-card-content",[["class","mat-card-content"],["id","log-content"]],null,null,null,null,null)),io(24,16384,null,0,hg,[],null,null),(e()(),gi(25,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),mi(16777216,null,null,1,null,L_)),io(27,802816,null,0,bu,[Sn,En,Wn],{ngForOf:[0,"ngForOf"]},null),(e()(),gi(28,0,null,null,23,"div",[["fxFlex","33%"],["fxFlex.xs","auto"],["fxFlexOrder","2"],["fxFlexOrder.xs","1"]],null,null,null,null,null)),io(29,737280,null,0,cg,[Um,mn,[3,sg],Gm,Om],{flex:[0,"flex"],flexXs:[1,"flexXs"]},null),io(30,737280,null,0,dg,[Um,mn,Gm],{order:[0,"order"],orderXs:[1,"orderXs"]},null),(e()(),gi(31,0,null,null,20,"mat-card",[["class","mat-card"],["id","video-loop"]],null,null,null,vg,yg)),io(32,49152,null,0,mg,[],null,null),(e()(),gi(33,0,null,0,6,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),io(34,16384,null,0,fg,[],null,null),(e()(),Io(-1,null,["Test the connection "])),(e()(),gi(36,0,null,null,3,"button",[["id","test-btn"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleTestVideo()&&r),r},k_,I_)),io(37,278528,null,0,yu,[Wn,qn,mn,fn],{ngClass:[0,"ngClass"]},null),io(38,180224,null,0,T_,[mn,Vp,Cf,[2,Gb]],{disabled:[0,"disabled"]},null),(e()(),Io(39,0,["",""])),(e()(),gi(40,0,null,0,1,"mat-divider",[["class","mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-horizontal",null],[2,"mat-divider-inset",null]],null,null,E_,w_)),io(41,49152,null,0,b_,[],null,null),(e()(),gi(42,0,null,0,9,"mat-card-content",[["class","mat-card-content"]],null,null,null,null,null)),io(43,16384,null,0,hg,[],null,null),(e()(),gi(44,0,null,null,4,"div",[["id","mirrored-video"]],null,null,null,null,null)),(e()(),mi(16777216,null,null,1,null,j_)),io(46,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),mi(16777216,null,null,1,null,F_)),io(48,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),gi(49,0,null,null,2,"div",[["id","msg-chain"]],null,null,null,null,null)),(e()(),mi(16777216,null,null,1,null,z_)),io(51,802816,null,0,bu,[Sn,En,Wn],{ngForOf:[0,"ngForOf"]},null)],function(e,t){var n=t.component;e(t,2,0,"row","column"),e(t,3,0,"20px","20px"),e(t,5,0,"66%"),e(t,6,0,"1","2"),e(t,15,0,n.lockScroll),e(t,19,0),e(t,27,0,n.info),e(t,29,0,"33%","auto"),e(t,30,0,"2","1"),e(t,37,0,"DISCONNECTED"==n.testStatus?"blue":"PLAYING"==n.testStatus?"yellow":"disabled"),e(t,38,0,"CONNECTING"===n.testStatus||"CONNECTED"===n.testStatus),e(t,46,0,n.showSpinner),e(t,48,0,n.session),e(t,51,0,n.msgChain)},function(e,t){var n=t.component;e(t,12,1,[Wi(t,13).id,Wi(t,13).checked,Wi(t,13).disabled,"before"==Wi(t,13).labelPosition,"NoopAnimations"===Wi(t,13)._animationMode,Wi(t,17).ngClassUntouched,Wi(t,17).ngClassTouched,Wi(t,17).ngClassPristine,Wi(t,17).ngClassDirty,Wi(t,17).ngClassValid,Wi(t,17).ngClassInvalid,Wi(t,17).ngClassPending]),e(t,18,0,Wi(t,19).inline),e(t,21,0,Wi(t,22).vertical?"vertical":"horizontal",Wi(t,22).vertical,!Wi(t,22).vertical,Wi(t,22).inset),e(t,36,0,Wi(t,38).disabled||null,"NoopAnimations"===Wi(t,38)._animationMode),e(t,39,0,n.testButton),e(t,40,0,Wi(t,41).vertical?"vertical":"horizontal",Wi(t,41).vertical,!Wi(t,41).vertical,Wi(t,41).inset)})}var U_=Ni("app-dashboard",N_,function(e){return Po(0,[(e()(),gi(0,0,null,null,1,"app-dashboard",[],null,[["window","beforeunload"]],function(e,t,n){var r=!0;return"window:beforeunload"===t&&(r=!1!==Wi(e,1).beforeunloadHandler()&&r),r},B_,D_)),io(1,245760,null,0,N_,[A_,P_,rm],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),H_=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),G_=Ur({encapsulation:0,styles:[[""]],data:{}});function W_(e){return Po(0,[(e()(),gi(0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Io(-1,null,[" session-details works!\n"]))],null,null)}var q_=Ni("app-session-details",H_,function(e){return Po(0,[(e()(),gi(0,0,null,null,1,"app-session-details",[],null,null,null,W_,G_)),io(1,114688,null,0,H_,[],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),Z_=function(){function e(){}return e.prototype.ngAfterViewInit=function(){this._subscriber.addVideoElement(this.elementRef.nativeElement)},Object.defineProperty(e.prototype,"subscriber",{set:function(e){this._subscriber=e,this.elementRef&&this._subscriber.addVideoElement(this.elementRef.nativeElement)},enumerable:!0,configurable:!0}),e}(),Q_=Ur({encapsulation:2,styles:[],data:{}});function Y_(e){return Po(0,[wo(402653184,1,{elementRef:0}),(e()(),gi(1,0,[[1,0],["videoElement",1]],null,0,"video",[],null,null,null,null,null))],null,null)}var K_=function(){function e(){}return e.prototype.fixAspectRatio=function(e,t){var n=e.querySelector(".OT_root");if(n){var r=n.style.width;n.style.width=t+"px",n.style.width=r||""}},e.prototype.positionElement=function(e,t,n,r,i,o){var s=this,a={left:t+"px",top:n+"px",width:r+"px",height:i+"px"};this.fixAspectRatio(e,r),o&&$?($(e).stop(),$(e).animate(a,o.duration||200,o.easing||"swing",function(){s.fixAspectRatio(e,r),o.complete&&o.complete.call(s)})):$(e).css(a),this.fixAspectRatio(e,r)},e.prototype.getVideoRatio=function(e){if(!e)return.75;var t=e.querySelector("video");return t&&t.videoHeight&&t.videoWidth?t.videoHeight/t.videoWidth:e.videoHeight&&e.videoWidth?e.videoHeight/e.videoWidth:.75},e.prototype.getCSSNumber=function(e,t){var n=$(e).css(t);return n?parseInt(n,10):0},e.prototype.cheapUUID=function(){return(1e8*Math.random()).toFixed(0)},e.prototype.getHeight=function(e){var t=$(e).css("height");return t?parseInt(t,10):0},e.prototype.getWidth=function(e){var t=$(e).css("width");return t?parseInt(t,10):0},e.prototype.getBestDimensions=function(e,t,n,r,i,o){for(var s,a,u,l,c,d,p,h=1;h<=n;h++){var f=h,m=Math.ceil(n/f);(p=(d=Math.floor(i/m))/(c=Math.floor(r/f)))>t?d=c*(p=t):ps)&&(s=g,o=d,l=c,a=f,u=m)}return{maxArea:s,targetCols:a,targetRows:u,targetHeight:o,targetWidth:l,ratio:o/l}},e.prototype.arrange=function(e,t,n,r,i,o,s,a,u){var l,c,d=e.length;if(o){var p=this.getVideoRatio(e.length>0?e[0]:null);c=this.getBestDimensions(p,p,d,t,n,l)}else c=this.getBestDimensions(s,a,d,t,n,l);for(var h,f=0,m=0,g=[],y=0;yt?(h.height=Math.floor(h.height*(t/h.width)),h.width=t):h.width0){var w=n-b;for(b=0,y=0;y(t-h.width)/h.width&&(E=Math.floor((t-h.width)/h.width*h.height)),h.width+=Math.floor(E/h.height*h.width),h.height+=E,w-=E,_-=1}b+=h.height}}for(m=(n-b)/2,y=0;y."+this.opts.bigClass),this.filterDisplayNone),l=Array.prototype.filter.call(this.layoutContainer.querySelectorAll("#"+e+">*:not(."+this.opts.bigClass+")"),this.filterDisplayNone);if(u.length>0&&l.length>0){var c=void 0,d=void 0;r>this.getVideoRatio(u[0])?(c=n,s=t-(o=d=Math.floor(t*this.opts.bigPercentage))):(d=t,a=n-(i=c=Math.floor(n*this.opts.bigPercentage))),this.opts.bigFirst?(this.arrange(u,c,d,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate),this.arrange(l,n-i,t-o,i,o,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)):(this.arrange(l,n-i,t-o,0,0,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate),this.arrange(u,c,d,a,s,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate))}else u.length>0&&0===l.length?this.arrange(u,n,t,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate):this.arrange(l,n-i,t-o,i,o,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)}},e.prototype.initLayoutContainer=function(e,t){this.opts={maxRatio:null!=t.maxRatio?t.maxRatio:1.5,minRatio:null!=t.minRatio?t.minRatio:9/16,fixedRatio:null!=t.fixedRatio&&t.fixedRatio,animate:null!=t.animate&&t.animate,bigClass:null!=t.bigClass?t.bigClass:"OT_big",bigPercentage:null!=t.bigPercentage?t.bigPercentage:.8,bigFixedRatio:null!=t.bigFixedRatio&&t.bigFixedRatio,bigMaxRatio:null!=t.bigMaxRatio?t.bigMaxRatio:1.5,bigMinRatio:null!=t.bigMinRatio?t.bigMinRatio:9/16,bigFirst:null==t.bigFirst||t.bigFirst},this.layoutContainer="string"==typeof e?$(e):e},e.prototype.setLayoutOptions=function(e){this.opts=e},e}(),X_=function(){function e(e,t){var n=this;this.route=e,this.appRef=t,this.subscribers=[],this.numberOfScreenStreams=0,this.layoutOptions={maxRatio:1.5,minRatio:9/16,fixedRatio:!1,bigClass:"OV_big",bigPercentage:.8,bigFixedRatio:!1,bigMaxRatio:1.5,bigMinRatio:9/16,bigFirst:!0,animate:!0},this.route.params.subscribe(function(e){n.sessionId=e.sessionId,n.secret=e.secret})}return e.prototype.beforeunloadHandler=function(){this.leaveSession()},e.prototype.sizeChange=function(e){var t=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.openviduLayout.updateLayout()},20)},e.prototype.ngOnDestroy=function(){this.leaveSession()},e.prototype.ngOnInit=function(){var e=this,t=new R_.OpenVidu;this.session=t.initSession(),this.session.on("streamCreated",function(t){var n=!1;"SCREEN"===t.stream.typeOfVideo&&(e.numberOfScreenStreams++,n=!0);var r=e.session.subscribe(t.stream,void 0);r.on("streamPlaying",function(t){r.videos[0].video.parentElement.parentElement.classList.remove("custom-class"),e.updateLayout(n)}),e.addSubscriber(r)}),this.session.on("streamDestroyed",function(t){var n=!1;"SCREEN"===t.stream.typeOfVideo&&(e.numberOfScreenStreams--,n=!0),e.deleteSubscriber(t.stream.streamManager),e.updateLayout(n)});var n=location.port?":"+location.port:"",r="wss://"+location.hostname+n+"?sessionId="+this.sessionId+"&secret="+this.secret+"&recorder=true";this.session.connect(r).catch(function(e){console.error(e)}),this.openviduLayout=new K_,this.openviduLayout.initLayoutContainer(document.getElementById("layout"),this.layoutOptions)},e.prototype.addSubscriber=function(e){this.subscribers.push(e),this.appRef.tick()},e.prototype.deleteSubscriber=function(e){for(var t=-1,n=0;n-1&&this.subscribers.splice(t,1),this.appRef.tick()},e.prototype.leaveSession=function(){this.session&&this.session.disconnect(),this.subscribers=[],this.session=null},e.prototype.updateLayout=function(e){e&&(this.layoutOptions.fixedRatio=this.numberOfScreenStreams>0,this.openviduLayout.setLayoutOptions(this.layoutOptions)),this.openviduLayout.updateLayout()},e}(),J_=Ur({encapsulation:2,styles:[[".bounds{background-color:#000;overflow:hidden;cursor:none!important;position:absolute;left:0;right:0;top:0;bottom:0}app-ov-video video{-o-object-fit:cover;object-fit:cover;display:block;position:absolute;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%;font-family:Arial,Helvetica,sans-serif}.custom-class{min-height:0!important}.OT_root,.OT_root *{color:#fff;margin:0;padding:0;border:0;font-size:100%;font-family:Arial,Helvetica,sans-serif;vertical-align:baseline}.OT_dialog-centering{display:table;width:100%;height:100%}.OT_dialog-centering-child{display:table-cell;vertical-align:middle}.OT_dialog{position:relative;box-sizing:border-box;max-width:576px;margin-right:auto;margin-left:auto;padding:36px;text-align:center;background-color:#363636;color:#fff;box-shadow:2px 4px 6px #999;font-family:'Didact Gothic',sans-serif;font-size:13px;line-height:1.4}.OT_dialog *{font-family:inherit;box-sizing:inherit}.OT_closeButton{color:#999;cursor:pointer;font-size:32px;line-height:36px;position:absolute;right:18px;top:0}.OT_dialog-messages{text-align:center}.OT_dialog-messages-main{margin-bottom:36px;line-height:36px;font-weight:300;font-size:24px}.OT_dialog-messages-minor{margin-bottom:18px;font-size:13px;line-height:18px;color:#a4a4a4}.OT_dialog-messages-minor strong{color:#fff}.OT_dialog-actions-card{display:inline-block}.OT_dialog-button-title{margin-bottom:18px;line-height:18px;font-weight:300;text-align:center;font-size:14px;color:#999}.OT_dialog-button-title label{color:#999}.OT_dialog-button-title a,.OT_dialog-button-title a:active,.OT_dialog-button-title a:link{color:#02a1de}.OT_dialog-button-title strong{color:#fff;font-weight:100;display:block}.OT_dialog-button{display:inline-block;margin-bottom:18px;padding:0 1em;background-color:#1ca3dc;text-align:center;cursor:pointer}.OT_dialog-button:disabled{cursor:not-allowed;opacity:.5}.OT_dialog-button-large{line-height:36px;padding-top:9px;padding-bottom:9px;font-weight:100;font-size:24px}.OT_dialog-button-small{line-height:18px;padding-top:9px;padding-bottom:9px;background-color:#444;color:#999;font-size:16px}.OT_dialog-progress-bar{display:inline-block;width:100%;margin-top:5px;margin-bottom:41px;border:1px solid #4e4e4e;height:8px}.OT_dialog-progress-bar-fill{height:100%;background-color:#29a4da}.OT_dialog-plugin-upgrading .OT_dialog-plugin-upgrade-percentage{line-height:54px;font-size:48px;font-weight:100}.OT_centered{position:fixed;left:50%;top:50%;margin:0}.OT_dialog-hidden{display:none}.OT_dialog-button-block{display:block}.OT_dialog-no-natural-margin{margin-bottom:0}.OT_publisher,.OT_subscriber{position:relative;min-width:48px;min-height:48px}.OT_publisher .OT_video-element,.OT_subscriber .OT_video-element{display:block;position:absolute;width:100%;height:100%;-webkit-transform-origin:0 0;transform-origin:0 0}.OT_publisher.OT_mirrored .OT_video-element{-webkit-transform:scale(-1,1);transform:scale(-1,1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.OT_subscriber_error{background-color:#000;color:#fff;text-align:center}.OT_subscriber_error>p{padding:20px}.OT_publisher .OT_archiving,.OT_publisher .OT_archiving-light-box,.OT_publisher .OT_archiving-status,.OT_publisher .OT_bar,.OT_publisher .OT_name,.OT_subscriber .OT_archiving,.OT_subscriber .OT_archiving-light-box,.OT_subscriber .OT_archiving-status,.OT_subscriber .OT_bar,.OT_subscriber .OT_name{-ms-box-sizing:border-box;box-sizing:border-box;top:0;left:0;right:0;display:block;height:34px;position:absolute}.OT_publisher .OT_bar,.OT_subscriber .OT_bar{background:rgba(0,0,0,.4)}.OT_publisher .OT_edge-bar-item,.OT_subscriber .OT_edge-bar-item{z-index:1;transition-property:top,bottom,opacity;transition-duration:.5s;transition-timing-function:ease-in}.OT_publisher .OT_name,.OT_subscriber .OT_name{background-color:transparent;color:#fff;font-size:15px;line-height:34px;font-weight:400;padding:0 4px 0 36px}.OT_publisher .OT_archiving-status,.OT_subscriber .OT_archiving-status{background:rgba(0,0,0,.4);top:auto;bottom:0;left:34px;padding:0 4px;color:rgba(255,255,255,.8);font-size:15px;line-height:34px;font-weight:400}.OT_micro .OT_archiving-status,.OT_micro:hover .OT_archiving-status,.OT_mini .OT_archiving-status,.OT_mini:hover .OT_archiving-status{display:none}.OT_publisher .OT_archiving-light-box,.OT_subscriber .OT_archiving-light-box{background:rgba(0,0,0,.4);top:auto;bottom:0;right:auto;width:34px;height:34px}.OT_archiving-light{width:7px;height:7px;border-radius:30px;position:absolute;top:14px;left:14px;background-color:#575757;box-shadow:0 0 5px 1px #575757}.OT_archiving-light.OT_active{background-color:#970d13;animation:1.3s ease-in infinite OT_pulse;-webkit-animation:1.3s ease-in OT_pulse;-moz-animation:1.3s ease-in infinite OT_pulse;-webkit-animation-iteration-count:infinite}@-webkit-keyframes OT_pulse{0%,100%,80%{box-shadow:0 0 0 0 #c70019}30%,50%{box-shadow:0 0 5px 1px #c70019}}.OT_bar.OT_mode-mini,.OT_bar.OT_mode-mini-auto,.OT_mini .OT_bar{bottom:0;height:auto}.OT_mini .OT_name.OT_mode-auto,.OT_mini .OT_name.OT_mode-off,.OT_mini .OT_name.OT_mode-on,.OT_mini:hover .OT_name.OT_mode-auto{display:none}.OT_publisher .OT_name,.OT_subscriber .OT_name{left:10px;right:37px;height:34px;padding-left:0}.OT_publisher .OT_mute,.OT_subscriber .OT_mute{border:none;cursor:pointer;display:block;position:absolute;text-align:center;text-indent:-9999em;background-color:transparent;background-repeat:no-repeat;right:0;top:0;border-left:1px solid rgba(255,255,255,.2);height:36px;width:37px}.OT_mini .OT_mute,.OT_publisher.OT_mini .OT_mute.OT_mode-auto.OT_mode-on-hold,.OT_subscriber.OT_mini .OT_mute.OT_mode-auto.OT_mode-on-hold{top:50%;left:50%;right:auto;margin-top:-18px;margin-left:-18.5px;border-left:none}.OT_publisher .OT_mute{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAcCAMAAAC02HQrAAAA1VBMVEUAAAD3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj39/j3+Pj3+Pn4+Pk/JRMlAAAAQ3RSTlMABAUHCQoLDhAQERwdHiAjLjAxOD9ASFBRVl1mbnZ6fH2LjI+QkaWqrrC1uLzAwcXJycrL1NXj5Ofo6u3w9fr7/P3+d4M3+QAAAQBJREFUGBlVwYdCglAABdCLlr5Unijm3hMUtBzlBLSr//9JgUToOQgVJgceJgU8aHgMeA38K50ZOpcQmTPwcyXn+JM8M3JJIqQypiIkeXelTyIkGZPwKS1NMia1lgKTVkaE3oQQGYsmHNqSMWnTgUFbMiZtGlD2dpaxrL1XgM0i4ZK8MeAmFhsAs29MGZniawagS63oMOQUNXYB5D0D1RMDpyoMLw/fiE2og/V+PVDR5AiBl0/2Uwik+vx4xV3a5G5Ye68Nd1czjUjZckm6VhmPciRzeCZICjwTJAViQq+3e+St167rAoHK8sLYZVkBYPCZAZ/eGa+2R5LH7Wrc0YFf/O9J3yBDFaoAAAAASUVORK5CYII=);background-position:9px 5px}.OT_publisher .OT_mute.OT_active{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAdCAYAAABFRCf7AAADcElEQVRIiaWVXWhcRRTHf7NNd2aDtUKMIjTpg4ufFIuiUOmDEWm0Vi3VYhXRqIggQh4sWJFSig9+oOhTKSpIRUWMIBIr2kptoTbgU6ooxCiIjR+14kcJmf9sNceHnd3ebnc3Uv9wuXfOzPzmnDMz5zozGwdWAbc65w5RUJQ8cC2wDJgFJioh/MJCMrNxq2vOzK4HmIvRRemxKP0RJWt53o7S+d2Yzsx6gQ+AIUDAnUqpBLzXZd4RYFUlhB/bdZacc3PAOmAcCMC7wfvFwLNdoAPAyx09bXyYWRl4E7gDmAdGlNKFwLYu8GolhO9O87RJd64GbMrgEvB68P4osMWdXLtVV7czlooNpVRWSs8DO7NpR/B+3rBHsvetCgtCMTxwQCm9BbyQrc8F7/uBex3uRCeXO0PrUZ4NfKyUPgWeyj3bg/crDNsIRGwBaJQGorQ3Svdn2wHgc2BUKb0DPJHtjwfvbwRucc7tz+N+i9LFUdoXpfVN36I0CVwBTFI/q9e1LPxT8P4qYEdu70q12mYzWw1MYQzjeJF6zq+shHC4B7jklOBPP/TzSunh4P0DwKvAfb5c9krpe+CcwsEoZdbhEvBM9wxRAl5RShcA9wAngE3B+8tLpdLuwrhp4MNmK0pfRWkySr7NXS8+L5nZbWZWy/Vin1IaitJnUTqvwevJ71lgSSWEFKUfHG7Q2m/xqFJaGry/GXgfGPLl8mJgrXPur2JoUC8Qy3OpG+sAbGhEKT0ErAWOA6uBPWbW1wr9BOgFbgKezot0kAPYqJQA1gC/A9cA+82svzksSn1R+jNKX0SpnM/e1x3yqig92JhrZivM7FjO8bSZLSuCR/Ok16K0KMNHojQWpYko7Y7S1igN5PE3ROl4lNaZ2UVmNpPBU01orvZvZPCeKFXbBR+lEKVtUapFaSZKg9njqpl9aWYTrmXCImA7sCWb9lK/jj9TrwkrgA1AH3AQuKsSwkzbrLfxpgpsBtYDxf/R3xm2ExirhNCuHHZXTsmRwiat+S/zSt06eysVA/4pmGr/G3qm6ik28v29FKgCg8BS6pvS0KNRGgZ+Bb4FpsxsOkfUlMuwDcBWYOUZOHYM2AU8WQmhBifDv70O7PjX7KZ+4G7g3FM8zd6uBIaBy4AqxnIcZwFLCovPAhE4Sj38b4BDwEeVEFKD9S94Khjn486v3QAAAABJRU5ErkJggg==);background-position:9px 4px}.OT_subscriber .OT_mute{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAATCAYAAAB7u5a2AAABx0lEQVQ4jaWUv48NURiGn3ONmCs32ZBd28ht1gqyZAkF21ylQkEiSp2ehpDlD1BoFGqqVdJohYKI7MaPxMoVNghCWMF+7ybLUewnOXfcMWO9yeQ857zne8+XmZOBGjJpr0kvTIomvTZpS526UCO4DUwD64FjwCFgqZnnR+oc8LfgzKQ73vGsr42ZtGjSQFV9o8KfBCacZwCaef4YmAf2rzjcpN3A2WSpm/AssKcqPDNpDBjs410CViXzTwk/A7b1C4wxDgOngAsZcAXY2buDfp/6S4F3lDS8DjgBzDWAjX/Y/e/QgYS/AhsKHa+OMQ6GEJ4Cj4BOAxgq6aCowyZtdf4OtAr+FHDO+R4wWnVbihr3cQnICt4boO38GWj9a/icjwOACt4m4K3zEPA+AxaAtTWCnwN3lzHkEL8V/OPAGud9wK2GF9XR1Wae/1zG2AI+pGYI4VUIoRtjHAc2A9cz4LRPevYCZ+i9/4sJt4GXJU10gaPAzdI2TTro/5Tfz8XEe2LSZGmxq/SDNvP8BnA5WRrx4BwYBe6vONx1EnjovGvBLAAd4Adwuyq8UiaNmDTvr+a8SQ9MuvbfwckBHZPe+QEfTdpep+4XZmPBHiHgz74AAAAASUVORK5CYII=);background-position:8px 7px}.OT_subscriber .OT_mute.OT_active{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAACtklEQVQ4jZ2VSYiURxTHf+/T9Nc9iRrBuYySmIsXUU9iFMEFERRBvAjJLUQi5ioiHvSScfTmgqC4XAT1ZIgLuJHkICaaQAgKI2hAUBT30bjUq7bbv4eukXK029F3+eqtv/fqK6qQdEnSNUmT6CDB/bvgfjO4N9zj2RD8007xg1IABkwEzkma0qb4PGAPMBZYLtSD8eNwAEjqTlNI0gNJM4YU7w7ut4O7gvuhZFsR3C8NC5BBLiTIY0mzM8AvqbiC++pk+zLpE95XuwAws3vAQuBPYDRwWtL84P4tsDSLv5oaug4EYOawAMF9jMdoLxqNZcDvQA04UVYqL4G/svj7AF21mhJscrvCksYBFO7xc2AAGGg2mrdjvf4rcAyomNn+slLZmUEGBgsYdh945xZJmgvckDSrEJpK6ySBgV6q12O8ABwGPjGzfWWlsjdN9rpjoSfA+DYDXARGAksK4Is3XC1Ub4z1f4CDQGFmu6tleQSYk0U+p7WVeefLJc00s4fAeWB6Qeunvj0m2ugx9gO7kmlrtSxvBfcy6fXUZS6rgG/S+jLQUwCVNmMC9HqM14EtSe+rluWazN8YEv8IqKZ1E1qnaIDO0ucx3gX6kv6TpM3AM+D/IbGjgP60/gq4WQA33gMA2OQxPgHWJX1ttSwL4FAeZGYLgB2SasBs4A8L7qOBf9M0uXQB3a+TMYSmVctyDrA9mfcBK82smSdKWgCcAaa1bTm4fxbc/8uuCQX3RanAD5Ka6Wo5IGnE0HxJPZ03pQX5Org3MsD3AO5xXLPZXJ9BjkrqdFg6QjZkgG3Jtsw93pG0VFI9QU5K6voYQBHcTydAfwheBI9HgvvPAJIWS3qeIL9JGvUxkO7gfi1BrqTvwkG/pPmSnibIqTzXPgAyEVgBjAEu1qrVPbk/PVTHgb/NbPGg/RVIzOQqzSTBaQAAAABJRU5ErkJggg==);background-position:7px 7px}.OT_publisher .OT_edge-bar-item.OT_mode-auto,.OT_publisher .OT_edge-bar-item.OT_mode-mini-auto,.OT_publisher .OT_edge-bar-item.OT_mode-off,.OT_subscriber .OT_edge-bar-item.OT_mode-auto,.OT_subscriber .OT_edge-bar-item.OT_mode-mini-auto,.OT_subscriber .OT_edge-bar-item.OT_mode-off{top:-25px;opacity:0}.OT_publisher .OT_edge-bar-item.OT_mode-off,.OT_subscriber .OT_edge-bar-item.OT_mode-off{display:none}.OT_mini .OT_mute.OT_mode-auto,.OT_publisher .OT_mute.OT_mode-mini-auto,.OT_subscriber .OT_mute.OT_mode-mini-auto{top:50%}.OT_publisher .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto,.OT_publisher .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto,.OT_publisher .OT_edge-bar-item.OT_edge-bottom.OT_mode-off,.OT_subscriber .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto,.OT_subscriber .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto,.OT_subscriber .OT_edge-bar-item.OT_edge-bottom.OT_mode-off{top:auto;bottom:-25px}.OT_publisher .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold,.OT_publisher .OT_edge-bar-item.OT_mode-on,.OT_publisher:hover .OT_edge-bar-item.OT_mode-auto,.OT_publisher:hover .OT_edge-bar-item.OT_mode-mini-auto,.OT_subscriber .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold,.OT_subscriber .OT_edge-bar-item.OT_mode-on,.OT_subscriber:hover .OT_edge-bar-item.OT_mode-auto,.OT_subscriber:hover .OT_edge-bar-item.OT_mode-mini-auto{top:0;opacity:1}.OT_mini .OT_mute.OT_mode-on,.OT_mini:hover .OT_mute.OT_mode-auto,.OT_mute.OT_mode-mini,.OT_root:hover .OT_mute.OT_mode-mini-auto{top:50%}.OT_publisher .OT_edge-bar-item.OT_edge-bottom.OT_mode-on,.OT_publisher:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto,.OT_subscriber .OT_edge-bar-item.OT_edge-bottom.OT_mode-on,.OT_subscriber:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto{top:auto;bottom:0;opacity:1}.OT_widget-container{width:100%;height:100%;position:absolute;background-color:#000;overflow:hidden}.OT_root .OT_video-loading{position:absolute;z-index:1;width:100%;height:100%;display:none;background-color:rgba(0,0,0,.75)}.OT_root .OT_video-loading .OT_video-loading-spinner{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0yMCAtMjAgMjQwIDI0MCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4Mj0iMCIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjA4Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImMiIHgxPSIxIiB4Mj0iMCIgeTE9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMDgiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjE2Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImQiIHgyPSIwIiB5MT0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii4xNiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMzMiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZSIgeDI9IjEiIHkxPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjMzIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii42NiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJmIiB4Mj0iMSIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuNjYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiLz48L2xpbmVhckdyYWRpZW50PjxtYXNrIGlkPSJnIj48ZyBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjQwIj48cGF0aCBzdHJva2U9InVybCgjYSkiIGQ9Ik04Ni42LTUwYTEwMCAxMDAgMCAwIDEgMCAxMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2IpIiBkPSJNODYuNiA1MEExMDAgMTAwIDAgMCAxIDAgMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNjKSIgZD0iTTAgMTAwYTEwMCAxMDAgMCAwIDEtODYuNi01MCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAwIDEwMCkiLz48cGF0aCBzdHJva2U9InVybCgjZCkiIGQ9Ik0tODYuNiA1MGExMDAgMTAwIDAgMCAxIDAtMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNlKSIgZD0iTS04Ni42LTUwQTEwMCAxMDAgMCAwIDEgMC0xMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2YpIiBkPSJNMC0xMDBhMTAwIDEwMCAwIDAgMSA4Ni42IDUwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjwvZz48L21hc2s+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHg9Ii0yMCIgeT0iLTIwIiBtYXNrPSJ1cmwoI2cpIiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat;position:absolute;width:32px;height:32px;left:50%;top:50%;margin-left:-16px;margin-top:-16px;-webkit-animation:2s linear infinite OT_spin;animation:2s linear infinite OT_spin}@-webkit-keyframes OT_spin{100%{-webkit-transform:rotate(360deg)}}@keyframes OT_spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.OT_publisher.OT_loading .OT_video-loading,.OT_subscriber.OT_loading .OT_video-loading{display:block}.OT_video-centering{display:table;width:100%;height:100%}.OT_video-container{display:table-cell;vertical-align:middle}.OT_video-poster{position:absolute;z-index:1;width:100%;height:100%;display:none;opacity:.25;background-repeat:no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDcxIDQ2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSI2Ni42NiUiIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTc5IDMwOGMxNC4yNS02LjUgNTQuMjUtMTkuNzUgNzEtMjkgOS0zLjI1IDI1LTIxIDI1LTIxczMuNzUtMTMgMy0yMmMtMS43NS02Ljc1LTE1LTQzLTE1LTQzLTIuNSAzLTQuNzQxIDMuMjU5LTcgMS0zLjI1LTcuNS0yMC41LTQ0LjUtMTYtNTcgMS4yNS03LjUgMTAtNiAxMC02LTExLjI1LTMzLjc1LTgtNjctOC02N3MuMDczLTcuMzQ2IDYtMTVjLTMuNDguNjM3LTkgNC05IDQgMi41NjMtMTEuNzI3IDE1LTIxIDE1LTIxIC4xNDgtLjMxMi0xLjMyMS0xLjQ1NC0xMCAxIDEuNS0yLjc4IDE2LjY3NS04LjY1NCAzMC0xMSAzLjc4Ny05LjM2MSAxMi43ODItMTcuMzk4IDIyLTIyLTIuMzY1IDMuMTMzLTMgNi0zIDZzMTUuNjQ3LTguMDg4IDQxLTZjLTE5Ljc1IDItMjQgNi0yNCA2czc0LjUtMTAuNzUgMTA0IDM3YzcuNSA5LjUgMjQuNzUgNTUuNzUgMTAgODkgMy43NS0xLjUgNC41LTQuNSA5IDEgLjI1IDE0Ljc1LTExLjUgNjMtMTkgNjItMi43NSAxLTQtMy00LTMtMTAuNzUgMjkuNS0xNCAzOC0xNCAzOC0yIDQuMjUtMy43NSAxOC41LTEgMjIgMS4yNSA0LjUgMjMgMjMgMjMgMjNsMTI3IDUzYzM3IDM1IDIzIDEzNSAyMyAxMzVMMCA0NjRzLTMtOTYuNzUgMTQtMTIwYzUuMjUtNi4yNSAyMS43NS0xOS43NSA2NS0zNnoiLz48L3N2Zz4=);background-size:auto 76%}.OT_fit-mode-cover .OT_video-element{-o-object-fit:cover;object-fit:cover}@media only screen and (orientation:portrait){.OT_subscriber.OT_ForceContain.OT_fit-mode-cover .OT_video-element{-o-object-fit:contain!important;object-fit:contain!important}}.OT_fit-mode-contain .OT_video-element{-o-object-fit:contain;object-fit:contain}.OT_fit-mode-cover .OT_video-poster{background-position:center bottom}.OT_fit-mode-contain .OT_video-poster{background-position:center}.OT_audio-level-meter{position:absolute;width:25%;max-width:224px;min-width:21px;top:0;right:0;overflow:hidden}.OT_audio-level-meter:before{content:'';display:block;padding-top:100%}.OT_audio-level-meter__bar{position:absolute;width:192%;height:192%;top:-96%;right:-96%;border-radius:50%;background-color:rgba(0,0,0,.8)}.OT_audio-level-meter__audio-only-img{position:absolute;top:22%;right:15%;width:40%;opacity:.7;background:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNzkgODYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTkuNzU3IDQwLjkyNGMzLjczOC01LjE5MSAxMi43MTEtNC4zMDggMTIuNzExLTQuMzA4IDIuMjIzIDMuMDE0IDUuMTI2IDI0LjU4NiAzLjYyNCAyOC43MTgtMS40MDEgMS4zMDEtMTEuNjExIDEuNjI5LTEzLjM4LTEuNDM2LTEuMjI2LTguODA0LTIuOTU1LTIyLjk3NS0yLjk1NS0yMi45NzV6bTU4Ljc4NSAwYy0zLjczNy01LjE5MS0xMi43MTEtNC4zMDgtMTIuNzExLTQuMzA4LTIuMjIzIDMuMDE0LTUuMTI2IDI0LjU4Ni0zLjYyNCAyOC43MTggMS40MDEgMS4zMDEgMTEuNjExIDEuNjI5IDEzLjM4LTEuNDM2IDEuMjI2LTguODA0IDIuOTU1LTIyLjk3NSAyLjk1NS0yMi45NzV6Ii8+PHBhdGggZD0iTTY4LjY0NyA1OC42Yy43MjktNC43NTMgMi4zOC05LjU2MSAyLjM4LTE0LjgwNCAwLTIxLjQxMi0xNC4xMTUtMzguNzctMzEuNTI4LTM4Ljc3LTE3LjQxMiAwLTMxLjUyNyAxNy4zNTgtMzEuNTI3IDM4Ljc3IDAgNC41NDEuNTE1IDguOTM2IDEuODAyIDEyLjk1IDEuNjk4IDUuMjk1LTUuNTQyIDYuOTkxLTYuNjE2IDIuMDczQzIuNDEgNTUuMzk0IDAgNTEuNzg3IDAgNDguMTAzIDAgMjEuNTM2IDE3LjY4NSAwIDM5LjUgMCA2MS4zMTYgMCA3OSAyMS41MzYgNzkgNDguMTAzYzAgLjcxOC0yLjg5OSA5LjY5My0zLjI5MiAxMS40MDgtLjc1NCAzLjI5My03Ljc1MSAzLjU4OS03LjA2MS0uOTEyeiIvPjxwYXRoIGQ9Ik01LjA4NCA1MS4zODVjLS44MDQtMy43ODIuNTY5LTcuMzM1IDMuMTM0LTcuOTIxIDIuNjM2LS42MDMgNS40ODUgMi4xNSA2LjI4OSA2LjEzMi43OTcgMy45NDgtLjc1MiA3LjQ1Ny0zLjM4OCA3Ljg1OS0yLjU2Ni4zOTEtNS4yMzctMi4zMTgtNi4wMzQtNi4wN3ptNjguODM0IDBjLjgwNC0zLjc4Mi0uNTY4LTcuMzM1LTMuMTMzLTcuOTIxLTIuNjM2LS42MDMtNS40ODUgMi4xNS02LjI4OSA2LjEzMi0uNzk3IDMuOTQ4Ljc1MiA3LjQ1NyAzLjM4OSA3Ljg1OSAyLjU2NS4zOTEgNS4yMzctMi4zMTggNi4wMzQtNi4wN3ptLTIuMDM4IDguMjg4Yy0uOTI2IDE5LjY1OS0xNS4xMTIgMjQuNzU5LTI1Ljg1OSAyMC40NzUtNS40MDUtLjYwNi0zLjAzNCAxLjI2Mi0zLjAzNCAxLjI2MiAxMy42NjEgMy41NjIgMjYuMTY4IDMuNDk3IDMxLjI3My0yMC41NDktLjU4NS00LjUxMS0yLjM3OS0xLjE4Ny0yLjM3OS0xLjE4N3oiLz48cGF0aCBkPSJNNDEuNjYyIDc4LjQyMmw3LjU1My41NWMxLjE5Mi4xMDcgMi4xMiAxLjE1MyAyLjA3MiAyLjMzNWwtLjEwOSAyLjczOGMtLjA0NyAxLjE4Mi0xLjA1MSAyLjA1NC0yLjI0MyAxLjk0NmwtNy41NTMtLjU1Yy0xLjE5MS0uMTA3LTIuMTE5LTEuMTUzLTIuMDcyLTIuMzM1bC4xMDktMi43MzdjLjA0Ny0xLjE4MiAxLjA1Mi0yLjA1NCAyLjI0My0xLjk0N3oiLz48L2c+PC9zdmc+) center no-repeat}.OT_audio-level-meter__audio-only-img:before{content:'';display:block;padding-top:100%}.OT_audio-level-meter__value{position:absolute;border-radius:50%;background-image:radial-gradient(circle,rgba(151,206,0,1) 0,rgba(151,206,0,0) 100%)}.OT_audio-level-meter.OT_mode-off{display:none}.OT_audio-level-meter.OT_mode-on,.OT_audio-only .OT_audio-level-meter.OT_mode-auto{display:block}.OT_audio-only.OT_publisher .OT_video-element,.OT_audio-only.OT_subscriber .OT_video-element{display:none}.OT_video-disabled-indicator{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:bottom right;pointer-events:none;top:0;left:0;bottom:3px;right:3px}.OT_video-disabled{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAINUlEQVR42u2aaUxUVxTHcRBmAAEBRVTK4sKwDIsg+wCK7CqIw1CN1YobbbS2qYlJ06Qx1UpdqMbYWq2pSzWmH6ytNbXWJY1Lq7VuqBERtW64V0XFLYae0/xvcp3MMAMzDz6IyT/ge2ce5/7ucpY3Ts3NzZ1ygF57AJ0gO0G2jyZPmdbFyclJSAV1EeoEaUUSLGdSV5KLLFxzFmA7QVqGqDqjixhWkxCVeyRVl38wM6bwj6yYItYK47BAuu9B0gCqs6Ng2r494KQtkj/Dz2jHraw6qw2fdSE4rNmcCPCvZONP8iF1I6kdBdMaQJWZLeJqRWa2kPJAxXY+GxE+zxLI03GRh8lGSwoi9WCY8FWlCEh+8JOnT7MfPGjMuXX7Tt61hoaCi/9cKmKdv3BxeEtim/UbNpnbQiqF4MmT7kqrbr4lkMcTo46TTSpJB5g+8NHuVWnWuaampvhmO/7duHmrGluoO4C6OsJZGRrkDIld43ZqUOTnlkDSmXmabAoBU0vqBf+6KgFSxQ9++uzZ8rZApM81TJ8xM5me0Z/UF7PuBmdVdkGEb5gYDeQmyZNW3SJLIP9Kj64lGyMpmxRN6sOfIbkoAhKOdnv2/PmB1kB88eLFo+olyyrps3rSINIAzLonnqlqK8R9w+L86vtrt5L2nhug3Vc3ULu/Liz8AOuXESlZZONH6kmr7gtLIA9lRNeRzVukAvj3BslLnJNKgfScO69K+/Lly0ZbQW7e8tNK+pwBjqaSIjDrXgJkW1ciAZvbQjQ+RDahpBBKd5ZZsqN758hmImk4KQHnpDd8UwSkCyJarx07d4+3BeKJmlMHyX4qaRxpBCmNFE4KENvHDpAutVERn1kCVBMfeRRgYvZnx62wZPdnZkw92VQA5GClQXYRBze2S+iJmpPVVoJLA9l9QKokjcWKTCT1R5rhLg70NuSsziT16diIKkuAjibrTpJNDkn/e17CahtAjlAWJAYkb29Sb1LE9Rs391kILk8mVkyuIpuZcLKUlEmKkra1WuSTNuesEPzwoEploSVAh9Oiz+BIyd9dOHhtx4OEpFpVg6gbNK3yXX1j48N6U5Dz5i/gc/FDrMY3sTLiSMEkXxGxzUEUAGnbxlPaksMlHUXWAlHS8URCPseSohZbCSLjSSU7ixLXdzhIWVKq4Y7t2a/2bN0qGeKly1fYsVmk6RgIDz4J0bonyUOcjeYqm/8hRoYbWkigV2NH9CHAS60EkUkkw47hSRs6FqT1LR5AVcsrueXlK1d5AO+RpmBrZZEiefByytPCanRGNLZY0uF52gNDYr9sCRB8MHY0SJu2OJWKS2WQV65e4y31DmkCImEi0hBfufRime0RIhpbKen0/Ny9OYNW2ghyYytABjNIaxNuKttAWk6HPLn0k0FevdZwFinPWFIuKZbUV16NVko6jbWSDoPO3pOf8K0jQWLSQ0S9bdpkYck+m7vfWpAiHfKgBsZiGSSt0FqcTeU8WETqAHE2CgcAVd3Gkm4MD3xXYeI6B4NMItvKbcUpQ9gP+KMWnSsW+TaYJtoo+avBWLoKoK0CCSDud+7eXWQGZAXqV3YoQjQCfixJ8+fzj9ta3JHhlUeJ8wJOY2ws6eRKpPS3oqTvHAESEz9ya0naXL5WH6pt3FqSOhTHkTcKEXc6k1POh4Q9YJu/03TT4a8PoGMFI4i2EqSbOZAYaBkpCyD92RkG6KCSbjI/H0HEISBnlOZPFdcEzI2GTO4KBZICGKyAKLTEmJOB2txf5MbgohBINCl4FTqmpJMB2W+HiRn1Q2l6lXyPmiEP6VVE2TfGoaMYrHyPdtAnyI0jEOn9RLWmNEhvBBE7SjpFQZaShtLK+1S+T12lRwxUvrZlVPp8jE1PikeO7C/nyEqBDCB1t7+kUx4kKUWclea0yZC5BIGpiJSNSD9QgFR0RQKkL6KxHSWdsiARHJNYewoGrzG1/bk4dTPSunL2EyDjcbb7MQ+lQfZmkKiN7SjpFAM5CWAyGcwyY84YsZ1lUcbRNNtQMAdtQWGvQ0DyVjzYAKQfQFodeAeC1C8vzymXIZqD+ZEh/2OyLSalS/3VbnJZ+VqDXGjMrTCFuK4s66vVZUNfqaDolcbjOcb899sLpEE+I20GifywXe2QR3KElu99PzqjGufhREqB1pjCnG3IL3fY1v733r2FMsiGhutn0LAoJWWIGbPxjKwgjUbF0m52mPhigrpdXOecEq9pR6MkHbu2LOtrcZ9y3d0ODTb15y9MePz48aF79+8fvXnr9sljx2u2I7KNxDuaMPGVECoRs7mC4eT7SIruFNfNHK15MKuM2evwNq+4qjxvGnd5CHwNNynawW4cOlUZdG8b55IIJHmkItwrZHH6QxB3OSL9kTtAGpIvZiQB3Z4SKBfXQtEE9sashWAW87Bt3sYZNR6zn4uzJwWDKUKXfaKCdqUoBpLxSjYe9nqGiwWRBGipuGZ3Qm76itYLbbJI/PEhUApfw73uOIy9xfse3M9F9BuFJHcYrseSouGkHtCVtkuGTTikI8XgZzhg9SeF4VqcvSWiaSvNHQ8JwkNjIfEHemCmNLD1RaEfLs18mlgNuN6PFALHo7CyU5W2g00gFAQF4ozvibH04muwDbWraSFAyt/AAMzewgGR8uCeWn77xzBxPxgzPRCDDMZ14bQ/3jqGKGoHf2Hjgx3kw5LbaJDYWb52t9FMgw4AuWNWukNeuOYqOsmQi2jgws4PA/DD/z0B2x0/veCs4naw0cgybezid7X9jV3rX2RSs0wfLkll4pBGcgifg+NYxe1kJ2ycTaRq66uG/wBOl0vjcw70xwAAAABJRU5ErkJggg==);background-size:33px auto}.OT_video-disabled-warning{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAGMElEQVR4Ae2aA7D0yBaAc7oH12vbRmlLaxYWb23btm3btm2899a2bWuYtPZ01cmtU9lJrib315yqr9I3Oem/5/s7acwEnehEJzoxCcX2O+wEeIgRBDDaGjAZOgQ6ihRpLklHZDJIXK1WWymMIhGGkVBKCWMM+Iv/f/b5t7faYtM/sGgIS7j8RNLjceUVl41GvGN1BFiHy9sgtRWaYbhvuVQ6o1VOvV5/tLe3dyssKoZuh8xClkDEi2MMS6ZjR0cScxdK/+HgnJsmLccYOx0e/PUGUqfTJDEHkV5go9lcMQoj4R8RpSIRRUr4a9baTJFCCNfqESKJ7RYJibK0xoi05EhFRTxMi1Rit6xHAuLaKRLwEVi6q1x+EhlVpd3d3Wfh4VQkQhRhxthYLg7SRGqdLlIp7UVOHf+JhEhEMscUolVje3p63saeeOFoKsT7fjj++BNuw2I/0ouUENmGaQcQEilQvUU6xuWC0kqmVWCt8df6kG7WLoFA20VSCOyNh0RKPT+SyrTWtQsvuvTYCy84z3+oAdbgAiLGIvHjTz6bFuu/B3lKKfVkFKknwih6EnnipZdfXQZzepAupXSGSCfwUGZtkrx3t/0dSQGnnXbmdocdetArQoj+4VR23wMP3bj/vnv9Sv/rBmkish09ca655thHSrlWq4TFF1vkNDxsgjiUnPqZnHPABIq47jx7pPMcecShfz7x1DO7D6eit99576X1113nVd8rqLGAuDaNitJonTGIqHgQGQjDsJglMrUH5iDSEQbRa6y2yrNvv/PuWVmV/PTzLz8steTit1B9FtGJeZrJksmWdBzBMcami4xUkaY1A1Qe94WIaPGBApJhaERrLrXkElf8+NPPz6YMLs1DDjn0Wn9PnI/UiQadM4jNEkhzVsEGE8nIHESM1j5/KqRX+/IEiOQ/yifNBlEkpnb00cccesbpp13T3983H88/48xzrrvm6it/8U5JXgX5G6nSvSq1R5LATR7aYGkwMG1RSwkWABH+4jUb3vT/uJ1Z0xpjraTBRltrxUQhksIRmgTJyy69+Pv99tv3qYX6FxgU+fU33352xGEHf5wisU7nNWJpZRMkAjZ6aIN1mwV7h29Jo2wCHlveu/GV169z65E+T6koexCh6c+EEiky3lnxQKFjUeVyOeI5AOBzIiayRhJryd7YYnkIHgvB0qk9Tdql6N3XH4bRUIOIIIKJSiRb0hkSEpZKRd1CpEq8GxtIyCVmDSgFl94GacTgaJw1rUlYhYng0c4ewaUsmKRIJjpiqMSOCh9QeI+UYECmtQIsxEu6OorEcv6Rl0gu0woh8MhFkmSCTXVI4pC704WCFRJvSRNJSzrMMEZO2iKZTCHAZYnmvXCny7ed5vfZK3viHSBdIFCKEFj2+nt+73nw8m2uedcLJlktA++VNMEPaR45aYukcKnnCfY3/DFbZS8t7eHxNgsPM0N1hXhJJwwM1QbpoQFlog2R13a/zBxEYHAQEUYUM6qiVwEyBYoM6JFNF2kFLelI5KQf+fVI4dJFCguDS7oAyx2R6SFQJKRedSDj/cMg/RXQ6ZE05GSIDAaXdCi1I3L021SQWNJ1RLY5OiIdL4/yvuw8ADfWPFrSciaMyH8tEQPwf1uGG54g5+KlJGTmsrxsQdl5PKidnPFe2QS///7Hu+VS6WX/HYnf0sevGL7lXydwod2/9DykZq0s5yff0sgSWCigNOH7TPHL7ufj+/TH8P/+qYpL4HkBDiRYpEXeM8/89/9zzjn7EtY64dfd1nqccM7Bs8+9MKy8555/8TnKS+5MufH6EZVASkgPzf+mJXroet17JirU0ALST3nT0y5ONyLpeo1y64ih+vuQfsoTOeRFSJXa+SvyB90TUmdw49EjLaKpMQ0mzEeTzkWsd/oI6fzfiKM8gWg6X6OjpXstu5ZHnmIb0GFiu29MIUfUewkmVrEN3RqVQ/bY8FzNcquMBv/pCNUZ5pHHem01KdN/I/DG66/lLhKSvTO5M84kav5C5z2ZfyAivi9i9VGd45RH7UWJbjwGG/7NYsRECt7jiOToHedKAui8SW4CsxyRc54mKH/8f7ELhCCACyNcIl/wI+FaAJyc8yzRtinQPzWzuFZrFHq/AAAAAElFTkSuQmCC);background-size:33px auto}.OT_video-disabled-indicator.OT_active{display:block}.OT_audio-blocked-indicator{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:center;pointer-events:none;top:0;left:0;bottom:0;right:0}.OT_audio-blocked{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUwIiBoZWlnaHQ9IjkwIj48ZGVmcz48cGF0aCBkPSJNNjcgMTJMNi40NDggNzIuNTUyIDAgMzFWMThMMjYgMGw0MSAxMnptMyA3bDYgNDctMjkgMTgtMzUuNTAyLTYuNDk4TDcwIDE5eiIgaWQ9ImEiLz48L2RlZnM+PHJlY3Qgd2lkdGg9IjE1MCIgaGVpZ2h0PSI5MCIgcng9IjM1IiByeT0iNDUiIG9wYWNpdHk9Ii41Ii8+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNikiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjxwYXRoIGQ9Ik0zOS4yNDkgNTEuMzEyYy42OTcgMTAuMzcgMi43ODUgMTcuODk3IDUuMjUxIDE3Ljg5NyAzLjAzOCAwIDUuNS0xMS40MTcgNS41LTI1LjVzLTIuNDYyLTI1LjUtNS41LTI1LjVjLTIuNTEgMC00LjYyOCA3Ljc5Ny01LjI4NyAxOC40NTNBOC45ODkgOC45ODkgMCAwIDEgNDMgNDRhOC45ODggOC45ODggMCAwIDEtMy43NTEgNy4zMTJ6TTIwLjk4NSAzMi4yMjRsMTUuNzQ2LTE2Ljg3N2E3LjM4NSA3LjM4NSAwIDAgMSAxMC4zNzQtLjQyQzUxLjcwMiAxOS4xMTQgNTQgMjkuMjA4IDU0IDQ1LjIwOGMwIDE0LjUyNy0yLjM0MyAyMy44OC03LjAzIDI4LjA1OGE3LjI4IDcuMjggMCAwIDEtMTAuMTY4LS40NjhMMjAuNDA1IDU1LjIyNEgxMmE1IDUgMCAwIDEtNS01di0xM2E1IDUgMCAwIDEgNS01aDguOTg1eiIgZmlsbD0iI0ZGRiIgbWFzaz0idXJsKCNiKSIvPjwvZz48cGF0aCBkPSJNMTA2LjUgMTMuNUw0NC45OTggNzUuMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:90px auto}.OT_container-audio-blocked{cursor:pointer}.OT_container-audio-blocked .OT_mute,.OT_container-audio-blocked.OT_mini .OT_edge-bar-item{display:none}.OT_audio-blocked-indicator.OT_active{display:block}.OT_video-unsupported{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:center;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:58px auto;pointer-events:none;top:0;left:0;bottom:0;right:0;margin-top:-30px}.OT_video-unsupported-bar{display:none;position:absolute;width:192%;height:192%;top:-96%;left:-96%;border-radius:50%;background-color:rgba(0,0,0,.8)}.OT_video-unsupported-img{display:none;position:absolute;top:11%;left:15%;width:70%;opacity:.7;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-repeat:no-repeat;background-position:center;background-size:100% auto}.OT_video-unsupported-img:before{content:'';display:block;padding-top:93%}.OT_video-unsupported-text{display:flex;justify-content:center;align-items:center;text-align:center;height:100%;margin-top:40px}"]],data:{}});function $_(e){return Po(0,[(e()(),gi(0,0,null,null,3,"div",[["class","OT_root OT_publisher custom-class"]],null,null,null,null,null)),(e()(),gi(1,0,null,null,2,"div",[["class","OT_widget-container"]],null,null,null,null,null)),(e()(),gi(2,0,null,null,1,"app-ov-video",[],null,null,null,Y_,Q_)),io(3,4243456,null,0,Z_,[],{subscriber:[0,"subscriber"]},null)],function(e,t){e(t,3,0,t.context.$implicit)},null)}function ew(e){return Po(0,[(e()(),gi(0,0,null,null,2,"div",[["class","bounds"],["id","layout"]],null,null,null,null,null)),(e()(),mi(16777216,null,null,1,null,$_)),io(2,802816,null,0,bu,[Sn,En,Wn],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.subscribers)},null)}var tw=Ni("app-layout-best-fit",X_,function(e){return Po(0,[(e()(),gi(0,0,null,null,1,"app-layout-best-fit",[],null,[["window","beforeunload"],["window","resize"]],function(e,t,n){var r=!0;return"window:beforeunload"===t&&(r=!1!==Wi(e,1).beforeunloadHandler()&&r),"window:resize"===t&&(r=!1!==Wi(e,1).sizeChange(n)&&r),r},ew,J_)),io(1,245760,null,0,X_,[ld,cn],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),nw=function(){};function rw(e){return Error("A hint was already declared for 'align=\""+e+"\"'.")}var iw=0,ow=kf(function(e){this._elementRef=e},"primary"),sw=new ge("MAT_FORM_FIELD_DEFAULT_OPTIONS"),aw=function(e){function t(t,n,r,i,o,s,a,u){var l=e.call(this,t)||this;return l._elementRef=t,l._changeDetectorRef=n,l._dir=i,l._defaultOptions=o,l._platform=s,l._ngZone=a,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+iw++,l._labelId="mat-form-field-label-"+iw++,l._outlineGapWidth=0,l._outlineGapStart=0,l._initialGapCalculated=!1,l._labelOptions=r||{},l.floatLabel=l._labelOptions.float||"auto",l._animationsEnabled="NoopAnimations"!==u,l}return i(t,e),Object.defineProperty(t.prototype,"appearance",{get:function(){return this._appearance||this._defaultOptions&&this._defaultOptions.appearance||"legacy"},set:function(e){this._appearance=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=Pp(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatLabel",{get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),t.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},t.prototype.ngAfterContentInit=function(){var e=this;this._validateControlChild(),this._control.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+this._control.controlType),this._control.stateChanges.pipe(Yp(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),te(this._control.ngControl&&this._control.ngControl.valueChanges||_a,this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Yp(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Yp(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})},t.prototype.ngAfterContentChecked=function(){var e=this;this._validateControlChild(),this._initialGapCalculated||(this._ngZone?this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){return e.updateOutlineGap()})}):Promise.resolve().then(function(){return e.updateOutlineGap()}))},t.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},t.prototype._shouldForward=function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]},t.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},t.prototype._hasLabel=function(){return!!this._labelChild},t.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},t.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},t.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},t.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},t.prototype._animateAndLockLabel=function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,rh(this._label.nativeElement,"transitionend").pipe(ka(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())},t.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},t.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},t.prototype._validateHints=function(){var e,t,n=this;this._hintChildren&&this._hintChildren.forEach(function(r){if("start"===r.align){if(e||n.hintLabel)throw rw("start");e=r}else if("end"===r.align){if(t)throw rw("end");t=r}})},t.prototype._syncDescribedByIds=function(){if(this._control){var e=[];if("hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&(e=this._errorChildren.map(function(e){return e.id}));this._control.setDescribedByIds(e)}},t.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},t.prototype.updateOutlineGap=function(){if("outline"===this.appearance&&this._label&&this._label.nativeElement.children.length){if(this._platform&&!this._platform.isBrowser)return void(this._initialGapCalculated=!0);if(!document.documentElement.contains(this._elementRef.nativeElement))return;for(var e=this._getStartEnd(this._connectionContainerRef.nativeElement.getBoundingClientRect()),t=this._getStartEnd(this._label.nativeElement.children[0].getBoundingClientRect()),n=0,r=0,i=this._label.nativeElement.children;r enter",animation:[{type:6,styles:{opacity:0,transform:"translateY(-100%)"},offset:null},{type:4,styles:null,timings:"300ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function cw(e){return Po(0,[(e()(),gi(0,0,null,null,8,null,null,null,null,null,null,null)),(e()(),gi(1,0,null,null,3,"div",[["class","mat-form-field-outline"]],null,null,null,null,null)),(e()(),gi(2,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],[[4,"width","px"]],null,null,null,null)),(e()(),gi(3,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],[[4,"width","px"]],null,null,null,null)),(e()(),gi(4,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null)),(e()(),gi(5,0,null,null,3,"div",[["class","mat-form-field-outline mat-form-field-outline-thick"]],null,null,null,null,null)),(e()(),gi(6,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],[[4,"width","px"]],null,null,null,null)),(e()(),gi(7,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],[[4,"width","px"]],null,null,null,null)),(e()(),gi(8,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null))],null,function(e,t){var n=t.component;e(t,2,0,n._outlineGapStart),e(t,3,0,n._outlineGapWidth),e(t,6,0,n._outlineGapStart),e(t,7,0,n._outlineGapWidth)})}function dw(e){return Po(0,[(e()(),gi(0,0,null,null,1,"div",[["class","mat-form-field-prefix"]],null,null,null,null,null)),To(null,0)],null,null)}function pw(e){return Po(0,[(e()(),gi(0,0,null,null,2,null,null,null,null,null,null,null)),To(null,2),(e()(),Io(2,null,["",""]))],null,function(e,t){e(t,2,0,t.component._control.placeholder)})}function hw(e){return Po(0,[To(null,3),(e()(),mi(0,null,null,0))],null,null)}function fw(e){return Po(0,[(e()(),gi(0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(e()(),Io(-1,null,["\xa0*"]))],null,null)}function mw(e){return Po(0,[(e()(),gi(0,0,[[4,0],["label",1]],null,7,"label",[["class","mat-form-field-label"]],[[8,"id",0],[1,"for",0],[1,"aria-owns",0],[2,"mat-empty",null],[2,"mat-form-field-empty",null],[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null)),io(1,16384,null,0,xu,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),mi(16777216,null,null,1,null,pw)),io(3,278528,null,0,Tu,[Sn,En,xu],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),mi(16777216,null,null,1,null,hw)),io(5,278528,null,0,Tu,[Sn,En,xu],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),mi(16777216,null,null,1,null,fw)),io(7,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,n._hasLabel()),e(t,3,0,!1),e(t,5,0,!0),e(t,7,0,!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)},function(e,t){var n=t.component;e(t,0,0,n._labelId,n._control.id,n._control.id,n._control.empty&&!n._shouldAlwaysFloat,n._control.empty&&!n._shouldAlwaysFloat,"accent"==n.color,"warn"==n.color)})}function gw(e){return Po(0,[(e()(),gi(0,0,null,null,1,"div",[["class","mat-form-field-suffix"]],null,null,null,null,null)),To(null,4)],null,null)}function yw(e){return Po(0,[(e()(),gi(0,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-form-field-underline"]],null,null,null,null,null)),(e()(),gi(1,0,null,null,0,"span",[["class","mat-form-field-ripple"]],[[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,1,0,"accent"==n.color,"warn"==n.color)})}function vw(e){return Po(0,[(e()(),gi(0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),To(null,5)],null,function(e,t){e(t,0,0,t.component._subscriptAnimationState)})}function bw(e){return Po(0,[(e()(),gi(0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(e()(),Io(1,null,["",""]))],null,function(e,t){var n=t.component;e(t,0,0,n._hintLabelId),e(t,1,0,n.hintLabel)})}function _w(e){return Po(0,[(e()(),gi(0,0,null,null,5,"div",[["class","mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(e()(),mi(16777216,null,null,1,null,bw)),io(2,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),To(null,6),(e()(),gi(4,0,null,null,0,"div",[["class","mat-form-field-hint-spacer"]],null,null,null,null,null)),To(null,7)],function(e,t){e(t,2,0,t.component.hintLabel)},function(e,t){e(t,0,0,t.component._subscriptAnimationState)})}function ww(e){return Po(2,[wo(671088640,1,{underlineRef:0}),wo(402653184,2,{_connectionContainerRef:0}),wo(402653184,3,{_inputContainerRef:0}),wo(671088640,4,{_label:0}),(e()(),gi(4,0,null,null,20,"div",[["class","mat-form-field-wrapper"]],null,null,null,null,null)),(e()(),gi(5,0,[[2,0],["connectionContainer",1]],null,11,"div",[["class","mat-form-field-flex"]],null,[[null,"click"]],function(e,t,n){var r=!0,i=e.component;return"click"===t&&(r=!1!==(i._control.onContainerClick&&i._control.onContainerClick(n))&&r),r},null,null)),(e()(),mi(16777216,null,null,1,null,cw)),io(7,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),mi(16777216,null,null,1,null,dw)),io(9,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),gi(10,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-form-field-infix"]],null,null,null,null,null)),To(null,1),(e()(),gi(12,0,null,null,2,"span",[["class","mat-form-field-label-wrapper"]],null,null,null,null,null)),(e()(),mi(16777216,null,null,1,null,mw)),io(14,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),mi(16777216,null,null,1,null,gw)),io(16,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),mi(16777216,null,null,1,null,yw)),io(18,16384,null,0,wu,[Sn,En],{ngIf:[0,"ngIf"]},null),(e()(),gi(19,0,null,null,5,"div",[["class","mat-form-field-subscript-wrapper"]],null,null,null,null,null)),io(20,16384,null,0,xu,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),mi(16777216,null,null,1,null,vw)),io(22,278528,null,0,Tu,[Sn,En,xu],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),mi(16777216,null,null,1,null,_w)),io(24,278528,null,0,Tu,[Sn,En,xu],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(e,t){var n=t.component;e(t,7,0,"outline"==n.appearance),e(t,9,0,n._prefixChildren.length),e(t,14,0,n._hasFloatingLabel()),e(t,16,0,n._suffixChildren.length),e(t,18,0,"outline"!=n.appearance),e(t,20,0,n._getDisplayedMessages()),e(t,22,0,"error"),e(t,24,0,"hint")},null)}var Ew=!!Fp()&&{passive:!0},Sw=function(){function e(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}return e.prototype.monitor=function(e){var t=this;if(!this._platform.isBrowser)return _a;var n=this._monitoredElements.get(e);if(n)return n.subject.asObservable();var r=new oe,i=function(n){"cdk-text-field-autofill-start"===n.animationName?(e.classList.add("cdk-text-field-autofilled"),t._ngZone.run(function(){return r.next({target:n.target,isAutofilled:!0})})):"cdk-text-field-autofill-end"===n.animationName&&(e.classList.remove("cdk-text-field-autofilled"),t._ngZone.run(function(){return r.next({target:n.target,isAutofilled:!1})}))};return this._ngZone.runOutsideAngular(function(){e.addEventListener("animationstart",i,Ew),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:r,unlisten:function(){e.removeEventListener("animationstart",i,Ew)}}),r.asObservable()},e.prototype.stopMonitoring=function(e){var t=this._monitoredElements.get(e);t&&(t.unlisten(),t.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))},e.prototype.ngOnDestroy=function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})},e.ngInjectableDef=me({factory:function(){return new e(nt(Vp),nt(Ht))},token:e,providedIn:"root"}),e}(),Cw=function(){},xw=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Tw=0,Ow=function(e){function t(t,n,r,i,o,s,a,u,l){var c=e.call(this,s,i,o,r)||this;return c._elementRef=t,c._platform=n,c.ngControl=r,c._autofillMonitor=u,c._uid="mat-input-"+Tw++,c._isServer=!1,c.focused=!1,c.stateChanges=new oe,c.controlType="mat-input",c.autofilled=!1,c._disabled=!1,c._required=!1,c._type="text",c._readonly=!1,c._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return Bp().has(e)}),c._inputValueAccessor=a||c._elementRef.nativeElement,c._previousNativeValue=c.value,c.id=c.id,n.IOS&&l.runOutsideAngular(function(){t.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),c._isServer=!c._platform.isBrowser,c}return i(t,e),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Pp(e),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(e){this._required=Pp(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&Bp().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=Pp(e)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})},t.prototype.ngOnChanges=function(){this.stateChanges.next()},t.prototype.ngOnDestroy=function(){this.stateChanges.complete(),this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)},t.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},t.prototype.focus=function(){this._elementRef.nativeElement.focus()},t.prototype._focusChanged=function(e){e===this.focused||this.readonly||(this.focused=e,this.stateChanges.next())},t.prototype._onInput=function(){},t.prototype._dirtyCheckNativeValue=function(){var e=this.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())},t.prototype._validateType=function(){if(xw.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},t.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},t.prototype._isBadInput=function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput},t.prototype._isTextarea=function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()},Object.defineProperty(t.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!0,configurable:!0}),t.prototype.setDescribedByIds=function(e){this._ariaDescribedby=e.join(" ")},t.prototype.onContainerClick=function(){this.focus()},t}(function(e){return function(e){function t(){for(var t=[],n=0;n0){var r=e.slice(0,t),i=e.slice(t+1).trim();n.set(r,i)}}),n},e.prototype.append=function(e,t){var n=this.getAll(e);null===n?this.set(e,t):n.push(t)},e.prototype.delete=function(e){var t=e.toLowerCase();this._normalizedNames.delete(t),this._headers.delete(t)},e.prototype.forEach=function(e){var t=this;this._headers.forEach(function(n,r){return e(n,t._normalizedNames.get(r),t._headers)})},e.prototype.get=function(e){var t=this.getAll(e);return null===t?null:t.length>0?t[0]:null},e.prototype.has=function(e){return this._headers.has(e.toLowerCase())},e.prototype.keys=function(){return Array.from(this._normalizedNames.values())},e.prototype.set=function(e,t){Array.isArray(t)?t.length&&this._headers.set(e.toLowerCase(),[t.join(",")]):this._headers.set(e.toLowerCase(),[t]),this.mayBeSetNormalizedName(e)},e.prototype.values=function(){return Array.from(this._headers.values())},e.prototype.toJSON=function(){var e=this,t={};return this._headers.forEach(function(n,r){var i=[];n.forEach(function(e){return i.push.apply(i,u(e.split(",")))}),t[e._normalizedNames.get(r)]=i}),t},e.prototype.getAll=function(e){return this.has(e)&&this._headers.get(e.toLowerCase())||null},e.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},e.prototype.mayBeSetNormalizedName=function(e){var t=e.toLowerCase();this._normalizedNames.has(t)||this._normalizedNames.set(t,e)},e}(),Bw=function(){function e(e){void 0===e&&(e={});var t=e.body,n=e.status,r=e.headers,i=e.statusText,o=e.type,s=e.url;this.body=null!=t?t:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=i?i:null,this.type=null!=o?o:null,this.url=null!=s?s:null}return e.prototype.merge=function(t){return new e({body:t&&null!=t.body?t.body:this.body,status:t&&null!=t.status?t.status:this.status,headers:t&&null!=t.headers?t.headers:this.headers,statusText:t&&null!=t.statusText?t.statusText:this.statusText,type:t&&null!=t.type?t.type:this.type,url:t&&null!=t.url?t.url:this.url})},e}(),Uw=function(e){function t(){return e.call(this,{status:200,statusText:"Ok",type:jw.Default,headers:new zw})||this}return i(t,e),t}(Bw),Hw=function(){};function Gw(e){if("string"!=typeof e)return e;switch(e.toUpperCase()){case"GET":return Lw.Get;case"POST":return Lw.Post;case"PUT":return Lw.Put;case"DELETE":return Lw.Delete;case"OPTIONS":return Lw.Options;case"HEAD":return Lw.Head;case"PATCH":return Lw.Patch}throw new Error('Invalid request method. The method "'+e+'" is not supported.')}var Ww=function(e){return e>=200&&e<300},qw=function(){function e(){}return e.prototype.encodeKey=function(e){return Zw(e)},e.prototype.encodeValue=function(e){return Zw(e)},e}();function Zw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var Qw=function(){function e(e,t){void 0===e&&(e=""),void 0===t&&(t=new qw),this.rawParams=e,this.queryEncoder=t,this.paramsMap=function(e){void 0===e&&(e="");var t=new Map;return e.length>0&&e.split("&").forEach(function(e){var n=e.indexOf("="),r=a(-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)],2),i=r[0],o=r[1],s=t.get(i)||[];s.push(o),t.set(i,s)}),t}(e)}return e.prototype.clone=function(){var t=new e("",this.queryEncoder);return t.appendAll(this),t},e.prototype.has=function(e){return this.paramsMap.has(e)},e.prototype.get=function(e){var t=this.paramsMap.get(e);return Array.isArray(t)?t[0]:null},e.prototype.getAll=function(e){return this.paramsMap.get(e)||[]},e.prototype.set=function(e,t){if(void 0!==t&&null!==t){var n=this.paramsMap.get(e)||[];n.length=0,n.push(t),this.paramsMap.set(e,n)}else this.delete(e)},e.prototype.setAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){var r=t.paramsMap.get(n)||[];r.length=0,r.push(e[0]),t.paramsMap.set(n,r)})},e.prototype.append=function(e,t){if(void 0!==t&&null!==t){var n=this.paramsMap.get(e)||[];n.push(t),this.paramsMap.set(e,n)}},e.prototype.appendAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){for(var r=t.paramsMap.get(n)||[],i=0;i=200&&n.status<=299,n.statusText=t.statusText,n.headers=t.headers,n.type=t.type,n.url=t.url,n}return i(t,e),t.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},t}(Yw),Xw=/^\)\]\}',?\n/,Jw=function(){function e(e,t,n){var r=this;this.request=e,this.response=new A(function(i){var o=t.build();o.open(Lw[e.method].toUpperCase(),e.url),null!=e.withCredentials&&(o.withCredentials=e.withCredentials);var s=function(){var t=1223===o.status?204:o.status,r=null;204!==t&&"string"==typeof(r=void 0===o.response?o.responseText:o.response)&&(r=r.replace(Xw,"")),0===t&&(t=r?200:0);var s,a=zw.fromResponseHeaderString(o.getAllResponseHeaders()),u=("responseURL"in(s=o)?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):null)||e.url,l=new Bw({body:r,status:t,headers:a,statusText:o.statusText||"OK",url:u});null!=n&&(l=n.merge(l));var c=new Kw(l);if(c.ok=Ww(t),c.ok)return i.next(c),void i.complete();i.error(c)},a=function(e){var t=new Bw({body:e,type:jw.Error,status:o.status,statusText:o.statusText});null!=n&&(t=n.merge(t)),i.error(new Kw(t))};if(r.setDetectedContentType(e,o),null==e.headers&&(e.headers=new zw),e.headers.has("Accept")||e.headers.append("Accept","application/json, text/plain, */*"),e.headers.forEach(function(e,t){return o.setRequestHeader(t,e.join(","))}),null!=e.responseType&&null!=o.responseType)switch(e.responseType){case Fw.ArrayBuffer:o.responseType="arraybuffer";break;case Fw.Json:o.responseType="json";break;case Fw.Text:o.responseType="text";break;case Fw.Blob:o.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return o.addEventListener("load",s),o.addEventListener("error",a),o.send(r.request.getBody()),function(){o.removeEventListener("load",s),o.removeEventListener("error",a),o.abort()}})}return e.prototype.setDetectedContentType=function(e,t){if(null==e.headers||null==e.headers.get("Content-Type"))switch(e.contentType){case Vw.NONE:break;case Vw.JSON:t.setRequestHeader("content-type","application/json");break;case Vw.FORM:t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case Vw.TEXT:t.setRequestHeader("content-type","text/plain");break;case Vw.BLOB:var n=e.blob();n.type&&t.setRequestHeader("content-type",n.type)}},e}(),$w=function(){function e(e,t){void 0===e&&(e="XSRF-TOKEN"),void 0===t&&(t="X-XSRF-TOKEN"),this._cookieName=e,this._headerName=t}return e.prototype.configureRequest=function(e){var t=Vu().getCookie(this._cookieName);t&&e.headers.set(this._headerName,t)},e}(),eE=function(){function e(e,t,n){this._browserXHR=e,this._baseResponseOptions=t,this._xsrfStrategy=n}return e.prototype.createConnection=function(e){return this._xsrfStrategy.configureRequest(e),new Jw(e,this._browserXHR,this._baseResponseOptions)},e}(),tE=function(){function e(e){void 0===e&&(e={});var t=e.method,n=e.headers,r=e.body,i=e.url,o=e.search,s=e.params,a=e.withCredentials,u=e.responseType;this.method=null!=t?Gw(t):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=i?i:null,this.params=this._mergeSearchParams(s||o),this.withCredentials=null!=a?a:null,this.responseType=null!=u?u:null}return Object.defineProperty(e.prototype,"search",{get:function(){return this.params},set:function(e){this.params=e},enumerable:!0,configurable:!0}),e.prototype.merge=function(t){return new e({method:t&&null!=t.method?t.method:this.method,headers:t&&null!=t.headers?t.headers:new zw(this.headers),body:t&&null!=t.body?t.body:this.body,url:t&&null!=t.url?t.url:this.url,params:t&&this._mergeSearchParams(t.params||t.search),withCredentials:t&&null!=t.withCredentials?t.withCredentials:this.withCredentials,responseType:t&&null!=t.responseType?t.responseType:this.responseType})},e.prototype._mergeSearchParams=function(e){return e?e instanceof Qw?e.clone():"string"==typeof e?new Qw(e):this._parseParams(e):this.params},e.prototype._parseParams=function(e){var t=this;void 0===e&&(e={});var n=new Qw;return Object.keys(e).forEach(function(r){var i=e[r];Array.isArray(i)?i.forEach(function(e){return t._appendParam(r,e,n)}):t._appendParam(r,i,n)}),n},e.prototype._appendParam=function(e,t,n){"string"!=typeof t&&(t=JSON.stringify(t)),n.append(e,t)},e}(),nE=function(e){function t(){return e.call(this,{method:Lw.Get,headers:new zw})||this}return i(t,e),t}(tE),rE=function(e){function t(t){var n=e.call(this)||this,r=t.url;n.url=t.url;var i,o=t.params||t.search;if(o&&(i="object"!=typeof o||o instanceof Qw?o.toString():function(e){var t=new Qw;return Object.keys(e).forEach(function(n){var r=e[n];r&&Array.isArray(r)?r.forEach(function(e){return t.append(n,e.toString())}):t.append(n,r.toString())}),t}(o).toString()).length>0){var s="?";-1!=n.url.indexOf("?")&&(s="&"==n.url[n.url.length-1]?"":"&"),n.url=r+s+i}return n._body=t.body,n.method=Gw(t.method),n.headers=new zw(t.headers),n.contentType=n.detectContentType(),n.withCredentials=t.withCredentials,n.responseType=t.responseType,n}return i(t,e),t.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return Vw.JSON;case"application/x-www-form-urlencoded":return Vw.FORM;case"multipart/form-data":return Vw.FORM_DATA;case"text/plain":case"text/html":return Vw.TEXT;case"application/octet-stream":return this._body instanceof uE?Vw.ARRAY_BUFFER:Vw.BLOB;default:return this.detectContentTypeFromBody()}},t.prototype.detectContentTypeFromBody=function(){return null==this._body?Vw.NONE:this._body instanceof Qw?Vw.FORM:this._body instanceof sE?Vw.FORM_DATA:this._body instanceof aE?Vw.BLOB:this._body instanceof uE?Vw.ARRAY_BUFFER:this._body&&"object"==typeof this._body?Vw.JSON:Vw.TEXT},t.prototype.getBody=function(){switch(this.contentType){case Vw.JSON:case Vw.FORM:return this.text();case Vw.FORM_DATA:return this._body;case Vw.TEXT:return this.text();case Vw.BLOB:return this.blob();case Vw.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},t}(Yw),iE=function(){},oE="object"==typeof window?window:iE,sE=oE.FormData||iE,aE=oE.Blob||iE,uE=oE.ArrayBuffer||iE;function lE(e,t){return e.createConnection(t).response}function cE(e,t,n,r){return e.merge(new tE(t?{method:t.method||n,url:t.url||r,search:t.search,params:t.params,headers:t.headers,body:t.body,withCredentials:t.withCredentials,responseType:t.responseType}:{method:n,url:r}))}var dE=function(){function e(e,t){this._backend=e,this._defaultOptions=t}return e.prototype.request=function(e,t){var n;if("string"==typeof e)n=lE(this._backend,new rE(cE(this._defaultOptions,t,Lw.Get,e)));else{if(!(e instanceof rE))throw new Error("First argument must be a url string or Request instance.");n=lE(this._backend,e)}return n},e.prototype.get=function(e,t){return this.request(new rE(cE(this._defaultOptions,t,Lw.Get,e)))},e.prototype.post=function(e,t,n){return this.request(new rE(cE(this._defaultOptions.merge(new tE({body:t})),n,Lw.Post,e)))},e.prototype.put=function(e,t,n){return this.request(new rE(cE(this._defaultOptions.merge(new tE({body:t})),n,Lw.Put,e)))},e.prototype.delete=function(e,t){return this.request(new rE(cE(this._defaultOptions,t,Lw.Delete,e)))},e.prototype.patch=function(e,t,n){return this.request(new rE(cE(this._defaultOptions.merge(new tE({body:t})),n,Lw.Patch,e)))},e.prototype.head=function(e,t){return this.request(new rE(cE(this._defaultOptions,t,Lw.Head,e)))},e.prototype.options=function(e,t){return this.request(new rE(cE(this._defaultOptions,t,Lw.Options,e)))},e}();function pE(){return new $w}function hE(e,t){return new dE(e,t)}var fE=function(){},mE=function(){},gE=function(){},yE=function(){},vE=function(){},bE=function(){},_E=function(){},wE=function(){function e(e,t){Lu(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return e.withConfig=function(t,n){var r=Object.assign({},Tm),i=[];for(var o in t)t[o]===r[o]||!1!==t[o]&&!0!==t[o]||(r[o]=t[o]);return t.serverLoaded&&i.push({provide:Vm,useValue:!0}),Array.isArray(n)&&i.push({provide:mm,useValue:n,multi:!0}),i.push({provide:Om,useValue:r}),{ngModule:e,providers:i}},e}(),EE=function(e,t,n){return new Vs(ya,[va],function(e){return function(e){for(var t={},n=[],r=!1,i=0;i