System.register(["@angular/core","@angular/common"],(function(t){"use strict";var i,e,n,r,s;return{setters:[function(t){i=t.InjectionToken,e=t.inject,n=t.EventEmitter,r=t,t.Injectable,t.Optional,t.Inject,t.Directive,t.Output,t.Input,t.NgModule},function(t){s=t.DOCUMENT}],execute:function(){const o=t("DIR_DOCUMENT",new i("cdk-dir-doc",{providedIn:"root",factory:function(){return e(s)}}));const c=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function a(t){const i=t?.toLowerCase()||"";return"auto"===i&&"undefined"!=typeof navigator&&navigator?.language?c.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}class u{constructor(t){if(this.value="ltr",this.change=new n,t){const i=t.body?t.body.dir:null,e=t.documentElement?t.documentElement.dir:null;this.value=a(i||e||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(t){return new(t||u)(r.\u0275\u0275inject(o,8))}}static{this.\u0275prov=r.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})}}t("Directionality",u);class d{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new n}get dir(){return this._dir}set dir(t){const i=this._dir;this._dir=a(t),this._rawDir=t,i!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(t){return new(t||d)}}static{this.\u0275dir=r.\u0275\u0275defineDirective({type:d,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,i){2&t&&r.\u0275\u0275attribute("dir",i._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[r.\u0275\u0275ProvidersFeature([{provide:u,useExisting:d}])]})}}t("Dir",d);class l{static{this.\u0275fac=function(t){return new(t||l)}}static{this.\u0275mod=r.\u0275\u0275defineNgModule({type:l})}static{this.\u0275inj=r.\u0275\u0275defineInjector({})}}t("BidiModule",l)}}}));
