2015-09-18 10:33:23 -07:00
|
|
|
import {isPresent, isBlank, Type, isString} from 'angular2/src/core/facade/lang';
|
|
|
|
import {SetWrapper, StringMapWrapper, ListWrapper} from 'angular2/src/core/facade/collection';
|
2015-09-11 13:37:05 -07:00
|
|
|
import {
|
|
|
|
TemplateCmd,
|
|
|
|
text,
|
|
|
|
ngContent,
|
|
|
|
beginElement,
|
|
|
|
endElement,
|
|
|
|
beginComponent,
|
|
|
|
endComponent,
|
|
|
|
embeddedTemplate
|
|
|
|
} from 'angular2/src/core/compiler/template_commands';
|
|
|
|
import {
|
|
|
|
TemplateAst,
|
|
|
|
TemplateAstVisitor,
|
|
|
|
NgContentAst,
|
|
|
|
EmbeddedTemplateAst,
|
|
|
|
ElementAst,
|
|
|
|
VariableAst,
|
|
|
|
BoundEventAst,
|
|
|
|
BoundElementPropertyAst,
|
|
|
|
AttrAst,
|
|
|
|
BoundTextAst,
|
|
|
|
TextAst,
|
|
|
|
DirectiveAst,
|
|
|
|
BoundDirectivePropertyAst,
|
|
|
|
templateVisitAll
|
|
|
|
} from './template_ast';
|
2015-09-18 10:33:23 -07:00
|
|
|
import {CompileTypeMetadata, CompileDirectiveMetadata} from './directive_metadata';
|
|
|
|
import {SourceExpressions, SourceExpression, moduleRef} from './source_module';
|
2015-09-14 15:59:09 -07:00
|
|
|
|
2015-09-11 13:37:05 -07:00
|
|
|
import {ViewEncapsulation} from 'angular2/src/core/render/api';
|
|
|
|
import {shimHostAttribute, shimContentAttribute} from './style_compiler';
|
|
|
|
import {escapeSingleQuoteString} from './util';
|
2015-09-14 15:59:09 -07:00
|
|
|
import {Injectable} from 'angular2/src/core/di';
|
2015-09-11 13:37:05 -07:00
|
|
|
|
2015-09-14 15:59:09 -07:00
|
|
|
export var TEMPLATE_COMMANDS_MODULE_REF = moduleRef('angular2/src/core/compiler/template_commands');
|
2015-09-18 10:33:23 -07:00
|
|
|
|
|
|
|
const IMPLICIT_TEMPLATE_VAR = '\$implicit';
|
2015-09-11 13:37:05 -07:00
|
|
|
|
2015-09-14 15:59:09 -07:00
|
|
|
@Injectable()
|
2015-09-11 13:37:05 -07:00
|
|
|
export class CommandCompiler {
|
2015-09-18 10:33:23 -07:00
|
|
|
compileComponentRuntime(component: CompileDirectiveMetadata, template: TemplateAst[],
|
|
|
|
changeDetectorFactories: Function[],
|
2015-09-11 13:37:05 -07:00
|
|
|
componentTemplateFactory: Function): TemplateCmd[] {
|
2015-09-18 10:33:23 -07:00
|
|
|
var visitor = new CommandBuilderVisitor(
|
|
|
|
new RuntimeCommandFactory(componentTemplateFactory, changeDetectorFactories), component, 0);
|
2015-09-11 13:37:05 -07:00
|
|
|
templateVisitAll(visitor, template);
|
|
|
|
return visitor.result;
|
|
|
|
}
|
|
|
|
|
2015-09-18 10:33:23 -07:00
|
|
|
compileComponentCodeGen(component: CompileDirectiveMetadata, template: TemplateAst[],
|
|
|
|
changeDetectorFactoryExpressions: string[],
|
2015-09-14 15:59:09 -07:00
|
|
|
componentTemplateFactory: Function): SourceExpression {
|
2015-09-18 10:33:23 -07:00
|
|
|
var visitor = new CommandBuilderVisitor(
|
|
|
|
new CodegenCommandFactory(componentTemplateFactory, changeDetectorFactoryExpressions),
|
|
|
|
component, 0);
|
2015-09-11 13:37:05 -07:00
|
|
|
templateVisitAll(visitor, template);
|
2015-09-14 15:59:09 -07:00
|
|
|
var source = `[${visitor.result.join(',')}]`;
|
|
|
|
return new SourceExpression([], source);
|
2015-09-11 13:37:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
interface CommandFactory<R> {
|
|
|
|
createText(value: string, isBound: boolean, ngContentIndex: number): R;
|
|
|
|
createNgContent(ngContentIndex: number): R;
|
2015-09-18 10:33:23 -07:00
|
|
|
createBeginElement(name: string, attrNameAndValues: string[], eventTargetAndNames: string[],
|
|
|
|
variableNameAndValues: string[], directives: CompileDirectiveMetadata[],
|
2015-09-14 15:59:09 -07:00
|
|
|
isBound: boolean, ngContentIndex: number): R;
|
2015-09-11 13:37:05 -07:00
|
|
|
createEndElement(): R;
|
2015-09-18 10:33:23 -07:00
|
|
|
createBeginComponent(name: string, attrNameAndValues: string[], eventTargetAndNames: string[],
|
|
|
|
variableNameAndValues: string[], directives: CompileDirectiveMetadata[],
|
2015-09-11 13:37:05 -07:00
|
|
|
nativeShadow: boolean, ngContentIndex: number): R;
|
|
|
|
createEndComponent(): R;
|
2015-09-18 10:33:23 -07:00
|
|
|
createEmbeddedTemplate(embeddedTemplateIndex: number, attrNameAndValues: string[],
|
|
|
|
variableNameAndValues: string[], directives: CompileDirectiveMetadata[],
|
|
|
|
isMerged: boolean, ngContentIndex: number, children: R[]): R;
|
2015-09-11 13:37:05 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
class RuntimeCommandFactory implements CommandFactory<TemplateCmd> {
|
2015-09-18 10:33:23 -07:00
|
|
|
constructor(public componentTemplateFactory: Function,
|
|
|
|
public changeDetectorFactories: Function[]) {}
|
|
|
|
private _mapDirectives(directives: CompileDirectiveMetadata[]): Type[] {
|
2015-09-14 15:59:09 -07:00
|
|
|
return directives.map(directive => directive.type.runtime);
|
2015-09-11 13:37:05 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
createText(value: string, isBound: boolean, ngContentIndex: number): TemplateCmd {
|
|
|
|
return text(value, isBound, ngContentIndex);
|
|
|
|
}
|
|
|
|
createNgContent(ngContentIndex: number): TemplateCmd { return ngContent(ngContentIndex); }
|
2015-09-18 10:33:23 -07:00
|
|
|
createBeginElement(name: string, attrNameAndValues: string[], eventTargetAndNames: string[],
|
|
|
|
variableNameAndValues: string[], directives: CompileDirectiveMetadata[],
|
2015-09-14 15:59:09 -07:00
|
|
|
isBound: boolean, ngContentIndex: number): TemplateCmd {
|
2015-09-18 10:33:23 -07:00
|
|
|
return beginElement(name, attrNameAndValues, eventTargetAndNames, variableNameAndValues,
|
2015-09-11 13:37:05 -07:00
|
|
|
this._mapDirectives(directives), isBound, ngContentIndex);
|
|
|
|
}
|
|
|
|
createEndElement(): TemplateCmd { return endElement(); }
|
2015-09-18 10:33:23 -07:00
|
|
|
createBeginComponent(name: string, attrNameAndValues: string[], eventTargetAndNames: string[],
|
|
|
|
variableNameAndValues: string[], directives: CompileDirectiveMetadata[],
|
2015-09-11 13:37:05 -07:00
|
|
|
nativeShadow: boolean, ngContentIndex: number): TemplateCmd {
|
2015-09-18 10:33:23 -07:00
|
|
|
return beginComponent(name, attrNameAndValues, eventTargetAndNames, variableNameAndValues,
|
2015-09-11 13:37:05 -07:00
|
|
|
this._mapDirectives(directives), nativeShadow, ngContentIndex,
|
|
|
|
this.componentTemplateFactory(directives[0]));
|
|
|
|
}
|
|
|
|
createEndComponent(): TemplateCmd { return endComponent(); }
|
2015-09-18 10:33:23 -07:00
|
|
|
createEmbeddedTemplate(embeddedTemplateIndex: number, attrNameAndValues: string[],
|
|
|
|
variableNameAndValues: string[], directives: CompileDirectiveMetadata[],
|
|
|
|
isMerged: boolean, ngContentIndex: number,
|
|
|
|
children: TemplateCmd[]): TemplateCmd {
|
2015-09-11 13:37:05 -07:00
|
|
|
return embeddedTemplate(attrNameAndValues, variableNameAndValues,
|
2015-09-18 10:33:23 -07:00
|
|
|
this._mapDirectives(directives), isMerged, ngContentIndex,
|
|
|
|
this.changeDetectorFactories[embeddedTemplateIndex], children);
|
2015-09-11 13:37:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-18 10:33:23 -07:00
|
|
|
function escapePrimitiveArray(data: any[]): string {
|
|
|
|
return `[${data.map( (value) => {
|
|
|
|
if (isString(value)) {
|
|
|
|
return escapeSingleQuoteString(value);
|
|
|
|
} else if (isBlank(value)) {
|
|
|
|
return 'null';
|
|
|
|
} else {
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
}).join(',')}]`;
|
2015-09-11 13:37:05 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
class CodegenCommandFactory implements CommandFactory<string> {
|
2015-09-18 10:33:23 -07:00
|
|
|
constructor(public componentTemplateFactory: Function,
|
|
|
|
public changeDetectorFactoryExpressions: string[]) {}
|
2015-09-11 13:37:05 -07:00
|
|
|
|
|
|
|
createText(value: string, isBound: boolean, ngContentIndex: number): string {
|
2015-09-14 15:59:09 -07:00
|
|
|
return `${TEMPLATE_COMMANDS_MODULE_REF}text(${escapeSingleQuoteString(value)}, ${isBound}, ${ngContentIndex})`;
|
2015-09-11 13:37:05 -07:00
|
|
|
}
|
|
|
|
createNgContent(ngContentIndex: number): string {
|
2015-09-14 15:59:09 -07:00
|
|
|
return `${TEMPLATE_COMMANDS_MODULE_REF}ngContent(${ngContentIndex})`;
|
2015-09-11 13:37:05 -07:00
|
|
|
}
|
2015-09-18 10:33:23 -07:00
|
|
|
createBeginElement(name: string, attrNameAndValues: string[], eventTargetAndNames: string[],
|
|
|
|
variableNameAndValues: string[], directives: CompileDirectiveMetadata[],
|
2015-09-14 15:59:09 -07:00
|
|
|
isBound: boolean, ngContentIndex: number): string {
|
2015-09-18 10:33:23 -07:00
|
|
|
return `${TEMPLATE_COMMANDS_MODULE_REF}beginElement(${escapeSingleQuoteString(name)}, ${escapePrimitiveArray(attrNameAndValues)}, ${escapePrimitiveArray(eventTargetAndNames)}, ${escapePrimitiveArray(variableNameAndValues)}, [${_escapeDirectives(directives).join(',')}], ${isBound}, ${ngContentIndex})`;
|
2015-09-11 13:37:05 -07:00
|
|
|
}
|
2015-09-14 15:59:09 -07:00
|
|
|
createEndElement(): string { return `${TEMPLATE_COMMANDS_MODULE_REF}endElement()`; }
|
2015-09-18 10:33:23 -07:00
|
|
|
createBeginComponent(name: string, attrNameAndValues: string[], eventTargetAndNames: string[],
|
|
|
|
variableNameAndValues: string[], directives: CompileDirectiveMetadata[],
|
2015-09-11 13:37:05 -07:00
|
|
|
nativeShadow: boolean, ngContentIndex: number): string {
|
2015-09-18 10:33:23 -07:00
|
|
|
return `${TEMPLATE_COMMANDS_MODULE_REF}beginComponent(${escapeSingleQuoteString(name)}, ${escapePrimitiveArray(attrNameAndValues)}, ${escapePrimitiveArray(eventTargetAndNames)}, ${escapePrimitiveArray(variableNameAndValues)}, [${_escapeDirectives(directives).join(',')}], ${nativeShadow}, ${ngContentIndex}, ${this.componentTemplateFactory(directives[0])})`;
|
2015-09-11 13:37:05 -07:00
|
|
|
}
|
2015-09-14 15:59:09 -07:00
|
|
|
createEndComponent(): string { return `${TEMPLATE_COMMANDS_MODULE_REF}endComponent()`; }
|
2015-09-18 10:33:23 -07:00
|
|
|
createEmbeddedTemplate(embeddedTemplateIndex: number, attrNameAndValues: string[],
|
|
|
|
variableNameAndValues: string[], directives: CompileDirectiveMetadata[],
|
|
|
|
isMerged: boolean, ngContentIndex: number, children: string[]): string {
|
|
|
|
return `${TEMPLATE_COMMANDS_MODULE_REF}embeddedTemplate(${escapePrimitiveArray(attrNameAndValues)}, ${escapePrimitiveArray(variableNameAndValues)}, ` +
|
|
|
|
`[${_escapeDirectives(directives).join(',')}], ${isMerged}, ${ngContentIndex}, ${this.changeDetectorFactoryExpressions[embeddedTemplateIndex]}, [${children.join(',')}])`;
|
2015-09-11 13:37:05 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-18 10:33:23 -07:00
|
|
|
function _escapeDirectives(directives: CompileDirectiveMetadata[]): string[] {
|
2015-09-14 15:59:09 -07:00
|
|
|
return directives.map(directiveType =>
|
|
|
|
`${moduleRef(directiveType.type.moduleId)}${directiveType.type.name}`);
|
|
|
|
}
|
|
|
|
|
2015-09-11 13:37:05 -07:00
|
|
|
function visitAndReturnContext(visitor: TemplateAstVisitor, asts: TemplateAst[], context: any):
|
|
|
|
any {
|
|
|
|
templateVisitAll(visitor, asts, context);
|
|
|
|
return context;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CommandBuilderVisitor<R> implements TemplateAstVisitor {
|
|
|
|
result: R[] = [];
|
|
|
|
transitiveNgContentCount: number = 0;
|
2015-09-18 10:33:23 -07:00
|
|
|
constructor(public commandFactory: CommandFactory<R>, public component: CompileDirectiveMetadata,
|
|
|
|
public embeddedTemplateIndex: number) {}
|
2015-09-11 13:37:05 -07:00
|
|
|
|
2015-09-18 10:33:23 -07:00
|
|
|
private _readAttrNameAndValues(localComponent: CompileDirectiveMetadata,
|
|
|
|
directives: CompileDirectiveMetadata[],
|
2015-09-11 13:37:05 -07:00
|
|
|
attrAsts: TemplateAst[]): string[] {
|
|
|
|
var attrNameAndValues: string[] = visitAndReturnContext(this, attrAsts, []);
|
|
|
|
if (isPresent(localComponent) &&
|
|
|
|
localComponent.template.encapsulation === ViewEncapsulation.Emulated) {
|
2015-09-14 15:59:09 -07:00
|
|
|
attrNameAndValues.push(shimHostAttribute(localComponent.type.id));
|
2015-09-11 13:37:05 -07:00
|
|
|
attrNameAndValues.push('');
|
|
|
|
}
|
|
|
|
if (this.component.template.encapsulation === ViewEncapsulation.Emulated) {
|
2015-09-14 15:59:09 -07:00
|
|
|
attrNameAndValues.push(shimContentAttribute(this.component.type.id));
|
2015-09-11 13:37:05 -07:00
|
|
|
attrNameAndValues.push('');
|
|
|
|
}
|
2015-09-18 10:33:23 -07:00
|
|
|
directives.forEach(directiveMeta => {
|
|
|
|
StringMapWrapper.forEach(directiveMeta.hostAttributes, (value, name) => {
|
|
|
|
attrNameAndValues.push(name);
|
|
|
|
attrNameAndValues.push(value);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return removeKeyValueArrayDuplicates(attrNameAndValues);
|
2015-09-11 13:37:05 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
visitNgContent(ast: NgContentAst, context: any): any {
|
|
|
|
this.transitiveNgContentCount++;
|
|
|
|
this.result.push(this.commandFactory.createNgContent(ast.ngContentIndex));
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
visitEmbeddedTemplate(ast: EmbeddedTemplateAst, context: any): any {
|
2015-09-18 10:33:23 -07:00
|
|
|
this.embeddedTemplateIndex++;
|
|
|
|
var childVisitor =
|
|
|
|
new CommandBuilderVisitor(this.commandFactory, this.component, this.embeddedTemplateIndex);
|
2015-09-11 13:37:05 -07:00
|
|
|
templateVisitAll(childVisitor, ast.children);
|
|
|
|
var isMerged = childVisitor.transitiveNgContentCount > 0;
|
2015-09-18 10:33:23 -07:00
|
|
|
var variableNameAndValues = [];
|
|
|
|
ast.vars.forEach((varAst) => {
|
|
|
|
variableNameAndValues.push(varAst.name);
|
2015-09-18 10:33:23 -07:00
|
|
|
variableNameAndValues.push(varAst.value.length > 0 ? varAst.value : IMPLICIT_TEMPLATE_VAR);
|
2015-09-18 10:33:23 -07:00
|
|
|
});
|
|
|
|
var directives = [];
|
|
|
|
ListWrapper.forEachWithIndex(ast.directives, (directiveAst: DirectiveAst, index: number) => {
|
|
|
|
directiveAst.visit(this, new DirectiveContext(index, [], [], directives));
|
|
|
|
});
|
2015-09-11 13:37:05 -07:00
|
|
|
this.result.push(this.commandFactory.createEmbeddedTemplate(
|
2015-09-18 10:33:23 -07:00
|
|
|
this.embeddedTemplateIndex, this._readAttrNameAndValues(null, directives, ast.attrs),
|
|
|
|
variableNameAndValues, directives, isMerged, ast.ngContentIndex, childVisitor.result));
|
|
|
|
this.transitiveNgContentCount += childVisitor.transitiveNgContentCount;
|
|
|
|
this.embeddedTemplateIndex = childVisitor.embeddedTemplateIndex;
|
2015-09-11 13:37:05 -07:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
visitElement(ast: ElementAst, context: any): any {
|
|
|
|
var component = ast.getComponent();
|
2015-09-18 10:33:23 -07:00
|
|
|
var eventTargetAndNames = visitAndReturnContext(this, ast.events, []);
|
|
|
|
var variableNameAndValues = [];
|
|
|
|
if (isBlank(component)) {
|
|
|
|
ast.exportAsVars.forEach((varAst) => {
|
|
|
|
variableNameAndValues.push(varAst.name);
|
2015-09-18 10:33:23 -07:00
|
|
|
variableNameAndValues.push(null);
|
2015-09-18 10:33:23 -07:00
|
|
|
});
|
|
|
|
}
|
2015-09-11 13:37:05 -07:00
|
|
|
var directives = [];
|
2015-09-18 10:33:23 -07:00
|
|
|
ListWrapper.forEachWithIndex(ast.directives, (directiveAst: DirectiveAst, index: number) => {
|
|
|
|
directiveAst.visit(this, new DirectiveContext(index, eventTargetAndNames,
|
|
|
|
variableNameAndValues, directives));
|
|
|
|
});
|
|
|
|
eventTargetAndNames = removeKeyValueArrayDuplicates(eventTargetAndNames);
|
|
|
|
|
|
|
|
var attrNameAndValues = this._readAttrNameAndValues(component, directives, ast.attrs);
|
2015-09-11 13:37:05 -07:00
|
|
|
if (isPresent(component)) {
|
|
|
|
this.result.push(this.commandFactory.createBeginComponent(
|
2015-09-18 10:33:23 -07:00
|
|
|
ast.name, attrNameAndValues, eventTargetAndNames, variableNameAndValues, directives,
|
2015-09-11 13:37:05 -07:00
|
|
|
component.template.encapsulation === ViewEncapsulation.Native, ast.ngContentIndex));
|
|
|
|
templateVisitAll(this, ast.children);
|
|
|
|
this.result.push(this.commandFactory.createEndComponent());
|
|
|
|
} else {
|
2015-09-18 10:33:23 -07:00
|
|
|
this.result.push(this.commandFactory.createBeginElement(
|
|
|
|
ast.name, attrNameAndValues, eventTargetAndNames, variableNameAndValues, directives,
|
|
|
|
ast.isBound(), ast.ngContentIndex));
|
2015-09-11 13:37:05 -07:00
|
|
|
templateVisitAll(this, ast.children);
|
|
|
|
this.result.push(this.commandFactory.createEndElement());
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
2015-09-18 10:33:23 -07:00
|
|
|
visitVariable(ast: VariableAst, ctx: any): any { return null; }
|
2015-09-11 13:37:05 -07:00
|
|
|
visitAttr(ast: AttrAst, attrNameAndValues: string[]): any {
|
|
|
|
attrNameAndValues.push(ast.name);
|
|
|
|
attrNameAndValues.push(ast.value);
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
visitBoundText(ast: BoundTextAst, context: any): any {
|
|
|
|
this.result.push(this.commandFactory.createText(null, true, ast.ngContentIndex));
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
visitText(ast: TextAst, context: any): any {
|
|
|
|
this.result.push(this.commandFactory.createText(ast.value, false, ast.ngContentIndex));
|
|
|
|
return null;
|
|
|
|
}
|
2015-09-18 10:33:23 -07:00
|
|
|
visitDirective(ast: DirectiveAst, ctx: DirectiveContext): any {
|
|
|
|
ctx.targetDirectives.push(ast.directive);
|
|
|
|
templateVisitAll(this, ast.hostEvents, ctx.eventTargetAndNames);
|
|
|
|
ast.exportAsVars.forEach(varAst => {
|
|
|
|
ctx.targetVariableNameAndValues.push(varAst.name);
|
|
|
|
ctx.targetVariableNameAndValues.push(ctx.index);
|
|
|
|
});
|
2015-09-11 13:37:05 -07:00
|
|
|
return null;
|
|
|
|
}
|
2015-09-18 10:33:23 -07:00
|
|
|
visitEvent(ast: BoundEventAst, eventTargetAndNames: string[]): any {
|
|
|
|
eventTargetAndNames.push(ast.target);
|
|
|
|
eventTargetAndNames.push(ast.name);
|
2015-09-11 13:37:05 -07:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
visitDirectiveProperty(ast: BoundDirectivePropertyAst, context: any): any { return null; }
|
|
|
|
visitElementProperty(ast: BoundElementPropertyAst, context: any): any { return null; }
|
|
|
|
}
|
2015-09-18 10:33:23 -07:00
|
|
|
|
|
|
|
function removeKeyValueArrayDuplicates(keyValueArray: string[]): string[] {
|
|
|
|
var knownPairs = new Set();
|
|
|
|
var resultKeyValueArray = [];
|
|
|
|
for (var i = 0; i < keyValueArray.length; i += 2) {
|
|
|
|
var key = keyValueArray[i];
|
|
|
|
var value = keyValueArray[i + 1];
|
|
|
|
var pairId = `${key}:${value}`;
|
|
|
|
if (!SetWrapper.has(knownPairs, pairId)) {
|
|
|
|
resultKeyValueArray.push(key);
|
|
|
|
resultKeyValueArray.push(value);
|
|
|
|
knownPairs.add(pairId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return resultKeyValueArray;
|
|
|
|
}
|
|
|
|
|
|
|
|
class DirectiveContext {
|
|
|
|
constructor(public index: number, public eventTargetAndNames: string[],
|
|
|
|
public targetVariableNameAndValues: any[],
|
|
|
|
public targetDirectives: CompileDirectiveMetadata[]) {}
|
|
|
|
}
|