import{Da as u,Ea as f,Ha as g,Hb as v,Ma as p,Sb as h,na as o,oa as c,qa as d,sa as r,xa as l,yd as m}from"./chunk-CZOGMAXR.js";var a=new WeakMap,b=(()=>{class e{_appRef;_injector=r(u);_environmentInjector=r(l);load(i){let t=this._appRef=this._appRef||this._injector.get(h),n=a.get(t);n||(n={loaders:new Set,refs:[]},a.set(t,n),t.onDestroy(()=>{a.get(t)?.refs.forEach(I=>I.destroy()),a.delete(t)})),n.loaders.has(i)||(n.loaders.add(i),n.refs.push(m(i,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(t){return new(t||e)};static \u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var _=new d("cdk-dir-doc",{providedIn:"root",factory:()=>r(f)}),M=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function y(e){let s=e?.toLowerCase()||"";return s==="auto"&&typeof navigator<"u"&&navigator?.language?M.test(navigator.language)?"rtl":"ltr":s==="rtl"?"rtl":"ltr"}var j=(()=>{class e{get value(){return this.valueSignal()}valueSignal=p("ltr");change=new g;constructor(){let i=r(_,{optional:!0});if(i){let t=i.body?i.body.dir:null,n=i.documentElement?i.documentElement.dir:null;this.valueSignal.set(y(t||n||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(t){return new(t||e)};static \u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var x=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=v({type:e});static \u0275inj=c({})}return e})();export{b as a,j as b,x as c};
