import{$ as s,Y as r,_ as o,aa as d,lc as c,ta as a}from"./chunk-QXV2GR6R.js";var h=new o("cdk-dir-doc",{providedIn:"root",factory:l});function l(){return d(c)}var f=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function g(i){let t=(i==null?void 0:i.toLowerCase())||"";return t==="auto"&&typeof navigator<"u"&&(navigator!=null&&navigator.language)?f.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var w=(()=>{let t=class t{constructor(e){if(this.value="ltr",this.change=new a,e){let n=e.body?e.body.dir:null,u=e.documentElement?e.documentElement.dir:null;this.value=g(n||u||"ltr")}}ngOnDestroy(){this.change.complete()}};t.\u0275fac=function(n){return new(n||t)(s(h,8))},t.\u0275prov=r({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();export{w as a};
/**i18n:224bcada6943fe8b17ea60808c2d370cec9507c3bd670ebe71692d099a3befa1*/
//# sourceMappingURL=chunk-JBKWRGVF.js.map
