import{$ as l,Oa as g,Z as a,_ as s,ba as o,la as u,na as d,pa as c}from"./chunk-ZSQR4KTU.js";import{i as n}from"./chunk-IQVXR75E.js";var p=new l("cdk-dir-doc",{providedIn:"root",factory:()=>o(u)}),h=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function m(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?h.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var I=(()=>{let e=class e{get value(){return this.valueSignal()}valueSignal=c("ltr");change=new d;constructor(){let i=o(p,{optional:!0});if(i){let r=i.body?i.body.dir:null,v=i.documentElement?i.documentElement.dir:null;this.valueSignal.set(m(r||v||"ltr"))}}ngOnDestroy(){this.change.complete()}};n(e,"\u0275fac",function(r){return new(r||e)}),n(e,"\u0275prov",a({token:e,factory:e.\u0275fac,providedIn:"root"}));let t=e;return t})();var N=(()=>{let e=class e{};n(e,"\u0275fac",function(r){return new(r||e)}),n(e,"\u0275mod",g({type:e})),n(e,"\u0275inj",s({}));let t=e;return t})();export{I as a,N as b};
/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
//# sourceMappingURL=chunk-ZLVLQPII.js.map
