PageSourceSearch

https://jsol.net/chunk-MXQUYNJ2.js

js jsol.net collected 2026-09-28 06:42:31 UTC 56,892 bytes, 1 lines download raw bytes

1import{a as mt}from"./chunk-PO4BCA7V.js";import{p as ot,q as at,r as ct,t as lt}from"./chunk-JQDRFLUF.js";import"./chunk-MF23XTE7.js";import{e as _t}from"./chunk-EJMX6GXD.js";import"./chunk-LBFZVMBI.js";import{a as ht,n as gt}from"./chunk-SQXH55RY.js";import"./chunk-FZLMV5FP.js";import{O as pt,t as ut,x as ft}from"./chunk-2RZNBXEW.js";import"./chunk-WUS6VI32.js";import{G as it,ca as st,d as Xe,e as Je,ea as nt,fa as rt,k as et,m as T,qa as dt,r as tt,sa as J}from"./chunk-LKIBVTZY.js";import"./chunk-IXSVJUWF.js";import"./chunk-VXMZGT4Q.js";import{$a as ye,A as Ue,B as We,Da as A,Fa as me,Hb as qe,Ia as S,J as H,Ja as C,K as D,Ka as R,Lb as De,O as Ge,Oa as $e,Qb as Ye,Ra as L,Sa as ve,Tb as Qe,Za as be,_a as we,ba as Ze,da as Q,e as E,f as F,ga as O,h as x,ha as u,j as m,k as V,mb as X,nb as M,o as w,oa as B,ob as Ke,p as k,q as N,qa as pe,r as Y,ta as ge,w as He,xa as _e,z as fe}from"./chunk-LZGEQQYD.js";import{$b as Ve,Sa as he,Ub as de,Vb as ue,X as Be,Zb as z,b as P,i as q,la as je,ma as le,n as f,o as Ne,y as ce,ya as ze}from"./chunk-BW2TMJN6.js";import"./chunk-Y47WPBXC.js";import"./chunk-KMDE7OE6.js";import"./chunk-OIQ57EFI.js";import"./chunk-OICWFG3V.js";import"./chunk-O3RNDQNW.js";import"./chunk-NM22UB3G.js";import"./chunk-VZX5C6EA.js";import"./chunk-AHMEKYX6.js";import"./chunk-JGJYFJR3.js";import"./chunk-CKTCA7L3.js";import{i as Fe}from"./chunk-RNQ7BUHW.js";function vt(r,e=0){return Qt(r)?Number(r):e}function Qt(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}function b(r){return r instanceof H?r.nativeElement:r}var Ee;try{Ee=typeof Intl<"u"&&Intl.v8BreakIterator}catch(r){Ee=!1}var bt=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?it(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Ee)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(i){return new(i||e)(m(Ge))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var U;function Xt(){if(U==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>U=!0}))}finally{U=U||!1}return U}function G(r){return Xt()?r:!!r.capture}var Ie;function Jt(){if(Ie==null){let r=typeof document<"u"?document.head:null;Ie=!!(r&&(r.createShadowRoot||r.attachShadow))}return Ie}function Se(r){if(Jt()){let e=r.getRootNode?r.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Z(r){return r.composedPath?r.composedPath()[0]:r.target}var ii=new x("cdk-dir-doc",{providedIn:"root",factory:si});function si(){return V(T)}var ni=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function ri(r){let e=(r==null?void 0:r.toLowerCase())||"";return e==="auto"&&typeof navigator<"u"&&(navigator!=null&&navigator.language)?ni.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var wt=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new D,t){let i=t.body?t.body.dir:null,n=t.documentElement?t.documentElement.dir:null;this.value=ri(i||n||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(i){return new(i||e)(m(ii,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var ci=20,yt=(()=>{let e=class e{constructor(t,i,n){this._platform=t,this._change=new f,this._changeListener=o=>{this._change.next(o)},this._document=n,i.runOutsideAngular(()=>{if(t.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:i,height:n}=this.getViewportSize();
1return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+i,height:n,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,i=this._getWindow(),n=t.documentElement,o=n.getBoundingClientRect(),a=-o.top||t.body.scrollTop||i.scrollY||n.scrollTop||0,c=-o.left||t.body.scrollLeft||i.scrollX||n.scrollLeft||0;return{top:a,left:c}}change(t=ci){return t>0?this._change.pipe(ze(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(i){return new(i||e)(m(bt),m(B),m(T,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var Dt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=N({type:e}),e.\u0275inj=F({});let r=e;return r})();function It(r){return r.buttons===0||r.detail===0}function Et(r){let e=r.touches&&r.touches[0]||r.changedTouches&&r.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}function Oe(r,e,s){for(let t in e)if(e.hasOwnProperty(t)){let i=e[t];i?r.setProperty(t,i,s!=null&&s.has(t)?"important":""):r.removeProperty(t)}return r}function j(r,e){let s=e?"":"none";Oe(r.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":s,"-ms-user-select":s,"-webkit-user-select":s,"-moz-user-select":s})}function St(r,e,s){Oe(r.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},s)}function se(r,e){return e&&e!="none"?r+" "+e:r}function Ct(r,e){r.style.width="".concat(e.width,"px"),r.style.height="".concat(e.height,"px"),r.style.transform=ne(e.left,e.top)}function ne(r,e){return"translate3d(".concat(Math.round(r),"px, ").concat(Math.round(e),"px, 0)")}function Ae(r){let 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 Re(r,e,s){let{top:t,bottom:i,left:n,right:o}=r;return s>=t&&s<=i&&e>=n&&e<=o}function K(r,e,s){r.top+=e,r.bottom=r.top+r.height,r.left+=s,r.right=r.left+r.width}function Rt(r,e,s,t){let{top:i,right:n,bottom:o,left:a,width:c,height:l}=r,h=c*e,d=l*e;return t>i-d&&t<o+d&&s>a-h&&s<n+h}var re=class{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(s=>{this.positions.set(s,{scrollPosition:{top:s.scrollTop,left:s.scrollLeft},clientRect:Ae(s)})})}handleScroll(e){let s=Z(e),t=this.positions.get(s);if(!t)return null;let i=t.scrollPosition,n,o;if(s===this._document){let l=this.getViewportScrollPosition();n=l.top,o=l.left}else n=s.scrollTop,o=s.scrollLeft;let a=i.top-n,c=i.left-o;return this.positions.forEach((l,h)=>{l.clientRect&&s!==h&&s.contains(h)&&K(l.clientRect,a,c)}),i.top=n,i.left=o,{top:a,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function zt(r){let e=r.cloneNode(!0),s=e.querySelectorAll("[id]"),t=r.nodeName.toLowerCase();e.removeAttribute("id");for(let i=0;i<s.length;i++)s[i].removeAttribute("id");return t==="canvas"?xt(r,e):(t==="input"||t==="select"||t==="textarea")&&Pt(r,e),Tt("canvas",r,e,xt),Tt("input, textarea, select",r,e,Pt),e}function Tt(r,e,s,t){let i=e.querySelectorAll(r);if(i.length){let n=s.querySelectorAll(r);for(let o=0;o<i.length;o++)t(i[o],n[o])}}var hi=0;function Pt(r,e){e.type!=="file"&&(e.value=r.value),e.type==="radio"&&e.name&&(e.name="mat-clone-".concat(e.name,"-").concat(hi++))}function xt(r,e){let s=e.getContext("2d");if(s)try{s.drawImage(r,0,0)}catch(t){}}function Vt(r,e){let s=r.rootNodes;if(s.length===1&&s[0].nodeType===e.ELEMENT_NODE)return s[0];let t=e.createElement("div");return s.forEach(i=>t.appendChild(i)),t}function kt(r){let e=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*e}function di(r){let e=getComputedStyle(r),s=Ce(e,"transition-property"),t=s.find(a=>a==="transform"||a==="all");
1if(!t)return 0;let i=s.indexOf(t),n=Ce(e,"transition-duration"),o=Ce(e,"transition-delay");return kt(n[i])+kt(o[i])}function Ce(r,e){return r.getPropertyValue(e).split(",").map(t=>t.trim())}var ui=new Set(["position"]),Te=class{constructor(e,s,t,i,n,o,a,c,l){this._document=e,this._rootElement=s,this._direction=t,this._initialDomRect=i,this._previewTemplate=n,this._previewClass=o,this._pickupPositionOnPage=a,this._initialTransform=c,this._zIndex=l}attach(e){this._preview=this._createPreview(),e.appendChild(this._preview),"showPopover"in this._preview&&this._preview.showPopover()}destroy(){var e;this._preview.remove(),(e=this._previewEmbeddedView)==null||e.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(e){this._preview.style.transform=e}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(e){this._preview.classList.add(e)}getTransitionDuration(){return di(this._preview)}addEventListener(e,s){this._preview.addEventListener(e,s)}removeEventListener(e,s){this._preview.removeEventListener(e,s)}_createPreview(){let e=this._previewTemplate,s=this._previewClass,t=e?e.template:null,i;if(t&&e){let n=e.matchSize?this._initialDomRect:null,o=e.viewContainer.createEmbeddedView(t,e.context);o.detectChanges(),i=Vt(o,this._document),this._previewEmbeddedView=o,e.matchSize?Ct(i,n):i.style.transform=ne(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else i=zt(this._rootElement),Ct(i,this._initialDomRect),this._initialTransform&&(i.style.transform=this._initialTransform);return Oe(i.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},ui),j(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("popover","manual"),i.setAttribute("dir",this._direction),s&&(Array.isArray(s)?s.forEach(n=>i.classList.add(n)):i.classList.add(s)),i}},Ot=G({passive:!0}),ee=G({passive:!1}),At=G({passive:!1,capture:!0}),fi=800,Lt=new Set(["position"]),Pe=class{get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(e){e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(s=>j(s,e)))}constructor(e,s,t,i,n,o){this._config=s,this._document=t,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new f,this._pointerMoveSubscription=P.EMPTY,this._pointerUpSubscription=P.EMPTY,this._scrollSubscription=P.EMPTY,this._resizeSubscription=P.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 f,this.started=new f,this.released=new f,this.ended=new f,this.entered=new f,this.exited=new f,this.dropped=new f,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){let c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&this._initializeDragSequence(c,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{let c=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){let h=Math.abs(c.x-this._pickupPositionOnPage.x),d=Math.abs(c.y-this._pickupPositionOnPage.y);if(h+d>=this._config.dragStartThreshold){let g=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),I=this._dropContainer;if(!g){this._endDragSequence(a);return}(!I||!I.isDragging()&&!I.isReceiving())&&(a.cancelable&&a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.cancelable&&a.preventDefault();let l=this._getConstrainedPointerPosition(c);if(this._hasMoved=!0,this._lastKnownPointerPosition=c,this._updatePointerDirectionDelta(l),this._dropContainer)this._updateActiveDropContainer(l,c);else{let h=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,d=this._activeTransform;d.x=l.x-h.x+this._passiveTransform.x,d.y=l.y-h.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:l,event:a,distance:this._getDragDistance(l),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>
1{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){let c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(e).withParent(s.parentDragRef||null),this._parentPositions=new re(t),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(t=>b(t)),this._handles.forEach(t=>j(t,this.disabled)),this._toggleNativeDragInteractions();let s=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&s.add(t)}),this._disabledHandles=s,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){let s=b(e);return s!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{s.addEventListener("mousedown",this._pointerDown,ee),s.addEventListener("touchstart",this._pointerDown,Ot),s.addEventListener("dragstart",this._nativeDragStart,ee)}),this._initialTransform=void 0,this._rootElement=s),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?b(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){var e,s;this._removeRootElementListeners(this._rootElement),this.isDragging()&&((e=this._rootElement)==null||e.remove()),(s=this._anchor)==null||s.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),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),j(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),j(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){let 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(){let e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeListeners(){var e;this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),(e=this._getShadowRoot())==null||e.removeEventListener("selectstart",Ft,At)}_destroyPreview(){var e;(e=this._preview)==null||e.destroy(),this._preview=null}_destroyPlaceholder(){var e,s;(e=this._placeholder)==null||e.remove(),(s=this._placeholderRef)==null||s.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),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;let s=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(s),dropPoint:s,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}
vendor: 8,372 bytes, line 1
1_startDragSequence(e){$(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let s=this._getShadowRoot(),t=this._dropContainer;if(s&&this._ngZone.runOutsideAngular(()=>{s.addEventListener("selectstart",Ft,At)}),t){let i=this._rootElement,n=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");n.insertBefore(a,i),this._initialTransform=i.style.transform||"",this._preview=new Te(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3),this._preview.attach(this._getPreviewInsertionPoint(n,s)),St(i,!1,Lt),this._document.body.appendChild(n.replaceChild(o,i)),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,s){this._parentDragRef&&s.stopPropagation();let t=this.isDragging(),i=$(s),n=!i&&s.button!==0,o=this._rootElement,a=Z(s),c=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+fi>Date.now(),l=i?Et(s):It(s);if(a&&a.draggable&&s.type==="mousedown"&&s.preventDefault(),t||n||c||l)return;if(this._handles.length){let p=o.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeListeners(),this._initialDomRect=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(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=Ae(this._boundaryElement));let h=this._previewTemplate;this._pickupPositionInElement=h&&h.template&&!h.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,e,s);let d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(s);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,s)}_cleanupDragArtifacts(e){St(this._rootElement,!0,Lt),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let s=this._dropContainer,t=s.getItemIndex(this),i=this._getPointerPositionOnPage(e),n=this._getDragDistance(i),o=s._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:n,dropPoint:i,event:e}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:s,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:n,dropPoint:i,event:e}),s.drop(this,t,this._initialIndex,this._initialContainer,o,n,i,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:s},{x:t,y:i}){let n=this._initialContainer._getSiblingContainerFromPosition(this,e,s);!n&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,s)&&(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,s,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(t,i),this._dropContainer._sortItem(this,e,s,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,s):this._applyPreviewTransform(e-this._pickupPositionInElement.x,s-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let e=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);let s=this._preview.getTransitionDuration();return s===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{let i=o=>{var a;(!o||Z(o)===this._preview&&o.propertyName==="transform")&&((a=this._preview)==null||a.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,s*1.5);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){let e=this._placeholderTemplate,s=e?e.template:null,t;return s?(this._placeholderRef=e.viewContainer.createEmbeddedView(s,e.context),this._placeholderRef.detectChanges(),t=Vt(this._placeholderRef,this._document)):t=zt(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(e,s,t){let i=s===this._rootElement?null:s,n=i?i.getBoundingClientRect():e,o=$(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition(),c=o.pageX-n.left-a.left,l=o.pageY-n.top-a.top;return{x:n.left-e.left+c,y:n.top-e.top+l}}_getPointerPositionOnPage(e){let s=this._getViewportScrollPosition(),t=$(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=t.pageX-s.left,n=t.pageY-s.top;if(this._ownerSVGElement){let o=this._ownerSVGElement.getScreenCTM();if(o){let a=this._ownerSVGElement.createSVGPoint();return a.x=i,a.y=n,a.matrixTransform(o.inverse())}}return{x:i,y:n}}_getConstrainedPointerPosition(e){let s=this._dropContainer?this._dropContainer.lockAxis:null,{x:t,y:i}=this.constrainPosition?this.constrainPosition(e,this,this._initialDomRect,this._pickupPositionInElement):e;if(this.lockAxis==="x"||s==="x"?i=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||s==="y")&&(t=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:n,y:o}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:c,height:l}=this._getPreviewRect(),h=a.top+o,d=a.bottom-(l-o),p=a.left+n,g=a.right-(c-n);t=Mt(t,p,g),i=Mt(i,h,d)}return{x:t,y:i}}_updatePointerDirectionDelta(e){let{x:s,y:t}=e,i=this._pointerDirectionDelta,n=this._pointerPositionAtLastDirectionChange,o=Math.abs(s-n.x),a=Math.abs(t-n.y);return o>this._config.pointerDirectionChangeThreshold&&(i.x=s>n.x?1:-1,n.x=s),a>this._config.pointerDirectionChangeThreshold&&(i.y=t>n.y?1:-1,n.y=t),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,j(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,ee),e.removeEventListener("touchstart",this._pointerDown,Ot),e.removeEventListener("dragstart",this._nativeDragStart,ee)}_applyRootElementTransform(e,s){let t=ne(e,s),i=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=i.transform&&i.transform!="none"?i.transform:""),i.transform=se(t,this._initialTransform)}_applyPreviewTransform(e,s){var n;let t=(n=this._previewTemplate)!=null&&n.template?void 0:this._initialTransform,i=ne(e,s);this._preview.setTransform(se(i,t))}_getDragDistance(e){let s=this._pickupPositionOnPage;return s?{x:e.x-s.x,y:e.y-s.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:s}=this._passiveTransform;if(e===0&&s===0||this.isDragging()||!this._boundaryElement)return;let t=this._rootElement.getBoundingClientRect(),i=this._boundaryElement.getBoundingClientRect();if(i.width===0&&i.height===0||t.width===0&&t.height===0)return;let n=i.left-t.left,o=t.right-i.right,a=i.top-t.top,c=t.bottom-i.bottom;i.width>t.width?(n>0&&(e+=n),o>0&&(e-=o)):e=0,i.height>t.height?(a>0&&(s+=a),c>0&&(s-=c)):s=0,(e!==this._passiveTransform.x||s!==this._passiveTransform.y)&&this.setFreeDragPosition({y:s,x:e})}_getDragStartDelay(e){let s=this.dragStartDelay;return typeof s=="number"?s:$(e)?s.touch:s?s.mouse:0}_updateOnScroll(e){let s=this._parentPositions.handleScroll(e);
1if(s){let t=Z(e);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&K(this._boundaryRect,s.top,s.left),this._pickupPositionOnPage.x+=s.left,this._pickupPositionOnPage.y+=s.top,this._dropContainer||(this._activeTransform.x-=s.left,this._activeTransform.y-=s.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var e;return((e=this._parentPositions.positions.get(this._document))==null?void 0:e.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Se(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,s){let t=this._previewContainer||"global";if(t==="parent")return e;if(t==="global"){let i=this._document;return s||i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body}return b(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle(e){return this._handles.find(s=>e.target&&(e.target===s||s.contains(e.target)))}};function Mt(r,e,s){return Math.max(e,Math.min(s,r))}function $(r){return r.type[0]==="t"}function Ft(r){r.preventDefault()}function pi(r,e,s){let t=Nt(e,r.length-1),i=Nt(s,r.length-1);if(t===i)return;let n=r[t],o=i<t?-1:1;for(let a=t;a!==i;a+=o)r[a]=r[a+o];r[i]=n}function Nt(r,e){return Math.max(0,Math.min(e,r))}var xe=class{constructor(e,s){this._element=e,this._dragDropRegistry=s,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(e){this.withItems(e)}sort(e,s,t,i){let n=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,s,t,i);if(o===-1&&n.length>0)return null;let a=this.orientation==="horizontal",c=n.findIndex(_=>_.drag===e),l=n[o],h=n[c].clientRect,d=l.clientRect,p=c>o?1:-1,g=this._getItemOffsetPx(h,d,p),I=this._getSiblingOffsetPx(c,n,p),oe=n.slice();return pi(n,c,o),n.forEach((_,Yt)=>{if(oe[Yt]===_)return;let Le=_.drag===e,ae=Le?g:I,Me=Le?e.getPlaceholderElement():_.drag.getRootElement();_.offset+=ae,a?(Me.style.transform=se("translate3d(".concat(Math.round(_.offset),"px, 0, 0)"),_.initialTransform),K(_.clientRect,0,ae)):(Me.style.transform=se("translate3d(0, ".concat(Math.round(_.offset),"px, 0)"),_.initialTransform),K(_.clientRect,ae,0))}),this._previousSwap.overlaps=Re(d,s,t),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?i.x:i.y,{previousIndex:c,currentIndex:o}}enter(e,s,t,i){let n=i==null||i<0?this._getItemIndexFromPointerPosition(e,s,t):i,o=this._activeDraggables,a=o.indexOf(e),c=e.getPlaceholderElement(),l=o[n];if(l===e&&(l=o[n+1]),!l&&(n==null||n===-1||n<o.length-1)&&this._shouldEnterAsFirstChild(s,t)&&(l=o[0]),a>-1&&o.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){let h=l.getRootElement();h.parentElement.insertBefore(c,h),o.splice(n,0,e)}else b(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=>{var t;let s=e.getRootElement();if(s){let i=(t=this._itemPositions.find(n=>n.drag===e))==null?void 0:t.initialTransform;s.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(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===e)}updateOnScroll(e,s){this._itemPositions.forEach(({clientRect:t})=>{K(t,e,s)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){let e=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(s=>{let t=s.getVisibleElement();return{drag:s,offset:0,initialTransform:t.style.transform||"",clientRect:Ae(t)}}).sort((s,t)=>e?s.clientRect.left-t.clientRect.left:s.clientRect.top-t.clientRect.top)}_getItemOffsetPx(e,s,t){let i=this.orientation==="horizontal",n=i?s.left-e.left:s.top-e.top;return t===-1&&(n+=i?s.width-e.width:s.height-e.height),n}_getSiblingOffsetPx(e,s,t){let i=this.orientation==="horizontal",n=s[e].clientRect,o=s[e+t*-1],a=n[i?"width":"height"]*t;if(o){let c=i?"left":"top",l=i?"right":"bottom";t===-1?a-=o.clientRect[c]-n[l]:a+=n[c]-o.clientRect[l]}return a}_shouldEnterAsFirstChild(e,s){if(!this._activeDraggables.length)return!1;let t=this._itemPositions,i=this.orientation==="horizontal";if(t[0].drag!==this._activeDraggables[0]){let o=t[t.length-1].clientRect;return i?e>=o.right:s>=o.bottom}else{let o=t[0].clientRect;return i?e<=o.left:s<=o.top}}_getItemIndexFromPointerPosition(e,s,t,i){let n=this.orientation==="horizontal",o=this._itemPositions.findIndex(({drag:a,clientRect:c})=>{if(a===e)return!1;if(i){let l=n?i.x:i.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&l===this._previousSwap.delta)return!1}return n?s>=Math.floor(c.left)&&s<Math.floor(c.right):t>=Math.floor(c.top)&&t<Math.floor(c.bottom)});return o===-1||!this._sortPredicate(o,e)?-1:o}},Bt=.05,Ht=.05,y=function(r){return r[r.NONE=0]="NONE",r[r.UP=1]="UP",r[r.DOWN=2]="DOWN",r}(y||{}),v=function(r){return r[r.NONE=0]="NONE",r[r.LEFT=1]="LEFT",r[r.RIGHT=2]="RIGHT",r}(v||{}),ke=class{constructor(e,s,t,i,n){this._dragDropRegistry=s,this._ngZone=i,this._viewportRuler
1=n,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new f,this.entered=new f,this.exited=new f,this.dropped=new f,this.sorted=new f,this.receivingStarted=new f,this.receivingStopped=new f,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=P.EMPTY,this._verticalScrollDirection=y.NONE,this._horizontalScrollDirection=v.NONE,this._stopScrollTimers=new f,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),je(0,ce).pipe(z(this._stopScrollTimers)).subscribe(()=>{let o=this._scrollNode,a=this.autoScrollStep;this._verticalScrollDirection===y.UP?o.scrollBy(0,-a):this._verticalScrollDirection===y.DOWN&&o.scrollBy(0,a),this._horizontalScrollDirection===v.LEFT?o.scrollBy(-a,0):this._horizontalScrollDirection===v.RIGHT&&o.scrollBy(a,0)})},this.element=b(e),this._document=t,this.withScrollableParents([this.element]),s.registerDropContainer(this),this._parentPositions=new re(t),this._sortStrategy=new xe(this.element,s),this._sortStrategy.withSortPredicate((o,a)=>this.sortPredicate(o,a,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,s,t,i){this._draggingStarted(),i==null&&this.sortingDisabled&&(i=this._draggables.indexOf(e)),this._sortStrategy.enter(e,s,t,i),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,s,t,i,n,o,a,c={}){this._reset(),this.dropped.next({item:e,currentIndex:s,previousIndex:t,container:this,previousContainer:i,isPointerOverContainer:n,distance:o,dropPoint:a,event:c})}withItems(e){let s=this._draggables;return this._draggables=e,e.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(s.filter(i=>i.isDragging()).every(i=>e.indexOf(i)===-1)?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){let s=b(this.element);return this._scrollableElements=e.indexOf(s)===-1?[s,...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,s,t,i){if(this.sortingDisabled||!this._domRect||!Rt(this._domRect,Bt,s,t))return;let n=this._sortStrategy.sort(e,s,t,i);n&&this.sorted.next({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,s){if(this.autoScrollDisabled)return;let t,i=y.NONE,n=v.NONE;if(this._parentPositions.positions.forEach((o,a)=>{a===this._document||!o.clientRect||t||Rt(o.clientRect,Bt,e,s)&&([i,n]=gi(a,o.clientRect,this._sortStrategy.direction,e,s),(i||n)&&(t=a))}),!i&&!n){let{width:o,height:a}=this._viewportRuler.getViewportSize(),c={width:o,height:a,top:0,right:o,bottom:a,left:0};i=Ut(c,s),n=Wt(c,e),t=window}t&&(i!==this._verticalScrollDirection||n!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=i,this._horizontalScrollDirection=n,this._scrollNode=t,(i||n)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let e=b(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(){let e=b(this.element);this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(e).
1clientRect}_reset(){this._isDragging=!1;let e=b(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(s=>s._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(e,s){return this._domRect!=null&&Re(this._domRect,e,s)}_getSiblingContainerFromPosition(e,s,t){return this._siblings.find(i=>i._canReceive(e,s,t))}_canReceive(e,s,t){if(!this._domRect||!Re(this._domRect,s,t)||!this.enterPredicate(e,this))return!1;let i=this._getShadowRoot().elementFromPoint(s,t);if(!i)return!1;let n=b(this.element);return i===n||n.contains(i)}_startReceiving(e,s){let t=this._activeSiblings;!t.has(e)&&s.every(i=>this.enterPredicate(i,this)||this._draggables.indexOf(i)>-1)&&(t.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:s}))}_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()){let s=this._parentPositions.handleScroll(e);s&&this._sortStrategy.updateOnScroll(s.top,s.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let e=Se(b(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let e=this._sortStrategy.getActiveItemsSnapshot().filter(s=>s.isDragging());this._siblings.forEach(s=>s._startReceiving(this,e))}};function Ut(r,e){let{top:s,bottom:t,height:i}=r,n=i*Ht;return e>=s-n&&e<=s+n?y.UP:e>=t-n&&e<=t+n?y.DOWN:y.NONE}function Wt(r,e){let{left:s,right:t,width:i}=r,n=i*Ht;return e>=s-n&&e<=s+n?v.LEFT:e>=t-n&&e<=t+n?v.RIGHT:v.NONE}function gi(r,e,s,t,i){let n=Ut(e,i),o=Wt(e,t),a=y.NONE,c=v.NONE;if(n){let l=r.scrollTop;n===y.UP?l>0&&(a=y.UP):r.scrollHeight-l>r.clientHeight&&(a=y.DOWN)}if(o){let l=r.scrollLeft;s==="rtl"?o===v.RIGHT?l<0&&(c=v.RIGHT):r.scrollWidth+l>r.clientWidth&&(c=v.LEFT):o===v.LEFT?l>0&&(c=v.LEFT):r.scrollWidth-l>r.clientWidth&&(c=v.RIGHT)}return[a,c]}var te=G({passive:!1,capture:!0}),ie=new Set,_i=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],standalone:!0,features:[M],decls:0,vars:0,template:function(i,n){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit}}"],encapsulation:2,changeDetection:0});let r=e;return r})(),mi=(()=>{let e=class e{constructor(t,i){this._ngZone=t,this._appRef=V(qe),this._environmentInjector=V(He),this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=n=>n.isDragging(),this.pointerMove=new f,this.pointerUp=new f,this.scroll=new f,this._preventDefaultWhileDragging=n=>{this._activeDragInstances.length>0&&n.preventDefault()},this._persistentTouchmoveListener=n=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&n.preventDefault(),this.pointerMove.next(n))},this._document=i}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,te)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),this._dragInstances.size===0&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,te)}startDragging(t,i){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._loadResets(),this._activeDragInstances.push(t),this._activeDragInstances.length===1)){let n=i.type.startsWith("touch");this._globalListeners.set(n?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:te}),n||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:te}),this._ngZone.runOutsideAngular(()=>
1{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(t){let i=this._activeDragInstances.indexOf(t);i>-1&&(this._activeDragInstances.splice(i,1),this._activeDragInstances.length===0&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}scrolled(t){let i=[this.scroll];return t&&t!==this._document&&i.push(new q(n=>this._ngZone.runOutsideAngular(()=>{let a=c=>{this._activeDragInstances.length&&n.next(c)};return t.addEventListener("scroll",a,!0),()=>{t.removeEventListener("scroll",a,!0)}}))),le(...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()}_loadResets(){if(!ie.has(this._appRef)){ie.add(this._appRef);let t=Qe(_i,{environmentInjector:this._environmentInjector});this._appRef.onDestroy(()=>{ie.delete(this._appRef),ie.size===0&&t.destroy()})}}};e.\u0275fac=function(i){return new(i||e)(m(B),m(T))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),vi={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Gt=(()=>{let e=class e{constructor(t,i,n,o){this._document=t,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=o}createDrag(t,i=vi){return new Pe(t,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new ke(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}};e.\u0275fac=function(i){return new(i||e)(m(T),m(B),m(yt),m(mi))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})(),jt=new x("CDK_DRAG_PARENT");var bi=new x("CdkDragHandle");var wi=new x("CDK_DRAG_CONFIG"),yi="cdk-drag",Di=new x("CdkDropList"),Zt=(()=>{let e=class e{get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=t,this._dragRef.disabled=this._disabled}constructor(t,i,n,o,a,c,l,h,d,p,g){this.element=t,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=a,this._dir=l,this._changeDetectorRef=d,this._selfHandle=p,this._parentDrag=g,this._destroyed=new f,this._handles=new Ne([]),this.started=new D,this.released=new D,this.ended=new D,this.entered=new D,this.exited=new D,this.dropped=new D,this.moved=new q(I=>{let oe=this._dragRef.moved.pipe(Be(_=>({source:this,pointerPosition:_.pointerPosition,event:_.event,delta:_.delta,distance:_.distance}))).subscribe(I);return()=>{oe.unsubscribe()}}),this._dragRef=h.createDrag(t,{dragStartThreshold:c&&c.dragStartThreshold!=null?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&c.pointerDirectionChangeThreshold!=null?c.pointerDirectionChangeThreshold:5,zIndex:c==null?void 0:c.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),c&&this._assignDefaults(c),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(he(1),z(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(t){let i=t.rootElementSelector,n=t.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);let t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(t){let i=this._handles.getValue();i.push(t),this._handles.next(i)}_removeHandle(t){let i=this._handles.getValue(),n=i.indexOf(t);n>-1&&(i.splice(n,1),this._handles.next(i))}_setPreviewTemplate(t){this._previewTemplate=t}_resetPreviewTemplate(t){t===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(t){this._placeholderTemplate=t}_resetPlaceholderTemplate(t){t===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){var n;let t=this.element.nativeElement,i=t;this.rootElementSelector&&(i=t.closest!==void 0?t.closest(this.rootElementSelector):(n=t.parentElement)==null?void 0:n.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||t)}_getBoundaryElement(){let t=this.boundaryElement;return t?typeof t=="string"?this.element.nativeElement.closest(t):b(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){let i=this._dir,n=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=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=typeof n=="object"&&n?n:vt(n),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),i&&t.withDirection(i.value)}}),t.beforeStarted.pipe(he(1)).subscribe(()=>{var n;if(this._parentDrag){t.withParent(this._parentDrag._dragRef);return}let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains(yi)){t.withParent(((n=e._dragInstances.find(o=>o.element.nativeElement===i))==null?void 0:n._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=>
1{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){let{lockAxis:i,dragStartDelay:n,constrainPosition:o,previewClass:a,boundaryElement:c,draggingDisabled:l,rootElementSelector:h,previewContainer:d}=t;this.disabled=l==null?!1:l,this.dragStartDelay=n||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),a&&(this.previewClass=a),c&&(this.boundaryElement=c),h&&(this.rootElementSelector=h),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.pipe(Ve(t=>{let i=t.map(n=>n.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),ue(t=>le(...t.map(i=>i._stateChanges.pipe(de(i))))),z(this._destroyed)).subscribe(t=>{let i=this._dragRef,n=t.element.nativeElement;t.disabled?i.disableHandle(n):i.enableHandle(n)})}};e._dragInstances=[],e.\u0275fac=function(i){return new(i||e)(u(H),u(Di,12),u(T),u(B),u(pe),u(wi,8),u(wt,8),u(Gt),u(De),u(bi,10),u(jt,12))},e.\u0275dir=Y({type:e,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,n){i&2&&me("cdk-drag-disabled",n.disabled)("cdk-drag-dragging",n._dragRef.isDragging())},inputs:{data:[w.None,"cdkDragData","data"],lockAxis:[w.None,"cdkDragLockAxis","lockAxis"],rootElementSelector:[w.None,"cdkDragRootElement","rootElementSelector"],boundaryElement:[w.None,"cdkDragBoundary","boundaryElement"],dragStartDelay:[w.None,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[w.None,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[w.HasDecoratorInputTransform,"cdkDragDisabled","disabled",Ye],constrainPosition:[w.None,"cdkDragConstrainPosition","constrainPosition"],previewClass:[w.None,"cdkDragPreviewClass","previewClass"],previewContainer:[w.None,"cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[X([{provide:jt,useExisting:e}]),ge,fe]});let r=e;return r})();var $t=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=N({type:e}),e.\u0275inj=F({providers:[Gt],imports:[Dt]});let r=e;return r})();var Si=()=>["/"],Kt=(()=>{let e=class e{constructor(t){this.globalData=t,this.newItemEvent=new D,this.openSide="start"}ngOnInit(){this.screenWidth=window.innerWidth}onResize(t){this.screenWidth=window.innerWidth}dragEnd(t){let i=t.source.getFreeDragPosition().x;(this.screenWidth-40)/2+i<=0?this.openSide="end":this.openSide="start"}goBackHandle(t){this.newItemEvent.emit(t)}ngOnDestroy(){}};e.\u0275fac=function(i){return new(i||e)(u(J))},e.\u0275cmp=k({type:e,selectors:[["app-fab-btn"]],hostBindings:function(i,n){i&1&&L("resize",function(a){return n.onResize(a)},!1,Q)},outputs:{newItemEvent:"newItemEvent"},standalone:!0,features:[M],decls:8,vars:3,consts:[["vertical","center","horizontal","end","slot","fixed","cdkDragBoundary",".boundary","cdkDrag","",3,"cdkDragEnded"],["src","../../../../assets/images/svg/menu.svg"],[3,"side"],[3,"routerLink"],[1,"icon-fab-home"],[3,"click"],[1,"icon-forward"]],template:function(i,n){i&1&&(S(0,"ion-fab",0),L("cdkDragEnded",function(a){return n.dragEnd(a)}),S(1,"ion-fab-button"),R(2,"ion-icon",1),C(),S(3,"ion-fab-list",2)(4,"ion-fab-button",3),R(5,"span",4),C(),S(6,"ion-fab-button",5),L("click",function(){return n.goBackHandle("")}),R(7,"span",6),C()()()),i&2&&(O(3),A("side",n.openSide),O(),A("routerLink",Ke(2,Si)))},dependencies:[$t,Zt,rt,ot,at,ct,lt],encapsulation:2});let r=e;return r})();
1var Ci=["iframe"];function Ri(r,e){if(r&1){let s=$e();S(0,"app-fab-btn",7),L("newItemEvent",function(i){Ue(s);let n=ve();return We(n.goBack(i))}),C()}}function Ti(r,e){if(r&1&&R(0,"app-maintenance-info",8),r&2){let s=ve();A("type","game")("provider",s.providerId)}}var qt,en=(()=>{let e=class e{constructor(t,i,n,o,a,c,l,h,d,p,g){this.globalData=t,this.cmsService=i,this.route=n,this.userDetectService=o,this.router=a,this.langService=c,this.httpService=l,this.transferService=h,this.storageService=d,this.iab=p,this.screenOrientation=g,this.gameUrl=null,this.providerId=null,this.isInitialized=!1,["QNN"].some(I=>window.location.href.includes("id=".concat(I)))||this.initializeApp()}initializeApp(t){this.isInitialized||(this.isInitialized=!0,ht.addListener("backButton",i=>{this.nativeBackButtonListener()}))}nativeBackButtonListener(){this.globalData.loading=!1;let t=window.location.href;["PGS","PPS","WBL"].some(o=>t.includes("id=".concat(o)))?history.go(-3):history.go(-2)}ngAfterViewInit(){this.route.queryParams.subscribe(t=>{if(t){this.providerId=t.id||null;let i=this.providerId==="MPS"&&this.storageService.getStorage("gameUrl")||"";this.gameUrl=t.gurl||i||null,this.gameUrl?this.openGameUrl(t.device,this.providerId):this.openGameWithParams(t)}})}openGameWithParams(t){let i=t.id||t.Provider||"",n=t.gameCode||t.GameCode||"",o=t.GameCode||"",a=t.GameType||"",c=t.RealMoney,l=t.PrePage||"",d=new URLSearchParams(window.location.search).get("position")||"";(!i||!n)&&this.router.navigate(["/MaintenanceProvider"]),this.globalData.isApp&&(c=!0);let p={providerId:i,gameCode:n,gameName:o,gameType:a,language:this.langService.language,realMoney:c,position:d};this.globalData.loading=!0,this.httpService.getGameUrl(p).subscribe(g=>{g.code===0?(this.gameUrl=g.data.gameInfo.gameUrl,this.openGameUrl(this.userDetectService.getChannel(),i)):g.code===90001?this.globalData.showDirectAlert("codeMessage.90001",0):g.code===51060?this.globalData.showDirectAlert("codeMessage.51060",0,()=>{this.globalData.isApp?this.globalData.goBack():window.close()}):g.code===41001?this.globalData.showDirectAlert("codeMessage.41001",0,()=>{this.globalData.isApp?this.globalData.goBack():window.close()}):ut(g.code)===19&&this.transferService.gameMaintenance(i,l,g.code),this.globalData.loading=!1})}openGameUrl(t,i){this.globalData.loading=!1;let n=["PGS","PGO"],o=["PT","PTS","PTC","CDL","STL","DGC","OUL"],a=[...n,"WBL",...o],c=n.includes(i!=null?i:""),l=["MPS"],h=this.storageService.getStorage("gameUrl")||"";if(l.includes(i!=null?i:"")&&h.length>0&&(this.gameUrl=this.storageService.getStorage("gameUrl"),this.storageService.removeStorage("gameUrl")),this.globalData.isApp){if(o.includes(i!=null?i:"")){window.scrollTo(0,0);let p=this.iab.create(this.gameUrl,"_blank","hideurlbar=yes");p.on("loadstop").subscribe(()=>this.screenOrientation.unlock()),p.on("exit").subscribe(()=>{this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.PORTRAIT),this.goBack("")})}else this.openInIframe(c);return}if(this.userDetectService.getChannel()==="W"&&t==="W"){c||!a.includes(i!=null?i:"")&&this.gameUrl.startsWith("https")?this.openInIframe(c):window.location.replace(this.gameUrl);return}c?(this.setIframeHeight(),window.addEventListener("resize",()=>this.setIframeHeight()),this.openInIframe(!0)):window.location.replace(this.gameUrl)}openInIframe(t){let i=this.iframe.nativeElement;t?i.srcdoc=this.gameUrl:i.src=this.gameUrl}goBack(t){this.globalData.loading=!1,this.iframe.nativeElement.contentWindow.location.replace(null);let i=window.location.href;["PGS","PPS","WBL"].some(a=>i.includes("id=".concat(a)))?history.go(-3):history.go(-2)}setIframeHeight(){let t=window.innerHeight;this.iframe.nativeElement.style.height="".concat(t,"px")}ngOnDestroy(){this.gameUrl=null}};e.\u0275fac=function(i){return new(i||e)(u(J),u(pt),u(st),u(Xe),u(nt),u(et),u(ft),u(_t),u(Je),u(dt,8),u(gt,8))},e.\u0275cmp=k({type:e,selectors:[["app-game-page"]],viewQuery:function(i,n){if(i&1&&be(Ci,5),i&2){let o;we(o=ye())&&(n.iframe=o.first)}},hostBindings:function(i,n){i&1&&L("message",function(a){return n.initializeApp(a)},!1,Q)},standalone:!0,features:[M],decls:7,vars:2,consts:[["iframe",""],[1,"app"],[1,"padding-0"],[1,"boundary"],[3,"newItemEvent",4,"ngIf"],["src",Ze(qt||(qt=Fe(["about:blank"]))),"frameborder","0"],[3,"type","provider",4,"ngIf"],[3,"newItemEvent"],[3,"type","provider"]],template:function(i,n){i&1&&(S(0,"div",1)(1,"main",2)(2,"div",3),_e(3,Ri,1,0,"app-fab-btn",4),R(4,"iframe",5,0),C()(),_e(6,Ti,1,2,"app-maintenance-info",6),C()),i&2&&(O(3),A("ngIf",n.globalData.isApp),O(3),A("ngIf",n.cmsService.cmsSetting==null?null:n.cmsService.cmsSetting.providerMaintenancePopup))},dependencies:[tt,Kt,mt],styles:['iframe[_ngcontent-%COMP%]{width:100%;height:100vh}ion-fab-list[_ngcontent-%COMP%]{right:50px}ion-fab-list[_ngcontent-%COMP%] > ion-fab-button[_ngcontent-%COMP%]{--background: #333}ion-fab-list[_ngcontent-%COMP%] > ion-fab-button[_ngcontent-%COMP%]   [class^=icon-][_ngcontent-%COMP%], ion-fab-list[_ngcontent-%COMP%] > ion-fab-button[_ngcontent-%COMP%]   [class*=" icon-"][_ngcontent-%COMP%]{font-size:1.2rem;color:#fff!important}ion-fab-button[_ngcontent-%COMP%]{margin-right:10px}ion-fab[_ngcontent-%COMP%] > ion-fab-button[_ngcontent-%COMP%]{--background: #0c6db5;width:40px;height:40px;margin:8px}.padding-0[_ngcontent-%COMP%]{padding:0}']});let r=e;return r})();export{en as GamePageComponent};

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.