1"use strict";(self.webpackChunkng_zorro_antd_doc=self.webpackChunkng_zorro_antd_doc||[]).push([[6242],{6242:(ot,F,_)=>{_.d(F,{G:()=>U});var a=_(4423),h=_(3584),b=_(6814),S=_(6223),E=_(4190),N=_(8101),D=_(5393),O=_(3185),k=_(227),I=_(8332),R=_(9212);let L=(()=>{class y{static#t=this.\u0275fac=function(C){return new(C||y)};static#e=this.\u0275mod=R.oAB({type:y});static#i=this.\u0275inj=R.cJS({imports:[b.ez]})}return y})(),A=(()=>{class y{static#t=this.\u0275fac=function(C){return new(C||y)};static#e=this.\u0275mod=R.oAB({type:y});static#i=this.\u0275inj=R.cJS({imports:[b.ez,L,k.PV,I.cg]})}return y})();var $=_(9862);let G=(()=>{class y{static#t=this.\u0275fac=function(C){return new(C||y)};static#e=this.\u0275mod=R.oAB({type:y});static#i=this.\u0275inj=R.cJS({imports:[b.ez,$.JF]})}return y})(),U=(()=>{class y{static#t=this.\u0275fac=function(C){return new(C||y)};static#e=this.\u0275mod=R.oAB({type:y});static#i=this.\u0275inj=R.cJS({imports:[b.ez,S.u5,E.Bz,S.UX,A,L,G,I.cg,D.on,N.j,O.Jb,k.PV,a._t,b.ez,S.u5,S.UX,E.Bz,A,L,D.on,N.j,G,O.Jb,I.cg,k.PV,h.Cl,a._t]})}return y})()},8623:(ot,F,_)=>{_.d(F,{F:()=>b});var a=_(6321),h=_(4825);function b(S=0,E=a.z){return S<0&&(S=0),(0,h.H)(S,S,E)}},4423:(ot,F,_)=>{_.d(F,{Bh:()=>Et,EA:()=>Lt,Wj:()=>xt,Zt:()=>Ct,_t:()=>Kt,bA:()=>mt});var a=_(9212),h=_(6814),b=_(3584),S=_(2831),E=_(2495),N=_(6034),D=_(8645),O=_(7394),k=_(8623),I=_(927),R=_(5592),L=_(3019),A=_(9773),$=_(7398),G=_(8180),U=_(7921),y=_(9397),et=_(4664),B=_(9388);function C(r,e,t){for(let i in e)if(e.hasOwnProperty(i)){const s=e[i];s?r.setProperty(i,s,t?.has(i)?"important":""):r.removeProperty(i)}return r}function H(r,e){const t=e?"":"none";C(r.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function J(r,e,t){C(r.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},t)}function j(r,e){return e&&"none"!=e?r+" "+e:r}function it(r){const e=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*e}function V(r,e){return r.getPropertyValue(e).split(",").map(i=>i.trim())}function Q(r){const e=r.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}}function X(r,e,t){const{top:i,bottom:s,left:n,right:o}=r;return t>=i&&t<=s&&e>=n&&e<=o}function p(r,e,t){r.top+=e,r.bottom=r.top+r.height,r.left+=t,r.right=r.left+r.width}function M(r,e,t,i){const{top:s,right:n,bottom:o,left:l,width:c,height:g}=r,m=c*e,w=g*e;return i>s-w&&i<o+w&&t>l-m&&t<n+m}class d{constructor(e){this._document=e,this.positions=new Map}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:Q(t)})})}handleScroll(e){const t=(0,S.sA)(e),i=this.positions.get(t);if(!i)return null;const s=i.scrollPosition;let n,o;if(t===this._document){const g=this.getViewportScrollPosition();n=g.top,o=g.left}else n=t.scrollTop,o=t.scrollLeft;const l=s.top-n,c=s.left-o;return this.positions.forEach((g,m)=>{g.clientRect&&t!==m&&t.contains(m)&&p(g.clientRect,l,c)}),s.top=n,s.left=o,{top:l,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function f(r){const e=r.cloneNode(!0),t=e.querySelectorAll("[id]"),i=r.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s<t.length;s++)t[s].removeAttribute("id");return"canvas"===i?z(r,e):("input"===i||"select"===i||"textarea"===i)&&P(r,e),u("canvas",r,e,z),u("input, textarea, select",r,e,P),e}function u(r,e,t,i){const s=e.querySelectorAll(r);if(s.length){const n=t.querySelectorAll(r);for(let o=0;o<s.length;o++)i(s[o],n[o])}}let v=0;function P(r,e){"file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`mat-clone-${e.name}-${v++}`)}function z(r,e){const t=e.getContext("2d");if(t)try{t.drawImage(r,0,0)}catch{}}const K=(0,S.i$)({passive:!0}),st=(0,S.i$)({passive:!1}),lt=new Set(["position"]);class zt{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEac
1h(t=>H(t,e)))}constructor(e,t,i,s,n,o){this._config=t,this._document=i,this._ngZone=s,this._viewportRuler=n,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new D.x,this._pointerMoveSubscription=O.w0.EMPTY,this._pointerUpSubscription=O.w0.EMPTY,this._scrollSubscription=O.w0.EMPTY,this._resizeSubscription=O.w0.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new D.x,this.started=new D.x,this.released=new D.x,this.ended=new D.x,this.entered=new D.x,this.exited=new D.x,this.dropped=new D.x,this.moved=this._moveEvents,this._pointerDown=l=>{if(this.beforeStarted.next(),this._handles.length){const c=this._getTargetHandle(l);c&&!this._disabledHandles.has(c)&&!this.disabled&&this._initializeDragSequence(c,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const c=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging){if(Math.abs(c.x-this._pickupPositionOnPage.x)+Math.abs(c.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const W=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),Y=this._dropContainer;if(!W)return void this._endDragSequence(l);(!Y||!Y.isDragging()&&!Y.isReceiving())&&(l.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(l)))}return}l.preventDefault();const g=this._getConstrainedPointerPosition(c);if(this._hasMoved=!0,this._lastKnownPointerPosition=c,this._updatePointerDirectionDelta(g),this._dropContainer)this._updateActiveDropContainer(g,c);else{const m=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,w=this._activeTransform;w.x=g.x-m.x+this._passiveTransform.x,w.y=g.y-m.y+this._passiveTransform.y,this._applyRootElementTransform(w.x,w.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:g,event:l,distance:this._getDragDistance(g),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const c=this._getTargetHandle(l);c&&!this._disabledHandles.has(c)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new d(i),o.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>(0,E.fI)(i)),this._handles.forEach(i=>H(i,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&t.add(i)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=(0,E.fI)(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,st),t.addEventListener("touchstart",this._pointerDown,K),t.addEventListener("dragstart",this._nativeDragStart,st)}),this._initialTransform=void 0,this._rootElement=t),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?(0,E.fI)(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),H(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),H(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}
1_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){q(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const i=this._rootElement,s=i.parentNode,n=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),l=this._getShadowRoot();s.insertBefore(o,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),J(i,!1,lt),this._document.body.appendChild(s.replaceChild(n,i)),this._getPreviewInsertionPoint(s,l).appendChild(this._preview),this.started.next({source:this,event:e}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const i=this.isDragging(),s=q(t),n=!s&&0!==t.button,o=this._rootElement,l=(0,S.sA)(t),c=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),g=s?(0,N.yG)(t):(0,N.X6)(t);if(l&&l.draggable&&"mousedown"===t.type&&t.preventDefault(),i||n||c||g)return;if(this._handles.length){const x=o.style;this._rootElementTapHighlight=x.webkitTapHighlightColor||"",x.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(x=>this._updateOnScroll(x)),this._boundaryElement&&(this._boundaryRect=Q(this._boundaryElement));const m=this._previewTemplate;this._pickupPositionInElement=m&&m.template&&!m.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,e,t);const w=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:w.x,y:w.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){J(this._rootElement,!0,lt),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const t=this._dropContainer,i=t.getItemIndex(this),s=this._getPointerPositionOnPage(e),n=this._getDragDistance(s),o=t._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:n,dropPoint:s,event:e}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:n,dropPoint:s,event:e}),t.drop(this,i,this._initialIndex,this._initialContainer,o,n,s,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:s}){let n=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!n&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(n=this._initialContainer),n&&n!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=n,this._dropContainer.enter(this,e,t,n===this._initialContainer&&n.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:n,currentIndex:n.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,s),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,t):this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,i=e?e.template:null;let s;if(i&&e){const n=e.matchSize?this._initialClientRect:null,o=e.viewContainer.createEmbeddedView(i,e.context);o.detectChanges(),s=ft(o,this._document),this._previewRef=o,e.matchSize?ut(s,n):s.style.transform=nt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else s=f(this._rootElement),ut(s,this._initialClientRect),this._initialTransform&&(s.style.transform=this._initialTransform);return C(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},lt),H(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(n=>s.classList.add(n)):s.classList.add(t)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);const t=function at(r){const e=getComputedStyle(r),t=V(e,"transition-property"),i=t.find(l=>"transform"===l||"all"===l);if(!i)return 0;const s=t.indexOf(i),n=V(e,"transition-duration"),o=V(e,"transition-delay");return it(n[s])+it(o[s])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const s=o=>{(!o||(0,S.sA)(o)===this._preview&&"transform"===o.propertyName)&&(this._preview?.removeEventListener("transitionend",s),i(),clearTimeout(n))},n=setTimeout(s,1.5*t);this._preview.addEventListener("transitionend",s)}
1))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=ft(this._placeholderRef,this._document)):i=f(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,t,i){const s=t===this._rootElement?null:t,n=s?s.getBoundingClientRect():e,o=q(i)?i.targetTouches[0]:i,l=this._getViewportScrollPosition();return{x:n.left-e.left+(o.pageX-n.left-l.left),y:n.top-e.top+(o.pageY-n.top-l.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),i=q(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,s=i.pageX-t.left,n=i.pageY-t.top;if(this._ownerSVGElement){const o=this._ownerSVGElement.getScreenCTM();if(o){const l=this._ownerSVGElement.createSVGPoint();return l.x=s,l.y=n,l.matrixTransform(o.inverse())}}return{x:s,y:n}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:s}=this.constrainPosition?this.constrainPosition(e,this,this._initialClientRect,this._pickupPositionInElement):e;if("x"===this.lockAxis||"x"===t?s=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===t)&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:n,y:o}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,l=this._boundaryRect,{width:c,height:g}=this._getPreviewRect(),m=l.top+o,w=l.bottom-(g-o);i=pt(i,l.left+n,l.right-(c-n)),s=pt(s,m,w)}return{x:i,y:s}}_updatePointerDirectionDelta(e){const{x:t,y:i}=e,s=this._pointerDirectionDelta,n=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-n.x),l=Math.abs(i-n.y);return o>this._config.pointerDirectionChangeThreshold&&(s.x=t>n.x?1:-1,n.x=t),l>this._config.pointerDirectionChangeThreshold&&(s.y=i>n.y?1:-1,n.y=i),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,H(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,st),e.removeEventListener("touchstart",this._pointerDown,K),e.removeEventListener("dragstart",this._nativeDragStart,st)}_applyRootElementTransform(e,t){const i=nt(e,t),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=j(i,this._initialTransform)}_applyPreviewTransform(e,t){const i=this._previewTemplate?.template?void 0:this._initialTransform,s=nt(e,t);this._preview.style.transform=j(s,i)}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(0===s.width&&0===s.height||0===i.width&&0===i.height)return;const n=s.left-i.left,o=i.right-s.right,l=s.top-i.top,c=i.bottom-s.bottom;s.width>i.width?(n>0&&(e+=n),o>0&&(e-=o)):e=0,s.height>i.height?(l>0&&(t+=l),c>0&&(t-=c)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:q(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const i=(0,S.sA)(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&p(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,S.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){const i=this._previewContainer||"global";if("parent"===i)return e;if("global"===i){const s=this._document;return t||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return(0,E.fI)(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(e){return this._handles.find(t=>e.target&&(e.target===t||t.contains(e.target)))}}function nt(r,e){return`translate3d(${Math.round(r)}px, ${Math.round(e)}px, 0)`}function pt(r,e,t){return Math.max(e,Math.min(t,r))}function q(r){return"t"===r.type[0]}function ft(r,e){const t=r.rootNodes;if(1===t.length&&t[0].nodeType===e.ELEMENT_NODE)return t[0];const i=e.createElement("div");return t.forEach(s=>i.appendChild(s)),i}function ut(r,e){r.style.width=`${e.width}px`,r.style.height=`${e.height}px`,r.style.transform=nt(e.left,e.top)}function mt(r,e,t){const i=tt(e,r.length-1),s=tt(t,r.length-1);if(i===s)return;const n=r[i],o=s<i?-1:1;for(let l=i;l!==s;l+=o)r[l]=r[l+o];r[s]=n}function Lt(r,e,t,i){const s=tt(t,r.length-1),n=tt(i,e.length);r.length&&e.splice(n,0,r.splice(s,1)[0])}function tt(r,e){return Math.max(0,Math.min(e,r))}class At{constructor(e,t){this._element=e,this._dragDropRegistry=t,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(e){this.withItems(e)}sort(e,t,i,s){const n=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,i,s);if(-1===o&&n.length>0)return null;const l="horizontal"===this.orientation,c=n.findIndex(T=>T.drag===e),g=n[o],w=g.clientRect,x=c>o?1:-1,W=this._getItemOffsetPx(n[c].clientRect,w,x),Y=this._getSiblingOffsetPx(c,n,x),Z=n.slice();
1return mt(n,c,o),n.forEach((T,Wt)=>{if(Z[Wt]===T)return;const Tt=T.drag===e,gt=Tt?W:Y,It=Tt?e.getPlaceholderElement():T.drag.getRootElement();T.offset+=gt,l?(It.style.transform=j(`translate3d(${Math.round(T.offset)}px, 0, 0)`,T.initialTransform),p(T.clientRect,0,gt)):(It.style.transform=j(`translate3d(0, ${Math.round(T.offset)}px, 0)`,T.initialTransform),p(T.clientRect,gt,0))}),this._previousSwap.overlaps=X(w,t,i),this._previousSwap.drag=g.drag,this._previousSwap.delta=l?s.x:s.y,{previousIndex:c,currentIndex:o}}enter(e,t,i,s){const n=null==s||s<0?this._getItemIndexFromPointerPosition(e,t,i):s,o=this._activeDraggables,l=o.indexOf(e),c=e.getPlaceholderElement();let g=o[n];if(g===e&&(g=o[n+1]),!g&&(null==n||-1===n||n<o.length-1)&&this._shouldEnterAsFirstChild(t,i)&&(g=o[0]),l>-1&&o.splice(l,1),g&&!this._dragDropRegistry.isDragging(g)){const m=g.getRootElement();m.parentElement.insertBefore(c,m),o.splice(n,0,e)}else(0,E.fI)(this._element).appendChild(c),o.push(e);c.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables.forEach(e=>{const t=e.getRootElement();if(t){const i=this._itemPositions.find(s=>s.drag===e)?.initialTransform;t.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===e)}updateOnScroll(e,t){this._itemPositions.forEach(({clientRect:i})=>{p(i,e,t)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const e="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(t=>{const i=t.getVisibleElement();return{drag:t,offset:0,initialTransform:i.style.transform||"",clientRect:Q(i)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_getItemOffsetPx(e,t,i){const s="horizontal"===this.orientation;let n=s?t.left-e.left:t.top-e.top;return-1===i&&(n+=s?t.width-e.width:t.height-e.height),n}_getSiblingOffsetPx(e,t,i){const s="horizontal"===this.orientation,n=t[e].clientRect,o=t[e+-1*i];let l=n[s?"width":"height"]*i;if(o){const c=s?"left":"top",g=s?"right":"bottom";-1===i?l-=o.clientRect[c]-n[g]:l+=n[c]-o.clientRect[g]}return l}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,s="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const o=i[i.length-1].clientRect;return s?e>=o.right:t>=o.bottom}{const o=i[0].clientRect;return s?e<=o.left:t<=o.top}}_getItemIndexFromPointerPosition(e,t,i,s){const n="horizontal"===this.orientation,o=this._itemPositions.findIndex(({drag:l,clientRect:c})=>l!==e&&((!s||l!==this._previousSwap.drag||!this._previousSwap.overlaps||(n?s.x:s.y)!==this._previousSwap.delta)&&(n?t>=Math.floor(c.left)&&t<Math.floor(c.right):i>=Math.floor(c.top)&&i<Math.floor(c.bottom))));return-1!==o&&this._sortPredicate(o,e)?o:-1}}class Mt{constructor(e,t,i,s,n){this._dragDropRegistry=t,this._ngZone=s,this._viewportRuler=n,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new D.x,this.entered=new D.x,this.exited=new D.x,this.dropped=new D.x,this.sorted=new D.x,this.receivingStarted=new D.x,this.receivingStopped=new D.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=O.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new D.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,k.F)(0,I.Z).pipe((0,A.R)(this._stopScrollTimers)).subscribe(()=>{const o=this._scrollNode,l=this.autoScrollStep;1===this._verticalScrollDirection?o.scrollBy(0,-l):2===this._verticalScrollDirection&&o.scrollBy(0,l),1===this._horizontalScrollDirection?o.scrollBy(-l,0):2===this._horizontalScrollDirection&&o.scrollBy(l,0)})},this.element=(0,E.fI)(e),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new d(i),this._sortStrategy=new At(this.element,t),this._sortStrategy.withSortPredicate((o,l)=>this.sortPredicate(o,l,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,i,s){this._draggingStarted(),null==s&&this.sortingDisabled&&(s=this._draggables.indexOf(e)),this._sortStrategy.enter(e,t,i,s),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,s,n,o,l,c={}){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:s,isPointerOverContainer:n,distance:o,dropPoint:l,event:c})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(i=>
1i._withDropContainer(this)),this.isDragging()&&(t.filter(s=>s.isDragging()).every(s=>-1===e.indexOf(s))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._sortStrategy.direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._sortStrategy.orientation=e,this}withScrollableParents(e){const t=(0,E.fI)(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,s){if(this.sortingDisabled||!this._clientRect||!M(this._clientRect,.05,t,i))return;const n=this._sortStrategy.sort(e,t,i,s);n&&this.sorted.next({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,s=0,n=0;if(this._parentPositions.positions.forEach((o,l)=>{l===this._document||!o.clientRect||i||M(o.clientRect,.05,e,t)&&([s,n]=function kt(r,e,t,i){const s=Pt(e,i),n=St(e,t);let o=0,l=0;if(s){const c=r.scrollTop;1===s?c>0&&(o=1):r.scrollHeight-c>r.clientHeight&&(o=2)}if(n){const c=r.scrollLeft;1===n?c>0&&(l=1):r.scrollWidth-c>r.clientWidth&&(l=2)}return[o,l]}(l,o.clientRect,e,t),(s||n)&&(i=l))}),!s&&!n){const{width:o,height:l}=this._viewportRuler.getViewportSize(),c={width:o,height:l,top:0,right:o,bottom:l,left:0};s=Pt(c,t),n=St(c,e),i=window}i&&(s!==this._verticalScrollDirection||n!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=n,this._scrollNode=i,(s||n)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const e=(0,E.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const e=(0,E.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_reset(){this._isDragging=!1;const e=(0,E.fI)(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(t=>t._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(e,t){return null!=this._clientRect&&X(this._clientRect,e,t)}_getSiblingContainerFromPosition(e,t,i){return this._siblings.find(s=>s._canReceive(e,t,i))}_canReceive(e,t,i){if(!this._clientRect||!X(this._clientRect,t,i)||!this.enterPredicate(e,this))return!1;const s=this._getShadowRoot().elementFromPoint(t,i);if(!s)return!1;const n=(0,E.fI)(this.element);return s===n||n.contains(s)}_startReceiving(e,t){const i=this._activeSiblings;!i.has(e)&&t.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:t}))}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&this._sortStrategy.updateOnScroll(t.top,t.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=(0,S.kV)((0,E.fI)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._sortStrategy.getActiveItemsSnapshot().filter(t=>t.isDragging());
1this._siblings.forEach(t=>t._startReceiving(this,e))}}function Pt(r,e){const{top:t,bottom:i,height:s}=r,n=.05*s;return e>=t-n&&e<=t+n?1:e>=i-n&&e<=i+n?2:0}function St(r,e){const{left:t,right:i,width:s}=r,n=.05*s;return e>=t-n&&e<=t+n?1:e>=i-n&&e<=i+n?2:0}const rt=(0,S.i$)({passive:!1,capture:!0});let Bt=(()=>{class r{constructor(t,i){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new D.x,this.pointerUp=new D.x,this.scroll=new D.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=i}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,rt)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,rt)}startDragging(t,i){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const s=i.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:n=>this.pointerUp.next(n),options:!0}).set("scroll",{handler:n=>this.scroll.next(n),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:rt}),s||this._globalListeners.set("mousemove",{handler:n=>this.pointerMove.next(n),options:rt}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((n,o)=>{this._document.addEventListener(o,n.handler,n.options)})})}}stopDragging(t){const i=this._activeDragInstances.indexOf(t);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}scrolled(t){const i=[this.scroll];return t&&t!==this._document&&i.push(new R.y(s=>this._ngZone.runOutsideAngular(()=>{const o=l=>{this._activeDragInstances.length&&s.next(l)};return t.addEventListener("scroll",o,!0),()=>{t.removeEventListener("scroll",o,!0)}}))),(0,L.T)(...i)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,i)=>{this._document.removeEventListener(i,t.handler,t.options)}),this._globalListeners.clear()}static#t=this.\u0275fac=function(i){return new(i||r)(a.LFG(a.R0b),a.LFG(h.K0))};static#e=this.\u0275prov=a.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();const Ht={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let ht=(()=>{class r{constructor(t,i,s,n){this._document=t,this._ngZone=i,this._viewportRuler=s,this._dragDropRegistry=n}createDrag(t,i=Ht){return new zt(t,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new Mt(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#t=this.\u0275fac=function(i){return new(i||r)(a.LFG(h.K0),a.LFG(a.R0b),a.LFG(b.rL),a.LFG(Bt))};static#e=this.\u0275prov=a.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();const ct=new a.OlP("CDK_DRAG_PARENT"),dt=new a.OlP("CdkDragHandle");let Et=(()=>{class r{get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._stateChanges.next(this)}constructor(t,i){this.element=t,this._stateChanges=new D.x,this._disabled=!1,this._parentDrag=i}ngOnDestroy(){this._stateChanges.complete()}static#t=this.\u0275fac=function(i){return new(i||r)(a.Y36(a.SBq),a.Y36(ct,12))};static#e=this.\u0275dir=a.lG2({type:r,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled",a.VuI]},standalone:!0,features:[a._Bn([{provide:dt,useExisting:r}]),a.Xq5]})}return r})();
1const yt=new a.OlP("CdkDragPlaceholder"),wt=new a.OlP("CdkDragPreview"),bt=new a.OlP("CDK_DRAG_CONFIG"),Rt=new a.OlP("CdkDropList");let Ct=(()=>{class r{static#t=this._dragInstances=[];get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=t,this._dragRef.disabled=this._disabled}constructor(t,i,s,n,o,l,c,g,m,w,x){this.element=t,this.dropContainer=i,this._ngZone=n,this._viewContainerRef=o,this._dir=c,this._changeDetectorRef=m,this._selfHandle=w,this._parentDrag=x,this._destroyed=new D.x,this.started=new a.vpe,this.released=new a.vpe,this.ended=new a.vpe,this.entered=new a.vpe,this.exited=new a.vpe,this.dropped=new a.vpe,this.moved=new R.y(W=>{const Y=this._dragRef.moved.pipe((0,$.U)(Z=>({source:this,pointerPosition:Z.pointerPosition,event:Z.event,delta:Z.delta,distance:Z.distance}))).subscribe(W);return()=>{Y.unsubscribe()}}),this._dragRef=g.createDrag(t,{dragStartThreshold:l&&null!=l.dragStartThreshold?l.dragStartThreshold:5,pointerDirectionChangeThreshold:l&&null!=l.pointerDirectionChangeThreshold?l.pointerDirectionChangeThreshold:5,zIndex:l?.zIndex}),this._dragRef.data=this,r._dragInstances.push(this),l&&this._assignDefaults(l),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(t){this._dragRef.setFreeDragPosition(t)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,G.q)(1),(0,A.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(t){const i=t.rootElementSelector,s=t.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const t=r._dragInstances.indexOf(this);t>-1&&r._dragInstances.splice(t,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const t=this.element.nativeElement;let i=t;this.rootElementSelector&&(i=void 0!==t.closest?t.closest(this.rootElementSelector):t.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?this.element.nativeElement.closest(t):(0,E.fI)(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const i=this._dir,s=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,o=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof s&&s?s:(0,E.su)(s),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(o).withPreviewContainer(this.previewContainer||"global"),i&&t.withDirection(i.value)}}),t.beforeStarted.pipe((0,G.q)(1)).subscribe(()=>{if(this._parentDrag)return void t.withParent(this._parentDrag._dragRef);let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains("cdk-drag")){t.withParent(r._dragInstances.find(s=>s.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(t){t.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),t.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(t){const{lockAxis:i,dragStartDelay:s,constrainPosition:n,previewClass:o,boundaryElement:l,draggingDisabled:c,rootElementSelector:g,previewContainer:m}=t;this.disabled=c??!1,this.dragStartDelay=s||0,i&&(this.lockAxis=i),n&&(this.constrainPosition=n),o&&(this.previewClass=o),l&&(this.boundaryElement=l),g&&(this.rootElementSelector=g),m&&(this.previewContainer=m)}_setupHandlesListener(){this._handles.changes.pipe((0,U.O)(this._handles),(0,y.b)(t=>{const i=t.filter(s=>s._parentDrag===this).map(s=>s.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),(0,et.w)(t=>(0,L.T)(...t.map(i=>i._stateChanges.pipe((0,U.O)(i))))),(0,A.R)(this._destroyed)).subscribe(t=>{const i=this._dragRef,s=t.element.nativeElement;
1t.disabled?i.disableHandle(s):i.enableHandle(s)})}static#e=this.\u0275fac=function(i){return new(i||r)(a.Y36(a.SBq),a.Y36(Rt,12),a.Y36(h.K0),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(bt,8),a.Y36(B.Is,8),a.Y36(ht),a.Y36(a.sBO),a.Y36(dt,10),a.Y36(ct,12))};static#i=this.\u0275dir=a.lG2({type:r,selectors:[["","cdkDrag",""]],contentQueries:function(i,s,n){if(1&i&&(a.Suo(n,wt,5),a.Suo(n,yt,5),a.Suo(n,dt,5)),2&i){let o;a.iGM(o=a.CRH())&&(s._previewTemplate=o.first),a.iGM(o=a.CRH())&&(s._placeholderTemplate=o.first),a.iGM(o=a.CRH())&&(s._handles=o)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,s){2&i&&a.ekj("cdk-drag-disabled",s.disabled)("cdk-drag-dragging",s._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled",a.VuI],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[a._Bn([{provide:ct,useExisting:r}]),a.Xq5,a.TTD]})}return r})();const _t=new a.OlP("CdkDropListGroup");let Vt=0,xt=(()=>{class r{static#t=this._dropLists=[];get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=t}constructor(t,i,s,n,o,l,c){this.element=t,this._changeDetectorRef=s,this._scrollDispatcher=n,this._dir=o,this._group=l,this._destroyed=new D.x,this.connectedTo=[],this.id="cdk-drop-list-"+Vt++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new a.vpe,this.entered=new a.vpe,this.exited=new a.vpe,this.sorted=new a.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(t),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=(g,m)=>this.enterPredicate(g.data,m.data),this._dropListRef.sortPredicate=(g,m,w)=>this.sortPredicate(g,m.data,w.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),r._dropLists.push(this),l&&l._items.add(this)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,i)=>t._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const t=r._dropLists.indexOf(this);t>-1&&r._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe((0,U.O)(this._dir.value),(0,A.R)(this._destroyed)).subscribe(i=>t.withDirection(i)),t.beforeStarted.subscribe(()=>{const i=(0,E.Eq)(this.connectedTo).map(s=>"string"==typeof s?r._dropLists.find(o=>o.id===s):s);if(this._group&&this._group._items.forEach(s=>{-1===i.indexOf(s)&&i.push(s)}),!this._scrollableParentsResolved){const s=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(n=>n.getElementRef().nativeElement);this._dropListRef.withScrollableParents(s),this._scrollableParentsResolved=!0}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=this.sortingDisabled,t.autoScrollDisabled=this.autoScrollDisabled,t.autoScrollStep=(0,E.su)(this.autoScrollStep,2),t.connectedTo(i.filter(s=>s&&s!==this).map(s=>s._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),(0,L.T)(t.receivingStarted,t.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(t){const{lockAxis:i,draggingDisabled:s,sortingDisabled:n,listAutoScrollDisabled:o,listOrientation:l}=t;this.disabled=s??!1,this.sortingDisabled=n??!1,this.autoScrollDisabled=o??!1,this.orientation=l||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}static#e=this.\u0275fac=function(i){return new(i||r)(a.Y36(a.SBq),a.Y36(ht),a.Y36(a.s
1BO),a.Y36(b.mF),a.Y36(B.Is,8),a.Y36(_t,12),a.Y36(bt,8))};static#i=this.\u0275dir=a.lG2({type:r,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(i,s){2&i&&(a.uIk("id",s.id),a.ekj("cdk-drop-list-disabled",s.disabled)("cdk-drop-list-dragging",s._dropListRef.isDragging())("cdk-drop-list-receiving",s._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled",a.VuI],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled",a.VuI],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled",a.VuI],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[a._Bn([{provide:_t,useValue:void 0},{provide:Rt,useExisting:r}]),a.Xq5]})}return r})(),Kt=(()=>{class r{static#t=this.\u0275fac=function(i){return new(i||r)};static#e=this.\u0275mod=a.oAB({type:r});static#i=this.\u0275inj=a.cJS({providers:[ht],imports:[b.ZD]})}return r})()},5393:(ot,F,_)=>{_.d(F,{Fp:()=>Q,IT:()=>V,on:()=>X});var a=_(6814),h=_(9212),b=_(7582),S=_(2831),E=_(8645),N=_(2438),D=_(8753),O=_(9773),k=_(8101),I=_(2196),R=_(6700),L=_(2189);const A=["ink"];function $(p,M){}function G(p,M){if(1&p&&(h.TgZ(0,"nz-affix",2),h.YNc(1,$,0,0,"ng-template",3),h.qZA()),2&p){const d=h.oxw(),f=h.MAs(2);h.Q6J("nzOffsetTop",d.nzOffsetTop)("nzTarget",d.container),h.xp6(1),h.Q6J("ngTemplateOutlet",f)}}const U=p=>({"ant-anchor-fixed":p});function y(p,M){if(1&p&&(h.TgZ(0,"div",4)(1,"div",5)(2,"div",6),h._UZ(3,"div",7,8),h.qZA(),h.Hsn(5),h.qZA()()),2&p){const d=h.oxw();h.Q6J("ngStyle",d.wrapperStyle),h.xp6(1),h.Q6J("ngClass",h.VKq(2,U,!d.nzAffix&&!d.nzShowInkInFixed))}}const et=["*"],B=["nzTemplate"],C=["linkTitle"];function H(p,M){if(1&p&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&p){const d=h.oxw();h.xp6(1),h.Oqu(d.titleStr)}}function J(p,M){if(!p||!p.getClientRects().length)return 0;const d=p.getBoundingClientRect();return d.width||d.height?M===window?d.top-p.ownerDocument.documentElement.clientTop:d.top-M.getBoundingClientRect().top:d.top}const it=/#([^#]+)$/,at=(0,S.i$)({passive:!0});let V=(()=>{class p{constructor(d,f,u,v,P,z,K){this.doc=d,this.nzConfigService=f,this.scrollSrv=u,this.cdr=v,this.platform=P,this.zone=z,this.renderer=K,this._nzModuleName="anchor",this.nzAffix=!0,this.nzShowInkInFixed=!1,this.nzBounds=5,this.nzOffsetTop=void 0,this.nzTargetOffset=void 0,this.nzClick=new h.vpe,this.nzChange=new h.vpe,this.nzScroll=new h.vpe,this.visible=!1,this.wrapperStyle={"max-height":"100vh"},this.links=[],this.animating=!1,this.destroy$=new E.x,this.handleScrollTimeoutID=-1}registerLink(d){this.links.push(d)}unregisterLink(d){this.links.splice(this.links.indexOf(d),1)}getContainer(){return this.container||window}ngAfterViewInit(){this.registerScrollEvent()}ngOnDestroy(){clearTimeout(this.handleScrollTimeoutID),this.destroy$.next(!0),this.destroy$.complete()}registerScrollEvent(){this.platform.isBrowser&&(this.destroy$.next(!0),this.zone.runOutsideAngular(()=>{(0,N.R)(this.getContainer(),"scroll",at).pipe((0,D.p)(50),(0,O.R)(this.destroy$)).subscribe(()=>this.handleScroll())}),this.handleScrollTimeoutID=setTimeout(()=>this.handleScroll()))}handleScroll(){if(typeof document>"u"||this.animating)return;const d=[],u=(this.nzTargetOffset?this.nzTargetOffset:this.nzOffsetTop||0)+this.nzBounds;if(this.links.forEach(v=>{const P=it.exec(v.nzHref.toString());if(!P)return;const z=this.doc.getElementById(P[1]);if(z){const K=J(z,this.getContainer());K<u&&d.push({top:K,comp:v})}}),this.visible=!!d.length,this.visible){const v=d.reduce((P,z)=>z.top>P.top?z:P);this.handleActive(v.comp)}else this.clearActive(),this.cdr.detectChanges();this.setVisible()}clearActive(){this.links.forEach(d=>{d.unsetActive()})}setActive(d){const f=this.activeLink,u=this.nzCurrentAnchor&&this.links.find(P=>P.nzHref===this.nzCurrentAnchor)||d;if(!u)return;u.setActive();const v=u.getLinkTitleElement();this.ink.nativeElement.style.top=v.offsetTop+v.clientHeight/2-4.5+"px",this.activeLink=(d||u).nzHref,f!==this.activeLink&&this.nzChange.emit(this.activeLink)}handleActive(d){this.clearActive(),this.setActive(d),this.visible=!0,this.setVisible(),this.nzScroll.emit(d)}setVisible(){const f="visible";this.ink&&(this.visible?this.renderer.addClass(this.ink.nativeElement,f):this.renderer.removeClass(this.ink.nativeElement,f))}handleScrollTo(d){const f=this.doc.querySelector(d.nzHref);if(!f)return;this.animating=!0;let P=this.scrollSrv.getScroll(this.getContainer())+J(f,this.getContainer());P-=void 0!==this.nzTargetOffset?this.nzTargetOffset:this.nzOffsetTop||0,this.scrollSrv.scrollTo(this.getContainer(),P,{callback:()=>{this.animating=!1,this.handleActive(d)}}),this.nzClick.emit(d.nzHref)}ngOnChanges(d){const{nzOffsetTop:f,nzContainer:u,nzCurrentAnchor:v}=d;if(f&&(this.wrapperStyle={"max-height":`calc(100vh - ${this.nzOffsetTop}px)`}),u){const P=this.nzContainer;this.container="string"==typeof P?this.doc.querySelector(P):P,this.registerScrollEvent()}v&&this.setActive()}static#t=this.\u0275fac=function(f){return new(f||p)(h.Y36(a.K0),h.Y36(I.jY),h.Y36(L.MF),h.Y36(h.sBO),h.Y36(S.t4),h.Y36(h.R0b),h.Y36(h.Qsj))};static#e=this.\u0275cmp=h.Xpm({type:p,selectors:[["nz-anchor"]],viewQuery:function(f,u){if(1&f&&h.Gf(A,5),2&f){let v;h.iGM(v=h.CRH())&&(u.ink=v.first)}},inputs:{nzAffix:"nzAffix",nzShowInkInFixed:"nzShowInkInFixed",nzBounds:"nzBounds",nzOffsetTop:"nzOffsetTop",nzTargetOffset:"nzTargetOffset",nzC
1ontainer:"nzContainer",nzCurrentAnchor:"nzCurrentAnchor"},outputs:{nzClick:"nzClick",nzChange:"nzChange",nzScroll:"nzScroll"},exportAs:["nzAnchor"],standalone:!0,features:[h.TTD,h.jDz],ngContentSelectors:et,decls:3,vars:2,consts:[[3,"nzOffsetTop","nzTarget",4,"ngIf","ngIfElse"],["content",""],[3,"nzOffsetTop","nzTarget"],[3,"ngTemplateOutlet"],[1,"ant-anchor-wrapper",3,"ngStyle"],[1,"ant-anchor",3,"ngClass"],[1,"ant-anchor-ink"],[1,"ant-anchor-ink-ball"],["ink",""]],template:function(f,u){if(1&f&&(h.F$t(),h.YNc(0,G,2,3,"nz-affix",0)(1,y,6,4,"ng-template",null,1,h.W1O)),2&f){const v=h.MAs(2);h.Q6J("ngIf",u.nzAffix)("ngIfElse",v)}},dependencies:[a.mk,a.O5,a.PC,a.tP,k.j,k.$],encapsulation:2,changeDetection:0})}return(0,b.gn)([(0,R.yF)()],p.prototype,"nzAffix",void 0),(0,b.gn)([(0,I.oS)(),(0,R.yF)()],p.prototype,"nzShowInkInFixed",void 0),(0,b.gn)([(0,I.oS)(),(0,R.Rn)()],p.prototype,"nzBounds",void 0),(0,b.gn)([(0,R.Rn)(void 0),(0,I.oS)()],p.prototype,"nzOffsetTop",void 0),(0,b.gn)([(0,R.Rn)(void 0),(0,I.oS)()],p.prototype,"nzTargetOffset",void 0),p})(),Q=(()=>{class p{set nzTitle(d){d instanceof h.Rgc?(this.titleStr=null,this.titleTpl=d):this.titleStr=d}constructor(d,f,u,v){this.elementRef=d,this.anchorComp=f,this.platform=u,this.renderer=v,this.nzHref="#",this.titleStr=""}ngOnInit(){this.anchorComp.registerLink(this)}getLinkTitleElement(){return this.linkTitle.nativeElement}setActive(){this.renderer.addClass(this.elementRef.nativeElement,"ant-anchor-link-active")}unsetActive(){this.renderer.removeClass(this.elementRef.nativeElement,"ant-anchor-link-active")}goToClick(d){d.preventDefault(),d.stopPropagation(),this.platform.isBrowser&&this.anchorComp.handleScrollTo(this)}ngOnDestroy(){this.anchorComp.unregisterLink(this)}static#t=this.\u0275fac=function(f){return new(f||p)(h.Y36(h.SBq),h.Y36(V),h.Y36(S.t4),h.Y36(h.Qsj))};static#e=this.\u0275cmp=h.Xpm({type:p,selectors:[["nz-link"]],contentQueries:function(f,u,v){if(1&f&&h.Suo(v,B,5),2&f){let P;h.iGM(P=h.CRH())&&(u.nzTemplate=P.first)}},viewQuery:function(f,u){if(1&f&&h.Gf(C,5),2&f){let v;h.iGM(v=h.CRH())&&(u.linkTitle=v.first)}},hostAttrs:[1,"ant-anchor-link"],inputs:{nzHref:"nzHref",nzTarget:"nzTarget",nzTitle:"nzTitle"},exportAs:["nzLink"],standalone:!0,features:[h.jDz],ngContentSelectors:et,decls:4,vars:5,consts:[[1,"ant-anchor-link-title",3,"href","title","target","click"],["linkTitle",""],[4,"ngIf","ngIfElse"]],template:function(f,u){1&f&&(h.F$t(),h.TgZ(0,"a",0,1),h.NdJ("click",function(P){return u.goToClick(P)}),h.YNc(2,H,2,1,"span",2),h.qZA(),h.Hsn(3)),2&f&&(h.Q6J("href",u.nzHref,h.LSH)("title",u.titleStr)("target",u.nzTarget),h.xp6(2),h.Q6J("ngIf",u.titleStr)("ngIfElse",u.titleTpl||u.nzTemplate))},dependencies:[a.O5],encapsulation:2,changeDetection:0})}return p})(),X=(()=>{class p{static#t=this.\u0275fac=function(f){return new(f||p)};static#e=this.\u0275mod=h.oAB({type:p});static#i=this.\u0275inj=h.cJS({imports:[V]})}return p})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.