You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by sc...@apache.org on 2018/06/06 15:54:40 UTC
[19/59] [abbrv] [partial] nifi-fds git commit: update gh-pages
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/eec354e6/node_modules/@angular/cdk/bundles/cdk-observers.umd.js
----------------------------------------------------------------------
diff --git a/node_modules/@angular/cdk/bundles/cdk-observers.umd.js b/node_modules/@angular/cdk/bundles/cdk-observers.umd.js
new file mode 100644
index 0000000..bad6972
--- /dev/null
+++ b/node_modules/@angular/cdk/bundles/cdk-observers.umd.js
@@ -0,0 +1,197 @@
+/**
+ * @license
+ * Copyright Google LLC 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
+ */
+(function (global, factory) {
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/coercion'), require('rxjs/Subject'), require('rxjs/operators/debounceTime')) :
+ typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/cdk/coercion', 'rxjs/Subject', 'rxjs/operators/debounceTime'], factory) :
+ (factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.observers = global.ng.cdk.observers || {}),global.ng.core,global.ng.cdk.coercion,global.Rx,global.Rx.operators));
+}(this, (function (exports,_angular_core,_angular_cdk_coercion,rxjs_Subject,rxjs_operators_debounceTime) { 'use strict';
+
+/**
+ * @fileoverview added by tsickle
+ * @suppress {checkTypes} checked by tsc
+ */
+
+/**
+ * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.
+ * \@docs-private
+ */
+var MutationObserverFactory = /** @class */ (function () {
+ function MutationObserverFactory() {
+ }
+ /**
+ * @param {?} callback
+ * @return {?}
+ */
+ MutationObserverFactory.prototype.create = /**
+ * @param {?} callback
+ * @return {?}
+ */
+ function (callback) {
+ return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);
+ };
+ MutationObserverFactory.decorators = [
+ { type: _angular_core.Injectable },
+ ];
+ /** @nocollapse */
+ MutationObserverFactory.ctorParameters = function () { return []; };
+ return MutationObserverFactory;
+}());
+/**
+ * Directive that triggers a callback whenever the content of
+ * its associated element has changed.
+ */
+var CdkObserveContent = /** @class */ (function () {
+ function CdkObserveContent(_mutationObserverFactory, _elementRef, _ngZone) {
+ this._mutationObserverFactory = _mutationObserverFactory;
+ this._elementRef = _elementRef;
+ this._ngZone = _ngZone;
+ this._disabled = false;
+ /**
+ * Event emitted for each change in the element's content.
+ */
+ this.event = new _angular_core.EventEmitter();
+ /**
+ * Used for debouncing the emitted values to the observeContent event.
+ */
+ this._debouncer = new rxjs_Subject.Subject();
+ }
+ Object.defineProperty(CdkObserveContent.prototype, "disabled", {
+ get: /**
+ * Whether observing content is disabled. This option can be used
+ * to disconnect the underlying MutationObserver until it is needed.
+ * @return {?}
+ */
+ function () { return this._disabled; },
+ set: /**
+ * @param {?} value
+ * @return {?}
+ */
+ function (value) {
+ this._disabled = _angular_cdk_coercion.coerceBooleanProperty(value);
+ },
+ enumerable: true,
+ configurable: true
+ });
+ /**
+ * @return {?}
+ */
+ CdkObserveContent.prototype.ngAfterContentInit = /**
+ * @return {?}
+ */
+ function () {
+ var _this = this;
+ if (this.debounce > 0) {
+ this._ngZone.runOutsideAngular(function () {
+ _this._debouncer.pipe(rxjs_operators_debounceTime.debounceTime(_this.debounce))
+ .subscribe(function (mutations) { return _this.event.emit(mutations); });
+ });
+ }
+ else {
+ this._debouncer.subscribe(function (mutations) { return _this.event.emit(mutations); });
+ }
+ this._observer = this._ngZone.runOutsideAngular(function () {
+ return _this._mutationObserverFactory.create(function (mutations) {
+ _this._debouncer.next(mutations);
+ });
+ });
+ if (!this.disabled) {
+ this._enable();
+ }
+ };
+ /**
+ * @param {?} changes
+ * @return {?}
+ */
+ CdkObserveContent.prototype.ngOnChanges = /**
+ * @param {?} changes
+ * @return {?}
+ */
+ function (changes) {
+ if (changes['disabled']) {
+ changes['disabled'].currentValue ? this._disable() : this._enable();
+ }
+ };
+ /**
+ * @return {?}
+ */
+ CdkObserveContent.prototype.ngOnDestroy = /**
+ * @return {?}
+ */
+ function () {
+ this._disable();
+ this._debouncer.complete();
+ };
+ /**
+ * @return {?}
+ */
+ CdkObserveContent.prototype._disable = /**
+ * @return {?}
+ */
+ function () {
+ if (this._observer) {
+ this._observer.disconnect();
+ }
+ };
+ /**
+ * @return {?}
+ */
+ CdkObserveContent.prototype._enable = /**
+ * @return {?}
+ */
+ function () {
+ if (this._observer) {
+ this._observer.observe(this._elementRef.nativeElement, {
+ characterData: true,
+ childList: true,
+ subtree: true
+ });
+ }
+ };
+ CdkObserveContent.decorators = [
+ { type: _angular_core.Directive, args: [{
+ selector: '[cdkObserveContent]',
+ exportAs: 'cdkObserveContent',
+ },] },
+ ];
+ /** @nocollapse */
+ CdkObserveContent.ctorParameters = function () { return [
+ { type: MutationObserverFactory, },
+ { type: _angular_core.ElementRef, },
+ { type: _angular_core.NgZone, },
+ ]; };
+ CdkObserveContent.propDecorators = {
+ "event": [{ type: _angular_core.Output, args: ['cdkObserveContent',] },],
+ "disabled": [{ type: _angular_core.Input, args: ['cdkObserveContentDisabled',] },],
+ "debounce": [{ type: _angular_core.Input },],
+ };
+ return CdkObserveContent;
+}());
+var ObserversModule = /** @class */ (function () {
+ function ObserversModule() {
+ }
+ ObserversModule.decorators = [
+ { type: _angular_core.NgModule, args: [{
+ exports: [CdkObserveContent],
+ declarations: [CdkObserveContent],
+ providers: [MutationObserverFactory]
+ },] },
+ ];
+ /** @nocollapse */
+ ObserversModule.ctorParameters = function () { return []; };
+ return ObserversModule;
+}());
+
+exports.ObserveContent = CdkObserveContent;
+exports.MutationObserverFactory = MutationObserverFactory;
+exports.CdkObserveContent = CdkObserveContent;
+exports.ObserversModule = ObserversModule;
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+})));
+//# sourceMappingURL=cdk-observers.umd.js.map
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/eec354e6/node_modules/@angular/cdk/bundles/cdk-observers.umd.js.map
----------------------------------------------------------------------
diff --git a/node_modules/@angular/cdk/bundles/cdk-observers.umd.js.map b/node_modules/@angular/cdk/bundles/cdk-observers.umd.js.map
new file mode 100644
index 0000000..392793e
--- /dev/null
+++ b/node_modules/@angular/cdk/bundles/cdk-observers.umd.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"cdk-observers.umd.js","sources":["../../src/cdk/observers/observe-content.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {\n Directive,\n ElementRef,\n NgModule,\n Output,\n Input,\n EventEmitter,\n OnDestroy,\n AfterContentInit,\n Injectable,\n NgZone,\n OnChanges,\n SimpleChanges,\n} from '@angular/core';\nimport {coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {Subject} from 'rxjs/Subject';\nimport {debounceTime} from 'rxjs/operators/debounceTime';\n\n/**\n * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.\n * @docs-private\n */\n@Injectable()\nexport class MutationObserverFactory {\n create(callback: MutationCallback): MutationObserver | null {\n return typeof MutationObserver === 'undefined' ? null
: new MutationObserver(callback);\n }\n}\n\n/**\n * Directive that triggers a callback whenever the content of\n * its associated element has changed.\n */\n@Directive({\n selector: '[cdkObserveContent]',\n exportAs: 'cdkObserveContent',\n})\nexport class CdkObserveContent implements AfterContentInit, OnChanges, OnDestroy {\n private _observer: MutationObserver | null;\n private _disabled = false;\n\n /** Event emitted for each change in the element's content. */\n @Output('cdkObserveContent') event = new EventEmitter<MutationRecord[]>();\n\n /**\n * Whether observing content is disabled. This option can be used\n * to disconnect the underlying MutationObserver until it is needed.\n */\n @Input('cdkObserveContentDisabled')\n get disabled() { return this._disabled; }\n set disabled(value: any) {\n this._disabled = coerceBooleanProperty(value);\n }\n\n /** Used for debouncing the emitted values to the observeContent event. */\n private _debouncer = new Subject<
MutationRecord[]>();\n\n /** Debounce interval for emitting the changes. */\n @Input() debounce: number;\n\n constructor(\n private _mutationObserverFactory: MutationObserverFactory,\n private _elementRef: ElementRef,\n private _ngZone: NgZone) { }\n\n ngAfterContentInit() {\n if (this.debounce > 0) {\n this._ngZone.runOutsideAngular(() => {\n this._debouncer.pipe(debounceTime(this.debounce))\n .subscribe((mutations: MutationRecord[]) => this.event.emit(mutations));\n });\n } else {\n this._debouncer.subscribe(mutations => this.event.emit(mutations));\n }\n\n this._observer = this._ngZone.runOutsideAngular(() => {\n return this._mutationObserverFactory.create((mutations: MutationRecord[]) => {\n this._debouncer.next(mutations);\n });\n });\n\n if (!this.disabled) {\n this._enable();\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['disabled']) {\n changes['disabled'].cur
rentValue ? this._disable() : this._enable();\n }\n }\n\n ngOnDestroy() {\n this._disable();\n this._debouncer.complete();\n }\n\n private _disable() {\n if (this._observer) {\n this._observer.disconnect();\n }\n }\n\n private _enable() {\n if (this._observer) {\n this._observer.observe(this._elementRef.nativeElement, {\n characterData: true,\n childList: true,\n subtree: true\n });\n }\n }\n}\n\n\n@NgModule({\n exports: [CdkObserveContent],\n declarations: [CdkObserveContent],\n providers: [MutationObserverFactory]\n})\nexport class ObserversModule {}\n"],"names":["NgModule","Input","Output","NgZone","ElementRef","Directive","debounceTime","coerceBooleanProperty","Subject","EventEmitter","Injectable"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgCE,uBAAF,CAAA,SAAA,CAAA,MAAQ;;;;IAAN,UAAO,QAA0B,EAAnC;QACI,OAAO,OAAO,gBAAgB,KAAK,WAAW,GAAG,IAAI,GAAG,IAAI,gBAAgB,CAAC,QAAQ,CAAC,CAAC;KACxF,CAAH;;QAJA,EAAA,IAAA,EAACU,wBAAU,EA
AX;;;;IA9BA,OAAA,uBAAA,CAAA;;;;;;;IAoEE,SAAF,iBAAA,CACY,wBADZ,EAEY,WAFZ,EAGY,OAHZ,EAAA;QACY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A,EAAED,wBAAU,GAAZ;QAQA,EAAA,IAAA,EAAED,oBAAM,GAAR;;;QAgCA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAGD,oBAAM,EAAT,IAAA,EAAA,CAAU,mBAAmB,EAA7B,EAAA,EAAA;QAMA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAGD,mBAAK,EAAR,IAAA,EAAA,CAAS,2BAA2B,EAApC,EAAA,EAAA;QAUA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAGA,mBAAK,EAAR,EAAA;;IAlEA,OAAA,iBAAA,CAAA;;AA6CA,IAAA,eAAA,kBAAA,YAAA;;;;QA8EA,EAAA,IAAA,EAACD,sBAAQ,EAAT,IAAA,EAAA,CAAU;oBACR,OAAO,EAAE,CAAC,iBAAiB,CAAC;oBAC5B,YAAY,EAAE,CAAC,iBAAiB,CAAC;oBACjC,SAAS,EAAE,CAAC,uBAAuB,CAAC;iBACrC,EAAD,EAAA;;;;IA/HA,OAAA,eAAA,CAAA;CAgIA,EAAA,CAAA,CAAA;;;;;;;;;"}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/eec354e6/node_modules/@angular/cdk/bundles/cdk-observers.umd.min.js
----------------------------------------------------------------------
diff --git a/node_modules/@angular/cdk/bundles/cdk-observers.umd.min.js b/node_modules/@angular/cdk/bundles/cdk-observers.umd.min.js
new file mode 100644
index 0000000..a77883e
--- /dev/null
+++ b/node_modules/@angular/cdk/bundles/cdk-observers.umd.min.js
@@ -0,0 +1,9 @@
+/**
+ * @license
+ * Copyright Google LLC 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
+ */
+!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/cdk/coercion"),require("rxjs/Subject"),require("rxjs/operators/debounceTime")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/cdk/coercion","rxjs/Subject","rxjs/operators/debounceTime"],t):t((e.ng=e.ng||{},e.ng.cdk=e.ng.cdk||{},e.ng.cdk.observers=e.ng.cdk.observers||{}),e.ng.core,e.ng.cdk.coercion,e.Rx,e.Rx.operators)}(this,function(e,t,n,r,o){"use strict";var i=function(){function e(){}return e.prototype.create=function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}(),s=function(){function e(e,n,o){this._mutationObserverFactory=e,this._elementRef=n,this._ngZone=o,this._disabled=!1,this.event=new t.EventEmitter,this._debouncer=new r.Subject}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabl
ed},set:function(e){this._disabled=n.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.debounce>0?this._ngZone.runOutsideAngular(function(){e._debouncer.pipe(o.debounceTime(e.debounce)).subscribe(function(t){return e.event.emit(t)})}):this._debouncer.subscribe(function(t){return e.event.emit(t)}),this._observer=this._ngZone.runOutsideAngular(function(){return e._mutationObserverFactory.create(function(t){e._debouncer.next(t)})}),this.disabled||this._enable()},e.prototype.ngOnChanges=function(e){e.disabled&&(e.disabled.currentValue?this._disable():this._enable())},e.prototype.ngOnDestroy=function(){this._disable(),this._debouncer.complete()},e.prototype._disable=function(){this._observer&&this._observer.disconnect()},e.prototype._enable=function(){this._observer&&this._observer.observe(this._elementRef.nativeElement,{characterData:!0,childList:!0,subtree:!0})},e.decorators=[{type:t.Directive,args:[{selector:"[cdkObserv
eContent]",exportAs:"cdkObserveContent"}]}],e.ctorParameters=function(){return[{type:i},{type:t.ElementRef},{type:t.NgZone}]},e.propDecorators={event:[{type:t.Output,args:["cdkObserveContent"]}],disabled:[{type:t.Input,args:["cdkObserveContentDisabled"]}],debounce:[{type:t.Input}]},e}(),c=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{exports:[s],declarations:[s],providers:[i]}]}],e.ctorParameters=function(){return[]},e}();e.ObserveContent=s,e.MutationObserverFactory=i,e.CdkObserveContent=s,e.ObserversModule=c,Object.defineProperty(e,"__esModule",{value:!0})});
+//# sourceMappingURL=cdk-observers.umd.min.js.map
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/eec354e6/node_modules/@angular/cdk/bundles/cdk-observers.umd.min.js.map
----------------------------------------------------------------------
diff --git a/node_modules/@angular/cdk/bundles/cdk-observers.umd.min.js.map b/node_modules/@angular/cdk/bundles/cdk-observers.umd.min.js.map
new file mode 100644
index 0000000..e522f15
--- /dev/null
+++ b/node_modules/@angular/cdk/bundles/cdk-observers.umd.min.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"cdk-observers.umd.min.js","sources":["../../src/cdk/observers/observe-content.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {\n Directive,\n ElementRef,\n NgModule,\n Output,\n Input,\n EventEmitter,\n OnDestroy,\n AfterContentInit,\n Injectable,\n NgZone,\n OnChanges,\n SimpleChanges,\n} from '@angular/core';\nimport {coerceBooleanProperty} from '@angular/cdk/coercion';\nimport {Subject} from 'rxjs/Subject';\nimport {debounceTime} from 'rxjs/operators/debounceTime';\n\n/**\n * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.\n * @docs-private\n */\n@Injectable()\nexport class MutationObserverFactory {\n create(callback: MutationCallback): MutationObserver | null {\n return typeof MutationObserver === 'undefined' ?
null : new MutationObserver(callback);\n }\n}\n\n/**\n * Directive that triggers a callback whenever the content of\n * its associated element has changed.\n */\n@Directive({\n selector: '[cdkObserveContent]',\n exportAs: 'cdkObserveContent',\n})\nexport class CdkObserveContent implements AfterContentInit, OnChanges, OnDestroy {\n private _observer: MutationObserver | null;\n private _disabled = false;\n\n /** Event emitted for each change in the element's content. */\n @Output('cdkObserveContent') event = new EventEmitter<MutationRecord[]>();\n\n /**\n * Whether observing content is disabled. This option can be used\n * to disconnect the underlying MutationObserver until it is needed.\n */\n @Input('cdkObserveContentDisabled')\n get disabled() { return this._disabled; }\n set disabled(value: any) {\n this._disabled = coerceBooleanProperty(value);\n }\n\n /** Used for debouncing the emitted values to the observeContent event. */\n private _debouncer = new Subj
ect<MutationRecord[]>();\n\n /** Debounce interval for emitting the changes. */\n @Input() debounce: number;\n\n constructor(\n private _mutationObserverFactory: MutationObserverFactory,\n private _elementRef: ElementRef,\n private _ngZone: NgZone) { }\n\n ngAfterContentInit() {\n if (this.debounce > 0) {\n this._ngZone.runOutsideAngular(() => {\n this._debouncer.pipe(debounceTime(this.debounce))\n .subscribe((mutations: MutationRecord[]) => this.event.emit(mutations));\n });\n } else {\n this._debouncer.subscribe(mutations => this.event.emit(mutations));\n }\n\n this._observer = this._ngZone.runOutsideAngular(() => {\n return this._mutationObserverFactory.create((mutations: MutationRecord[]) => {\n this._debouncer.next(mutations);\n });\n });\n\n if (!this.disabled) {\n this._enable();\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['disabled']) {\n changes['disabled']
.currentValue ? this._disable() : this._enable();\n }\n }\n\n ngOnDestroy() {\n this._disable();\n this._debouncer.complete();\n }\n\n private _disable() {\n if (this._observer) {\n this._observer.disconnect();\n }\n }\n\n private _enable() {\n if (this._observer) {\n this._observer.observe(this._elementRef.nativeElement, {\n characterData: true,\n childList: true,\n subtree: true\n });\n }\n }\n}\n\n\n@NgModule({\n exports: [CdkObserveContent],\n declarations: [CdkObserveContent],\n providers: [MutationObserverFactory]\n})\nexport class ObserversModule {}\n"],"names":["MutationObserverFactory","prototype","create","callback","MutationObserver","type","Injectable","CdkObserveContent","_mutationObserverFactory","_elementRef","_ngZone","this","_disabled","event","EventEmitter","_debouncer","Subject","Object","defineProperty","value","coerceBooleanProperty","ngAfterContentInit","_this","debounce","runOutsideAngular","pi
pe","debounceTime","subscribe","mutations","emit","_observer","next","disabled","_enable","ngOnChanges","changes","currentValue","_disable","ngOnDestroy","complete","disconnect","observe","nativeElement","characterData","childList","subtree","Directive","args","selector","exportAs","ElementRef","NgZone","Output","Input","ObserversModule","NgModule","exports","declarations","providers"],"mappings":";;;;;;;kiBAAA,MAgCEA,GAAFC,UAAAC,OAAE,SAAOC,GACL,MAAmC,mBAArBC,kBAAmC,KAAO,GAAIA,kBAAiBD,mBAHjFE,KAACC,EAAAA,mDA9BDN,kBAoEE,QAAFO,GACYC,EACAC,EACAC,GAFAC,KAAZH,yBAAYA,EACAG,KAAZF,YAAYA,EACAE,KAAZD,QAAYA,EAxBZC,KAAAC,WAAsB,EAGtBD,KAAAE,MAAuC,GAAIC,GAAAA,aAa3CH,KAAAI,WAAuB,GAAIC,GAAAA,QA/D3B,MAyDAC,QAAAC,eAAMX,EAANN,UAAA,gBAAA,WAAmB,MAAOU,MAAKC,eAC7B,SAAaO,GACXR,KAAKC,UAAYQ,EAAAA,sBAAsBD,oCAczCZ,EAAFN,UAAAoB,mBAAE,WAAA,GAAFC,GAAAX,IACQA,MAAKY,SAAW,EAClBZ,KAAKD,QAAQc,kBAAkB,WAC7BF,EAAKP,WAAWU,KAAKC,EAAAA,aAAaJ,EAAKC,WAClCI,UAAU,SAACC,GAAgC,MAAAN,GAAKT,MAAMgB,KAAKD,OAGlEjB,KAAKI,WAAWY,UAAU,SAA
AC,GAAa,MAAAN,GAAKT,MAAMgB,KAAKD,KAGzDjB,KAAKmB,UAAYnB,KAAKD,QAAQc,kBAAkB,WAC9C,MAAOF,GAAKd,yBAAyBN,OAAO,SAAC0B,GAC3CN,EAAKP,WAAWgB,KAAKH,OAIpBjB,KAAKqB,UACRrB,KAAKsB,WAIT1B,EAAFN,UAAAiC,YAAE,SAAYC,GACNA,EAAkB,WACpBA,EAAkB,SAAEC,aAAezB,KAAK0B,WAAa1B,KAAKsB,YAI9D1B,EAAFN,UAAAqC,YAAE,WACE3B,KAAK0B,WACL1B,KAAKI,WAAWwB,YAGVhC,EAAVN,UAAAoC,oBACQ1B,KAAKmB,WACPnB,KAAKmB,UAAUU,cAIXjC,EAAVN,UAAAgC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