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