Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@angular/platform-server

Package Overview
Dependencies
Maintainers
1
Versions
866
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/platform-server - npm Package Compare versions

Comparing version 4.0.0-rc.1 to 4.0.0-rc.2

14

@angular/platform-server/testing.es5.js

@@ -0,1 +1,3 @@

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
import { platformCoreDynamicTesting } from '@angular/compiler/testing';

@@ -11,3 +13,3 @@ import { createPlatformFactory, NgModule } from '@angular/core';

*/
const platformServerTesting = createPlatformFactory(platformCoreDynamicTesting, 'serverTesting', ɵINTERNAL_SERVER_PLATFORM_PROVIDERS);
var platformServerTesting = createPlatformFactory(platformCoreDynamicTesting, 'serverTesting', ɵINTERNAL_SERVER_PLATFORM_PROVIDERS);
/**

@@ -18,7 +20,13 @@ * NgModule for testing.

*/
class ServerTestingModule {}
var ServerTestingModule = function ServerTestingModule() {
_classCallCheck(this, ServerTestingModule);
};
ServerTestingModule.decorators = [{ type: NgModule, args: [{ exports: [BrowserDynamicTestingModule], providers: ɵSERVER_RENDER_PROVIDERS }] }];
/** @nocollapse */
ServerTestingModule.ctorParameters = () => [];
ServerTestingModule.ctorParameters = function () {
return [];
};
export { platformServerTesting, ServerTestingModule };
/**
* @license Angular v4.0.0-rc.1
* @license Angular v4.0.0-rc.2
* (c) 2010-2017 Google, Inc. https://angular.io/

@@ -4,0 +4,0 @@ * License: MIT

@@ -1,2 +0,2 @@

!function(global,factory){if("function"==typeof define&&define.amd)define("@angular/platform-server",["exports","@angular/core","@angular/platform-browser","@angular/common","@angular/compiler","@angular/http","rxjs/Observable","rxjs/Subject","url","rxjs/operator/filter","rxjs/operator/first","rxjs/operator/toPromise","parse5","xhr2","parse5","parse5"],factory);else if("undefined"!=typeof exports)factory(exports,require("@angular/core"),require("@angular/platform-browser"),require("@angular/common"),require("@angular/compiler"),require("@angular/http"),require("rxjs/Observable"),require("rxjs/Subject"),require("url"),require("rxjs/operator/filter"),require("rxjs/operator/first"),require("rxjs/operator/toPromise"),require("parse5"),require("xhr2"),require("parse5"),require("parse5"));else{var mod={exports:{}};factory(mod.exports,global.ng.core,global.ng.platformBrowser,global.ng.common,global.ng.compiler,global.angularHttp,global.rxjsObservable,global.rxjsSubject,global.url,global.rxjsOperatorFilter,global.rxjsOperatorFirst,global.rxjsOperatorToPromise,global.parse5,global.xhr2,global.parse5,global.parse5),global.ng=global.ng||{},global.ng.platformServer=mod.exports}}(this,function(exports,_core,_platformBrowser,_common,_compiler,_http,_Observable,_Subject,_url,_filter,_first,_toPromise,parse5,xhr2,parse5$1,parse5$2){"use strict";function _interopRequireWildcard(obj){if(obj&&obj.__esModule)return obj;var newObj={};if(null!=obj)for(var key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&(newObj[key]=obj[key]);return newObj.default=obj,newObj}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}return Array.from(arr)}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function httpFactory(e,r){var o=new ZoneMacroTaskBackend(e);return new _http.Http(o,r)}function scheduleMicroTask(e){Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function isPresent(e){return null!=e}function isBlank(e){return null==e}function stringify(e){if("string"==typeof e)return e;if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var r=e.toString(),o=r.indexOf("\n");return-1===o?r:r.substring(0,o)}function setValueOnPath(e,r,o){for(var s=r.split("."),d=e;1<s.length;){var l=s.shift();d=d.hasOwnProperty(l)&&null!=d[l]?d[l]:d[l]={}}(void 0===d||null===d)&&(d={}),d[s.shift()]=o}function parseUrl(e){var r=url.parse(e);return{pathname:r.pathname||"",search:r.search||"",hash:r.hash||""}}function _notImplemented(e){return new Error("This method is not implemented in Parse5DomAdapter: "+e)}function parseDocument(e){return parse5$1.parse(e,{treeAdapter:parse5$1.treeAdapters.htmlparser2})}function moveNodesAfterSibling(e,r){var o=(0,_platformBrowser.ɵgetDOM)().parentElement(e);if(0<r.length&&o){var s=(0,_platformBrowser.ɵgetDOM)().nextSibling(e);if(s)for(var d=0;d<r.length;d++)(0,_platformBrowser.ɵgetDOM)().insertBefore(o,s,r[d]);else for(var _d=0;_d<r.length;_d++)(0,_platformBrowser.ɵgetDOM)().appendChild(o,r[_d])}}function appendNodes(e,r){for(var o=0;o<r.length;o++)(0,_platformBrowser.ɵgetDOM)().appendChild(e,r[o])}function initParse5Adapter(){return function(){Parse5DomAdapter.makeCurrent()}}function _createConditionalRootRenderer(e){return(0,_core.isDevMode)()?new _core.ɵDebugDomRootRenderer(e):e}function _document(e){var r=e.get(INITIAL_CONFIG,null);return r&&r.document?parseDocument(r.document):(0,_platformBrowser.ɵgetDOM)().createHtmlDocument()}function _getPlatform(e,r){var o=r.extraProviders?r.extraProviders:[];return e([{provide:INITIAL_CONFIG,useValue:{document:r.document,url:r.url}},o])}function _render(e,r){return r.then(function(o){var s=o.injector.get(_platformBrowser.ɵTRANSITION_ID,null);if(!s)throw new Error("renderModule[Factory]() requires the use of BrowserModule.withServerTransition() to ensure\nthe server-rendered app can be properly bootstrapped into a client app.");var d=o.injector.get(_core.ApplicationRef);return _toPromise.toPromise.call(_first.first.call(_filter.filter.call(d.isStable,function(l){return l}))).then(function(){var l=e.injector.get(PlatformState).renderToString();return e.destroy(),l})})}function renderModule(e,r){var o=_getPlatform(platformDynamicServer,r);return _render(o,o.bootstrapModule(e))}function renderModuleFactory(e,r){var o=_getPlatform(platformServer,r);return _render(o,o.bootstrapModuleFactory(e))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.ɵd=exports.ɵb=exports.ɵc=exports.ɵa=exports.ɵg=exports.ɵf=exports.ɵe=exports.ɵh=exports.ɵSERVER_RENDER_PROVIDERS=exports.ɵINTERNAL_SERVER_PLATFORM_PROVIDERS=exports.VERSION=exports.renderModuleFactory=exports.renderModule=exports.INITIAL_CONFIG=exports.platformServer=exports.platformDynamicServer=exports.ServerModule=exports.PlatformState=void 0;var url=_interopRequireWildcard(_url),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;if(void 0!==getter)return getter.call(receiver)},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),PlatformState=function(){function PlatformState(e){_classCallCheck(this,PlatformState),this._doc=e}return _createClass(PlatformState,[{key:"renderToString",value:function(){return(0,_platformBrowser.ɵgetDOM)().getInnerHTML(this._doc)}},{key:"getDocument",value:function(){return this._doc}}]),PlatformState}();PlatformState.decorators=[{type:_core.Injectable}],PlatformState.ctorParameters=function(){return[{type:void 0,decorators:[{type:_core.Inject,args:[_platformBrowser.DOCUMENT]}]}]};var ServerXhr=function(){function ServerXhr(){_classCallCheck(this,ServerXhr)}return _createClass(ServerXhr,[{key:"build",value:function(){return new xhr2.XMLHttpRequest}}]),ServerXhr}();ServerXhr.decorators=[{type:_core.Injectable}],ServerXhr.ctorParameters=function(){return[]};var ServerXsrfStrategy=function(){function ServerXsrfStrategy(){_classCallCheck(this,ServerXsrfStrategy)}return _createClass(ServerXsrfStrategy,[{key:"configureRequest",value:function(){}}]),ServerXsrfStrategy}();ServerXsrfStrategy.decorators=[{type:_core.Injectable}],ServerXsrfStrategy.ctorParameters=function(){return[]};var ZoneMacroTaskConnection=function(){function ZoneMacroTaskConnection(e,r){var _this=this;_classCallCheck(this,ZoneMacroTaskConnection),this.request=e,this.response=new _Observable.Observable(function(o){var s=null,d=!1,l=null,c=null,p=null,g=Zone.current.scheduleMacroTask("ZoneMacroTaskConnection.subscribe",function(){null===p?(o.next(c),o.complete()):o.error(p)},{},function(){return null},function(){d&&(d=!1,l&&(l.unsubscribe(),l=null))});return function(f){s=f,d=!0,_this.lastConnection=r.createConnection(e),l=_this.lastConnection.response.subscribe(function(y){return c=y},function(y){if(!d)throw new Error("invoke twice");p=y,d=!1,s.invoke()},function(){if(!d)throw new Error("invoke twice");d=!1,s.invoke()})}(g),function(){d&&s&&(s.zone.cancelTask(s),d=!1),l&&(l.unsubscribe(),l=null)}})}return _createClass(ZoneMacroTaskConnection,[{key:"readyState",get:function(){return this.lastConnection?this.lastConnection.readyState:_http.ReadyState.Unsent}}]),ZoneMacroTaskConnection}(),ZoneMacroTaskBackend=function(){function ZoneMacroTaskBackend(e){_classCallCheck(this,ZoneMacroTaskBackend),this.backend=e}return _createClass(ZoneMacroTaskBackend,[{key:"createConnection",value:function(e){return new ZoneMacroTaskConnection(e,this.backend)}}]),ZoneMacroTaskBackend}(),SERVER_HTTP_PROVIDERS=[{provide:_http.Http,useFactory:httpFactory,deps:[_http.XHRBackend,_http.RequestOptions]},{provide:_http.BrowserXhr,useClass:ServerXhr},{provide:_http.XSRFStrategy,useClass:ServerXsrfStrategy}],globalScope="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window,global$1=globalScope;global$1.assert=function(){};var INITIAL_CONFIG=new _core.InjectionToken("Server.INITIAL_CONFIG"),ServerPlatformLocation=function(){function ServerPlatformLocation(e,r){_classCallCheck(this,ServerPlatformLocation),this._doc=e,this._path="/",this._search="",this._hash="",this._hashUpdate=new _Subject.Subject;var o=r;if(o&&o.url){var s=parseUrl(o.url);this._path=s.pathname,this._search=s.search,this._hash=s.hash}}return _createClass(ServerPlatformLocation,[{key:"getBaseHrefFromDOM",value:function(){return(0,_platformBrowser.ɵgetDOM)().getBaseHref(this._doc)}},{key:"onPopState",value:function(){}},{key:"onHashChange",value:function(e){this._hashUpdate.subscribe(e)}},{key:"setHash",value:function(e,r){var _this2=this;if(this._hash!==e){this._hash=e;var o=this.url;scheduleMicroTask(function(){return _this2._hashUpdate.next({type:"hashchange",oldUrl:r,newUrl:o})})}}},{key:"replaceState",value:function(e,r,o){var s=this.url,d=parseUrl(o);this._path=d.pathname,this._search=d.search,this.setHash(d.hash,s)}},{key:"pushState",value:function(e,r,o){this.replaceState(e,r,o)}},{key:"forward",value:function(){throw new Error("Not implemented")}},{key:"back",value:function(){throw new Error("Not implemented")}},{key:"pathname",get:function(){return this._path}},{key:"search",get:function(){return this._search}},{key:"hash",get:function(){return this._hash}},{key:"url",get:function(){return""+this.pathname+this.search+this.hash}}]),ServerPlatformLocation}();ServerPlatformLocation.decorators=[{type:_core.Injectable}],ServerPlatformLocation.ctorParameters=function(){return[{type:void 0,decorators:[{type:_core.Inject,args:[_platformBrowser.DOCUMENT]}]},{type:void 0,decorators:[{type:_core.Optional},{type:_core.Inject,args:[INITIAL_CONFIG]}]}]};var ListWrapper=function(){function ListWrapper(){_classCallCheck(this,ListWrapper)}return _createClass(ListWrapper,null,[{key:"findLast",value:function(e,r){for(var o=e.length-1;0<=o;o--)if(r(e[o]))return e[o];return null}},{key:"removeAll",value:function(e,r){for(var o=0;o<r.length;++o){var s=e.indexOf(r[o]);-1<s&&e.splice(s,1)}}},{key:"remove",value:function(e,r){var o=e.indexOf(r);return!!(-1<o)&&(e.splice(o,1),!0)}},{key:"equals",value:function(e,r){if(e.length!=r.length)return!1;for(var o=0;o<e.length;++o)if(e[o]!==r[o])return!1;return!0}},{key:"flatten",value:function(e){return e.reduce(function(r,o){var s=Array.isArray(o)?ListWrapper.flatten(o):o;return r.concat(s)},[])}}]),ListWrapper}(),treeAdapter=void 0,_attrToPropMap={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},mapProps=["attribs","x-attribsNamespace","x-attribsPrefix"],Parse5DomAdapter=function(_DomAdapter){function Parse5DomAdapter(){return _classCallCheck(this,Parse5DomAdapter),_possibleConstructorReturn(this,(Parse5DomAdapter.__proto__||Object.getPrototypeOf(Parse5DomAdapter)).apply(this,arguments))}return _inherits(Parse5DomAdapter,_DomAdapter),_createClass(Parse5DomAdapter,[{key:"hasProperty",value:function(e,r){return-1<_HTMLElementPropertyList.indexOf(r)}},{key:"setProperty",value:function(e,r,o){"innerHTML"===r?this.setInnerHTML(e,o):"className"===r?e.attribs.class=e.className=o:e[r]=o}},{key:"getProperty",value:function(e,r){return e[r]}},{key:"logError",value:function(e){console.error(e)}},{key:"log",value:function(e){console.log(e)}},{key:"logGroup",value:function(e){console.error(e)}},{key:"logGroupEnd",value:function(){}},{key:"querySelector",value:function(e,r){return this.querySelectorAll(e,r)[0]}},{key:"querySelectorAll",value:function(e,r){var _this4=this,o=[],s=function s(l,c,p,m){var u=c.childNodes;if(u&&0<u.length)for(var h=0;h<u.length;h++){var g=u[h];_this4.elementMatches(g,p,m)&&l.push(g),s(l,g,p,m)}},d=new _compiler.SelectorMatcher;return d.addSelectables(_compiler.CssSelector.parse(r)),s(o,e,r,d),o}},{key:"elementMatches",value:function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(this.isElementNode(e)&&"*"===r)return!0;var s=!1;if(r&&"#"==r.charAt(0))s=this.getAttribute(e,"id")==r.substring(1);else if(r){o||(o=new _compiler.SelectorMatcher,o.addSelectables(_compiler.CssSelector.parse(r)));var d=new _compiler.CssSelector;if(d.setElement(this.tagName(e)),e.attribs)for(var c in e.attribs)d.addAttribute(c,e.attribs[c]);for(var l=this.classList(e),_c=0;_c<l.length;_c++)d.addClassName(l[_c]);o.match(d,function(){s=!0})}return s}},{key:"on",value:function(e,r,o){var s=e._eventListenersMap;s||(s={},e._eventListenersMap=s);var d=s[r]||[];s[r]=[].concat(_toConsumableArray(d),[o])}},{key:"onAndCancel",value:function(e,r,o){return this.on(e,r,o),function(){ListWrapper.remove(e._eventListenersMap[r],o)}}},{key:"dispatchEvent",value:function(e,r){if(r.target||(r.target=e),e._eventListenersMap){var o=e._eventListenersMap[r.type];if(o)for(var s=0;s<o.length;s++)o[s](r)}e.parent&&this.dispatchEvent(e.parent,r),e._window&&this.dispatchEvent(e._window,r)}},{key:"createMouseEvent",value:function(e){return this.createEvent(e)}},{key:"createEvent",value:function(e){var r={type:e,defaultPrevented:!1,preventDefault:function(){r.defaultPrevented=!0}};return r}},{key:"preventDefault",value:function(e){e.returnValue=!1}},{key:"isPrevented",value:function(e){return isPresent(e.returnValue)&&!e.returnValue}},{key:"getInnerHTML",value:function(e){return parse5$1.serialize(this.templateAwareRoot(e),{treeAdapter:treeAdapter})}},{key:"getTemplateContent",value:function(){return null}},{key:"getOuterHTML",value:function(e){var r=treeAdapter.createDocumentFragment();return this.appendChild(r,e),parse5$1.serialize(r,{treeAdapter:treeAdapter})}},{key:"nodeName",value:function(e){return e.tagName}},{key:"nodeValue",value:function(e){return e.nodeValue}},{key:"type",value:function(){throw _notImplemented("type")}},{key:"content",value:function(e){return e.childNodes[0]}},{key:"firstChild",value:function(e){return e.firstChild}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"parentElement",value:function(e){return e.parent}},{key:"childNodes",value:function(e){return e.childNodes}},{key:"childNodesAsList",value:function(e){for(var r=e.childNodes,o=Array(r.length),s=0;s<r.length;s++)o[s]=r[s];return o}},{key:"clearNodes",value:function(e){for(;0<e.childNodes.length;)this.remove(e.childNodes[0])}},{key:"appendChild",value:function(e,r){this.remove(r),treeAdapter.appendChild(this.templateAwareRoot(e),r)}},{key:"removeChild",value:function(e,r){-1<e.childNodes.indexOf(r)&&this.remove(r)}},{key:"remove",value:function(e){var r=e.parent;if(r){var d=r.childNodes.indexOf(e);r.childNodes.splice(d,1)}var o=e.previousSibling,s=e.nextSibling;return o&&(o.next=s),s&&(s.prev=o),e.prev=null,e.next=null,e.parent=null,e}},{key:"insertBefore",value:function(e,r,o){this.remove(o),r?treeAdapter.insertBefore(e,o,r):this.appendChild(e,o)}},{key:"insertAllBefore",value:function(e,r,o){var _this5=this;o.forEach(function(s){return _this5.insertBefore(e,r,s)})}},{key:"insertAfter",value:function(e,r,o){r.nextSibling?this.insertBefore(e,r.nextSibling,o):this.appendChild(e,o)}},{key:"setInnerHTML",value:function(e,r){this.clearNodes(e);for(var o=parse5$1.parseFragment(r,{treeAdapter:treeAdapter}),s=0;s<o.childNodes.length;s++)treeAdapter.appendChild(e,o.childNodes[s])}},{key:"getText",value:function(e,r){if(this.isTextNode(e))return e.data;if(this.isCommentNode(e))return r?"":e.data;if(!e.childNodes||0==e.childNodes.length)return"";for(var o="",s=0;s<e.childNodes.length;s++)o+=this.getText(e.childNodes[s],!0);return o}},{key:"setText",value:function(e,r){this.isTextNode(e)||this.isCommentNode(e)?e.data=r:(this.clearNodes(e),""!==r&&treeAdapter.insertText(e,r))}},{key:"getValue",value:function(e){return e.value}},{key:"setValue",value:function(e,r){e.value=r}},{key:"getChecked",value:function(e){return e.checked}},{key:"setChecked",value:function(e,r){e.checked=r}},{key:"createComment",value:function(e){return treeAdapter.createCommentNode(e)}},{key:"createTemplate",value:function(e){var r=treeAdapter.createElement("template","http://www.w3.org/1999/xhtml",[]),o=parse5$1.parseFragment(e,{treeAdapter:treeAdapter});return treeAdapter.setTemplateContent(r,o),r}},{key:"createElement",value:function(e){return treeAdapter.createElement(e,"http://www.w3.org/1999/xhtml",[])}},{key:"createElementNS",value:function(e,r){return treeAdapter.createElement(r,e,[])}},{key:"createTextNode",value:function(e){var r=this.createComment(e);return r.type="text",r}},{key:"createScriptTag",value:function(e,r){return treeAdapter.createElement("script","http://www.w3.org/1999/xhtml",[{name:e,value:r}])}},{key:"createStyleElement",value:function(e){var r=this.createElement("style");return this.setText(r,e),r}},{key:"createShadowRoot",value:function(e){return e.shadowRoot=treeAdapter.createDocumentFragment(),e.shadowRoot.parent=e,e.shadowRoot}},{key:"getShadowRoot",value:function(e){return e.shadowRoot}},{key:"getHost",value:function(e){return e.host}},{key:"getDistributedNodes",value:function(){throw _notImplemented("getDistributedNodes")}},{key:"clone",value:function(e){var r=function r(o){var s=Object.create(Object.getPrototypeOf(o));for(var l in o){var c=Object.getOwnPropertyDescriptor(o,l);c&&"value"in c&&"object"!=_typeof(c.value)&&(s[l]=o[l])}s.parent=null,s.prev=null,s.next=null,s.children=null,mapProps.forEach(function(l){if(isPresent(o[l]))for(var _c2 in s[l]={},o[l])s[l][_c2]=o[l][_c2]});var d=o.children;if(d){for(var _l=Array(d.length),_c3=0;_c3<d.length;_c3++){var p=d[_c3],m=r(p);_l[_c3]=m,0<_c3&&(m.prev=_l[_c3-1],_l[_c3-1].next=m),m.parent=s}s.children=_l}return s};return r(e)}},{key:"getElementsByClassName",value:function(e,r){return this.querySelectorAll(e,"."+r)}},{key:"getElementsByTagName",value:function(e,r){return this.querySelectorAll(e,r)}},{key:"classList",value:function(e){var r=null,o=e.attribs;return o&&null!=o.class&&(r=o.class),r?r.trim().split(/\s+/g):[]}},{key:"addClass",value:function(e,r){var o=this.classList(e),s=o.indexOf(r);-1==s&&(o.push(r),e.attribs.class=e.className=o.join(" "))}},{key:"removeClass",value:function(e,r){var o=this.classList(e),s=o.indexOf(r);-1<s&&(o.splice(s,1),e.attribs.class=e.className=o.join(" "))}},{key:"hasClass",value:function(e,r){return-1<this.classList(e).indexOf(r)}},{key:"hasStyle",value:function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=this.getStyle(e,r)||"";return o?s==o:0<s.length}},{key:"_readStyleAttribute",value:function(e){var r={},o=e.attribs;if(o&&null!=o.style)for(var s=o.style,d=s.split(/;+/g),l=0;l<d.length;l++)if(0<d[l].length){var c=d[l].split(/:+/g);r[c[0].trim()]=c[1].trim()}return r}},{key:"_writeStyleAttribute",value:function(e,r){var o="";for(var s in r){var d=r[s];d&&(o+=s+":"+r[s]+";")}e.attribs.style=o}},{key:"setStyle",value:function(e,r,o){var s=this._readStyleAttribute(e);s[r]=o,this._writeStyleAttribute(e,s)}},{key:"removeStyle",value:function(e,r){this.setStyle(e,r,null)}},{key:"getStyle",value:function(e,r){var o=this._readStyleAttribute(e);return o.hasOwnProperty(r)?o[r]:""}},{key:"tagName",value:function(e){return"style"==e.tagName?"STYLE":e.tagName}},{key:"attributeMap",value:function(e){for(var r=new Map,o=treeAdapter.getAttrList(e),s=0;s<o.length;s++){var d=o[s];r.set(d.name,d.value)}return r}},{key:"hasAttribute",value:function(e,r){return e.attribs&&null!=e.attribs[r]}},{key:"hasAttributeNS",value:function(){throw"not implemented"}},{key:"getAttribute",value:function(e,r){return this.hasAttribute(e,r)?e.attribs[r]:null}},{key:"getAttributeNS",value:function(){throw"not implemented"}},{key:"setAttribute",value:function(e,r,o){r&&(e.attribs[r]=o,"class"===r&&(e.className=o))}},{key:"setAttributeNS",value:function(){throw"not implemented"}},{key:"removeAttribute",value:function(e,r){r&&delete e.attribs[r]}},{key:"removeAttributeNS",value:function(){throw"not implemented"}},{key:"templateAwareRoot",value:function(e){return this.isTemplateElement(e)?treeAdapter.getTemplateContent(e):e}},{key:"createHtmlDocument",value:function(){var e=treeAdapter.createDocument();e.title="fakeTitle";var r=treeAdapter.createElement("head",null,[]),o=treeAdapter.createElement("body","http://www.w3.org/1999/xhtml",[]);return this.appendChild(e,r),this.appendChild(e,o),e.head=r,e.body=o,e._window={},e}},{key:"getBoundingClientRect",value:function(){return{left:0,top:0,width:0,height:0}}},{key:"getTitle",value:function(e){return e.title||""}},{key:"setTitle",value:function(e,r){e.title=r}},{key:"isTemplateElement",value:function(e){return this.isElementNode(e)&&"template"===this.tagName(e)}},{key:"isTextNode",value:function(e){return treeAdapter.isTextNode(e)}},{key:"isCommentNode",value:function(e){return treeAdapter.isCommentNode(e)}},{key:"isElementNode",value:function(e){return!!e&&treeAdapter.isElementNode(e)}},{key:"hasShadowRoot",value:function(e){return isPresent(e.shadowRoot)}},{key:"isShadowRoot",value:function(e){return this.getShadowRoot(e)==e}},{key:"importIntoDoc",value:function(e){return this.clone(e)}},{key:"adoptNode",value:function(e){return e}},{key:"getHref",value:function(e){return e.href}},{key:"resolveAndSetHref",value:function(e,r,o){e.href=null==o?r:r+"/../"+o}},{key:"_buildRules",value:function(e,r){for(var o=[],s=0;s<e.length;s++){var d=e[s],l={};if(l.cssText=r,l.style={content:"",cssText:""},"rule"==d.type){if(l.type=1,l.selectorText=d.selectors.join(", ".replace(/\s{2,}/g," ").replace(/\s*~\s*/g," ~ ").replace(/\s*\+\s*/g," + ").replace(/\s*>\s*/g," > ").replace(/\[(\w+)=(\w+)\]/g,'[$1="$2"]')),isBlank(d.declarations))continue;for(var c=0;c<d.declarations.length;c++){var p=d.declarations[c];l.style=p.property[p.value],l.style.cssText+=p.property+": "+p.value+";"}}else"media"==d.type&&(l.type=4,l.media={mediaText:d.media},d.rules&&(l.cssRules=this._buildRules(d.rules)));o.push(l)}return o}},{key:"supportsDOMEvents",value:function(){return!1}},{key:"supportsNativeShadowDOM",value:function(){return!1}},{key:"getGlobalEventTarget",value:function(e,r){return"window"==r?e._window:"document"==r?e:"body"==r?e.body:void 0}},{key:"getBaseHref",value:function(e){var r=this.querySelector(e,"base"),o="";return r&&(o=this.getHref(r)),isBlank(o)?null:o}},{key:"resetBaseElement",value:function(){throw"not implemented"}},{key:"getHistory",value:function(){throw"not implemented"}},{key:"getLocation",value:function(){throw"not implemented"}},{key:"getUserAgent",value:function(){return"Fake user agent"}},{key:"getData",value:function(e,r){return this.getAttribute(e,"data-"+r)}},{key:"getComputedStyle",value:function(){throw"not implemented"}},{key:"setData",value:function(e,r,o){this.setAttribute(e,"data-"+r,o)}},{key:"setGlobalVar",value:function(e,r){setValueOnPath(global$1,e,r)}},{key:"supportsWebAnimation",value:function(){return!1}},{key:"performanceNow",value:function(){return Date.now()}},{key:"getAnimationPrefix",value:function(){return""}},{key:"getTransitionEnd",value:function(){return"transitionend"}},{key:"supportsAnimation",value:function(){return!0}},{key:"replaceChild",value:function(){throw new Error("not implemented")}},{key:"parse",value:function(){throw new Error("not implemented")}},{key:"invoke",value:function(){throw new Error("not implemented")}},{key:"getEventKey",value:function(){throw new Error("not implemented")}},{key:"supportsCookies",value:function(){return!1}},{key:"getCookie",value:function(){throw new Error("not implemented")}},{key:"setCookie",value:function(){throw new Error("not implemented")}},{key:"animate",value:function(){throw new Error("not implemented")}},{key:"attrToPropMap",get:function(){return _attrToPropMap}}],[{key:"makeCurrent",value:function(){treeAdapter=parse5$1.treeAdapters.htmlparser2,(0,_platformBrowser.ɵsetRootDomAdapter)(new Parse5DomAdapter)}}]),Parse5DomAdapter}(_platformBrowser.ɵDomAdapter),_HTMLElementPropertyList=["webkitEntries","incremental","webkitdirectory","selectionDirection","selectionEnd","selectionStart","labels","validationMessage","validity","willValidate","width","valueAsNumber","valueAsDate","value","useMap","defaultValue","type","step","src","size","required","readOnly","placeholder","pattern","name","multiple","min","minLength","maxLength","max","list","indeterminate","height","formTarget","formNoValidate","formMethod","formEnctype","formAction","files","form","disabled","dirName","checked","defaultChecked","autofocus","autocomplete","alt","align","accept","onautocompleteerror","onautocomplete","onwaiting","onvolumechange","ontoggle","ontimeupdate","onsuspend","onsubmit","onstalled","onshow","onselect","onseeking","onseeked","onscroll","onresize","onreset","onratechange","onprogress","onplaying","onplay","onpause","onmousewheel","onmouseup","onmouseover","onmouseout","onmousemove","onmouseleave","onmouseenter","onmousedown","onloadstart","onloadedmetadata","onloadeddata","onload","onkeyup","onkeypress","onkeydown","oninvalid","oninput","onfocus","onerror","onended","onemptied","ondurationchange","ondrop","ondragstart","ondragover","ondragleave","ondragenter","ondragend","ondrag","ondblclick","oncuechange","oncontextmenu","onclose","onclick","onchange","oncanplaythrough","oncanplay","oncancel","onblur","onabort","spellcheck","isContentEditable","contentEditable","outerText","innerText","accessKey","hidden","webkitdropzone","draggable","tabIndex","dir","translate","lang","title","childElementCount","lastElementChild","firstElementChild","children","onwebkitfullscreenerror","onwebkitfullscreenchange","nextElementSibling","previousElementSibling","onwheel","onselectstart","onsearch","onpaste","oncut","oncopy","onbeforepaste","onbeforecut","onbeforecopy","shadowRoot","dataset","classList","className","outerHTML","innerHTML","scrollHeight","scrollWidth","scrollTop","scrollLeft","clientHeight","clientWidth","clientTop","clientLeft","offsetParent","offsetHeight","offsetWidth","offsetTop","offsetLeft","localName","prefix","namespaceURI","id","style","attributes","tagName","parentElement","textContent","baseURI","ownerDocument","nextSibling","previousSibling","lastChild","firstChild","childNodes","parentNode","nodeType","nodeValue","nodeName","closure_lm_714617","__jsaction"],TEMPLATE_COMMENT_TEXT="template bindings={}",TEMPLATE_BINDINGS_EXP=/^template bindings=(.*)$/,EMPTY_ARRAY=[],ServerRootRenderer=function(){function ServerRootRenderer(e,r,o,s,d){throw _classCallCheck(this,ServerRootRenderer),this.document=e,this.sharedStylesHost=r,this.animationDriver=o,this.appId=s,this._zone=d,this.registeredComponents=new Map,this._schema=new _compiler.DomElementSchemaRegistry,new Error("RootRenderer is no longer supported. Please use the `RendererFactoryV2` instead!")}return _createClass(ServerRootRenderer,[{key:"renderComponent",value:function(e){var r=this.registeredComponents.get(e.id);return r||(r=new ServerRenderer(this,e,this.animationDriver,this.appId+"-"+e.id,this._zone,this._schema),this.registeredComponents.set(e.id,r)),r}}]),ServerRootRenderer}();ServerRootRenderer.decorators=[{type:_core.Injectable}],ServerRootRenderer.ctorParameters=function(){return[{type:void 0,decorators:[{type:_core.Inject,args:[_platformBrowser.DOCUMENT]}]},{type:_platformBrowser.ɵSharedStylesHost},{type:_platformBrowser.AnimationDriver},{type:void 0,decorators:[{type:_core.Inject,args:[_core.APP_ID]}]},{type:_core.NgZone}]};var ServerRenderer=function(){function ServerRenderer(e,r,o,s,d,l){if(_classCallCheck(this,ServerRenderer),this._rootRenderer=e,this.componentProto=r,this._animationDriver=o,this._zone=d,this._schema=l,this._styles=(0,_platformBrowser.ɵflattenStyles)(s,r.styles,[]),r.encapsulation===_core.ViewEncapsulation.Native)throw new Error("Native encapsulation is not supported on the server!");this._rootRenderer.sharedStylesHost.addStyles(this._styles),this.componentProto.encapsulation===_core.ViewEncapsulation.Emulated?(this._contentAttr=(0,_platformBrowser.ɵshimContentAttribute)(s),this._hostAttr=(0,_platformBrowser.ɵshimHostAttribute)(s)):(this._contentAttr=null,this._hostAttr=null)}return _createClass(ServerRenderer,[{key:"selectRootElement",value:function(e){var o=void 0;if("string"!=typeof e)o=e;else if(o=(0,_platformBrowser.ɵgetDOM)().querySelector(this._rootRenderer.document,e),isBlank(o))throw new Error('The selector "'+e+'" did not match any elements');return(0,_platformBrowser.ɵgetDOM)().clearNodes(o),o}},{key:"createElement",value:function(e,r){var s=void 0;if((0,_platformBrowser.ɵisNamespaced)(r)){var d=(0,_platformBrowser.ɵsplitNamespace)(r);s=(0,_platformBrowser.ɵgetDOM)().createElementNS(_platformBrowser.ɵNAMESPACE_URIS[d[0]],d[1])}else s=(0,_platformBrowser.ɵgetDOM)().createElement(r);return isPresent(this._contentAttr)&&(0,_platformBrowser.ɵgetDOM)().setAttribute(s,this._contentAttr,""),isPresent(e)&&(0,_platformBrowser.ɵgetDOM)().appendChild(e,s),s}},{key:"createViewRoot",value:function(e){var r=void 0;return isPresent(this._hostAttr)&&(0,_platformBrowser.ɵgetDOM)().setAttribute(e,this._hostAttr,""),r=e}},{key:"createTemplateAnchor",value:function(e){var o=(0,_platformBrowser.ɵgetDOM)().createComment(TEMPLATE_COMMENT_TEXT);return isPresent(e)&&(0,_platformBrowser.ɵgetDOM)().appendChild(e,o),o}},{key:"createText",value:function(e,r){var s=(0,_platformBrowser.ɵgetDOM)().createTextNode(r);return isPresent(e)&&(0,_platformBrowser.ɵgetDOM)().appendChild(e,s),s}},{key:"projectNodes",value:function(e,r){isBlank(e)||appendNodes(e,r)}},{key:"attachViewAfter",value:function(e,r){moveNodesAfterSibling(e,r)}},{key:"detachView",value:function(e){for(var r=0;r<e.length;r++)(0,_platformBrowser.ɵgetDOM)().remove(e[r])}},{key:"destroyView",value:function(){}},{key:"listen",value:function(e,r,o){var _this6=this,s=function(d){return _this6._zone.runGuarded(function(){return o(d)})};return this._zone.runOutsideAngular(function(){return(0,_platformBrowser.ɵgetDOM)().onAndCancel(e,r,s)})}},{key:"listenGlobal",value:function(e,r,o){var s=(0,_platformBrowser.ɵgetDOM)().getGlobalEventTarget(this._rootRenderer.document,e);return this.listen(s,r,o)}},{key:"_isSafeToReflectProperty",value:function(e,r){return this._schema.securityContext(e,r,!0)===this._schema.securityContext(e,r,!1)}},{key:"setElementProperty",value:function(e,r,o){(0,_platformBrowser.ɵgetDOM)().setProperty(e,r,o);var s=e.tagName.toLowerCase();isPresent(o)&&("number"==typeof o||"string"==typeof o)&&this._schema.hasElement(s,EMPTY_ARRAY)&&this._schema.hasProperty(s,r,EMPTY_ARRAY)&&this._isSafeToReflectProperty(s,r)&&this.setElementAttribute(e,r,o.toString())}},{key:"setElementAttribute",value:function(e,r,o){var s=void 0,d=r;if((0,_platformBrowser.ɵisNamespaced)(r)){var l=(0,_platformBrowser.ɵsplitNamespace)(r);
d=l[1],r=l[0]+":"+l[1],s=_platformBrowser.ɵNAMESPACE_URIS[l[0]]}isPresent(o)?isPresent(s)?(0,_platformBrowser.ɵgetDOM)().setAttributeNS(e,s,r,o):(0,_platformBrowser.ɵgetDOM)().setAttribute(e,r,o):isPresent(s)?(0,_platformBrowser.ɵgetDOM)().removeAttributeNS(e,s,d):(0,_platformBrowser.ɵgetDOM)().removeAttribute(e,r)}},{key:"setBindingDebugInfo",value:function(e,r,o){if((0,_platformBrowser.ɵgetDOM)().isCommentNode(e)){var s=(0,_platformBrowser.ɵgetDOM)().getText(e).replace(/\n/g,"").match(TEMPLATE_BINDINGS_EXP),d=JSON.parse(s[1]);d[r]=o,(0,_platformBrowser.ɵgetDOM)().setText(e,TEMPLATE_COMMENT_TEXT.replace("{}",JSON.stringify(d,null,2)))}else r=r.replace(/\$/g,"_"),this.setElementAttribute(e,r,o)}},{key:"setElementClass",value:function(e,r,o){o?(0,_platformBrowser.ɵgetDOM)().addClass(e,r):(0,_platformBrowser.ɵgetDOM)().removeClass(e,r)}},{key:"setElementStyle",value:function(e,r,o){isPresent(o)?(0,_platformBrowser.ɵgetDOM)().setStyle(e,r,stringify(o)):(0,_platformBrowser.ɵgetDOM)().removeStyle(e,r)}},{key:"invokeElementMethod",value:function(e,r,o){(0,_platformBrowser.ɵgetDOM)().invoke(e,r,o)}},{key:"setText",value:function(e,r){(0,_platformBrowser.ɵgetDOM)().setText(e,r)}},{key:"animate",value:function(e,r,o,s,d,l){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[];return this._animationDriver.animate(e,r,o,s,d,l,c)}}]),ServerRenderer}(),ServerRendererFactoryV2=function(){function ServerRendererFactoryV2(e,r,o){_classCallCheck(this,ServerRendererFactoryV2),this.ngZone=e,this.document=r,this.sharedStylesHost=o,this.rendererByCompId=new Map,this.schema=new _compiler.DomElementSchemaRegistry,this.defaultRenderer=new DefaultServerRendererV2(r,e,this.schema)}return _createClass(ServerRendererFactoryV2,[{key:"createRenderer",value:function(e,r){if(!e||!r)return this.defaultRenderer;switch(r.encapsulation){case _core.ViewEncapsulation.Emulated:var o=this.rendererByCompId.get(r.id);return o||(o=new EmulatedEncapsulationServerRendererV2(this.document,this.ngZone,this.sharedStylesHost,this.schema,r),this.rendererByCompId.set(r.id,o)),o.applyToHost(e),o;case _core.ViewEncapsulation.Native:throw new Error("Native encapsulation is not supported on the server!");default:if(!this.rendererByCompId.has(r.id)){var _o=(0,_platformBrowser.ɵflattenStyles)(r.id,r.styles,[]);this.sharedStylesHost.addStyles(_o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}}]),ServerRendererFactoryV2}();ServerRendererFactoryV2.decorators=[{type:_core.Injectable}],ServerRendererFactoryV2.ctorParameters=function(){return[{type:_core.NgZone},{type:void 0,decorators:[{type:_core.Inject,args:[_platformBrowser.DOCUMENT]}]},{type:_platformBrowser.ɵSharedStylesHost}]};var DefaultServerRendererV2=function(){function DefaultServerRendererV2(e,r,o){_classCallCheck(this,DefaultServerRendererV2),this.document=e,this.ngZone=r,this.schema=o,this.data=Object.create(null)}return _createClass(DefaultServerRendererV2,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,r){return r?(0,_platformBrowser.ɵgetDOM)().createElementNS(_platformBrowser.ɵNAMESPACE_URIS[r],e):(0,_platformBrowser.ɵgetDOM)().createElement(e)}},{key:"createComment",value:function(e){return(0,_platformBrowser.ɵgetDOM)().createComment(e)}},{key:"createText",value:function(e){return(0,_platformBrowser.ɵgetDOM)().createTextNode(e)}},{key:"appendChild",value:function(e,r){(0,_platformBrowser.ɵgetDOM)().appendChild(e,r)}},{key:"insertBefore",value:function(e,r,o){e&&(0,_platformBrowser.ɵgetDOM)().insertBefore(e,o,r)}},{key:"removeChild",value:function(e,r){e&&(0,_platformBrowser.ɵgetDOM)().removeChild(e,r)}},{key:"selectRootElement",value:function(e){var o=void 0;if("string"!=typeof e)o=e;else if(o=(0,_platformBrowser.ɵgetDOM)().querySelector(this.document,e),!o)throw new Error('The selector "'+e+'" did not match any elements');return(0,_platformBrowser.ɵgetDOM)().clearNodes(o),o}},{key:"parentNode",value:function(e){return(0,_platformBrowser.ɵgetDOM)().parentElement(e)}},{key:"nextSibling",value:function(e){return(0,_platformBrowser.ɵgetDOM)().nextSibling(e)}},{key:"setAttribute",value:function(e,r,o,s){s?(0,_platformBrowser.ɵgetDOM)().setAttributeNS(e,_platformBrowser.ɵNAMESPACE_URIS[s],s+":"+r,o):(0,_platformBrowser.ɵgetDOM)().setAttribute(e,r,o)}},{key:"removeAttribute",value:function(e,r,o){o?(0,_platformBrowser.ɵgetDOM)().removeAttributeNS(e,_platformBrowser.ɵNAMESPACE_URIS[o],r):(0,_platformBrowser.ɵgetDOM)().removeAttribute(e,r)}},{key:"addClass",value:function(e,r){(0,_platformBrowser.ɵgetDOM)().addClass(e,r)}},{key:"removeClass",value:function(e,r){(0,_platformBrowser.ɵgetDOM)().removeClass(e,r)}},{key:"setStyle",value:function(e,r,o){(0,_platformBrowser.ɵgetDOM)().setStyle(e,r,o)}},{key:"removeStyle",value:function(e,r){(0,_platformBrowser.ɵgetDOM)().removeStyle(e,r)}},{key:"_isSafeToReflectProperty",value:function(e,r){return this.schema.securityContext(e,r,!0)===this.schema.securityContext(e,r,!1)}},{key:"setProperty",value:function(e,r,o){(0,_platformBrowser.ɵgetDOM)().setProperty(e,r,o);var s=e.tagName.toLowerCase();isPresent(o)&&("number"==typeof o||"string"==typeof o)&&this.schema.hasElement(s,EMPTY_ARRAY)&&this.schema.hasProperty(s,r,EMPTY_ARRAY)&&this._isSafeToReflectProperty(s,r)&&this.setAttribute(e,r,o.toString())}},{key:"setValue",value:function(e,r){(0,_platformBrowser.ɵgetDOM)().setText(e,r)}},{key:"listen",value:function(e,r,o){var _this7=this,s="string"==typeof e?(0,_platformBrowser.ɵgetDOM)().getGlobalEventTarget(this.document,e):e,d=function(l){return _this7.ngZone.runGuarded(function(){return o(l)})};return this.ngZone.runOutsideAngular(function(){return(0,_platformBrowser.ɵgetDOM)().onAndCancel(s,r,d)})}}]),DefaultServerRendererV2}(),EmulatedEncapsulationServerRendererV2=function(_DefaultServerRendere){function EmulatedEncapsulationServerRendererV2(e,r,o,s,d){var _this8;_classCallCheck(this,EmulatedEncapsulationServerRendererV2),_this8=_possibleConstructorReturn(this,(EmulatedEncapsulationServerRendererV2.__proto__||Object.getPrototypeOf(EmulatedEncapsulationServerRendererV2)).call(this,e,r,s)),_this8.component=d;var l=(0,_platformBrowser.ɵflattenStyles)(d.id,d.styles,[]);return o.addStyles(l),_this8.contentAttr=(0,_platformBrowser.ɵshimContentAttribute)(d.id),_this8.hostAttr=(0,_platformBrowser.ɵshimHostAttribute)(d.id),_this8}return _inherits(EmulatedEncapsulationServerRendererV2,_DefaultServerRendere),_createClass(EmulatedEncapsulationServerRendererV2,[{key:"applyToHost",value:function(e){_get(EmulatedEncapsulationServerRendererV2.prototype.__proto__||Object.getPrototypeOf(EmulatedEncapsulationServerRendererV2.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,r){var o=_get(EmulatedEncapsulationServerRendererV2.prototype.__proto__||Object.getPrototypeOf(EmulatedEncapsulationServerRendererV2.prototype),"createElement",this).call(this,e,r);return _get(EmulatedEncapsulationServerRendererV2.prototype.__proto__||Object.getPrototypeOf(EmulatedEncapsulationServerRendererV2.prototype),"setAttribute",this).call(this,o,this.contentAttr,""),o}}]),EmulatedEncapsulationServerRendererV2}(DefaultServerRendererV2),ServerStylesHost=function(_SharedStylesHost){function ServerStylesHost(e,r){var _this9;return _classCallCheck(this,ServerStylesHost),_this9=_possibleConstructorReturn(this,(ServerStylesHost.__proto__||Object.getPrototypeOf(ServerStylesHost)).call(this)),_this9.doc=e,_this9.transitionId=r,_this9.head=null,_this9.head=(0,_platformBrowser.ɵgetDOM)().getElementsByTagName(e,"head")[0],_this9}return _inherits(ServerStylesHost,_SharedStylesHost),_createClass(ServerStylesHost,[{key:"_addStyle",value:function(e){var r=(0,_platformBrowser.ɵgetDOM)(),o=r.createElement("style");r.setText(o,e),!this.transitionId||r.setAttribute(o,"ng-transition",this.transitionId),r.appendChild(this.head,o)}},{key:"onStylesAdded",value:function(e){var _this10=this;e.forEach(function(r){return _this10._addStyle(r)})}}]),ServerStylesHost}(_platformBrowser.ɵSharedStylesHost);ServerStylesHost.decorators=[{type:_core.Injectable}],ServerStylesHost.ctorParameters=function(){return[{type:void 0,decorators:[{type:_core.Inject,args:[_platformBrowser.DOCUMENT]}]},{type:void 0,decorators:[{type:_core.Optional},{type:_core.Inject,args:[_platformBrowser.ɵTRANSITION_ID]}]}]};var INTERNAL_SERVER_PLATFORM_PROVIDERS=[{provide:_platformBrowser.DOCUMENT,useFactory:_document,deps:[_core.Injector]},{provide:_core.PLATFORM_ID,useValue:_common.ɵPLATFORM_SERVER_ID},{provide:_core.PLATFORM_INITIALIZER,useFactory:initParse5Adapter,multi:!0,deps:[_core.Injector]},{provide:_common.PlatformLocation,useClass:ServerPlatformLocation},PlatformState,{provide:_core.ɵALLOW_MULTIPLE_PLATFORMS,useValue:!0}],SERVER_RENDER_PROVIDERS=[ServerRootRenderer,{provide:_core.RootRenderer,useFactory:_createConditionalRootRenderer,deps:[ServerRootRenderer]},ServerRendererFactoryV2,{provide:_core.RendererFactoryV2,useExisting:ServerRendererFactoryV2},ServerStylesHost,{provide:_platformBrowser.ɵSharedStylesHost,useExisting:ServerStylesHost}],ServerModule=function ServerModule(){_classCallCheck(this,ServerModule)};ServerModule.decorators=[{type:_core.NgModule,args:[{exports:[_platformBrowser.BrowserModule],imports:[_http.HttpModule],providers:[SERVER_RENDER_PROVIDERS,SERVER_HTTP_PROVIDERS]}]}],ServerModule.ctorParameters=function(){return[]};var platformServer=(0,_core.createPlatformFactory)(_core.platformCore,"server",INTERNAL_SERVER_PLATFORM_PROVIDERS),platformDynamicServer=(0,_core.createPlatformFactory)(_compiler.platformCoreDynamic,"serverDynamic",INTERNAL_SERVER_PLATFORM_PROVIDERS),VERSION=new _core.Version("4.0.0-rc.1");exports.PlatformState=PlatformState,exports.ServerModule=ServerModule,exports.platformDynamicServer=platformDynamicServer,exports.platformServer=platformServer,exports.INITIAL_CONFIG=INITIAL_CONFIG,exports.renderModule=renderModule,exports.renderModuleFactory=renderModuleFactory,exports.VERSION=VERSION,exports.ɵINTERNAL_SERVER_PLATFORM_PROVIDERS=INTERNAL_SERVER_PLATFORM_PROVIDERS,exports.ɵSERVER_RENDER_PROVIDERS=SERVER_RENDER_PROVIDERS,exports.ɵh=SERVER_HTTP_PROVIDERS,exports.ɵe=ServerXhr,exports.ɵf=ServerXsrfStrategy,exports.ɵg=httpFactory,exports.ɵa=_createConditionalRootRenderer,exports.ɵc=ServerRendererFactoryV2,exports.ɵb=ServerRootRenderer,exports.ɵd=ServerStylesHost});
!function(global,factory){if("function"==typeof define&&define.amd)define("@angular/platform-server",["exports","@angular/core","@angular/platform-browser","@angular/common","@angular/compiler","@angular/http","rxjs/Observable","rxjs/Subject","url","rxjs/operator/filter","rxjs/operator/first","rxjs/operator/toPromise","parse5","xhr2","parse5","parse5"],factory);else if("undefined"!=typeof exports)factory(exports,require("@angular/core"),require("@angular/platform-browser"),require("@angular/common"),require("@angular/compiler"),require("@angular/http"),require("rxjs/Observable"),require("rxjs/Subject"),require("url"),require("rxjs/operator/filter"),require("rxjs/operator/first"),require("rxjs/operator/toPromise"),require("parse5"),require("xhr2"),require("parse5"),require("parse5"));else{var mod={exports:{}};factory(mod.exports,global.ng.core,global.ng.platformBrowser,global.ng.common,global.ng.compiler,global.angularHttp,global.rxjsObservable,global.rxjsSubject,global.url,global.rxjsOperatorFilter,global.rxjsOperatorFirst,global.rxjsOperatorToPromise,global.parse5,global.xhr2,global.parse5,global.parse5),global.ng=global.ng||{},global.ng.platformServer=mod.exports}}(this,function(exports,_core,_platformBrowser,_common,_compiler,_http,_Observable,_Subject,_url,_filter,_first,_toPromise,parse5,xhr2,parse5$1,parse5$2){"use strict";function _interopRequireWildcard(obj){if(obj&&obj.__esModule)return obj;var newObj={};if(null!=obj)for(var key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&(newObj[key]=obj[key]);return newObj.default=obj,newObj}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}return Array.from(arr)}function _possibleConstructorReturn(self,call){if(!self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeof call&&"function"!=typeof call?self:call}function _inherits(subClass,superClass){if("function"!=typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function httpFactory(c,d){var e=new ZoneMacroTaskBackend(c);return new _http.Http(e,d)}function scheduleMicroTask(c){Zone.current.scheduleMicroTask("scheduleMicrotask",c)}function isPresent(c){return null!=c}function isBlank(c){return null==c}function setValueOnPath(c,d,e){for(var f=d.split("."),g=c;1<f.length;){var h=f.shift();g=g.hasOwnProperty(h)&&null!=g[h]?g[h]:g[h]={}}(void 0===g||null===g)&&(g={}),g[f.shift()]=e}function parseUrl(c){var d=url.parse(c);return{pathname:d.pathname||"",search:d.search||"",hash:d.hash||""}}function _notImplemented(c){return new Error("This method is not implemented in Parse5DomAdapter: "+c)}function parseDocument(c){return parse5$1.parse(c,{treeAdapter:parse5$1.treeAdapters.htmlparser2})}function initParse5Adapter(){return function(){Parse5DomAdapter.makeCurrent()}}function _document(c){var d=c.get(INITIAL_CONFIG,null);return d&&d.document?parseDocument(d.document):(0,_platformBrowser.ɵgetDOM)().createHtmlDocument()}function _getPlatform(c,d){var e=d.extraProviders?d.extraProviders:[];return c([{provide:INITIAL_CONFIG,useValue:{document:d.document,url:d.url}},e])}function _render(c,d){return d.then(function(e){var f=e.injector.get(_platformBrowser.ɵTRANSITION_ID,null);if(!f)throw new Error("renderModule[Factory]() requires the use of BrowserModule.withServerTransition() to ensure\nthe server-rendered app can be properly bootstrapped into a client app.");var g=e.injector.get(_core.ApplicationRef);return _toPromise.toPromise.call(_first.first.call(_filter.filter.call(g.isStable,function(h){return h}))).then(function(){var h=c.injector.get(PlatformState).renderToString();return c.destroy(),h})})}function renderModule(c,d){var e=_getPlatform(platformDynamicServer,d);return _render(e,e.bootstrapModule(c))}function renderModuleFactory(c,d){var e=_getPlatform(platformServer,d);return _render(e,e.bootstrapModuleFactory(c))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.ɵb=exports.ɵa=exports.ɵe=exports.ɵd=exports.ɵc=exports.ɵf=exports.ɵSERVER_RENDER_PROVIDERS=exports.ɵINTERNAL_SERVER_PLATFORM_PROVIDERS=exports.VERSION=exports.renderModuleFactory=exports.renderModule=exports.INITIAL_CONFIG=exports.platformServer=exports.platformDynamicServer=exports.ServerModule=exports.PlatformState=void 0;var url=_interopRequireWildcard(_url),_get=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=Object.getOwnPropertyDescriptor(object,property);if(void 0===desc){var parent=Object.getPrototypeOf(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;if(void 0!==getter)return getter.call(receiver)},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),PlatformState=function(){function PlatformState(c){_classCallCheck(this,PlatformState),this._doc=c}return _createClass(PlatformState,[{key:"renderToString",value:function(){return(0,_platformBrowser.ɵgetDOM)().getInnerHTML(this._doc)}},{key:"getDocument",value:function(){return this._doc}}]),PlatformState}();PlatformState.decorators=[{type:_core.Injectable}],PlatformState.ctorParameters=function(){return[{type:void 0,decorators:[{type:_core.Inject,args:[_platformBrowser.DOCUMENT]}]}]};var ServerXhr=function(){function ServerXhr(){_classCallCheck(this,ServerXhr)}return _createClass(ServerXhr,[{key:"build",value:function(){return new xhr2.XMLHttpRequest}}]),ServerXhr}();ServerXhr.decorators=[{type:_core.Injectable}],ServerXhr.ctorParameters=function(){return[]};var ServerXsrfStrategy=function(){function ServerXsrfStrategy(){_classCallCheck(this,ServerXsrfStrategy)}return _createClass(ServerXsrfStrategy,[{key:"configureRequest",value:function(){}}]),ServerXsrfStrategy}();ServerXsrfStrategy.decorators=[{type:_core.Injectable}],ServerXsrfStrategy.ctorParameters=function(){return[]};var ZoneMacroTaskConnection=function(){function ZoneMacroTaskConnection(c,d){var _this=this;_classCallCheck(this,ZoneMacroTaskConnection),this.request=c,this.response=new _Observable.Observable(function(e){var f=null,g=!1,h=null,k=null,l=null,q=Zone.current.scheduleMacroTask("ZoneMacroTaskConnection.subscribe",function(){null===l?(e.next(k),e.complete()):e.error(l)},{},function(){return null},function(){g&&(g=!1,h&&(h.unsubscribe(),h=null))});return function(r){f=r,g=!0,_this.lastConnection=d.createConnection(c),h=_this.lastConnection.response.subscribe(function(s){return k=s},function(s){if(!g)throw new Error("invoke twice");l=s,g=!1,f.invoke()},function(){if(!g)throw new Error("invoke twice");g=!1,f.invoke()})}(q),function(){g&&f&&(f.zone.cancelTask(f),g=!1),h&&(h.unsubscribe(),h=null)}})}return _createClass(ZoneMacroTaskConnection,[{key:"readyState",get:function(){return this.lastConnection?this.lastConnection.readyState:_http.ReadyState.Unsent}}]),ZoneMacroTaskConnection}(),ZoneMacroTaskBackend=function(){function ZoneMacroTaskBackend(c){_classCallCheck(this,ZoneMacroTaskBackend),this.backend=c}return _createClass(ZoneMacroTaskBackend,[{key:"createConnection",value:function(c){return new ZoneMacroTaskConnection(c,this.backend)}}]),ZoneMacroTaskBackend}(),SERVER_HTTP_PROVIDERS=[{provide:_http.Http,useFactory:httpFactory,deps:[_http.XHRBackend,_http.RequestOptions]},{provide:_http.BrowserXhr,useClass:ServerXhr},{provide:_http.XSRFStrategy,useClass:ServerXsrfStrategy}],globalScope="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window,global$1=globalScope;global$1.assert=function(){};var INITIAL_CONFIG=new _core.InjectionToken("Server.INITIAL_CONFIG"),ServerPlatformLocation=function(){function ServerPlatformLocation(c,d){_classCallCheck(this,ServerPlatformLocation),this._doc=c,this._path="/",this._search="",this._hash="",this._hashUpdate=new _Subject.Subject;var e=d;if(e&&e.url){var f=parseUrl(e.url);this._path=f.pathname,this._search=f.search,this._hash=f.hash}}return _createClass(ServerPlatformLocation,[{key:"getBaseHrefFromDOM",value:function(){return(0,_platformBrowser.ɵgetDOM)().getBaseHref(this._doc)}},{key:"onPopState",value:function(){}},{key:"onHashChange",value:function(c){this._hashUpdate.subscribe(c)}},{key:"setHash",value:function(c,d){var _this2=this;if(this._hash!==c){this._hash=c;var e=this.url;scheduleMicroTask(function(){return _this2._hashUpdate.next({type:"hashchange",oldUrl:d,newUrl:e})})}}},{key:"replaceState",value:function(c,d,e){var f=this.url,g=parseUrl(e);this._path=g.pathname,this._search=g.search,this.setHash(g.hash,f)}},{key:"pushState",value:function(c,d,e){this.replaceState(c,d,e)}},{key:"forward",value:function(){throw new Error("Not implemented")}},{key:"back",value:function(){throw new Error("Not implemented")}},{key:"pathname",get:function(){return this._path}},{key:"search",get:function(){return this._search}},{key:"hash",get:function(){return this._hash}},{key:"url",get:function(){return""+this.pathname+this.search+this.hash}}]),ServerPlatformLocation}();ServerPlatformLocation.decorators=[{type:_core.Injectable}],ServerPlatformLocation.ctorParameters=function(){return[{type:void 0,decorators:[{type:_core.Inject,args:[_platformBrowser.DOCUMENT]}]},{type:void 0,decorators:[{type:_core.Optional},{type:_core.Inject,args:[INITIAL_CONFIG]}]}]};var ListWrapper=function(){function ListWrapper(){_classCallCheck(this,ListWrapper)}return _createClass(ListWrapper,null,[{key:"findLast",value:function(c,d){for(var e=c.length-1;0<=e;e--)if(d(c[e]))return c[e];return null}},{key:"removeAll",value:function(c,d){for(var e=0;e<d.length;++e){var f=c.indexOf(d[e]);-1<f&&c.splice(f,1)}}},{key:"remove",value:function(c,d){var e=c.indexOf(d);return!!(-1<e)&&(c.splice(e,1),!0)}},{key:"equals",value:function(c,d){if(c.length!=d.length)return!1;for(var e=0;e<c.length;++e)if(c[e]!==d[e])return!1;return!0}},{key:"flatten",value:function(c){return c.reduce(function(d,e){var f=Array.isArray(e)?ListWrapper.flatten(e):e;return d.concat(f)},[])}}]),ListWrapper}(),treeAdapter=void 0,_attrToPropMap={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},mapProps=["attribs","x-attribsNamespace","x-attribsPrefix"],Parse5DomAdapter=function(_DomAdapter){function Parse5DomAdapter(){return _classCallCheck(this,Parse5DomAdapter),_possibleConstructorReturn(this,(Parse5DomAdapter.__proto__||Object.getPrototypeOf(Parse5DomAdapter)).apply(this,arguments))}return _inherits(Parse5DomAdapter,_DomAdapter),_createClass(Parse5DomAdapter,[{key:"hasProperty",value:function(c,d){return-1<_HTMLElementPropertyList.indexOf(d)}},{key:"setProperty",value:function(c,d,e){"innerHTML"===d?this.setInnerHTML(c,e):"className"===d?c.attribs.class=c.className=e:c[d]=e}},{key:"getProperty",value:function(c,d){return c[d]}},{key:"logError",value:function(c){console.error(c)}},{key:"log",value:function(c){console.log(c)}},{key:"logGroup",value:function(c){console.error(c)}},{key:"logGroupEnd",value:function(){}},{key:"querySelector",value:function(c,d){return this.querySelectorAll(c,d)[0]||null}},{key:"querySelectorAll",value:function(c,d){var _this4=this,e=[],f=function f(h,k,l,m){var o=k.childNodes;if(o&&0<o.length)for(var p=0;p<o.length;p++){var q=o[p];_this4.elementMatches(q,l,m)&&h.push(q),f(h,q,l,m)}},g=new _compiler.SelectorMatcher;return g.addSelectables(_compiler.CssSelector.parse(d)),f(e,c,d,g),e}},{key:"elementMatches",value:function(c,d){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(this.isElementNode(c)&&"*"===d)return!0;var f=!1;if(d&&"#"==d.charAt(0))f=this.getAttribute(c,"id")==d.substring(1);else if(d){e||(e=new _compiler.SelectorMatcher,e.addSelectables(_compiler.CssSelector.parse(d)));var g=new _compiler.CssSelector;if(g.setElement(this.tagName(c)),c.attribs)for(var k in c.attribs)g.addAttribute(k,c.attribs[k]);for(var h=this.classList(c),_k=0;_k<h.length;_k++)g.addClassName(h[_k]);e.match(g,function(){f=!0})}return f}},{key:"on",value:function(c,d,e){var f=c._eventListenersMap;f||(f={},c._eventListenersMap=f);var g=f[d]||[];f[d]=[].concat(_toConsumableArray(g),[e])}},{key:"onAndCancel",value:function(c,d,e){return this.on(c,d,e),function(){ListWrapper.remove(c._eventListenersMap[d],e)}}},{key:"dispatchEvent",value:function(c,d){if(d.target||(d.target=c),c._eventListenersMap){var e=c._eventListenersMap[d.type];if(e)for(var f=0;f<e.length;f++)e[f](d)}c.parent&&this.dispatchEvent(c.parent,d),c._window&&this.dispatchEvent(c._window,d)}},{key:"createMouseEvent",value:function(c){return this.createEvent(c)}},{key:"createEvent",value:function(c){var d={type:c,defaultPrevented:!1,preventDefault:function(){d.defaultPrevented=!0}};return d}},{key:"preventDefault",value:function(c){c.returnValue=!1}},{key:"isPrevented",value:function(c){return isPresent(c.returnValue)&&!c.returnValue}},{key:"getInnerHTML",value:function(c){return parse5$1.serialize(this.templateAwareRoot(c),{treeAdapter:treeAdapter})}},{key:"getTemplateContent",value:function(){return null}},{key:"getOuterHTML",value:function(c){var d=treeAdapter.createDocumentFragment();return this.appendChild(d,c),parse5$1.serialize(d,{treeAdapter:treeAdapter})}},{key:"nodeName",value:function(c){return c.tagName}},{key:"nodeValue",value:function(c){return c.nodeValue}},{key:"type",value:function(){throw _notImplemented("type")}},{key:"content",value:function(c){return c.childNodes[0]}},{key:"firstChild",value:function(c){return c.firstChild}},{key:"nextSibling",value:function(c){return c.nextSibling}},{key:"parentElement",value:function(c){return c.parent}},{key:"childNodes",value:function(c){return c.childNodes}},{key:"childNodesAsList",value:function(c){for(var d=c.childNodes,e=Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}},{key:"clearNodes",value:function(c){for(;0<c.childNodes.length;)this.remove(c.childNodes[0])}},{key:"appendChild",value:function(c,d){this.remove(d),treeAdapter.appendChild(this.templateAwareRoot(c),d)}},{key:"removeChild",value:function(c,d){-1<c.childNodes.indexOf(d)&&this.remove(d)}},{key:"remove",value:function(c){var d=c.parent;if(d){var g=d.childNodes.indexOf(c);d.childNodes.splice(g,1)}var e=c.previousSibling,f=c.nextSibling;return e&&(e.next=f),f&&(f.prev=e),c.prev=null,c.next=null,c.parent=null,c}},{key:"insertBefore",value:function(c,d,e){this.remove(e),d?treeAdapter.insertBefore(c,e,d):this.appendChild(c,e)}},{key:"insertAllBefore",value:function(c,d,e){var _this5=this;e.forEach(function(f){return _this5.insertBefore(c,d,f)})}},{key:"insertAfter",value:function(c,d,e){d.nextSibling?this.insertBefore(c,d.nextSibling,e):this.appendChild(c,e)}},{key:"setInnerHTML",value:function(c,d){this.clearNodes(c);for(var e=parse5$1.parseFragment(d,{treeAdapter:treeAdapter}),f=0;f<e.childNodes.length;f++)treeAdapter.appendChild(c,e.childNodes[f])}},{key:"getText",value:function(c,d){if(this.isTextNode(c))return c.data;if(this.isCommentNode(c))return d?"":c.data;if(!c.childNodes||0==c.childNodes.length)return"";for(var e="",f=0;f<c.childNodes.length;f++)e+=this.getText(c.childNodes[f],!0);return e}},{key:"setText",value:function(c,d){this.isTextNode(c)||this.isCommentNode(c)?c.data=d:(this.clearNodes(c),""!==d&&treeAdapter.insertText(c,d))}},{key:"getValue",value:function(c){return c.value}},{key:"setValue",value:function(c,d){c.value=d}},{key:"getChecked",value:function(c){return c.checked}},{key:"setChecked",value:function(c,d){c.checked=d}},{key:"createComment",value:function(c){return treeAdapter.createCommentNode(c)}},{key:"createTemplate",value:function(c){var d=treeAdapter.createElement("template","http://www.w3.org/1999/xhtml",[]),e=parse5$1.parseFragment(c,{treeAdapter:treeAdapter});return treeAdapter.setTemplateContent(d,e),d}},{key:"createElement",value:function(c){return treeAdapter.createElement(c,"http://www.w3.org/1999/xhtml",[])}},{key:"createElementNS",value:function(c,d){return treeAdapter.createElement(d,c,[])}},{key:"createTextNode",value:function(c){var d=this.createComment(c);return d.type="text",d}},{key:"createScriptTag",value:function(c,d){return treeAdapter.createElement("script","http://www.w3.org/1999/xhtml",[{name:c,value:d}])}},{key:"createStyleElement",value:function(c){var d=this.createElement("style");return this.setText(d,c),d}},{key:"createShadowRoot",value:function(c){return c.shadowRoot=treeAdapter.createDocumentFragment(),c.shadowRoot.parent=c,c.shadowRoot}},{key:"getShadowRoot",value:function(c){return c.shadowRoot}},{key:"getHost",value:function(c){return c.host}},{key:"getDistributedNodes",value:function(){throw _notImplemented("getDistributedNodes")}},{key:"clone",value:function(c){var d=function d(e){var f=Object.create(Object.getPrototypeOf(e));for(var h in e){var k=Object.getOwnPropertyDescriptor(e,h);k&&"value"in k&&"object"!=_typeof(k.value)&&(f[h]=e[h])}f.parent=null,f.prev=null,f.next=null,f.children=null,mapProps.forEach(function(h){if(isPresent(e[h]))for(var _k2 in f[h]={},e[h])f[h][_k2]=e[h][_k2]});var g=e.children;if(g){for(var _h=Array(g.length),_k3=0;_k3<g.length;_k3++){var l=g[_k3],m=d(l);_h[_k3]=m,0<_k3&&(m.prev=_h[_k3-1],_h[_k3-1].next=m),m.parent=f}f.children=_h}return f};return d(c)}},{key:"getElementsByClassName",value:function(c,d){return this.querySelectorAll(c,"."+d)}},{key:"getElementsByTagName",value:function(c,d){return this.querySelectorAll(c,d)}},{key:"classList",value:function(c){var d=null,e=c.attribs;return e&&null!=e.class&&(d=e.class),d?d.trim().split(/\s+/g):[]}},{key:"addClass",value:function(c,d){var e=this.classList(c),f=e.indexOf(d);-1==f&&(e.push(d),c.attribs.class=c.className=e.join(" "))}},{key:"removeClass",value:function(c,d){var e=this.classList(c),f=e.indexOf(d);-1<f&&(e.splice(f,1),c.attribs.class=c.className=e.join(" "))}},{key:"hasClass",value:function(c,d){return-1<this.classList(c).indexOf(d)}},{key:"hasStyle",value:function(c,d){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,f=this.getStyle(c,d)||"";return e?f==e:0<f.length}},{key:"_readStyleAttribute",value:function(c){var d={},e=c.attribs;if(e&&null!=e.style)for(var f=e.style,g=f.split(/;+/g),h=0;h<g.length;h++)if(0<g[h].length){var k=g[h].split(/:+/g);d[k[0].trim()]=k[1].trim()}return d}},{key:"_writeStyleAttribute",value:function(c,d){var e="";for(var f in d){var g=d[f];g&&(e+=f+":"+d[f]+";")}c.attribs.style=e}},{key:"setStyle",value:function(c,d,e){var f=this._readStyleAttribute(c);f[d]=e,this._writeStyleAttribute(c,f)}},{key:"removeStyle",value:function(c,d){this.setStyle(c,d,null)}},{key:"getStyle",value:function(c,d){var e=this._readStyleAttribute(c);return e.hasOwnProperty(d)?e[d]:""}},{key:"tagName",value:function(c){return"style"==c.tagName?"STYLE":c.tagName}},{key:"attributeMap",value:function(c){for(var d=new Map,e=treeAdapter.getAttrList(c),f=0;f<e.length;f++){var g=e[f];d.set(g.name,g.value)}return d}},{key:"hasAttribute",value:function(c,d){return c.attribs&&null!=c.attribs[d]}},{key:"hasAttributeNS",value:function(){throw"not implemented"}},{key:"getAttribute",value:function(c,d){return this.hasAttribute(c,d)?c.attribs[d]:null}},{key:"getAttributeNS",value:function(){throw"not implemented"}},{key:"setAttribute",value:function(c,d,e){d&&(c.attribs[d]=e,"class"===d&&(c.className=e))}},{key:"setAttributeNS",value:function(){throw"not implemented"}},{key:"removeAttribute",value:function(c,d){d&&delete c.attribs[d]}},{key:"removeAttributeNS",value:function(){throw"not implemented"}},{key:"templateAwareRoot",value:function(c){return this.isTemplateElement(c)?treeAdapter.getTemplateContent(c):c}},{key:"createHtmlDocument",value:function(){var c=treeAdapter.createDocument();c.title="fakeTitle";var d=treeAdapter.createElement("head",null,[]),e=treeAdapter.createElement("body","http://www.w3.org/1999/xhtml",[]);return this.appendChild(c,d),this.appendChild(c,e),c.head=d,c.body=e,c._window={},c}},{key:"getBoundingClientRect",value:function(){return{left:0,top:0,width:0,height:0}}},{key:"getTitle",value:function(c){return c.title||""}},{key:"setTitle",value:function(c,d){c.title=d}},{key:"isTemplateElement",value:function(c){return this.isElementNode(c)&&"template"===this.tagName(c)}},{key:"isTextNode",value:function(c){return treeAdapter.isTextNode(c)}},{key:"isCommentNode",value:function(c){return treeAdapter.isCommentNode(c)}},{key:"isElementNode",value:function(c){return!!c&&treeAdapter.isElementNode(c)}},{key:"hasShadowRoot",value:function(c){return isPresent(c.shadowRoot)}},{key:"isShadowRoot",value:function(c){return this.getShadowRoot(c)==c}},{key:"importIntoDoc",value:function(c){return this.clone(c)}},{key:"adoptNode",value:function(c){return c}},{key:"getHref",value:function(c){return c.href}},{key:"resolveAndSetHref",value:function(c,d,e){c.href=null==e?d:d+"/../"+e}},{key:"_buildRules",value:function(c,d){for(var e=[],f=0;f<c.length;f++){var g=c[f],h={};if(h.cssText=d,h.style={content:"",cssText:""},"rule"==g.type){if(h.type=1,h.selectorText=g.selectors.join(", ".replace(/\s{2,}/g," ").replace(/\s*~\s*/g," ~ ").replace(/\s*\+\s*/g," + ").replace(/\s*>\s*/g," > ").replace(/\[(\w+)=(\w+)\]/g,'[$1="$2"]')),isBlank(g.declarations))continue;for(var k=0;k<g.declarations.length;k++){var l=g.declarations[k];h.style=l.property[l.value],h.style.cssText+=l.property+": "+l.value+";"}}else"media"==g.type&&(h.type=4,h.media={mediaText:g.media},g.rules&&(h.cssRules=this._buildRules(g.rules)));e.push(h)}return e}},{key:"supportsDOMEvents",value:function(){return!1}},{key:"supportsNativeShadowDOM",value:function(){return!1}},{key:"getGlobalEventTarget",value:function(c,d){return"window"==d?c._window:"document"==d?c:"body"==d?c.body:void 0}},{key:"getBaseHref",value:function(c){var d=this.querySelector(c,"base"),e="";return d&&(e=this.getHref(d)),isBlank(e)?null:e}},{key:"resetBaseElement",value:function(){throw"not implemented"}},{key:"getHistory",value:function(){throw"not implemented"}},{key:"getLocation",value:function(){throw"not implemented"}},{key:"getUserAgent",value:function(){return"Fake user agent"}},{key:"getData",value:function(c,d){return this.getAttribute(c,"data-"+d)}},{key:"getComputedStyle",value:function(){throw"not implemented"}},{key:"setData",value:function(c,d,e){this.setAttribute(c,"data-"+d,e)}},{key:"setGlobalVar",value:function(c,d){setValueOnPath(global$1,c,d)}},{key:"supportsWebAnimation",value:function(){return!1}},{key:"performanceNow",value:function(){return Date.now()}},{key:"getAnimationPrefix",value:function(){return""}},{key:"getTransitionEnd",value:function(){return"transitionend"}},{key:"supportsAnimation",value:function(){return!0}},{key:"replaceChild",value:function(){throw new Error("not implemented")}},{key:"parse",value:function(){throw new Error("not implemented")}},{key:"invoke",value:function(){throw new Error("not implemented")}},{key:"getEventKey",value:function(){throw new Error("not implemented")}},{key:"supportsCookies",value:function(){return!1}},{key:"getCookie",value:function(){throw new Error("not implemented")}},{key:"setCookie",value:function(){throw new Error("not implemented")}},{key:"animate",value:function(){throw new Error("not implemented")}},{key:"attrToPropMap",get:function(){return _attrToPropMap}}],[{key:"makeCurrent",value:function(){treeAdapter=parse5$1.treeAdapters.htmlparser2,(0,_platformBrowser.ɵsetRootDomAdapter)(new Parse5DomAdapter)}}]),Parse5DomAdapter}(_platformBrowser.ɵDomAdapter),_HTMLElementPropertyList=["webkitEntries","incremental","webkitdirectory","selectionDirection","selectionEnd","selectionStart","labels","validationMessage","validity","willValidate","width","valueAsNumber","valueAsDate","value","useMap","defaultValue","type","step","src","size","required","readOnly","placeholder","pattern","name","multiple","min","minLength","maxLength","max","list","indeterminate","height","formTarget","formNoValidate","formMethod","formEnctype","formAction","files","form","disabled","dirName","checked","defaultChecked","autofocus","autocomplete","alt","align","accept","onautocompleteerror","onautocomplete","onwaiting","onvolumechange","ontoggle","ontimeupdate","onsuspend","onsubmit","onstalled","onshow","onselect","onseeking","onseeked","onscroll","onresize","onreset","onratechange","onprogress","onplaying","onplay","onpause","onmousewheel","onmouseup","onmouseover","onmouseout","onmousemove","onmouseleave","onmouseenter","onmousedown","onloadstart","onloadedmetadata","onloadeddata","onload","onkeyup","onkeypress","onkeydown","oninvalid","oninput","onfocus","onerror","onended","onemptied","ondurationchange","ondrop","ondragstart","ondragover","ondragleave","ondragenter","ondragend","ondrag","ondblclick","oncuechange","oncontextmenu","onclose","onclick","onchange","oncanplaythrough","oncanplay","oncancel","onblur","onabort","spellcheck","isContentEditable","contentEditable","outerText","innerText","accessKey","hidden","webkitdropzone","draggable","tabIndex","dir","translate","lang","title","childElementCount","lastElementChild","firstElementChild","children","onwebkitfullscreenerror","onwebkitfullscreenchange","nextElementSibling","previousElementSibling","onwheel","onselectstart","onsearch","onpaste","oncut","oncopy","onbeforepaste","onbeforecut","onbeforecopy","shadowRoot","dataset","classList","className","outerHTML","innerHTML","scrollHeight","scrollWidth","scrollTop","scrollLeft","clientHeight","clientWidth","clientTop","clientLeft","offsetParent","offsetHeight","offsetWidth","offsetTop","offsetLeft","localName","prefix","namespaceURI","id","style","attributes","tagName","parentElement","textContent","baseURI","ownerDocument","nextSibling","previousSibling","lastChild","firstChild","childNodes","parentNode","nodeType","nodeValue","nodeName","closure_lm_714617","__jsaction"],EMPTY_ARRAY=[],ServerRendererFactoryV2=function(){function ServerRendererFactoryV2(c,d,e){_classCallCheck(this,ServerRendererFactoryV2),this.ngZone=c,this.document=d,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.schema=new _compiler.DomElementSchemaRegistry,this.defaultRenderer=new DefaultServerRendererV2(d,c,this.schema)}return _createClass(ServerRendererFactoryV2,[{key:"createRenderer",value:function(c,d){if(!c||!d)return this.defaultRenderer;switch(d.encapsulation){case _core.ViewEncapsulation.Emulated:var e=this.rendererByCompId.get(d.id);return e||(e=new EmulatedEncapsulationServerRendererV2(this.document,this.ngZone,this.sharedStylesHost,this.schema,d),this.rendererByCompId.set(d.id,e)),e.applyToHost(c),e;case _core.ViewEncapsulation.Native:throw new Error("Native encapsulation is not supported on the server!");default:if(!this.rendererByCompId.has(d.id)){var _e=(0,_platformBrowser.ɵflattenStyles)(d.id,d.styles,[]);this.sharedStylesHost.addStyles(_e),this.rendererByCompId.set(d.id,this.defaultRenderer)}return this.defaultRenderer}}}]),ServerRendererFactoryV2}();ServerRendererFactoryV2.decorators=[{type:_core.Injectable}],ServerRendererFactoryV2.ctorParameters=function(){return[{type:_core.NgZone},{type:void 0,decorators:[{type:_core.Inject,args:[_platformBrowser.DOCUMENT]}]},{type:_platformBrowser.ɵSharedStylesHost}]};var DefaultServerRendererV2=function(){function DefaultServerRendererV2(c,d,e){_classCallCheck(this,DefaultServerRendererV2),this.document=c,this.ngZone=d,this.schema=e,this.data=Object.create(null)}return _createClass(DefaultServerRendererV2,[{key:"destroy",value:function(){}},{key:"createElement",value:function(c,d){return d?(0,_platformBrowser.ɵgetDOM)().createElementNS(_platformBrowser.ɵNAMESPACE_URIS[d],c):(0,_platformBrowser.ɵgetDOM)().createElement(c)}},{key:"createComment",value:function(c){return(0,_platformBrowser.ɵgetDOM)().createComment(c)}},{key:"createText",value:function(c){return(0,_platformBrowser.ɵgetDOM)().createTextNode(c)}},{key:"appendChild",value:function(c,d){(0,_platformBrowser.ɵgetDOM)().appendChild(c,d)}},{key:"insertBefore",value:function(c,d,e){c&&(0,_platformBrowser.ɵgetDOM)().insertBefore(c,e,d)}},{key:"removeChild",value:function(c,d){c&&(0,_platformBrowser.ɵgetDOM)().removeChild(c,d)}},{key:"selectRootElement",value:function(c){var e=void 0;if("string"!=typeof c)e=c;else if(e=(0,_platformBrowser.ɵgetDOM)().querySelector(this.document,c),!e)throw new Error('The selector "'+c+'" did not match any elements');return(0,_platformBrowser.ɵgetDOM)().clearNodes(e),e}},{key:"parentNode",value:function(c){return(0,_platformBrowser.ɵgetDOM)().parentElement(c)}},{key:"nextSibling",value:function(c){return(0,_platformBrowser.ɵgetDOM)().nextSibling(c)}},{key:"setAttribute",value:function(c,d,e,f){f?(0,_platformBrowser.ɵgetDOM)().setAttributeNS(c,_platformBrowser.ɵNAMESPACE_URIS[f],f+":"+d,e):(0,_platformBrowser.ɵgetDOM)().setAttribute(c,d,e)}},{key:"removeAttribute",value:function(c,d,e){e?(0,_platformBrowser.ɵgetDOM)().removeAttributeNS(c,_platformBrowser.ɵNAMESPACE_URIS[e],d):(0,_platformBrowser.ɵgetDOM)().removeAttribute(c,d)}},{key:"addClass",value:function(c,d){(0,_platformBrowser.ɵgetDOM)().addClass(c,d)}},{key:"removeClass",value:function(c,d){(0,_platformBrowser.ɵgetDOM)().removeClass(c,d)}},{key:"setStyle",value:function(c,d,e){(0,_platformBrowser.ɵgetDOM)().setStyle(c,d,e)}},{key:"removeStyle",value:function(c,d){(0,_platformBrowser.ɵgetDOM)().removeStyle(c,d)}},{key:"_isSafeToReflectProperty",value:function(c,d){return this.schema.securityContext(c,d,!0)===this.schema.securityContext(c,d,!1)}},{key:"setProperty",value:function(c,d,e){(0,_platformBrowser.ɵgetDOM)().setProperty(c,d,e);var f=c.tagName.toLowerCase();isPresent(e)&&("number"==typeof e||"string"==typeof e)&&this.schema.hasElement(f,EMPTY_ARRAY)&&this.schema.hasProperty(f,d,EMPTY_ARRAY)&&this._isSafeToReflectProperty(f,d)&&this.setAttribute(c,d,e.toString())}},{key:"setValue",value:function(c,d){(0,_platformBrowser.ɵgetDOM)().setText(c,d)}},{key:"listen",value:function(c,d,e){var _this6=this,f="string"==typeof c?(0,_platformBrowser.ɵgetDOM)().getGlobalEventTarget(this.document,c):c,g=function(h){return _this6.ngZone.runGuarded(function(){return e(h)})};return this.ngZone.runOutsideAngular(function(){return(0,_platformBrowser.ɵgetDOM)().onAndCancel(f,d,g)})}}]),DefaultServerRendererV2}(),EmulatedEncapsulationServerRendererV2=function(_DefaultServerRendere){function EmulatedEncapsulationServerRendererV2(c,d,e,f,g){var _this7;_classCallCheck(this,EmulatedEncapsulationServerRendererV2),_this7=_possibleConstructorReturn(this,(EmulatedEncapsulationServerRendererV2.__proto__||Object.getPrototypeOf(EmulatedEncapsulationServerRendererV2)).call(this,c,d,f)),_this7.component=g;var h=(0,_platformBrowser.ɵflattenStyles)(g.id,g.styles,[]);return e.addStyles(h),_this7.contentAttr=(0,_platformBrowser.ɵshimContentAttribute)(g.id),_this7.hostAttr=(0,_platformBrowser.ɵshimHostAttribute)(g.id),_this7}return _inherits(EmulatedEncapsulationServerRendererV2,_DefaultServerRendere),_createClass(EmulatedEncapsulationServerRendererV2,[{key:"applyToHost",value:function(c){_get(EmulatedEncapsulationServerRendererV2.prototype.__proto__||Object.getPrototypeOf(EmulatedEncapsulationServerRendererV2.prototype),"setAttribute",this).call(this,c,this.hostAttr,"");
}},{key:"createElement",value:function(c,d){var e=_get(EmulatedEncapsulationServerRendererV2.prototype.__proto__||Object.getPrototypeOf(EmulatedEncapsulationServerRendererV2.prototype),"createElement",this).call(this,c,d);return _get(EmulatedEncapsulationServerRendererV2.prototype.__proto__||Object.getPrototypeOf(EmulatedEncapsulationServerRendererV2.prototype),"setAttribute",this).call(this,e,this.contentAttr,""),e}}]),EmulatedEncapsulationServerRendererV2}(DefaultServerRendererV2),ServerStylesHost=function(_SharedStylesHost){function ServerStylesHost(c,d){var _this8;return _classCallCheck(this,ServerStylesHost),_this8=_possibleConstructorReturn(this,(ServerStylesHost.__proto__||Object.getPrototypeOf(ServerStylesHost)).call(this)),_this8.doc=c,_this8.transitionId=d,_this8.head=null,_this8.head=(0,_platformBrowser.ɵgetDOM)().getElementsByTagName(c,"head")[0],_this8}return _inherits(ServerStylesHost,_SharedStylesHost),_createClass(ServerStylesHost,[{key:"_addStyle",value:function(c){var d=(0,_platformBrowser.ɵgetDOM)(),e=d.createElement("style");d.setText(e,c),!this.transitionId||d.setAttribute(e,"ng-transition",this.transitionId),d.appendChild(this.head,e)}},{key:"onStylesAdded",value:function(c){var _this9=this;c.forEach(function(d){return _this9._addStyle(d)})}}]),ServerStylesHost}(_platformBrowser.ɵSharedStylesHost);ServerStylesHost.decorators=[{type:_core.Injectable}],ServerStylesHost.ctorParameters=function(){return[{type:void 0,decorators:[{type:_core.Inject,args:[_platformBrowser.DOCUMENT]}]},{type:void 0,decorators:[{type:_core.Optional},{type:_core.Inject,args:[_platformBrowser.ɵTRANSITION_ID]}]}]};var INTERNAL_SERVER_PLATFORM_PROVIDERS=[{provide:_platformBrowser.DOCUMENT,useFactory:_document,deps:[_core.Injector]},{provide:_core.PLATFORM_ID,useValue:_common.ɵPLATFORM_SERVER_ID},{provide:_core.PLATFORM_INITIALIZER,useFactory:initParse5Adapter,multi:!0,deps:[_core.Injector]},{provide:_common.PlatformLocation,useClass:ServerPlatformLocation},PlatformState,{provide:_core.ɵALLOW_MULTIPLE_PLATFORMS,useValue:!0}],SERVER_RENDER_PROVIDERS=[ServerRendererFactoryV2,{provide:_core.RendererFactoryV2,useExisting:ServerRendererFactoryV2},ServerStylesHost,{provide:_platformBrowser.ɵSharedStylesHost,useExisting:ServerStylesHost}],ServerModule=function ServerModule(){_classCallCheck(this,ServerModule)};ServerModule.decorators=[{type:_core.NgModule,args:[{exports:[_platformBrowser.BrowserModule],imports:[_http.HttpModule],providers:[SERVER_RENDER_PROVIDERS,SERVER_HTTP_PROVIDERS,{provide:_core.Testability,useValue:null}]}]}],ServerModule.ctorParameters=function(){return[]};var platformServer=(0,_core.createPlatformFactory)(_core.platformCore,"server",INTERNAL_SERVER_PLATFORM_PROVIDERS),platformDynamicServer=(0,_core.createPlatformFactory)(_compiler.platformCoreDynamic,"serverDynamic",INTERNAL_SERVER_PLATFORM_PROVIDERS),VERSION=new _core.Version("4.0.0-rc.2");exports.PlatformState=PlatformState,exports.ServerModule=ServerModule,exports.platformDynamicServer=platformDynamicServer,exports.platformServer=platformServer,exports.INITIAL_CONFIG=INITIAL_CONFIG,exports.renderModule=renderModule,exports.renderModuleFactory=renderModuleFactory,exports.VERSION=VERSION,exports.ɵINTERNAL_SERVER_PLATFORM_PROVIDERS=INTERNAL_SERVER_PLATFORM_PROVIDERS,exports.ɵSERVER_RENDER_PROVIDERS=SERVER_RENDER_PROVIDERS,exports.ɵf=SERVER_HTTP_PROVIDERS,exports.ɵc=ServerXhr,exports.ɵd=ServerXsrfStrategy,exports.ɵe=httpFactory,exports.ɵa=ServerRendererFactoryV2,exports.ɵb=ServerStylesHost});
{
"name": "@angular/platform-server",
"version": "4.0.0-rc.1",
"version": "4.0.0-rc.2",
"description": "Angular - library for using Angular in Node.js",

@@ -12,6 +12,6 @@ "main": "./bundles/platform-server.umd.js",

"peerDependencies": {
"@angular/core": "4.0.0-rc.1",
"@angular/common": "4.0.0-rc.1",
"@angular/compiler": "4.0.0-rc.1",
"@angular/platform-browser": "4.0.0-rc.1"
"@angular/core": "4.0.0-rc.2",
"@angular/common": "4.0.0-rc.2",
"@angular/compiler": "4.0.0-rc.2",
"@angular/platform-browser": "4.0.0-rc.2"
},

@@ -18,0 +18,0 @@ "dependencies": {

@@ -5,5 +5,4 @@ /**

export * from './public_api';
export { SERVER_HTTP_PROVIDERS as ɵh, ServerXhr as ɵe, ServerXsrfStrategy as ɵf, httpFactory as ɵg } from './src/http';
export { _createConditionalRootRenderer as ɵa } from './src/server';
export { ServerRendererFactoryV2 as ɵc, ServerRootRenderer as ɵb } from './src/server_renderer';
export { ServerStylesHost as ɵd } from './src/styles_host';
export { SERVER_HTTP_PROVIDERS as ɵf, ServerXhr as ɵc, ServerXsrfStrategy as ɵd, httpFactory as ɵe } from './src/http';
export { ServerRendererFactoryV2 as ɵa } from './src/server_renderer';
export { ServerStylesHost as ɵb } from './src/styles_host';

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":3,"metadata":{"ɵa":{"__symbolic":"function","parameters":["rootRenderer"],"value":{"__symbolic":"if","condition":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"isDevMode"}},"thenExpression":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"ɵDebugDomRootRenderer"},"arguments":[{"__symbolic":"reference","name":"rootRenderer"}]},"elseExpression":{"__symbolic":"reference","name":"rootRenderer"}}},"PlatformState":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DOCUMENT"}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"renderToString":[{"__symbolic":"method"}],"getDocument":[{"__symbolic":"method"}]}},"ServerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"exports":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"BrowserModule"}],"imports":[{"__symbolic":"reference","module":"@angular/http","name":"HttpModule"}],"providers":[{"__symbolic":"reference","name":"ɵSERVER_RENDER_PROVIDERS"},{"__symbolic":"reference","name":"ɵh"}]}]}],"members":{}},"platformDynamicServer":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"createPlatformFactory"},"arguments":[{"__symbolic":"reference","module":"@angular/compiler","name":"platformCoreDynamic"},"serverDynamic",{"__symbolic":"reference","name":"ɵINTERNAL_SERVER_PLATFORM_PROVIDERS"}]},"platformServer":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"createPlatformFactory"},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"platformCore"},"server",{"__symbolic":"reference","name":"ɵINTERNAL_SERVER_PLATFORM_PROVIDERS"}]},"INITIAL_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["Server.INITIAL_CONFIG"]},"renderModule":{"__symbolic":"function"},"renderModuleFactory":{"__symbolic":"function"},"ɵINTERNAL_SERVER_PLATFORM_PROVIDERS":{"__symbolic":"error","message":"Reference to a non-exported function","line":66,"character":9,"context":{"name":"_document"},"module":"./src/server"},"ɵSERVER_RENDER_PROVIDERS":[{"__symbolic":"reference","name":"ɵb"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"RootRenderer"},"useFactory":{"__symbolic":"reference","name":"ɵa"},"deps":[{"__symbolic":"reference","name":"ɵb"}]},{"__symbolic":"reference","name":"ɵc"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"RendererFactoryV2"},"useExisting":{"__symbolic":"reference","name":"ɵc"}},{"__symbolic":"reference","name":"ɵd"},{"provide":{"__symbolic":"reference","module":"@angular/platform-browser","name":"ɵSharedStylesHost"},"useExisting":{"__symbolic":"reference","name":"ɵd"}}],"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-rc.1"]},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DOCUMENT"}]}],null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"APP_ID"}]}],null],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"ɵSharedStylesHost"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"AnimationDriver"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","module":"@angular/core","name":"NgZone"}]}],"renderComponent":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DOCUMENT"}]}],null],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"ɵSharedStylesHost"}]}],"createRenderer":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/platform-browser","name":"ɵSharedStylesHost"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DOCUMENT"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"ɵTRANSITION_ID"}]}]],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"string"}]}],"_addStyle":[{"__symbolic":"method"}],"onStylesAdded":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"build":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"configureRequest":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"function"},"ɵh":[{"provide":{"__symbolic":"reference","module":"@angular/http","name":"Http"},"useFactory":{"__symbolic":"reference","name":"ɵg"},"deps":[{"__symbolic":"reference","module":"@angular/http","name":"XHRBackend"},{"__symbolic":"reference","module":"@angular/http","name":"RequestOptions"}]},{"provide":{"__symbolic":"reference","module":"@angular/http","name":"BrowserXhr"},"useClass":{"__symbolic":"reference","name":"ɵe"}},{"provide":{"__symbolic":"reference","module":"@angular/http","name":"XSRFStrategy"},"useClass":{"__symbolic":"reference","name":"ɵf"}}]},"importAs":"@angular/platform-server"}
{"__symbolic":"module","version":3,"metadata":{"PlatformState":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DOCUMENT"}]}]],"parameters":[{"__symbolic":"reference","name":"any"}]}],"renderToString":[{"__symbolic":"method"}],"getDocument":[{"__symbolic":"method"}]}},"ServerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"exports":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"BrowserModule"}],"imports":[{"__symbolic":"reference","module":"@angular/http","name":"HttpModule"}],"providers":[{"__symbolic":"reference","name":"ɵSERVER_RENDER_PROVIDERS"},{"__symbolic":"reference","name":"ɵf"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"Testability"},"useValue":null}]}]}],"members":{}},"platformDynamicServer":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"createPlatformFactory"},"arguments":[{"__symbolic":"reference","module":"@angular/compiler","name":"platformCoreDynamic"},"serverDynamic",{"__symbolic":"reference","name":"ɵINTERNAL_SERVER_PLATFORM_PROVIDERS"}]},"platformServer":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"createPlatformFactory"},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"platformCore"},"server",{"__symbolic":"reference","name":"ɵINTERNAL_SERVER_PLATFORM_PROVIDERS"}]},"INITIAL_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["Server.INITIAL_CONFIG"]},"renderModule":{"__symbolic":"function"},"renderModuleFactory":{"__symbolic":"function"},"ɵINTERNAL_SERVER_PLATFORM_PROVIDERS":{"__symbolic":"error","message":"Reference to a non-exported function","line":63,"character":9,"context":{"name":"_document"},"module":"./src/server"},"ɵSERVER_RENDER_PROVIDERS":[{"__symbolic":"reference","name":"ɵa"},{"provide":{"__symbolic":"reference","module":"@angular/core","name":"RendererFactoryV2"},"useExisting":{"__symbolic":"reference","name":"ɵa"}},{"__symbolic":"reference","name":"ɵb"},{"provide":{"__symbolic":"reference","module":"@angular/platform-browser","name":"ɵSharedStylesHost"},"useExisting":{"__symbolic":"reference","name":"ɵb"}}],"VERSION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Version"},"arguments":["4.0.0-rc.2"]},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DOCUMENT"}]}],null],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone"},{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","module":"@angular/platform-browser","name":"ɵSharedStylesHost"}]}],"createRenderer":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@angular/platform-browser","name":"ɵSharedStylesHost"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"DOCUMENT"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional"}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"ɵTRANSITION_ID"}]}]],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"string"}]}],"_addStyle":[{"__symbolic":"method"}],"onStylesAdded":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"build":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"configureRequest":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"function"},"ɵf":[{"provide":{"__symbolic":"reference","module":"@angular/http","name":"Http"},"useFactory":{"__symbolic":"reference","name":"ɵe"},"deps":[{"__symbolic":"reference","module":"@angular/http","name":"XHRBackend"},{"__symbolic":"reference","module":"@angular/http","name":"RequestOptions"}]},{"provide":{"__symbolic":"reference","module":"@angular/http","name":"BrowserXhr"},"useClass":{"__symbolic":"reference","name":"ɵc"}},{"provide":{"__symbolic":"reference","module":"@angular/http","name":"XSRFStrategy"},"useClass":{"__symbolic":"reference","name":"ɵd"}}]},"importAs":"@angular/platform-server"}

@@ -1,53 +0,3 @@

/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { DomElementSchemaRegistry } from '@angular/compiler';
import { NgZone, RenderComponentType, Renderer, RendererFactoryV2, RendererTypeV2, RendererV2, RootRenderer, ɵAnimationKeyframe as AnimationKeyframe, ɵAnimationPlayer as AnimationPlayer, ɵAnimationStyles as AnimationStyles, ɵRenderDebugInfo as RenderDebugInfo } from '@angular/core';
import { AnimationDriver, ɵSharedStylesHost as SharedStylesHost } from '@angular/platform-browser';
export declare class ServerRootRenderer implements RootRenderer {
document: any;
sharedStylesHost: SharedStylesHost;
animationDriver: AnimationDriver;
appId: string;
private _zone;
protected registeredComponents: Map<string, ServerRenderer>;
private _schema;
constructor(document: any, sharedStylesHost: SharedStylesHost, animationDriver: AnimationDriver, appId: string, _zone: NgZone);
renderComponent(componentProto: RenderComponentType): Renderer;
}
export declare class ServerRenderer implements Renderer {
private _rootRenderer;
private componentProto;
private _animationDriver;
private _zone;
private _schema;
private _contentAttr;
private _hostAttr;
private _styles;
constructor(_rootRenderer: ServerRootRenderer, componentProto: RenderComponentType, _animationDriver: AnimationDriver, styleShimId: string, _zone: NgZone, _schema: DomElementSchemaRegistry);
selectRootElement(selectorOrNode: string | any, debugInfo: RenderDebugInfo): Element;
createElement(parent: Element, name: string, debugInfo: RenderDebugInfo): Node;
createViewRoot(hostElement: any): any;
createTemplateAnchor(parentElement: any, debugInfo: RenderDebugInfo): any;
createText(parentElement: any, value: string, debugInfo: RenderDebugInfo): any;
projectNodes(parentElement: any, nodes: any[]): void;
attachViewAfter(node: any, viewRootNodes: any[]): void;
detachView(viewRootNodes: any[]): void;
destroyView(hostElement: any, viewAllNodes: any[]): void;
listen(renderElement: any, name: string, callback: Function): Function;
listenGlobal(target: string, name: string, callback: Function): Function;
private _isSafeToReflectProperty(tagName, propertyName);
setElementProperty(renderElement: any, propertyName: string, propertyValue: any): void;
setElementAttribute(renderElement: any, attributeName: string, attributeValue: string): void;
setBindingDebugInfo(renderElement: any, propertyName: string, propertyValue: string): void;
setElementClass(renderElement: any, className: string, isAdd: boolean): void;
setElementStyle(renderElement: any, styleName: string, styleValue: string): void;
invokeElementMethod(renderElement: any, methodName: string, args: any[]): void;
setText(renderNode: any, text: string): void;
animate(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string, previousPlayers?: AnimationPlayer[]): AnimationPlayer;
}
import { NgZone, RendererFactoryV2, RendererTypeV2, RendererV2 } from '@angular/core';
import { ɵSharedStylesHost as SharedStylesHost } from '@angular/platform-browser';
export declare class ServerRendererFactoryV2 implements RendererFactoryV2 {

@@ -54,0 +4,0 @@ private ngZone;

import { PlatformRef, Provider } from '@angular/core';
export declare const INTERNAL_SERVER_PLATFORM_PROVIDERS: Array<any>;
export declare function _createConditionalRootRenderer(rootRenderer: any): any;
export declare const SERVER_RENDER_PROVIDERS: Provider[];

@@ -5,0 +4,0 @@ /**

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc