ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
100 lines • 50.1 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/animations"),require("@angular/cdk/coercion"),require("@angular/platform-browser/animations"),require("@angular/cdk/overlay"),require("rxjs"),require("@angular/cdk/platform")):"function"==typeof define&&define.amd?define("ng-zorro-antd/core",["exports","@angular/core","@angular/common","@angular/animations","@angular/cdk/coercion","@angular/platform-browser/animations","@angular/cdk/overlay","rxjs","@angular/cdk/platform"],t):t((e["ng-zorro-antd"]=e["ng-zorro-antd"]||{},e["ng-zorro-antd"].core={}),e.ng.core,e.ng.common,e.ng.animations,e.ng.cdk.coercion,e.ng.platformBrowser.animations,e.ng.cdk.overlay,e.rxjs,e.ng.cdk.platform)}(this,function(e,n,t,i,r,o,s,a,c){"use strict";var l=function(){function e(e,t){this.elementRef=e,this.renderer=t,this.classList=[]}return Object.defineProperty(e.prototype,"nzClassListAdd",{set:function(e){var t=this;this.classList.forEach(function(e){t.renderer.removeClass(t.elementRef.nativeElement,e)}),e.forEach(function(e){t.renderer.addClass(t.elementRef.nativeElement,e)}),this.classList=e},enumerable:!0,configurable:!0}),e.decorators=[{type:n.Directive,args:[{selector:"[nzClassListAdd]",exportAs:"nzClassListAdd"}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:n.Renderer2}]},e.propDecorators={nzClassListAdd:[{type:n.Input}]},e}(),d=function(){function e(e,t){this.viewContainer=e,this.defaultTemplate=t,this.inputTemplate=null,this.inputViewRef=null,this.defaultViewRef=null}return Object.defineProperty(e.prototype,"nzStringTemplateOutlet",{set:function(e){e instanceof n.TemplateRef?(this.isTemplate=!0,this.inputTemplate=e):this.isTemplate=!1,this.updateView()},enumerable:!0,configurable:!0}),e.prototype.updateView=function(){this.isTemplate?this.inputViewRef||(this.viewContainer.clear(),this.defaultViewRef=null,this.inputTemplate&&(this.inputViewRef=this.viewContainer.createEmbeddedView(this.inputTemplate))):this.defaultViewRef||(this.viewContainer.clear(),this.inputViewRef=null,this.defaultTemplate&&(this.defaultViewRef=this.viewContainer.createEmbeddedView(this.defaultTemplate)))},e.decorators=[{type:n.Directive,args:[{selector:"[nzStringTemplateOutlet]",exportAs:"nzStringTemplateOutlet"}]}],e.ctorParameters=function(){return[{type:n.ViewContainerRef},{type:n.TemplateRef}]},e.propDecorators={nzStringTemplateOutlet:[{type:n.Input}]},e}(),u=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[t.CommonModule],exports:[d,l],declarations:[d,l]}]}],e}(),h=function(){function e(){}return e.SLOW="0.3s",e.BASE="0.2s",e.FAST="0.1s",e}(),f=function(){function e(){}return e.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",e.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",e.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",e.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",e.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",e.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",e.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",e.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",e.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",e.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",e.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",e.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",e.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",e.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",e}(),p=i.trigger("collapseMotion",[i.state("expanded",i.style({height:"*"})),i.state("collapsed",i.style({height:0,overflow:"hidden"})),i.state("hidden",i.style({height:0,display:"none"})),i.transition("expanded => collapsed",i.animate("150ms "+f.EASE_IN_OUT)),i.transition("expanded => hidden",i.animate("150ms "+f.EASE_IN_OUT)),i.transition("collapsed => expanded",i.animate("150ms "+f.EASE_IN_OUT)),i.transition("hidden => expanded",i.animate("150ms "+f.EASE_IN_OUT))]),y=i.trigger("fadeMotion",[i.transition(":enter",[i.style({opacity:0}),i.animate(""+h.BASE,i.style({opacity:1}))]),i.transition(":leave",[i.style({opacity:1}),i.animate(""+h.BASE,i.style({opacity:0}))])]),g=i.trigger("helpMotion",[i.transition(":enter",[i.style({opacity:0,transform:"translateY(-5px)"}),i.animate(h.SLOW+" "+f.EASE_IN_OUT,i.style({opacity:1,transform:"translateY(0)"}))]),i.transition(":leave",[i.style({opacity:1,transform:"translateY(0)"}),i.animate(h.SLOW+" "+f.EASE_IN_OUT,i.style({opacity:0,transform:"translateY(-5px)"}))])]),m=i.trigger("moveUpMotion",[i.transition("* => enter",[i.style({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),i.animate(""+h.BASE,i.style({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),i.transition("* => leave",[i.style({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),i.animate(""+h.BASE,i.style({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),v=i.trigger("notificationMotion",[i.state("enterRight",i.style({opacity:1,transform:"translateX(0)"})),i.transition("* => enterRight",[i.style({opacity:0,transform:"translateX(5%)"}),i.animate("100ms linear")]),i.state("enterLeft",i.style({opacity:1,transform:"translateX(0)"})),i.transition("* => enterLeft",[i.style({opacity:0,transform:"translateX(-5%)"}),i.animate("100ms linear")]),i.state("leave",i.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),i.transition("* => leave",[i.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),i.animate("100ms linear")])]),b=h.BASE+" "+f.EASE_OUT_QUINT,N=h.BASE+" "+f.EASE_IN_QUINT,C=i.trigger("slideMotion",[i.state("bottom",i.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"})),i.state("top",i.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 100%"})),i.transition("void => bottom",[i.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"}),i.animate(b)]),i.transition("bottom => void",[i.animate(N,i.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"}))]),i.transition("void => top",[i.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 100%"}),i.animate(b)]),i.transition("top => void",[i.animate(N,i.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 100%"}))])]),E=i.trigger("slideAlertMotion",[i.transition(":leave",[i.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),i.animate(h.SLOW+" "+f.EASE_IN_OUT_CIRC,i.style({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),k=i.trigger("zoomMotion",[i.transition(":enter",[i.style({opacity:0,transform:"scale(0.2)"}),i.animate(h.BASE+" "+f.EASE_OUT_CIRC,i.style({opacity:1,transform:"scale(1)"}))]),i.transition(":leave",[i.style({opacity:1,transform:"scale(1)"}),i.animate(h.BASE+" "+f.EASE_IN_OUT_CIRC,i.style({opacity:0,transform:"scale(0.2)"}))])]),S=i.trigger("zoomBigMotion",[i.transition("void => active",[i.style({opacity:0,transform:"scale(0.8)"}),i.animate(h.BASE+" "+f.EASE_OUT_CIRC,i.style({opacity:1,transform:"scale(1)"}))]),i.transition("active => void",[i.style({opacity:1,transform:"scale(1)"}),i.animate(h.BASE+" "+f.EASE_IN_OUT_CIRC,i.style({opacity:0,transform:"scale(0.8)"}))])]),w=i.trigger("zoomBadgeMotion",[i.transition(":enter",[i.style({opacity:0,transform:"scale(0) translate(50%, -50%)"}),i.animate(h.SLOW+" "+f.EASE_OUT_BACK,i.style({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),i.transition(":leave",[i.style({opacity:1,transform:"scale(1) translate(50%, -50%)"}),i.animate(h.SLOW+" "+f.EASE_IN_BACK,i.style({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])]),O=function(e,t){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var _=function(){return(_=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function L(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(i=o.next()).done;)s.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return s}function T(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(L(arguments[t]));return e}function A(e){return r.coerceBooleanProperty(e)}function I(e,t){return void 0===t&&(t=0),r._isNumberValue(e)?Number(e):t}function P(e){return r.coerceCssPixelValue(e)}function x(i,r){return function(e,t){var n="$$__"+t;Object.prototype.hasOwnProperty.call(e,n)&&console.warn('The prop "'+n+'" is already exist, it will be overrided by '+i+" decorator."),Object.defineProperty(e,n,{configurable:!0,writable:!0}),Object.defineProperty(e,t,{get:function(){return this[n]},set:function(e){this[n]=r(e)}})}}function R(){return x("InputBoolean",A)}var z="nz-animate-disabled",D=function(){function e(e,t,n){this.element=e,this.renderer=t,this.animationType=n,this.nzNoAnimation=!1}return e.prototype.ngOnChanges=function(){this.updateClass()},e.prototype.ngAfterViewInit=function(){this.updateClass()},e.prototype.updateClass=function(){var e=r.coerceElement(this.element);e&&(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(e,z):this.renderer.removeClass(e,z))},e.decorators=[{type:n.Directive,args:[{selector:"[nzNoAnimation]",exportAs:"nzNoAnimation",host:{"[@.disabled]":"nzNoAnimation"}}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:n.Renderer2},{type:String,decorators:[{type:n.Optional},{type:n.Inject,args:[o.ANIMATION_MODULE_TYPE]}]}]},e.propDecorators={nzNoAnimation:[{type:n.Input}]},function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(s=(o<3?r(s):3<o?r(t,n,s):r(t,n))||s);3<o&&s&&Object.defineProperty(t,n,s)}([R(),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:type",Boolean)],e.prototype,"nzNoAnimation",void 0),e}(),M=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{declarations:[D],exports:[D],imports:[t.CommonModule]}]}],e}(),j=function(){function e(e){this.cdkConnectedOverlay=e,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop"}return e.decorators=[{type:n.Directive,args:[{selector:"[cdkConnectedOverlay][nzConnectedOverlay]",exportAs:"nzConnectedOverlay"}]}],e.ctorParameters=function(){return[{type:s.CdkConnectedOverlay}]},e}(),Y=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{declarations:[j],exports:[j]}]}],e}(),B={top:new s.ConnectionPositionPair({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new s.ConnectionPositionPair({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new s.ConnectionPositionPair({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new s.ConnectionPositionPair({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new s.ConnectionPositionPair({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new s.ConnectionPositionPair({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new s.ConnectionPositionPair({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new s.ConnectionPositionPair({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new s.ConnectionPositionPair({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new s.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new s.ConnectionPositionPair({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new s.ConnectionPositionPair({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new s.ConnectionPositionPair({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new s.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},U=[B.top,B.right,B.bottom,B.left],V=[B.bottomLeft,B.bottomRight,B.topLeft,B.topRight],F=[B.rightTop,B.leftTop],X=[B.bottomLeft,B.bottomRight,B.topLeft,B.topRight],W=[B.bottomLeft,new s.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"})];
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var H=["moz","ms","webkit"];function G(e){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(e);var t=H.filter(function(e){return e+"CancelAnimationFrame"in window||e+"CancelRequestAnimationFrame"in window})[0];return t?(window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]).call(this,e):clearTimeout(e)}var $=function(){if("undefined"==typeof window)return function(){return 0};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var r,e=H.filter(function(e){return e+"RequestAnimationFrame"in window})[0];return e?window[e+"RequestAnimationFrame"]:(r=0,function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-r)),i=setTimeout(function(){e(t+n)},n);return r=t+n,i})}();var q=function(){function e(e){this.doc=e}return e.prototype.setScrollTop=function(e,t){void 0===t&&(t=0),e===window?(this.doc.body.scrollTop=t,this.doc.documentElement.scrollTop=t):e.scrollTop=t},e.prototype.getOffset=function(e){var t={top:0,left:0};if(!e||!e.getClientRects().length)return t;var n=e.getBoundingClientRect();if(n.width||n.height){var i=e.ownerDocument.documentElement;t.top=n.top-i.clientTop,t.left=n.left-i.clientLeft}else t.top=n.top,t.left=n.left;return t},e.prototype.getScroll=function(e,t){void 0===t&&(t=!0);var n=e||window,i=t?"scrollTop":"scrollLeft",r=n===window,o=r?n[t?"pageYOffset":"pageXOffset"]:n[i];return r&&"number"!=typeof o&&(o=this.doc.documentElement[i]),o},e.prototype.scrollTo=function(e,t,n,i){var r=this;void 0===t&&(t=0);var o=e||window,s=this.getScroll(o),a=Date.now(),c=function(){var e=Date.now()-a;r.setScrollTop(o,(n||function(e,t,n,i){var r=n-t,o=e/(i/2);return o<1?r/2*o*o*o+t:r/2*((o-=2)*o*o+2)+t})(e,s,t,450)),e<450?$(c):i&&i()};$(c)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]}]},e}();function K(e,t){return t||new q(e)}var Z={provide:q,useFactory:K,deps:[t.DOCUMENT,[new n.Optional,new n.SkipSelf,q]]};function Q(e){return null!=e}function J(e){return e?1===e.nodeType&&0!==e.outerHTML.toString().trim().length?e:3===e.nodeType&&0!==e.textContent.toString().trim().length?e:null:null}var ee=function(){function e(e){this.document=e,this.scrollbarMeasure={position:"absolute",top:"-9999px",width:"50px",height:"50px",overflow:"scroll"},this.initScrollBarWidth()}return Object.defineProperty(e.prototype,"scrollBarWidth",{get:function(){return Q(this._scrollbarWidth)||this.initScrollBarWidth(),this._scrollbarWidth},enumerable:!0,configurable:!0}),e.prototype.initScrollBarWidth=function(){var e=this.document.createElement("div");for(var t in this.scrollbarMeasure)this.scrollbarMeasure.hasOwnProperty(t)&&(e.style[t]=this.scrollbarMeasure[t]);this.document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;this.document.body.removeChild(e),this._scrollbarWidth=n},e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]}]},e.ngInjectableDef=n.defineInjectable({factory:function(){return new e(n.inject(t.DOCUMENT))},token:e,providedIn:"root"}),e}(),te=function(){function e(e){this.classMap={},this.renderer=e.createRenderer(null,null)}return e.prototype.updateHostClass=function(e,t){this.removeClass(e,this.classMap,this.renderer),this.classMap=_({},t),this.addClass(e,this.classMap,this.renderer)},e.prototype.removeClass=function(e,t,n){for(var i in t)t.hasOwnProperty(i)&&n.removeClass(e,i)},e.prototype.addClass=function(e,t,n){for(var i in t)t.hasOwnProperty(i)&&t[i]&&n.addClass(e,i)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:n.RendererFactory2}]},e}();
/**
* @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 ne(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i=document.createEvent("MouseEvent");return i.initMouseEvent(e,!1,!1,window,0,t,n,t,n,!1,!1,!1,!1,0,null),i}function ie(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i=document.createEvent("UIEvent"),r={pageX:t,pageY:n};return i.initUIEvent(e,!0,!0,window,0),Object.defineProperties(i,{touches:{value:[r]}}),i}function re(e,t,n,i){var r=document.createEvent("KeyboardEvent"),o=(r.initKeyEvent||r.initKeyboardEvent).bind(r),s=r.preventDefault;return o(e,!0,!0,window,0,0,0,0,0,t),Object.defineProperties(r,{keyCode:{get:function(){return t}},key:{get:function(){return i}},target:{get:function(){return n}}}),r.preventDefault=function(){return Object.defineProperty(r,"defaultPrevented",{get:function(){return!0}}),s.apply(this,arguments)},r}function oe(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!0);var i=document.createEvent("Event");return i.initEvent(e,t,n),i}function se(e,t){return e.dispatchEvent(t),t}function ae(e,t,n){return se(e,oe(t,n))}
/**
* @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
*/
var ce=function(){function e(){}return e.prototype.getViewportRect=function(){return{left:0,top:0,width:1014,height:686,bottom:686,right:1014}},e.prototype.getViewportSize=function(){return{width:1014,height:686}},e.prototype.getViewportScrollPosition=function(){return{top:0,left:0}},e}(),le=function(t){function e(){var e=t.call(this,{enableLongStackTrace:!1})||this;return e.onStable=new n.EventEmitter(!1),e}return function(e,t){function n(){this.constructor=e}O(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(e,t),e.prototype.run=function(e){return e()},e.prototype.runOutsideAngular=function(e){return e()},e.prototype.simulateZoneExit=function(){this.onStable.emit(null)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(n.NgZone),de=function(){function s(n,e,t){void 0===e&&(e=null),void 0===t&&(t=null);var i=this;if(this.level=0,n instanceof s)return n;this.service=t||null,this.origin=n,this.key=n.key,this.parentNode=e,this._title=n.title||"---",this._icon=n.icon||"",this._isLeaf=n.isLeaf||!1,this._children=[],this._isChecked=n.checked||!1,this._isSelectable=n.disabled||!1!==n.selectable,this._isDisabled=n.disabled||!1,this._isDisableCheckbox=n.disableCheckbox||!1,this._isExpanded=!n.isLeaf&&(n.expanded||!1),this._isHalfChecked=!1,this._isSelected=!n.disabled&&n.selected||!1,this._isLoading=!1,this.isMatched=!1,this.level=e?e.level+1:0,"undefined"!=typeof n.children&&null!==n.children&&n.children.forEach(function(e){var t=i.treeService;!t||t.isCheckStrictly||!n.checked||n.disabled||e.disabled||e.disableCheckbox||(e.checked=n.checked),i._children.push(new s(e,i))})}return Object.defineProperty(s.prototype,"treeService",{get:function(){return this.service||this.parentNode&&this.parentNode.treeService},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"icon",{get:function(){return this._icon},set:function(e){this._icon=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"children",{get:function(){return this._children},set:function(e){this._children=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isLeaf",{get:function(){return this._isLeaf},set:function(e){this._isLeaf=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isChecked",{get:function(){return this._isChecked},set:function(e){this._isChecked=e,this._isAllChecked=e,this.origin.checked=e,this.afterValueChange("isChecked")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isAllChecked",{get:function(){return this._isAllChecked},set:function(e){this._isAllChecked=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isHalfChecked",{get:function(){return this._isHalfChecked},set:function(e){this._isHalfChecked=e,this.afterValueChange("isHalfChecked")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isSelectable",{get:function(){return this._isSelectable},set:function(e){this._isSelectable=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isDisabled",{get:function(){return this._isDisabled},set:function(e){this._isDisabled=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isDisableCheckbox",{get:function(){return this._isDisableCheckbox},set:function(e){this._isDisableCheckbox=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isExpanded",{get:function(){return this._isExpanded},set:function(e){this._isExpanded=e,this.origin.expanded=e,this.afterValueChange("isExpanded")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isSelected",{get:function(){return this._isSelected},set:function(e){this._isSelected=e,this.origin.selected=e,this.afterValueChange("isSelected")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"isLoading",{get:function(){return this._isLoading},set:function(e){this._isLoading=e,this.update()},enumerable:!0,configurable:!0}),s.prototype.setSyncChecked=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1),this.setChecked(e,t),this.treeService&&!this.treeService.isCheckStrictly&&this.treeService.conduct(this)},s.prototype.setChecked=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1),this.origin.checked=e,this.isChecked=e,this.isAllChecked=e,this.isHalfChecked=t},s.prototype.setExpanded=function(e){this.isExpanded=e},s.prototype.setSelected=function(e){this.isDisabled||(this.isSelected=e)},s.prototype.getParentNode=function(){return this.parentNode},s.prototype.getChildren=function(){return this.children},s.prototype.addChildren=function(e,r){var o=this;void 0===r&&(r=-1),this.isLeaf||(e.forEach(function(e){var t=function(e){e.getChildren().forEach(function(e){e.level=e.getParentNode().level+1,e.origin.level=e.level,t(e)})},n=e;n instanceof s?n.parentNode=o:n=new s(e,o),n.level=o.level+1,n.origin.level=n.level,t(n);try{-1===r?o.children.push(n):o.children.splice(r,0,n)}catch(i){}}),this.origin.children=this.getChildren().map(function(e){return e.origin}),this.isLoading=!1)},s.prototype.clearChildren=function(){this.afterValueChange("clearChildren"),this.children=[],this.origin.children=[]},s.prototype.remove=function(){var t=this,e=this.getParentNode();e&&(e.children=e.getChildren().filter(function(e){return e.key!==t.key}),e.origin.children=e.origin.children.filter(function(e){return e.key!==t.key}),this.afterValueChange("remove"))},s.prototype.afterValueChange=function(e){if(this.treeService)switch(e){case"isChecked":this.treeService.setCheckedNodeList(this);break;case"isHalfChecked":this.treeService.setHalfCheckedNodeList(this);break;case"isExpanded":this.treeService.setExpandedNodeList(this);break;case"isSelected":this.treeService.setNodeActive(this);break;case"clearChildren":this.treeService.afterRemove(this.getChildren());break;case"remove":this.treeService.afterRemove([this])}this.update()},s.prototype.update=function(){this.component&&(this.component.setClassMap(),this.component.markForCheck())},s}();
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
function ue(e){var t=Array.isArray(e)?e:[e],n=t.join("").replace(/(\$|\^)/g,"\\$1");return 1<t.length&&(n="["+n+"]"),new RegExp("(\\s|^)("+n+")[^\\s]*","g")}function he(e,t){return Array(e).fill(t).join("")}
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var fe=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],pe="undefined"!=typeof window,ye=pe&&null!=window.mozInnerScreenX,ge=function(e){return parseInt(e,10)};function me(e,t){var n=getComputedStyle(e).getPropertyValue("font-size"),i=document.querySelector("#DEBUG")||document.createElement("div");document.body.appendChild(i),i.id="DEBUG",i.style.position="absolute",i.style.backgroundColor="red",i.style.height=n,i.style.width="1px",i.style.top=e.getBoundingClientRect().top-e.scrollTop+window.pageYOffset+t.top+"px",i.style.left=e.getBoundingClientRect().left-e.scrollLeft+window.pageXOffset+t.left+"px",console.log(i.style.top),console.log(i.style.left)}function ve(i){var r,e=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];null==r&&(r=$((e=t,function(){r=null,i.apply(void 0,T(e))})))};return e.cancel=function(){return G(r)},e}
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
function be(e){var t=e.isDisabled,n=e.isDisableCheckbox;return!(!t&&!n)}function Ne(e,t){return 0<t.length&&-1<t.indexOf(e)}var Ce=function(){function e(){this.DRAG_SIDE_RANGE=.25,this.DRAG_MIN_GAP=2,this.isCheckStrictly=!1,this.isMultiple=!1,this.rootNodes=[],this.selectedNodeList=[],this.expandedNodeList=[],this.checkedNodeList=[],this.halfCheckedNodeList=[],this.matchedNodeList=[],this.triggerEventChange$=new a.Subject}return e.prototype.eventTriggerChanged=function(){return this.triggerEventChange$.asObservable()},e.prototype.initTree=function(e){var t=this;this.rootNodes=e,this.expandedNodeList=[],this.selectedNodeList=[],this.halfCheckedNodeList=[],this.checkedNodeList=[],this.matchedNodeList=[],setTimeout(function(){t.refreshCheckState(t.isCheckStrictly)})},e.prototype.getSelectedNode=function(){return this.selectedNode},e.prototype.getSelectedNodeList=function(){return this.conductNodeState("select")},e.prototype.getCheckedNodeList=function(){return this.conductNodeState("check")},e.prototype.getHalfCheckedNodeList=function(){return this.conductNodeState("halfCheck")},e.prototype.getExpandedNodeList=function(){return this.conductNodeState("expand")},e.prototype.getMatchedNodeList=function(){return this.conductNodeState("match")},e.prototype.isArrayOfNzTreeNode=function(e){return e.every(function(e){return e instanceof de})},e.prototype.calcSelectedKeys=function(t,e,n){void 0===n&&(n=!1);var i=function(e){return e.every(function(e){if(Ne(e.key,t)){if(e.isSelected=!0,!n)return!1}else e.isSelected=!1;return!(0<e.children.length)||i(e.children)})};i(e)},e.prototype.calcExpandedKeys=function(t,e){this.expandedNodeList=[];var n=function(e){e.forEach(function(e){e.isExpanded=Ne(e.key,t),0<e.children.length&&n(e.children)})};n(e)},e.prototype.calcCheckedKeys=function(t,e,n){void 0===n&&(n=!1),this.checkedNodeList=[],this.halfCheckedNodeList=[];var i=function(e){e.forEach(function(e){Ne(e.key,t)?e.isChecked=!0:e.isChecked=!1,e.isHalfChecked=!1,0<e.children.length&&i(e.children)})};i(e),this.refreshCheckState(n)},e.prototype.setSelectedNode=function(e){this.selectedNode=e},e.prototype.setNodeActive=function(t){!this.isMultiple&&t.isSelected&&(this.selectedNodeList.forEach(function(e){t.key!==e.key&&(e.isSelected=!1)}),this.selectedNodeList=[]),this.setSelectedNodeList(t,this.isMultiple)},e.prototype.setSelectedNodeList=function(t,e){void 0===e&&(e=!1);var n=this.selectedNodeList.findIndex(function(e){return t.key===e.key});e?t.isSelected&&-1===n&&this.selectedNodeList.push(t):t.isSelected&&-1===n&&(this.selectedNodeList=[t]),t.isSelected||(this.selectedNodeList=this.selectedNodeList.filter(function(e){return e.key!==t.key}))},e.prototype.setHalfCheckedNodeList=function(t){var e=this.halfCheckedNodeList.findIndex(function(e){return t.key===e.key});t.isHalfChecked&&-1===e?this.halfCheckedNodeList.push(t):!t.isHalfChecked&&-1<e&&(this.halfCheckedNodeList=this.halfCheckedNodeList.filter(function(e){return t.key!==e.key}))},e.prototype.setCheckedNodeList=function(t){var e=this.checkedNodeList.findIndex(function(e){return t.key===e.key});t.isChecked&&-1===e?this.checkedNodeList.push(t):!t.isChecked&&-1<e&&(this.checkedNodeList=this.checkedNodeList.filter(function(e){return t.key!==e.key}))},e.prototype.conductNodeState=function(e){var n=this;void 0===e&&(e="check");var t=[];switch(e){case"select":t=this.selectedNodeList;break;case"expand":t=this.expandedNodeList;break;case"match":t=this.matchedNodeList;break;case"check":t=this.checkedNodeList;var i=function(e){var t=e.getParentNode();return!!t&&(-1<n.checkedNodeList.findIndex(function(e){return e.key===t.key})||i(t))};this.isCheckStrictly||(t=this.checkedNodeList.filter(function(e){return!i(e)}));break;case"halfCheck":this.isCheckStrictly||(t=this.halfCheckedNodeList)}return t},e.prototype.setExpandedNodeList=function(t){if(!t.isLeaf){var e=this.expandedNodeList.findIndex(function(e){return t.key===e.key});t.isExpanded&&-1===e?this.expandedNodeList.push(t):!t.isExpanded&&-1<e&&(this.expandedNodeList=this.expandedNodeList.filter(function(e){return t.key!==e.key}))}},e.prototype.refreshCheckState=function(e){var t=this;void 0===e&&(e=!1),e||this.checkedNodeList.forEach(function(e){t.conduct(e)})},e.prototype.conduct=function(e){var t=e.isChecked;e&&(this.conductUp(e),this.conductDown(e,t))},e.prototype.conductUp=function(e){var t=e.getParentNode();t&&(be(t)||(t.children.every(function(e){return be(e)||!e.isHalfChecked&&e.isChecked})?(t.isChecked=!0,t.isHalfChecked=!1):t.children.some(function(e){return e.isHalfChecked||e.isChecked})?(t.isChecked=!1,t.isHalfChecked=!0):(t.isChecked=!1,t.isHalfChecked=!1)),this.setCheckedNodeList(t),this.setHalfCheckedNodeList(t),this.conductUp(t))},e.prototype.conductDown=function(e,t){var n=this;be(e)||(e.isChecked=t,e.isHalfChecked=!1,this.setCheckedNodeList(e),this.setHalfCheckedNodeList(e),e.children.forEach(function(e){n.conductDown(e,t)}))},e.prototype.searchExpand=function(t){var n=this;this.matchedNodeList=[];var i=[];if(Q(t)){var r=function(e){var t=e.getParentNode();t&&(i.push(t.key),r(t))},o=function(e){t&&e.title.includes(t)?(e.isMatched=!0,n.matchedNodeList.push(e),r(e)):e.isMatched=!1,e.children.forEach(function(e){o(e)})};this.rootNodes.forEach(function(e){o(e)}),this.calcExpandedKeys(i,this.rootNodes)}},e.prototype.afterRemove=function(e){var n=this,i=function(t){n.selectedNodeList=n.selectedNodeList.filter(function(e){return e.key!==t.key}),n.expandedNodeList=n.expandedNodeList.filter(function(e){return e.key!==t.key}),n.checkedNodeList=n.checkedNodeList.filter(function(e){return e.key!==t.key}),t.children&&t.children.forEach(function(e){i(e)})};e.forEach(function(e){i(e)}),this.refreshCheckState(this.isCheckStrictly)},e.prototype.refreshDragNode=function(e){var t=this;0===e.children.length?this.conductUp(e):e.children.forEach(function(e){t.refreshDragNode(e)})},e.prototype.resetNodeLevel=function(e){var t,n,i=e.getParentNode();e.level=i?i.level+1:0;try{for(var r=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(e.children),o=r.next();!o.done;o=r.next()){var s=o.value;this.resetNodeLevel(s)}}catch(a){t={error:a}}finally{try{o&&!o.done&&(n=r["return"])&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.calcDropPosition=function(e){var t=e.clientY,n=e.srcElement?e.srcElement.getBoundingClientRect():e.target.getBoundingClientRect(),i=n.top,r=n.bottom,o=n.height,s=Math.max(o*this.DRAG_SIDE_RANGE,this.DRAG_MIN_GAP);return t<=i+s?-1:r-s<=t?1:0},e.prototype.dropAndApply=function(e,t){var n=this;if(void 0===t&&(t=-1),e&&!(1<t)){var i=e.treeService,r=e.getParentNode(),o=this.selectedNode.getParentNode();switch(o?o.children=o.children.filter(function(e){return e.key!==n.selectedNode.key}):this.rootNodes=this.rootNodes.filter(function(e){return e.key!==n.selectedNode.key}),t){case 0:e.addChildren([this.selectedNode]),this.resetNodeLevel(e);break;case-1:case 1:var s=1===t?1:0;if(r){r.addChildren([this.selectedNode],r.children.indexOf(e)+s);var a=this.selectedNode.getParentNode();a&&this.resetNodeLevel(a)}else{var c=this.rootNodes.indexOf(e)+s;this.rootNodes.splice(c,0,this.selectedNode),this.rootNodes[c].parentNode=null,this.rootNodes[c].level=0}}this.rootNodes.forEach(function(e){e.treeService||(e.service=i),n.refreshDragNode(e)})}},e.prototype.formatEvent=function(e,t,n){var i={eventName:e,node:t,event:n};switch(e){case"dragstart":case"dragenter":case"dragover":case"dragleave":case"drop":case"dragend":Object.assign(i,{dragNode:this.getSelectedNode()});break;case"click":case"dblclick":Object.assign(i,{selectedKeys:this.selectedNodeList}),Object.assign(i,{nodes:this.selectedNodeList}),Object.assign(i,{keys:this.selectedNodeList.map(function(e){return e.key})});break;case"check":var r=this.getCheckedNodeList();Object.assign(i,{checkedKeys:r}),Object.assign(i,{nodes:r}),Object.assign(i,{keys:r.map(function(e){return e.key})});break;case"search":Object.assign(i,{matchedKeys:this.getMatchedNodeList()}),Object.assign(i,{nodes:this.getMatchedNodeList()}),Object.assign(i,{keys:this.getMatchedNodeList().map(function(e){return e.key})});break;case"expand":Object.assign(i,{nodes:this.expandedNodeList}),Object.assign(i,{keys:this.expandedNodeList.map(function(e){return e.key})})}return i},e.prototype.ngOnDestroy=function(){this.triggerEventChange$.complete()},e.decorators=[{type:n.Injectable}],e}(),Ee=new n.InjectionToken("NzTreeHigherOrder"),ke=function(){function e(e){this.nzTreeService=e}return e.prototype.coerceTreeNodes=function(e){var t=this;return this.nzTreeService.isArrayOfNzTreeNode(e)?e.map(function(e){return e.service=t.nzTreeService,e}):e.map(function(e){return new de(e,null,t.nzTreeService)})},e.prototype.getTreeNodes=function(){return this.nzTreeService.rootNodes},e.prototype.getTreeNodeByKey=function(t){var n=[],i=function(e){n.push(e),e.getChildren().forEach(function(e){i(e)})};return this.getTreeNodes().forEach(function(e){i(e)}),n.find(function(e){return e.key===t})||null},e.prototype.getCheckedNodeList=function(){return this.nzTreeService.getCheckedNodeList()},e.prototype.getSelectedNodeList=function(){return this.nzTreeService.getSelectedNodeList()},e.prototype.getHalfCheckedNodeList=function(){return this.nzTreeService.getHalfCheckedNodeList()},e.prototype.getExpandedNodeList=function(){return this.nzTreeService.getExpandedNodeList()},e.prototype.getMatchedNodeList=function(){return this.nzTreeService.getMatchedNodeList()},e}(),Se=function(){function e(e,t,n){var i=this;this.triggerElement=e,this.ngZone=t,this.insertExtraNode=n,this.waveTransitionDuration=400,this.lastTime=0,this.onClick=function(e){!i.triggerElement||!i.triggerElement.getAttribute||i.triggerElement.getAttribute("disabled")||"INPUT"===e.target.tagName||0<=i.triggerElement.className.indexOf("disabled")||i.fadeOutWave()},(new c.Platform).isBrowser&&this.bindTriggerEvent()}return Object.defineProperty(e.prototype,"waveAttributeName",{get:function(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"},enumerable:!0,configurable:!0}),e.prototype.bindTriggerEvent=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.triggerElement&&e.triggerElement.addEventListener("click",e.onClick,!0)})},e.prototype.removeTriggerEvent=function(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.onClick,!0)},e.prototype.removeStyleAndExtraNode=function(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)},e.prototype.destroy=function(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()},e.prototype.fadeOutWave=function(){var e=this,t=this.triggerElement,n=this.getWaveColor(t);t.setAttribute(this.waveAttributeName,"true"),Date.now()<this.lastTime+this.waveTransitionDuration||(this.isValidColor(n)&&(this.styleForPseudo||(this.styleForPseudo=document.createElement("style")),this.styleForPseudo.innerHTML="[ant-click-animating-without-extra-node]:after { border-color: "+n+"; }",document.body.appendChild(this.styleForPseudo)),this.insertExtraNode&&(this.extraNode||(this.extraNode=document.createElement("div")),this.extraNode.className="ant-click-animating-node",t.appendChild(this.extraNode)),this.lastTime=Date.now(),this.runTimeoutOutsideZone(function(){t.removeAttribute(e.waveAttributeName),e.removeStyleAndExtraNode()},this.waveTransitionDuration))},e.prototype.isValidColor=function(e){return!!e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&this.isNotGrey(e)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(e)&&"transparent"!==e},e.prototype.isNotGrey=function(e){var t=e.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])},e.prototype.getWaveColor=function(e){var t=getComputedStyle(e);return t.getPropertyValue("border-top-color")||t.getPropertyValue("border-color")||t.getPropertyValue("background-color")},e.prototype.runTimeoutOutsideZone=function(e,t){this.ngZone.runOutsideAngular(function(){return setTimeout(e,t)})},e}(),we={disabled:!1},Oe=new n.InjectionToken("nz-wave-global-options",{providedIn:"root",factory:_e});function _e(){return we}var Le=function(){function e(e,t,n,i){this.ngZone=e,this.elementRef=t,this.animationType=i,this.nzWaveExtraNode=!1,this.waveDisabled=!1,n&&"boolean"==typeof n.disabled&&(this.waveDisabled=n.disabled),"NoopAnimations"===this.animationType&&(this.waveDisabled=!0)}return e.prototype.ngOnDestroy=function(){this.waveRenderer&&this.waveRenderer.destroy()},e.prototype.ngOnInit=function(){this.renderWaveIfEnabled()},e.prototype.renderWaveIfEnabled=function(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new Se(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode))},e.decorators=[{type:n.Directive,args:[{selector:"[nz-wave]",exportAs:"nzWave"}]}],e.ctorParameters=function(){return[{type:n.NgZone},{type:n.ElementRef},{type:undefined,decorators:[{type:n.Optional},{type:n.Inject,args:[Oe]}]},{type:String,decorators:[{type:n.Optional},{type:n.Inject,args:[o.ANIMATION_MODULE_TYPE]}]}]},e.propDecorators={nzWaveExtraNode:[{type:n.Input}]},e}(),Te=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[c.PlatformModule],exports:[Le],declarations:[Le]}]}],e}(),Ae=function(){function e(){this.menuItemClick$=new a.Subject,this.theme$=new a.Subject,this.mode$=new a.BehaviorSubject("vertical"),this.inlineIndent$=new a.BehaviorSubject(24),this.check$=a.merge(this.theme$,this.mode$,this.inlineIndent$),this.theme="light",this.mode="vertical",this.inlineIndent=24,this.menuOpen$=new a.BehaviorSubject(!1)}return e.prototype.onMenuItemClick=function(e){this.menuItemClick$.next(e)},e.prototype.setMode=function(e){this.mode=e,this.mode$.next(e)},e.prototype.setTheme=function(e){this.theme=e,this.theme$.next(e)},e.prototype.setInlineIndent=function(e){this.inlineIndent=e,this.inlineIndent$.next(e)},e.decorators=[{type:n.Injectable}],e}(),Ie=new n.InjectionToken("NzTreeHigherOrder"),Pe=new n.InjectionToken("nz-logger-state"),xe=function(){function e(e){this._loggerState=e}return e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.log.apply(console,T(e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.warn.apply(console,T(e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.error.apply(console,T(e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.log.apply(console,T(e))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.log.apply(console,T(["[NG-ZORRO-DEBUG]"],e))},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:Boolean,decorators:[{type:n.Inject,args:[Pe]}]}]},e}();function Re(e,t){return e||new xe(t)}var ze={provide:xe,useFactory:Re,deps:[[new n.Optional,new n.SkipSelf,xe],Pe]},De=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{providers:[{provide:Pe,useValue:!1},ze]}]}],e}();e.NzAddOnModule=u,e.NzClassListAddDirective=l,e.NzStringTemplateOutletDirective=d,e.AnimationDuration=h,e.AnimationCurves=f,e.collapseMotion=p,e.fadeMotion=y,e.helpMotion=g,e.moveUpMotion=m,e.notificationMotion=v,e.slideMotion=C,e.slideAlertMotion=E,e.zoomMotion=k,e.zoomBigMotion=S,e.zoomBadgeMotion=w,e.NzNoAnimationModule=M,e.NzNoAnimationDirective=D,e.NzConnectedOverlayDirective=j,e.NzOverlayModule=Y,e.getPlacementName=function(n){var e=["originX","originY","overlayX","overlayY"],t=function(t){if(e.every(function(e){return n.connectionPair[e]===B[t][e]}))return{value:t}};for(var i in B){var r=t(i);if("object"==typeof r)return r.value}},e.POSITION_MAP=B,e.DEFAULT_TOOLTIP_POSITIONS=U,e.DEFAULT_DROPDOWN_POSITIONS=V,e.DEFAULT_SUBMENU_POSITIONS=F,e.DEFAULT_CASCADER_POSITIONS=X,e.DEFAULT_MENTION_POSITIONS=W,e.cancelRequestAnimationFrame=G,e.reqAnimFrame=$,e.SCROLL_SERVICE_PROVIDER_FACTORY=K,e.NzScrollService=q,e.SCROLL_SERVICE_PROVIDER=Z,e.NzMeasureScrollbarService=ee,e.NzUpdateHostClassService=te,e.dispatchEvent=se,e.dispatchFakeEvent=ae,e.dispatchKeyboardEvent=function(e,t,n,i){return se(e,re(t,n,i))},e.dispatchMouseEvent=function(e,t,n,i,r){return void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=ne(t,n,i)),se(e,r)},e.dispatchTouchEvent=function(e,t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),se(e,ie(t,n,i))},e.createMouseEvent=ne,e.createTouchEvent=ie,e.createKeyboardEvent=re,e.createFakeEvent=oe,e.typeInElement=function(e,t){t.focus(),t.value=e,ae(t,"input")}
/**
* @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
*/,e.wrappedErrorMessage=function(e){var t=e.message.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");return new RegExp(t)},e.FakeViewportRuler=ce,e.MockNgZone=le,e.NzTreeNode=de,e.NzTreeBaseService=Ce,e.NzTreeHigherOrderServiceToken=Ee,e.NzTreeBase=ke,e.toArray=
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
function(e){return null==e?[]:Array.isArray(e)?e:[e]},e.arraysEqual=function(e,t){if(!e||!t||e.length!==t.length)return!1;for(var n=e.length,i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0},e.shallowCopyArray=function(e){return e.slice()},e.isNotNil=Q,e.isNil=function(e){return null==e},e.shallowEqual=function(e,t){if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var r=Object.prototype.hasOwnProperty.bind(t),o=0;o<n.length;o++){var s=n[o];if(!r(s))return!1;if(e[s]!==t[s])return!1}return!0},e.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.isEmpty=function(e){for(var t=e.childNodes,n=0;n<t.length;n++)if(J(t.item(n)))return!1;return!0},e.filterNotEmptyNode=J,e.isNonEmptyString=function(e){return"string"==typeof e&&""!==e},e.isTemplateRef=function(e){return e instanceof n.TemplateRef},e.isComponent=function(e){return e instanceof n.Type},e.toBoolean=A,e.toNumber=I,e.toCssPixel=P,e.valueFunctionProp=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,T(t)):e},e.InputBoolean=R,e.InputCssPixel=function(){return x("InputCssPixel",P)},e.InputNumber=function(){return x("InputNumber",I)},e.silentEvent=function(e){e.stopPropagation(),e.preventDefault()},e.getElementOffset=function(e){if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},e.findFirstNotEmptyNode=function(e){for(var t=e.childNodes,n=0;n<t.length;n++){var i=t.item(n);if(J(i))return i}return null},e.findLastNotEmptyNode=function(e){for(var t=e.childNodes,n=t.length-1;0<=n;n--){var i=t.item(n);if(J(i))return i}return null},e.reverseChildNodes=function(e){var t=e.childNodes,n=t.length;if(n){var i=[];for(t.forEach(function(e,t){return i[t]=e});n--;)e.appendChild(i[n])}},e.isTouchEvent=function(e){return e.type.startsWith("touch")},e.getRegExp=ue,e.getMentions=function(e,t){if(void 0===t&&(t="@"),"string"!=typeof e)return[];var n=ue(t),i=e.match(n);return null!==i?i.map(function(e){return e.trim()}):[]}
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/,e.padStart=function(e,t,n){if(e.length>t)return e;var i=""+he(t,n)+e;return i.slice(i.length-t,i.length)},e.padEnd=function(e,t,n){return(""+e+he(t,n)).slice(0,t)},e.getRepeatedElement=he,e.isPromise=function(e){return!!e&&"function"==typeof e.then&&"function"==typeof e["catch"]}
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/,e.getPercent=function(e,t,n){return(n-e)/(t-e)*100},e.getPrecision=function(e){var t=e.toString(),n=t.indexOf(".");return 0<=n?t.length-n-1:0},e.ensureNumberInRange=function(e,t,n){return isNaN(e)||e<t?t:n<e?n:e}
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/,e.scrollIntoView=function(e){var t=e;t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded(!1):e.scrollIntoView&&e.scrollIntoView(!1)},e.getCaretCoordinates=function(e,t,n){if(!pe)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var i=n&&n.debug||!1;if(i){var r=document.querySelector("#input-textarea-caret-position-mirror-div");r&&r.parentNode.removeChild(r)}var o=document.createElement("div");o.id="input-textarea-caret-position-mirror-div",document.body.appendChild(o);var s=o.style,a=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,c="INPUT"===e.nodeName;s.whiteSpace="pre-wrap",c||(s.wordWrap="break-word"),s.position="absolute",i||(s.visibility="hidden"),fe.forEach(function(e){c&&"lineHeight"===e?s.lineHeight=a.height:s[e]=a[e]}),ye?e.scrollHeight>ge(a.height)&&(s.overflowY="scroll"):s.overflow="hidden",o.textContent=e.value.substring(0,t),c&&(o.textContent=o.textContent.replace(/\s/g," "));var l=document.createElement("span");l.textContent=e.value.substring(t)||".",o.appendChild(l);var d={top:l.offsetTop+ge(a.borderTopWidth),left:l.offsetLeft+ge(a.borderLeftWidth),height:ge(a.lineHeight)};return i?(l.style.backgroundColor="#eee",me(e,d)):document.body.removeChild(o),d},e.createDebugEle=me,e.properties=fe,e.throttleByAnimationFrameDecorator=function(){return function(t,n,e){var i=e.value,r=!1;return{configurable:!0,get:function(){if(r||this===t.prototype||this.hasOwnProperty(n))return i;var e=ve(i.bind(this));return r=!0,Object.defineProperty(this,n,{value:e,configurable:!0,writable:!0}),r=!1,e}}}}
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/,e.timeUnits=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],e.NzWaveRenderer=Se,e.NZ_WAVE_GLOBAL_CONFIG_FACTORY=_e,e.NZ_WAVE_GLOBAL_DEFAULT_CONFIG=we,e.NZ_WAVE_GLOBAL_CONFIG=Oe,e.NzWaveDirective=Le,e.NzWaveModule=Te,e.NzMenuBaseService=Ae,e.NzDropdownHigherOrderServiceToken=Ie,e.LoggerModule=De,e.LoggerService=xe,e.NZ_LOGGER_STATE=Pe,e.LOGGER_SERVICE_PROVIDER=ze,e.LOGGER_SERVICE_PROVIDER_FACTORY=Re,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ng-zorro-antd-core.umd.min.js.map